1 This is org, produced by makeinfo version 4.8 from org.texi.
5 * Org Mode: (org). Outline-based notes management and organizer
8 This manual is for Org-mode (version 5.05).
10 Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
12 Permission is granted to copy, distribute and/or modify this
13 document under the terms of the GNU Free Documentation License,
14 Version 1.1 or any later version published by the Free Software
15 Foundation; with no Invariant Sections, with the Front-Cover texts
16 being "A GNU Manual," and with the Back-Cover Texts as in (a)
17 below. A copy of the license is included in the section entitled
18 "GNU Free Documentation License."
20 (a) The FSF's Back-Cover Text is: "You have freedom to copy and
21 modify this GNU Manual, like GNU software. Copies published by
22 the Free Software Foundation raise funds for GNU development."
25 File: org, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
30 This manual is for Org-mode (version 5.05).
32 Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
34 Permission is granted to copy, distribute and/or modify this
35 document under the terms of the GNU Free Documentation License,
36 Version 1.1 or any later version published by the Free Software
37 Foundation; with no Invariant Sections, with the Front-Cover texts
38 being "A GNU Manual," and with the Back-Cover Texts as in (a)
39 below. A copy of the license is included in the section entitled
40 "GNU Free Documentation License."
42 (a) The FSF's Back-Cover Text is: "You have freedom to copy and
43 modify this GNU Manual, like GNU software. Copies published by
44 the Free Software Foundation raise funds for GNU development."
48 * Introduction:: Getting started
49 * Document structure:: A tree works like your brain
50 * Tables:: Pure magic for quick formatting
51 * Hyperlinks:: Notes in context
52 * TODO items:: Every tree branch can be a TODO item
53 * Tags:: Tagging headlines and matching sets of tags
54 * Properties and columns::
55 * Timestamps:: Assign date and time to items
56 * Agenda views:: Collecting information into views
57 * Embedded LaTeX:: LaTeX fragments and formulas
58 * Exporting:: Sharing and publishing of notes
59 * Publishing:: Create a web site of linked Org-mode files
60 * Miscellaneous:: All the rest which did not fit elsewhere
61 * Extensions and Hacking:: It is possible to write add-on code
62 * History and Acknowledgments:: How Org-mode came into being
63 * Index:: The fast road to specific information
64 * Key Index:: Key bindings and where they are described
66 --- The Detailed Node Listing ---
70 * Summary:: Brief summary of what Org-mode does
71 * Installation:: How to install a downloaded version of Org-mode
72 * Activation:: How to activate Org-mode for certain buffers.
73 * Feedback:: Bug reports, ideas, patches etc.
77 * Outlines:: Org-mode is based on outline-mode
78 * Headlines:: How to typeset org-tree headlines
79 * Visibility cycling:: Show and hide, much simplified
80 * Motion:: Jumping to other headlines
81 * Structure editing:: Changing sequence and level of headlines
82 * Archiving:: Move done task trees to a different place
83 * Sparse trees:: Matches embedded in context
84 * Plain lists:: Additional structure within an entry
85 * Drawers:: Tucking stuff away
86 * orgstruct-mode:: Structure editing outside Org-mode
90 * ARCHIVE tag:: Marking a tree as inactive
91 * Moving subtrees:: Moving a tree to an archive file
95 * Built-in table editor:: Simple tables
96 * Narrow columns:: Stop wasting space in tables
97 * Column groups:: Grouping to trigger vertical lines
98 * orgtbl-mode:: The table editor as minor mode
99 * The spreadsheet:: The table editor has spreadsheet capabilities.
103 * References:: How to refer to another field or range
104 * Formula syntax for Calc:: Using Calc to compute stuff
105 * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
106 * Field formulas:: Formulas valid for a single field
107 * Column formulas:: Formulas valid for an entire column
108 * Editing and debugging formulas:: Fixing formulas
109 * Updating the table:: Recomputing all dependent fields
110 * Advanced features:: Field names, parameters and automatic recalc
114 * Link format:: How links in Org-mode are formatted
115 * Internal links:: Links to other places in the current file
116 * External links:: URL-like links to the world
117 * Handling links:: Creating, inserting and following
118 * Using links outside Org-mode:: Linking from my C source code?
119 * Link abbreviations:: Shortcuts for writing complex links
120 * Search options:: Linking to a specific location
121 * Custom searches:: When the default search is not enough
122 * Remember:: Org-trees store quick notes
126 * Radio targets:: Make targets trigger links in plain text.
130 * Setting up remember:: Some code for .emacs to get things going
131 * Remember templates:: Define the outline of different note types
132 * Storing notes:: Directly get the note to where it belongs
136 * TODO basics:: Marking and displaying TODO entries
137 * TODO extensions:: Workflow and assignments
138 * Priorities:: Some things are more important than others
139 * Breaking down tasks:: Splitting a task into manageable pieces
140 * Checkboxes:: Tick-off lists
142 Extended use of TODO keywords
144 * Workflow states:: From TODO to DONE in steps
145 * TODO types:: I do this, Fred the rest
146 * Multiple sets in one file:: Mixing it all, and still finding your way
147 * Per file keywords:: Different files, different requirements
151 * Tag inheritance:: Tags use the tree structure of the outline
152 * Setting tags:: How to assign tags to a headline
153 * Tag searches:: Searching for combinations of tags
155 Properties and Columns
157 * Property syntax:: How properties are spelled out
158 * Special properties:: Access to other Org-mode features
159 * Property searches:: Matching property values
160 * Column view:: Tabular viewing and editing
161 * Property API:: Properties for Lisp programmers
165 * Defining columns:: The COLUMNS format property
166 * Using column view:: How to create and use column view
170 * Scope of column definitions:: Where defined, where valid?
171 * Column attributes:: Appearance and content of a column
175 * Time stamps:: Assigning a time to a tree entry
176 * Creating timestamps:: Commands which insert timestamps
177 * Deadlines and scheduling:: Planning your work
178 * Progress logging:: Documenting when what work was done.
182 * The date/time prompt:: How org-mode helps you entering date and time
183 * Custom time format:: Making dates look differently
185 Deadlines and Scheduling
187 * Inserting deadline/schedule:: Planning items
188 * Repeated tasks:: Items that show up again and again
192 * Closing items:: When was this entry marked DONE?
193 * Tracking TODO state changes:: When did the status change?
194 * Clocking work time:: When exactly did you work on this item?
198 * Agenda files:: Files being searched for agenda information
199 * Agenda dispatcher:: Keyboard access to agenda views
200 * Built-in agenda views:: What is available out of the box?
201 * Presentation and sorting:: How agenda items are prepared for display
202 * Agenda commands:: Remote editing of org trees
203 * Custom agenda views:: Defining special searches and views
205 The built-in agenda views
207 * Weekly/Daily agenda:: The calendar page with current tasks
208 * Global TODO list:: All unfinished action items
209 * Matching tags and properties:: Structured information with fine-tuned search
210 * Timeline:: Time-sorted view for single file
211 * Stuck projects:: Find projects you need to review
213 Presentation and sorting
215 * Categories:: Not all tasks are equal
216 * Time-of-day specifications:: How the agenda knows the time
217 * Sorting of agenda items:: The order of things
221 * Storing searches:: Type once, use often
222 * Block agenda:: All the stuff you need in a single buffer
223 * Setting Options:: Changing the rules
224 * Exporting Agenda Views:: Writing agendas to files.
225 * Extracting Agenda Information for other programs::
229 * Math symbols:: TeX macros for symbols and Greek letters
230 * Subscripts and Superscripts:: Simple syntax for raising/lowering text
231 * LaTeX fragments:: Complex formulas made easy
232 * Processing LaTeX fragments:: Previewing LaTeX processing
233 * CDLaTeX mode:: Speed up entering of formulas
237 * ASCII export:: Exporting to plain ASCII
238 * HTML export:: Exporting to HTML
239 * LaTeX export:: Exporting to LaTeX
240 * XOXO export:: Exporting to XOXO
241 * iCalendar export:: Exporting in iCalendar format
242 * Text interpretation:: How the exporter looks at the file
246 * HTML Export commands:: How to invoke LaTeX export
247 * Quoting HTML tags:: Using direct HTML in Org-mode
248 * Links:: Transformation of links for HTML
249 * Images:: How to include images
250 * CSS support:: Changing the appearence of the output
254 * LaTeX export commands:: How to invoke LaTeX export
255 * Quoting LaTeX code:: Incorporating literal LaTeX code
257 Text interpretation by the exporter
259 * Comment lines:: Some lines will not be exported
260 * Initial text:: Text before the first headline
261 * Footnotes:: Numbers like [1]
262 * Enhancing text:: Subscripts, symbols and more
263 * Export options:: How to influence the export settings
267 * Configuration:: Defining projects
268 * Sample configuration:: Example projects
269 * Triggering publication:: Publication commands
273 * Project alist:: The central configuration variable
274 * Sources and destinations:: From here to there
275 * Selecting files:: What files are part of the project?
276 * Publishing action:: Setting the function doing the publishing
277 * Publishing options:: Tweaking HTML export
278 * Publishing links:: Which links keep working after publishing?
279 * Project page index:: Publishing a list of project files
283 * Simple example:: One-component publishing
284 * Complex example:: A multi-component publishing example
288 * Completion:: M-TAB knows what you need
289 * Customization:: Adapting Org-mode to your taste
290 * In-buffer settings:: Overview of the #+KEYWORDS
291 * The very busy C-c C-c key:: When in doubt, press C-c C-c
292 * Clean view:: Getting rid of leading stars in the outline
293 * TTY keys:: Using Org-mode on a tty
294 * Interaction:: Other Emacs packages
295 * Bugs:: Things which do not work perfectly
297 Interaction with other packages
299 * Cooperation:: Packages Org-mode cooperates with
300 * Conflicts:: Packages that lead to conflicts
302 Extensions, Hooks and Hacking
304 * Extensions:: Existing 3rd-part extensions
305 * Adding hyperlink types:: New custom link types
306 * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
307 * Dynamic blocks:: Automatically filled blocks
308 * Special agenda views:: Customized views
309 * Using the property API:: Writing programs that use entry properties
311 Tables in arbitrary syntax
313 * Radio tables:: Sending and receiving
314 * A LaTeX example:: Step by step, almost a tutorial
315 * Translator functions:: Copy and modify
318 File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
325 * Summary:: Brief summary of what Org-mode does
326 * Installation:: How to install a downloaded version of Org-mode
327 * Activation:: How to activate Org-mode for certain buffers.
328 * Feedback:: Bug reports, ideas, patches etc.
331 File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
336 Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
337 project planning with a fast and effective plain-text system.
339 Org-mode develops organizational tasks around NOTES files that
340 contain lists or information about projects as plain text. Org-mode is
341 implemented on top of outline-mode, which makes it possible to keep the
342 content of large files well structured. Visibility cycling and
343 structure editing help to work with the tree. Tables are easily created
344 with a built-in table editor. Org-mode supports TODO items, deadlines,
345 time stamps, and scheduling. It dynamically compiles entries into an
346 agenda that utilizes and smoothly integrates much of the Emacs calendar
347 and diary. Plain text URL-like links connect to websites, emails,
348 Usenet messages, BBDB entries, and any files related to the projects.
349 For printing and sharing of notes, an Org-mode file can be exported as a
350 structured ASCII file, as HTML, or (todo and agenda items only) as an
351 iCalendar file. It can also serve as a publishing tool for a set of
354 An important design aspect that distinguishes Org-mode from for
355 example Planner/Muse is that it encourages to store every piece of
356 information only once. In Planner, you have project pages, day pages
357 and possibly other files, duplicating some information such as tasks.
358 In Org-mode, you only have notes files. In your notes you mark entries
359 as tasks, label them with tags and timestamps. All necessary lists
360 like a schedule for the day, the agenda for a meeting, tasks lists
361 selected by tags etc are created dynamically when you need them.
363 Org-mode keeps simple things simple. When first fired up, it should
364 feel like a straightforward, easy to use outliner. Complexity is not
365 imposed, but a large amount of functionality is available when you need
366 it. Org-mode is a toolbox and can be used in different ways, for
369 * outline extension with visibility cycling and structure editing
370 * ASCII system and table editor for taking structured notes
371 * ASCII table editor with spreadsheet-like capabilities
373 * full agenda and planner with deadlines and work scheduling
374 * environment to implement David Allen's GTD system
375 * a basic database application
376 * simple hypertext system, with HTML export
377 * publishing tool to create a set of interlinked webpages
379 Org-mode's automatic, context sensitive table editor with spreadsheet
380 capabilities can be integrated into any major mode by activating the
381 minor Orgtbl-mode. Using a translation step, it can be used to maintain
382 tables in arbitrary file types, for example in LaTeX. The structure
383 editing and list creation capabilities can be used outside Org-mode with
384 the minor Orgstruct-mode.
386 There is a website for Org-mode which provides links to the newest
387 version of Org-mode, as well as additional information, frequently asked
388 questions (FAQ), links to tutorials etc. This page is located at
389 `http://www.astro.uva.nl/~dominik/Tools/org/'.
392 File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
397 Important: If Org-mode is part of the Emacs distribution or an XEmacs
398 package, please skip this section and go directly to *Note Activation::.
400 If you have downloaded Org-mode from the Web, you must take the
401 following steps to install it: Go into the Org-mode distribution
402 directory and edit the top section of the file `Makefile'. You must
403 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
404 and the paths to the directories where local Lisp and Info files are
405 kept. If you don't have access to the system-wide directories, create
406 your own two directories for these files, enter them into the Makefile,
407 and make sure Emacs finds the Lisp files by adding the following line
410 (setq load-path (cons "~/path/to/lispdir" load-path))
412 XEmacs users now need to install the file `noutline.el' from the
413 `xemacs' subdirectory of the Org-mode distribution. Use the command:
415 make install-noutline
417 Now byte-compile and install the Lisp files with the shell commands:
422 If you want to install the info documentation, use this command:
426 Then add to `.emacs':
428 ;; This line only if org-mode is not part of the X/Emacs distribution.
429 (require 'org-install)
432 File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
437 Add the following lines to your `.emacs' file. The last two lines
438 define _global_ keys for the commands `org-store-link' and `org-agenda'
439 - please choose suitable keys yourself.
441 ;; The following lines are always needed. Choose your own keys.
442 (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
443 (define-key global-map "\C-cl" 'org-store-link)
444 (define-key global-map "\C-ca" 'org-agenda)
446 Furthermore, you must activate `font-lock-mode' in org-mode buffers,
447 because significant functionality depends on font-locking being active.
448 You can do this with either one of the following two lines (XEmacs
449 user must use the second option):
450 (global-font-lock-mode 1) ; for all buffers
451 (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
453 With this setup, all files with extension `.org' will be put into
454 Org-mode. As an alternative, make the first line of a file look like
457 MY PROJECTS -*- mode: org; -*-
459 which will select Org-mode for this buffer no matter what the file's
460 name is. See also the variable `org-insert-mode-line-in-empty-file'.
463 File: org, Node: Feedback, Prev: Activation, Up: Introduction
468 If you find problems with Org-mode, or if you have questions, remarks,
469 or ideas about it, please contact the maintainer Carsten Dominik at
470 <dominik at science dot uva dot nl>.
472 For bug reports, please provide as much information as possible,
473 including the version information of Emacs (`C-h v emacs-version
474 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
475 Org-mode related setup in `.emacs'. If an error occurs, a backtrace
476 can be very useful (see below on how to create one). Often a small
477 example file helps, along with clear information about:
479 1. What exactly did you do?
481 2. What did you expect to happen?
483 3. What happened instead?
484 Thank you for helping to improve this mode.
486 How to create a useful backtrace
487 ................................
489 If working with Org-mode produces an error with a message you don't
490 understand, you may have hit a bug. The best way to report this is by
491 providing, in addition to what was mentioned above, a _Backtrace_.
492 This is information from the built-in debugger about where and how the
493 error occurred. Here is how to produce a useful backtrace:
495 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
496 original Lisp code in `org.el' instead of the compiled version in
497 `org.elc'. The backtrace contains much more information if it is
498 produced with uncompiled code. To do this, either rename `org.elc'
499 to something else before starting Emacs, or ask Emacs explicitly
500 to load `org.el' by using the command line
501 emacs -l /path/to/org.el
503 2. Go to the `Options' menu and select `Enter Debugger on Error'
504 (XEmacs has this option in the `Troubleshooting' sub-menu).
506 3. Do whatever you have to do to hit the error. Don't forget to
507 document the steps you take.
509 4. When you hit the error, a `*Backtrace*' buffer will appear on the
510 screen. Save this buffer to a file (for example using `C-x C-w')
511 and attach it to your bug report.
514 File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
519 Org-mode is based on outline mode and provides flexible commands to
520 edit the structure of the document.
524 * Outlines:: Org-mode is based on outline-mode
525 * Headlines:: How to typeset org-tree headlines
526 * Visibility cycling:: Show and hide, much simplified
527 * Motion:: Jumping to other headlines
528 * Structure editing:: Changing sequence and level of headlines
529 * Archiving:: Move done task trees to a different place
530 * Sparse trees:: Matches embedded in context
531 * Plain lists:: Additional structure within an entry
532 * Drawers:: Tucking stuff away
533 * orgstruct-mode:: Structure editing outside Org-mode
536 File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
541 Org-mode is implemented on top of outline-mode. Outlines allow a
542 document to be organized in a hierarchical structure, which (at least
543 for me) is the best representation of notes and thoughts. An overview
544 of this structure is achieved by folding (hiding) large parts of the
545 document to show only the general document structure and the parts
546 currently being worked on. Org-mode greatly simplifies the use of
547 outlines by compressing the entire show/hide functionality into a single
548 command `org-cycle', which is bound to the <TAB> key.
551 File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
556 Headlines define the structure of an outline tree. The headlines in
557 Org-mode start with one or more stars, on the left margin(1). For
567 * Another top level headline
569 Some people find the many stars too noisy and would prefer an outline
570 that has whitespace followed by a single star as headline starters.
571 *Note Clean view:: describes a setup to realize this.
573 An empty line after the end of a subtree is considered part of it and
574 will be hidden when the subtree is folded. However, if you leave at
575 least two empty lines, one empty line will remain visible after folding
576 the subtree, in order to structure the collapsed view. See the
577 variable `org-cycle-separator-lines' to modify this behavior.
579 ---------- Footnotes ----------
581 (1) See the variable `org-special-ctrl-a/e' to configure special
582 behavior of `C-a' and `C-e' in headlines.
585 File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
587 2.3 Visibility cycling
588 ======================
590 Outlines make it possible to hide parts of the text in the buffer.
591 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
592 the visibility in the buffer.
595 _Subtree cycling_: Rotate current subtree among the states
597 ,-> FOLDED -> CHILDREN -> SUBTREE --.
598 '-----------------------------------'
600 The cursor must be on a headline for this to work(1). When the
601 cursor is at the beginning of the buffer and the first line is not
602 a headline, then <TAB> actually runs global cycling (see
603 below)(2). Also when called with a prefix argument (`C-u <TAB>'),
604 global cycling is invoked.
608 _Global cycling_: Rotate the entire buffer among the states
610 ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
611 '--------------------------------------'
613 When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
614 view up to headlines of level N will be shown. Note that inside
615 tables, `S-<TAB>' jumps to the previous field.
621 Reveal context around point, showing the current entry, the
622 following heading and the hierarchy above. Useful for working
623 near a location exposed by a sparse tree command (*note Sparse
624 trees::) or an agenda command (*note Agenda commands::). With
625 prefix arg show, on each level, all sibling headings.
628 Show the current subtree in an indirect buffer(3). With numerical
629 prefix ARG, go up to this level and then take that tree. If ARG is
630 negative, go up that many levels. With `C-u' prefix, do not remove
631 the previously used indirect buffer.
633 When Emacs first visits an Org-mode file, the global state is set to
634 OVERVIEW, i.e. only the top level headlines are visible. This can be
635 configured through the variable `org-startup-folded', or on a per-file
636 basis by adding one of the following lines anywhere in the buffer:
642 ---------- Footnotes ----------
644 (1) see, however, the option `org-cycle-emulate-tab'.
646 (2) see the option `org-cycle-global-at-bob'.
648 (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
649 Buffers.) will contain the entire buffer, but will be narrowed to the
650 current tree. Editing the indirect buffer will also change the
651 original buffer, but without affecting visibility in that buffer.
654 File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
659 The following commands jump to other headlines in the buffer.
668 Next heading same level.
671 Previous heading same level.
674 Backward to higher level heading.
677 Jump to a different place without changing the current outline
678 visibility. Shows the document structure in a temporary buffer,
679 where you can use the following keys to find your destination:
680 <TAB> Cycle visibility.
681 <down> / <up> Next/previous visible headline.
682 n / p Next/previous visible headline.
683 f / b Next/previous headline same level.
686 <RET> Select this location.
689 File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
691 2.5 Structure editing
692 =====================
695 Insert new heading with same level as current. If the cursor is
696 in a plain list item, a new item is created (*note Plain lists::).
697 To force creation of a new headline, use a prefix arg, or first
698 press <RET> to get to the beginning of the next line. When this
699 command is used in the middle of a line, the line is split and the
700 rest of the line becomes the new headline. If the command is used
701 at the beginning of a headline, the new headline is created before
702 the current line. If at the beginning of any other line, the
703 content of that line is made the new heading. If the command is
704 used at the end of a folded subtree (i.e. behind the ellipses at
705 the end of a headline), then a headline like the current one will
706 be inserted after the end of the subtree.
709 Insert new TODO entry with same level as current heading.
712 Promote current heading by one level.
715 Demote current heading by one level.
718 Promote the current subtree by one level.
721 Demote the current subtree by one level.
724 Move subtree up (swap with previous subtree of same level).
727 Move subtree down (swap with next subtree of same level).
731 Kill subtree, i.e. remove it from buffer but save in kill ring.
734 Copy subtree to kill ring.
737 Yank subtree from kill ring. This does modify the level of the
738 subtree to make sure the tree fits in nicely at the yank position.
739 The yank level can also be specified with a prefix arg, or by
740 yanking after a headline marker like `****'.
743 Sort same-level entries. When there is an active region, all
744 entries in the region will be sorted. Otherwise the children of
745 the current headline are sorted. The command prompts for the
746 sorting method, which can be alphabetically, numerically, by time
747 (using the first time stamp in each entry), and each of these in
748 reverse order. With a `C-u' prefix, sorting will be
749 case-sensitive. With two `C-u C-u' prefixes, duplicate entries
750 will also be removed.
752 When there is an active region (transient-mark-mode), promotion and
753 demotion work on all headlines in the region. To select a region of
754 headlines, it is best to place both point and mark at the beginning of a
755 line, mark at the beginning of the first headline, and point at the line
756 just after the last headline to change. Note that when the cursor is
757 inside a table (*note Tables::), the Meta-Cursor keys have different
761 File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
766 When a project represented by a (sub)tree is finished, you may want to
767 move the tree out of the way and to stop it from contributing to the
768 agenda. Org-mode knows two ways of archiving. You can mark a tree with
769 the ARCHIVE tag, or you can move an entire (sub)tree to a different
774 * ARCHIVE tag:: Marking a tree as inactive
775 * Moving subtrees:: Moving a tree to an archive file
778 File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
780 2.6.1 The ARCHIVE tag
781 ---------------------
783 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
784 its location in the outline tree, but behaves in the following way:
785 - It does not open when you attempt to do so with a visibility
786 cycling command (*note Visibility cycling::). You can force
787 cycling archived subtrees with `C-<TAB>', or by setting the option
788 `org-cycle-open-archived-trees'. Also normal outline commands like
789 `show-all' will open archived subtrees.
791 - During sparse tree construction (*note Sparse trees::), matches in
792 archived subtrees are not exposed, unless you configure the option
793 `org-sparse-tree-open-archived-trees'.
795 - During agenda view construction (*note Agenda views::), the
796 content of archived trees is ignored unless you configure the
797 option `org-agenda-skip-archived-trees'.
799 - Archived trees are not exported (*note Exporting::), only the
800 headline is. Configure the details using the variable
801 `org-export-with-archived-trees'.
803 The following commands help managing the ARCHIVE tag:
806 Toggle the ARCHIVE tag for the current headline. When the tag is
807 set, the headline changes to a shadowish face, and the subtree
811 Check if any direct children of the current headline should be
812 archived. To do this, each subtree is checked for open TODO
813 entries. If none are found, the command offers to set the ARCHIVE
814 tag for the child. If the cursor is _not_ on a headline when this
815 command is invoked, the level 1 trees will be checked.
818 Cycle a tree even if it is tagged with ARCHIVE.
821 File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
823 2.6.2 Moving subtrees
824 ---------------------
826 Once an entire project is finished, you may want to move it to a
827 different location, either in the current file, or even in a different
828 file, the archive file.
831 Archive the subtree starting at the cursor position to the location
832 given by `org-archive-location'.
835 Check if any direct children of the current headline could be
836 moved to the archive. To do this, each subtree is checked for
837 open TODO entries. If none are found, the command offers to move
838 it to the archive location. If the cursor is _not_ on a headline
839 when this command is invoked, the level 1 trees will be checked.
841 The default archive location is a file in the same directory as the
842 current file, with the name derived by appending `_archive' to the
843 current file name. For information and examples on how to change this,
844 see the documentation string of the variable `org-archive-location'.
845 There is also an in-buffer option for setting this variable, for example
849 You may have several such lines in the buffer, they will then be valid
850 for the entries following the line (the first will also apply to any
854 File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
859 An important feature of Org-mode is the ability to construct _sparse
860 trees_ for selected information in an outline tree. A sparse tree
861 means that the entire document is folded as much as possible, but the
862 selected information is made visible along with the headline structure
863 above it(1). Just try it out and you will see immediately how it works.
865 Org-mode contains several commands creating such trees. The most
866 basic one is `org-occur':
869 Occur. Prompts for a regexp and shows a sparse tree with all
870 matches. If the match is in a headline, the headline is made
871 visible. If the match is in the body of an entry, headline and
872 body are made visible. In order to provide minimal context, also
873 the full hierarchy of headlines above the match is shown, as well
874 as the headline following the match. Each match is also
875 highlighted; the highlights disappear when the buffer is changed
876 an editing command, or by pressing `C-c C-c'. When called with a
877 `C-u' prefix argument, previous highlights are kept, so several
878 calls to this command can be stacked.
879 For frequently used sparse trees of specific search strings, you can
880 use the variable `org-agenda-custom-commands' to define fast keyboard
881 access to specific sparse trees. These commands will then be
882 accessible through the agenda dispatcher (*note Agenda dispatcher::).
885 (setq org-agenda-custom-commands
886 '(("f" occur-tree "FIXME")))
888 will define the key `C-c a f' as a shortcut for creating a sparse tree
889 matching the string `FIXME'.
891 Other commands use sparse trees as well. For example `C-c C-v'
892 creates a sparse TODO tree (*note TODO basics::).
894 To print a sparse tree, you can use the Emacs command
895 `ps-print-buffer-with-faces' which does not print invisible parts of
896 the document (2). Or you can use the command `C-c C-e v' to export
897 only the visible part of the document and print the resulting file.
899 ---------- Footnotes ----------
901 (1) See also the variables `org-show-hierarchy-above',
902 `org-show-following-heading', and `org-show-siblings' for detailed
903 control on how much context is shown around each match.
905 (2) This does not work under XEmacs, because XEmacs uses selective
906 display for outlining, not text properties.
909 File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document structure
914 Within an entry of the outline tree, hand-formatted lists can provide
915 additional structure. They also provide a way to create lists of
916 checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
917 and the HTML exporter (*note Exporting::) does parse and format them.
919 Org-mode knows ordered and unordered lists. Unordered list items
920 start with `-', `+', or `*'(1) as bullets. Ordered list items start
921 with `1.' or `1)'. Items belonging to the same list must have the same
922 indentation on the first line. In particular, if an ordered list
923 reaches number `10.', then the 2-digit numbers must be written
924 left-aligned with the other numbers in the list. Indentation also
925 determines the end of a list item. It ends before the next line that
926 is indented like the bullet/number, or less. Empty lines are part of
927 the previous item, so you can have several paragraphs in one item. If
928 you would like an empty line to terminate all currently open plain
929 lists, configure the variable `org-empty-line-terminates-plain-lists'.
933 My favorite scenes are (in this order)
934 1. The attack of the Rohirrim
935 2. Eowyns fight with the witch king
936 + this was already my favorite scene in the book
937 + I really like Miranda Otto.
938 3. Peter Jackson being shot by Legolas
940 He makes a really funny face when it happens.
941 But in the end, not individual scenes matter but the film as a whole.
943 Org-mode supports these lists by tuning filling and wrapping
944 commands to deal with them correctly(2).
946 The following commands act on items when the cursor is in the first
947 line of an item (the line with the bullet or number).
950 Items can be folded just like headline levels if you set the
951 variable `org-cycle-include-plain-lists'. The level of an item is
952 then given by the indentation of the bullet/number. Items are
953 always subordinate to real headlines, however; the hierarchies
954 remain completely separated.
956 If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
957 the indentation of the curent line in a heuristic way.
960 Insert new item at current level. With prefix arg, force a new
961 heading (*note Structure editing::). If this command is used in
962 the middle of a line, the line is _split_ and the rest of the line
963 becomes the new item. If this command is executed in the
964 _whitespace before a bullet or number_, the new item is created
965 _before_ the current item. If the command is executed in the
966 white space before the text that is part of an item but does not
967 contain the bullet, a bullet is added to the current line.
970 Insert a new item with a checkbox (*note Checkboxes::).
974 Jump to the previous/next item in the current list.
978 Move the item including subitems up/down (swap with previous/next
979 item of same indentation). If the list is ordered, renumbering is
984 Decrease/increase the indentation of the item, including subitems.
985 Initially, the item tree is selected based on current indentation.
986 When these commands are executed several times in direct
987 succession, the initially selected region is used, even if the new
988 indentation would imply a different hierarchy. To use the new
989 hierarchy, break the command chain with a cursor motion or so.
992 If there is a checkbox (*note Checkboxes::) in the item line,
993 toggle the state of the checkbox. If not, make this command makes
994 sure that all the items on this list level use the same bullet.
995 Furthermore, if this is an ordered list, make sure the numbering
999 Cycle the entire list level through the different itemize/enumerate
1000 bullets (`-', `+', `*', `1.', `1)'). With prefix arg, select the
1001 nth bullet from this list.
1003 ---------- Footnotes ----------
1005 (1) When using `*' as a bullet, lines must be indented or they will
1006 be seen as top-level headlines. Also, when you are hiding leading
1007 stars to get a clean outline view, plain list items starting with a
1008 star are visually indistinguishable from true headlines. In short:
1009 even though `*' is supported, it may be better not to use it for plain
1012 (2) Org-mode only changes the filling settings for Emacs. For
1013 XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
1014 put into `.emacs': `(require 'filladapt)'
1017 File: org, Node: Drawers, Next: orgstruct-mode, Prev: Plain lists, Up: Document structure
1022 Sometimes you want to keep information associated with an entry, but you
1023 normally don't want to see it. For this, Org-mode has _drawers_.
1024 Drawers need to be configured with the variable `org-drawers', and look
1027 ** This is a headline
1028 Still outside the drawer
1030 This is inside the drawer.
1034 Visibility cycling (*note Visibility cycling::) on the headline will
1035 hide and show the entry, but keep the drawer collapsed to a single line.
1036 In order to look inside the drawer, you need to move the cursor to the
1037 drawer line and press <TAB> there. Org-mode uses a drawer for storing
1038 properties (*note Properties and columns::).
1041 File: org, Node: orgstruct-mode, Prev: Drawers, Up: Document structure
1043 2.10 The Orgstruct minor mode
1044 =============================
1046 If you like the intuitive way the Org-mode structure editing and list
1047 formatting works, you might want to use these commands in other modes
1048 like text-mode or mail-mode as well. The minor mode Orgstruct-mode
1049 makes this possible. You can always toggle the mode with `M-x
1050 orgstruct-mode'. To turn it on by default, for example in mail mode,
1053 (add-hook 'mail-mode-hook 'turn-on-orgstruct)
1055 When this mode is active and the cursor is on a line that looks to
1056 Org-mode like a headline of the first line of a list item, most
1057 structure editing commands will work, even if the same keys normally
1058 have different functionality in the major mode you are using. If the
1059 cursor is not in one of those special lines, Orgstruct-mode lurks
1060 silently in the shadow.
1063 File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
1068 Org-mode has a very fast and intuitive table editor built-in.
1069 Spreadsheet-like calculations are supported in connection with the
1070 Emacs `calc' package.
1074 * Built-in table editor:: Simple tables
1075 * Narrow columns:: Stop wasting space in tables
1076 * Column groups:: Grouping to trigger vertical lines
1077 * orgtbl-mode:: The table editor as minor mode
1078 * The spreadsheet:: The table editor has spreadsheet capabilities.
1081 File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
1083 3.1 The built-in table editor
1084 =============================
1086 Org-mode makes it easy to format tables in plain ASCII. Any line with
1087 `|' as the first non-whitespace character is considered part of a
1088 table. `|' is also the column separator. A table might look like this:
1090 | Name | Phone | Age |
1091 |-------+-------+-----|
1092 | Peter | 1234 | 17 |
1093 | Anna | 4321 | 25 |
1095 A table is re-aligned automatically each time you press <TAB> or
1096 <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
1097 field (<RET> to the next row) and creates new table rows at the end of
1098 the table or before horizontal lines. The indentation of the table is
1099 set by the first line. Any line starting with `|-' is considered as a
1100 horizontal separator line and will be expanded on the next re-align to
1101 span the whole table width. So, to create the above table, you would
1107 and then press <TAB> to align the table and start filling in fields.
1109 When typing text into a field, Org-mode treats <DEL>, <Backspace>,
1110 and all character keys in a special way, so that inserting and deleting
1111 avoids shifting other fields. Also, when typing _immediately after the
1112 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
1113 the field is automatically made blank. If this behavior is too
1114 unpredictable for you, configure the variables
1115 `org-enable-table-editor' and `org-table-auto-blank-field'.
1117 Creation and conversion
1118 .......................
1121 Convert the active region to table. If every line contains at
1122 least one TAB character, the function assumes that the material is
1123 tab separated. If not, lines are split at whitespace into fields.
1124 You can use a prefix argument to indicate the minimum number of
1125 consecutive spaces required to identify a field separator
1126 (default: just one).
1127 If there is no active region, this command creates an empty
1128 Org-mode table. But it's easier just to start typing, like
1129 `|Name|Phone|Age <RET> |- <TAB>'.
1131 Re-aligning and field motion
1132 ............................
1135 Re-align the table without moving the cursor.
1138 Re-align the table, move to the next field. Creates a new row if
1142 Re-align, move to previous field.
1145 Re-align the table and move down to next row. Creates a new row if
1146 necessary. At the beginning or end of a line, <RET> still does
1147 NEWLINE, so it can be used to split a table.
1149 Column and row editing
1150 ......................
1154 Move the current column left/right.
1157 Kill the current column.
1160 Insert a new column to the left of the cursor position.
1164 Move the current row up/down.
1167 Kill the current row or horizontal line.
1170 Insert a new row above (with arg: below) the current row.
1173 Insert a horizontal line below current row. With prefix arg, the
1174 line is created above the current line.
1177 Sort the table lines in the region. The position of point
1178 indicates the column to be used for sorting, and the range of
1179 lines is the range between the nearest horizontal separator lines,
1180 or the entire table. If point is before the first column, you
1181 will be prompted for the sorting column. If there is an active
1182 region, the mark specifies the first line and the sorting column,
1183 while point should be in the last line to be included into the
1184 sorting. The command prompts for the sorting type
1185 (alphabetically, numerically, or by time). When called with a
1186 prefix argument, alphabetic sorting will be case-sensitive.
1192 Copy a rectangular region from a table to a special clipboard.
1193 Point and mark determine edge fields of the rectangle. The
1194 process ignores horizontal separator lines.
1197 Copy a rectangular region from a table to a special clipboard, and
1198 blank all fields in the rectangle. So this is the "cut" operation.
1201 Paste a rectangular region into a table. The upper right corner
1202 ends up in the current field. All involved fields will be
1203 overwritten. If the rectangle does not fit into the present table,
1204 the table is enlarged as needed. The process ignores horizontal
1208 Wrap several fields in a column like a paragraph. If there is an
1209 active region, and both point and mark are in the same column, the
1210 text in the column is wrapped to minimum width for the given
1211 number of lines. A prefix ARG may be used to change the number of
1212 desired lines. If there is no region, the current field is split
1213 at the cursor position and the text fragment to the right of the
1214 cursor is prepended to the field one line down. If there is no
1215 region, but you specify a prefix ARG, the current field is made
1216 blank, and the content is appended to the field above.
1222 Sum the numbers in the current column, or in the rectangle defined
1223 by the active region. The result is shown in the echo area and can
1224 be inserted with `C-y'.
1227 When current field is empty, copy from first non-empty field above.
1228 When not empty, copy current field down to next row and move cursor
1229 along with it. Depending on the variable
1230 `org-table-copy-increment', integer field values will be
1231 incremented during copy. This key is also used by CUA-mode (*note
1238 Edit the current field in a separate window. This is useful for
1239 fields that are not fully visible (*note Narrow columns::). When
1240 called with a `C-u' prefix, just make the full field visible, so
1241 that it can be edited in place.
1244 This is an alias for `C-u C-c `' to make the current field fully
1247 `M-x org-table-import'
1248 Import a file as a table. The table should be TAB- or whitespace
1249 separated. Useful, for example, to import an Excel table or data
1250 from a database, because these programs generally can write
1251 TAB-separated text files. This command works by inserting the
1252 file into the buffer and then converting the region to a table.
1253 Any prefix argument is passed on to the converter, which uses it
1254 to determine the separator.
1257 Tables can also be imported by pasting tabular text into the
1258 org-mode buffer, selecting the pasted text with `C-x C-x' and then
1259 using the `C-c |' command (see above under Creation and conversion.
1261 `M-x org-table-export'
1262 Export the table as a TAB-separated file. Useful for data
1263 exchange with, for example, Excel or database programs.
1265 If you don't like the automatic table editor because it gets in your
1266 way on lines which you would like to start with `|', you can turn it
1269 (setq org-enable-table-editor nil)
1271 Then the only table command that still works is `C-c C-c' to do a
1275 File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
1280 The width of columns is automatically determined by the table editor.
1281 Sometimes a single field or a few fields need to carry more text,
1282 leading to inconveniently wide columns. To limit(1) the width of a
1283 column, one field anywhere in the column may contain just the string
1284 `<N>' where `N' is an integer specifying the width of the column in
1285 characters. The next re-align will then set the width of this column
1286 to no more than this value.
1288 |---+------------------------------| |---+--------|
1290 | 1 | one | | 1 | one |
1291 | 2 | two | ----\ | 2 | two |
1292 | 3 | This is a long chunk of text | ----/ | 3 | This=> |
1293 | 4 | four | | 4 | four |
1294 |---+------------------------------| |---+--------|
1296 Fields that are wider become clipped and end in the string `=>'. Note
1297 that the full text is still in the buffer, it is only invisible. To
1298 see the full text, hold the mouse over the field - a tool-tip window
1299 will show the full content. To edit such a field, use the command `C-c
1300 `' (that is `C-c' followed by the backquote). This will open a new
1301 window with the full field. Edit it and finish with `C-c C-c'.
1303 When visiting a file containing a table with narrowed columns, the
1304 necessary character hiding has not yet happened, and the table needs to
1305 be aligned before it looks nice. Setting the option
1306 `org-startup-align-all-tables' will realign all tables in a file upon
1307 visiting, but also slow down startup. You can also set this option on
1308 a per-file basis with:
1313 ---------- Footnotes ----------
1315 (1) This feature does not work on XEmacs.
1318 File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
1323 When Org-mode exports tables, it does so by default without vertical
1324 lines because that is visually more satisfying in general. Occasionally
1325 however, vertical lines can be useful to structure a table into groups
1326 of columns, much like horizontal lines can do for groups of rows. In
1327 order to specify column groups, you can use a special row where the
1328 first field contains only `/'. The further fields can either contain
1329 `<' to indicate that this column should start a group, `>' to indicate
1330 the end of a column, or `<>' to make a column a group of its own.
1331 Boundaries between colum groups will upon export be marked with
1332 vertical lines. Here is an example:
1334 | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1335 |---+----+-----+-----+-----+---------+------------|
1336 | / | <> | < | | > | < | > |
1337 | # | 1 | 1 | 1 | 1 | 1 | 1 |
1338 | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
1339 | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
1340 |---+----+-----+-----+-----+---------+------------|
1341 #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
1343 It is also sufficient to just insert the colum group starters after
1344 every vertical line you'd like to have:
1346 | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1347 |----+-----+-----+-----+---------+------------|
1351 File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
1353 3.4 The Orgtbl minor mode
1354 =========================
1356 If you like the intuitive way the Org-mode table editor works, you
1357 might also want to use it in other modes like text-mode or mail-mode.
1358 The minor mode Orgtbl-mode makes this possible. You can always toggle
1359 the mode with `M-x orgtbl-mode'. To turn it on by default, for example
1362 (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1364 Furthermore, with some special setup, it is possible to maintain
1365 tables in arbitrary syntax with Orgtbl-mode. For example, it is
1366 possible to construct LaTeX tables with the underlying ease and power of
1367 Orgtbl-mode, including spreadsheet capabilities. For details, see
1368 *Note Tables in arbitrary syntax::.
1371 File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
1376 The table editor makes use of the Emacs `calc' package to implement
1377 spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
1378 derive fields from other fields. While fully featured, Org-mode's
1379 implementation is not identical to other spreadsheets. For example,
1380 Org-mode knows the concept of a _column formula_ that will be applied
1381 to all non-header fields in a column without having to copy the formula
1382 to each relevant field.
1386 * References:: How to refer to another field or range
1387 * Formula syntax for Calc:: Using Calc to compute stuff
1388 * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
1389 * Field formulas:: Formulas valid for a single field
1390 * Column formulas:: Formulas valid for an entire column
1391 * Editing and debugging formulas:: Fixing formulas
1392 * Updating the table:: Recomputing all dependent fields
1393 * Advanced features:: Field names, parameters and automatic recalc
1396 File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
1401 To compute fields in the table from other fields, formulas must
1402 reference other fields or ranges. In Org-mode, fields can be referenced
1403 by name, by absolute coordinates, and by relative coordinates. To find
1404 out what the coordinates of a field are, press `C-c ?' in that field,
1405 or press `C-c }' to toggle the display of a grid.
1410 Formulas can reference the value of another field in two ways. Like in
1411 any other spreadsheet, you may reference fields with a letter/number
1412 combination like `B3', meaning the 2nd field in the 3rd row.
1414 Org-mode also uses another, more general operator that looks like this:
1417 Column references can be absolute like `1', `2',...`N', or relative to
1418 the current column like `+1' or `-2'.
1420 The row specification only counts data lines and ignores horizontal
1421 separator lines (hlines). You can use absolute row numbers `1'...`N',
1422 and row numbers relative to the current row like `+3' or `-1'. Or
1423 specify the row relative to one of the hlines: `I' refers to the first
1424 hline, `II' to the second etc. `-I' refers to the first such line
1425 above the current line, `+I' to the first such line below the current
1426 line. You can also write `III+2' which is the second data line after
1427 the third hline in the table. Relative row numbers like `-3' will not
1428 cross hlines if the current line is too close to the hline. Instead,
1429 the value directly at the hline is used.
1431 `0' refers to the current row and column. Also, if you omit either
1432 the column or the row part of the reference, the current row/column is
1435 Org-mode's references with _unsigned_ numbers are fixed references
1436 in the sense that if you use the same reference in the formula for two
1437 different fields, the same field will be referenced each time.
1438 Org-mode's references with _signed_ numbers are floating references
1439 because the same reference operator can reference different fields
1440 depending on the field being calculated by the formula.
1442 Here are a few examples:
1444 @2$3 2nd row, 3rd column
1446 $5 column 5 in the current row
1448 @2 current column, row 2
1449 @-1$-3 the field one row up, three columns to the left
1450 @-I$2 field just under hline above current row, column 2
1455 You may reference a rectangular range of fields by specifying two field
1456 references connected by two dots `..'. If both fields are in the
1457 current row, you may simply use `$2..$7', but if at least one field is
1458 in a different row, you need to use the general `@row$column' format at
1459 least for the first field (i.e the reference must start with `@' in
1460 order to be interpreted correctly). Examples:
1462 $1..$3 First three fields in the current row.
1463 $P..$Q Range, using column names (see under Advanced)
1464 @2$1..@4$3 6 fields between these two fields.
1465 A2..C4 Same as above.
1466 @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
1468 Range references return a vector of values that can be fed into Calc
1469 vector functions. Empty fields in ranges are normally suppressed, so
1470 that the vector contains only the non-empty fields (but see the `E'
1471 mode switch below). If there are no non-empty fields, `[0]' is
1472 returned to avoid syntax errors in formulas.
1477 `$name' is interpreted as the name of a column, parameter or constant.
1478 Constants are defined globally through the variable
1479 `org-table-formula-constants', and locally (for the file) through a
1482 #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
1484 Also properties (*note Properties and columns::) can be used as
1485 constants in table formulas: For a property `:XYZ:' use the name
1486 `$PROP_XYZ', and the property will be searched in the current outline
1487 entry and in the hierarchy above it. If you have the `constants.el'
1488 package, it will also be used to resolve constants, including natural
1489 constants like `$h' for Planck's constant, and units like `$km' for
1490 kilometers(1). Column names and parameters can be specified in special
1491 table lines. These are described below, see *Note Advanced features::.
1492 All names must start with a letter, and further consist of letters and
1495 ---------- Footnotes ----------
1497 (1) `Constant.el' can supply the values of constants in two
1498 different unit systems, `SI' and `cgs'. Which one is used depends on
1499 the value of the variable `constants-unit-system'. You can use the
1500 `#+STARTUP' options `constSI' and `constcgs' to set this value for the
1504 File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
1506 3.5.2 Formula syntax for Calc
1507 -----------------------------
1509 A formula can be any algebraic expression understood by the Emacs
1510 `Calc' package. Note that `calc' has the non-standard convention that
1511 `/' has lower precedence than `*', so that `a/b*c' is interpreted as
1512 `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
1513 (calc)Calling Calc from Your Programs.), variable substitution takes
1514 place according to the rules described above. The range vectors can be
1515 directly fed into the calc vector functions like `vmean' and `vsum'.
1517 A formula can contain an optional mode string after a semicolon.
1518 This string consists of flags to influence Calc and other modes during
1519 execution. By default, Org-mode uses the standard calc modes (precision
1520 12, angular units degrees, fraction and symbolic modes off. The display
1521 format, however, has been changed to `(float 5)' to keep tables
1522 compact. The default settings can be configured using the variable
1523 `org-calc-default-modes'.
1525 p20 switch the internal precision to 20 digits
1526 n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
1527 D R angle modes: degrees, radians
1528 F S fraction and symbolic modes
1529 N interpret all fields as numbers, use 0 for non-numbers
1530 T force text interpretation
1531 E keep empty fields in ranges
1533 In addition, you may provide a `printf' format specifier to reformat
1534 the final result. A few examples:
1536 $1+$2 Sum of first and second field
1537 $1+$2;%.2f Same, format result to two decimals
1538 exp($2)+exp($1) Math functions can be used
1539 $0;%.1f Reformat current cell to 1 decimal
1540 ($3-32)*5/9 Degrees F -> C conversion
1541 $c/$1/$cm Hz -> cm conversion, using `constants.el'
1542 tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
1543 sin($1);Dp3%.1e Same, but use printf specifier for display
1544 vmean($2..$7) Compute column range mean, using vector function
1545 vmean($2..$7);EN Same, but treat empty fields as 0
1546 taylor($3,x=7,2) taylor series of $3, at x=7, second degree
1548 Calc also contains a complete set of logical operations. For example
1550 if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
1553 File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
1555 3.5.3 Emacs Lisp forms as formulas
1556 ----------------------------------
1558 It is also possible to write a formula in Emacs Lisp; this can be useful
1559 for string manipulation and control structures, if the Calc's
1560 functionality is not enough. If a formula starts with a single quote
1561 followed by an opening parenthesis, then it is evaluated as a lisp form.
1562 The evaluation should return either a string or a number. Just as with
1563 `calc' formulas, you can specify modes and a printf format after a
1564 semicolon. With Emacs Lisp forms, you need to be concious about the way
1565 field references are interpolated into the form. By default, a
1566 reference will be interpolated as a Lisp string (in double quotes)
1567 containing the field. If you provide the `N' mode switch, all
1568 referenced elements will be numbers (non-number fields will be zero) and
1569 interpolated as Lisp numbers, without quotes. If you provide the `L'
1570 flag, all fields will be interpolated literally, without quotes. I.e.,
1571 if you want a reference to be interpreted as a string by the Lisp form,
1572 enclode the reference operator itself in double quotes, like `"$3"'.
1573 Ranges are inserted as space-separated fields, so you can embed them in
1574 list or vector syntax. A few examples, note how the `N' mode is used
1575 when we do computations in lisp.
1577 Swap the first two characters of the content of column 1
1578 '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
1579 Add columns 1 and 2, equivalent to the Calc's `$1+$2'
1581 Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
1582 '(apply '+ '($1..$4));N
1585 File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
1587 3.5.4 Field formulas
1588 --------------------
1590 To assign a formula to a particular field, type it directly into the
1591 field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
1592 or <RET> or `C-c C-c' with the cursor still in the field, the formula
1593 will be stored as the formula for this field, evaluated, and the
1594 current field replaced with the result.
1596 Formulas are stored in a special line starting with `#+TBLFM:'
1597 directly below the table. If you typed the equation in the 4th field of
1598 the 3rd data line in the table, the formula will look like
1599 `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
1600 the appropriate commands, absolute references (but not relative ones)
1601 in stored formulas are modified in order to still reference the same
1602 field. Of cause this is not true if you edit the table structure with
1603 normal editing commands - then you must fix the equations yourself.
1605 Instead of typing an equation into the field, you may also use the
1609 Install a new formula for the current field. The command prompts
1610 for a formula, with default taken from the `#+TBLFM:' line, applies
1611 it to the current field and stores it.
1614 File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
1616 3.5.5 Column formulas
1617 ---------------------
1619 Often in a table, the same formula should be used for all fields in a
1620 particular column. Instead of having to copy the formula to all fields
1621 in that column, org-mode allows to assign a single formula to an entire
1622 column. If the table contains horizontal separator hlines, everything
1623 before the first such line is considered part of the table _header_ and
1624 will not be modified by column formulas.
1626 To assign a formula to a column, type it directly into any field in
1627 the column, preceded by an equal sign, like `=$1+$2'. When you press
1628 <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
1629 formula will be stored as the formula for the current column, evaluated
1630 and the current field replaced with the result. If the field contains
1631 only `=', the previously stored formula for this column is used. For
1632 each column, Org-mode will only remember the most recently used
1633 formula. In the `TBLFM:' line, column formulas will look like
1636 Instead of typing an equation into the field, you may also use the
1640 Install a new formula for the current column and replace current
1641 field with the result of the formula. The command prompts for a
1642 formula, with default taken from the `#+TBLFM' line, applies it to
1643 the current field and stores it. With a numerical prefix (e.g.
1644 `C-5 C-c =') will apply it to that many consecutive fields in the
1648 File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
1650 3.5.6 Editing and Debugging formulas
1651 ------------------------------------
1653 You can edit individual formulas in the minibuffer or directly in the
1654 field. Org-mode can also prepare a special buffer with all active
1655 formulas of a table. When offering a formula for editing, Org-mode
1656 converts references to the standard format (like `B3' or `D&') if
1657 possible. If you prefer to only work with the internal format (like
1658 `@3$2' or `$4'), configure the variable
1659 `org-table-use-standard-references'.
1663 Edit the formula associated with the current column/field in the
1664 minibuffer. See *Note Column formulas:: and *Note Field
1668 Re-insert the active formula (either a field formula, or a column
1669 formula) into the current field, so that you can edit it directly
1670 in the field. The advantage over editing in the minibuffer is
1671 that you can use the command `C-c ?'.
1674 While editing a formula in a table field, highlight the field(s)
1675 referenced by the reference at the cursor position in the formula.
1678 Toggle the display of row and column numbers for a table, using
1679 overlays. These are updated each time the table is aligned, you
1680 can force it with `C-c C-c'.
1683 Toggle the formula debugger on and off. See below.
1686 Edit all formulas for the current table in a special buffer, where
1687 the formulas will be displayed one per line. If the current field
1688 has an active formula, the cursor in the formula editor will mark
1689 it. While inside the special buffer, Org-mode will automatically
1690 highlight any field or range reference at the cursor position.
1691 You may edit, remove and add formulas, and use the following
1695 Exit the formula editor and store the modified formulas.
1696 With `C-u' prefix, also apply the new formulas to the entire
1700 Exit the formula editor without installing changes.
1703 Toggle all references in the formula editor between standard
1704 (like `B3') and internal (like `@3$2').
1707 Pretty-print or indent lisp formula at point. When in a line
1708 containing a lisp formula, format the formula according to
1709 Emacs Lisp rules. Another <TAB> collapses the formula back
1710 again. In the open formula, <TAB> re-indents just like in
1714 Complete Lisp symbols, just like in Emacs-lisp-mode.
1716 `S-<up>/<down>/<left>/<right>'
1717 Shift the reference at point. For example, if the reference
1718 is `B3' and you press `S-<right>', it will become `C3'. This
1719 also works for relative references, and for hline references.
1722 Move the test line for column formulas in the Org-mode buffer
1726 Scroll the window displaying the table.
1729 Turn the coordinate grid in the table on and off.
1731 Making a table field blank does not remove the formula associated
1732 with the field, because that is stored in a different line (the `TBLFM'
1733 line) - during the next recalculation the field will be filled again.
1734 To remove a formula from a field, you have to give an empty reply when
1735 prompted for the formula, or to edit the `#+TBLFM' line.
1737 You may edit the `#+TBLFM' directly and re-apply the changed
1738 equations with `C-c C-c' in that line, or with the normal recalculation
1739 commands in the table.
1744 When the evaluation of a formula leads to an error, the field content
1745 becomes the string `#ERROR'. If you would like see what is going on
1746 during variable substitution and calculation in order to find a bug,
1747 turn on formula debugging in the `Tbl' menu and repeat the calculation,
1748 for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
1749 information will be displayed.
1752 File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
1754 3.5.7 Updating the Table
1755 ------------------------
1757 Recalculation of a table is normally not automatic, but needs to be
1758 triggered by a command. See *Note Advanced features:: for a way to make
1759 recalculation at least semi-automatically.
1761 In order to recalculate a line of a table or the entire table, use
1762 the following commands:
1765 Recalculate the current row by first applying the stored column
1766 formulas from left to right, and all field formulas in the current
1771 Recompute the entire table, line by line. Any lines before the
1772 first hline are left alone, assuming that these are part of the
1776 Iterate the table by recomputing it until no further changes occur.
1777 This may be necessary if some computed fields use the value of
1778 other fields that are computed later in the calculation sequence.
1781 File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
1783 3.5.8 Advanced features
1784 -----------------------
1786 If you want the recalculation of fields to happen automatically, or if
1787 you want to be able to assign names to fields and columns, you need to
1788 reserve the first column of the table for special marking characters.
1790 Rotate the calculation mark in first column through the states `',
1791 `#', `*', `!', `$'. The meaning of these characters is discussed
1792 below. When there is an active region, change all marks in the
1795 Here is an example of a table that collects exam results of students
1796 and makes use of these features:
1798 |---+---------+--------+--------+--------+-------+------|
1799 | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1800 |---+---------+--------+--------+--------+-------+------|
1801 | ! | | P1 | P2 | P3 | Tot | |
1802 | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
1803 | ^ | | m1 | m2 | m3 | mt | |
1804 |---+---------+--------+--------+--------+-------+------|
1805 | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
1806 | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
1807 | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
1808 |---+---------+--------+--------+--------+-------+------|
1809 | | Average | | | | 29.7 | |
1810 | ^ | | | | | at | |
1811 | $ | max=50 | | | | | |
1812 |---+---------+--------+--------+--------+-------+------|
1813 #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
1815 Important: Please note that for these special tables, recalculating the
1816 table with `C-u C-c *' will only affect rows that are marked `#' or
1817 `*', and fields that have a formula assigned to the field itself. The
1818 column formulas are not applied in rows with empty first field.
1820 The marking characters have the following meaning:
1822 The fields in this line define names for the columns, so that you
1823 may refer to a column as `$Tot' instead of `$6'.
1826 This row defines names for the fields _above_ the row. With such
1827 a definition, any formula in the table may use `$m1' to refer to
1828 the value `10'. Also, if you assign a formula to a names field, it
1829 will be stored as `$name=...'.
1832 Similar to `^', but defines names for the fields in the row
1836 Fields in this row can define _parameters_ for formulas. For
1837 example, if a field in a `$' row contains `max=50', then formulas
1838 in this table can refer to the value 50 using `$max'. Parameters
1839 work exactly like constants, only that they can be defined on a
1843 Fields in this row are automatically recalculated when pressing
1844 <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
1845 selected for a global recalculation with `C-u C-c *'. Unmarked
1846 lines will be left alone by this command.
1849 Selects this line for global recalculation with `C-u C-c *', but
1850 not for automatic recalculation. Use this when automatic
1851 recalculation slows down editing too much.
1854 Unmarked lines are exempt from recalculation with `C-u C-c *'.
1855 All lines that should be recalculated should be marked with `#' or
1859 Do not export this line. Useful for lines that contain the
1860 narrowing `<N>' markers.
1862 Finally, just to whet your appetite on what can be done with the
1863 fantastic `calc' package, here is a table that computes the Taylor
1864 series of degree `n' at location `x' for a couple of functions
1865 (homework: try that with Excel :-)
1867 |---+-------------+---+-----+--------------------------------------|
1868 | | Func | n | x | Result |
1869 |---+-------------+---+-----+--------------------------------------|
1870 | # | exp(x) | 1 | x | 1 + x |
1871 | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
1872 | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
1873 | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1874 | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
1875 | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
1876 |---+-------------+---+-----+--------------------------------------|
1877 #+TBLFM: $5=taylor($2,$4,$3);n3
1880 File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
1885 Just like HTML, Org-mode provides links inside a file, and external
1886 links to other files, Usenet articles, emails, and much more.
1890 * Link format:: How links in Org-mode are formatted
1891 * Internal links:: Links to other places in the current file
1892 * External links:: URL-like links to the world
1893 * Handling links:: Creating, inserting and following
1894 * Using links outside Org-mode:: Linking from my C source code?
1895 * Link abbreviations:: Shortcuts for writing complex links
1896 * Search options:: Linking to a specific location
1897 * Custom searches:: When the default search is not enough
1898 * Remember:: Org-trees store quick notes
1901 File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
1906 Org-mode will recognize plain URL-like links and activate them as
1907 clickable links. The general link format, however, looks like this:
1909 [[link][description]] or alternatively [[link]]
1911 Once a link in the buffer is complete (all brackets present),
1912 Org-mode will change the display so that `description' is displayed
1913 instead of `[[link][description]]' and `link' is displayed instead of
1914 `[[link]]'. Links will be highlighted in the face `org-link', which by
1915 default is an underlined face. You can directly edit the visible part
1916 of a link. Note that this can be either the `link' part (if there is
1917 no description) or the `description' part. To edit also the invisible
1918 `link' part, use `C-c C-l' with the cursor on the link.
1920 If you place the cursor at the beginning or just behind the end of
1921 the displayed text and press <BACKSPACE>, you will remove the
1922 (invisible) bracket at that location. This makes the link incomplete
1923 and the internals are again displayed as plain text. Inserting the
1924 missing bracket hides the link internals again. To show the internal
1925 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1929 File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
1934 If the link does not look like a URL, it is considered to be internal in
1935 the current file. Links such as `[[My Target]]' or `[[My Target][Find
1936 my target]]' lead to a text search in the current file. The link can
1937 be followed with `C-c C-o' when the cursor is on the link, or with a
1938 mouse click (*note Handling links::). The preferred match for such a
1939 link is a dedicated target: the same string in double angular brackets.
1940 Targets may be located anywhere; sometimes it is convenient to put
1941 them into a comment line. For example
1945 In HTML export (*note HTML export::), such targets will become named
1946 anchors for direct access through `http' links(1).
1948 If no dedicated target exists, Org-mode will search for the words in
1949 the link. In the above example the search would be for `my target'.
1950 Links starting with a star like `*My Target' restrict the search to
1951 headlines. When searching, Org-mode will first try an exact match, but
1952 then move on to more and more lenient searches. For example, the link
1953 `[[*My Targets]]' will find any of the following:
1956 ** TODO my targets are bright
1957 ** my 20 targets are
1959 To insert a link targeting a headline, in-buffer completion can be
1960 used. Just type a star followed by a few optional letters into the
1961 buffer and press `M-<TAB>'. All headlines in the current buffer will be
1962 offered as completions. *Note Handling links::, for more commands
1965 Following a link pushes a mark onto Org-mode's own mark ring. You
1966 can return to the previous position with `C-c &'. Using this command
1967 several times in direct succession goes back to positions recorded
1972 * Radio targets:: Make targets trigger links in plain text.
1974 ---------- Footnotes ----------
1976 (1) Note that text before the first headline is usually not
1977 exported, so the first such target should be after the first headline.
1980 File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
1985 You can configure Org-mode to link any occurrences of certain target
1986 names in normal text. So without explicitly creating a link, the text
1987 connects to the target radioing its position. Radio targets are
1988 enclosed by triple angular brackets. For example, a target `<<<My
1989 Target>>>' causes each occurrence of `my target' in normal text to
1990 become activated as a link. The Org-mode file is scanned automatically
1991 for radio targets only when the file is first loaded into Emacs. To
1992 update the target list during editing, press `C-c C-c' with the cursor
1996 File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
2001 Org-mode supports links to files, websites, Usenet and email messages,
2002 and BBDB database entries. External links are URL-like locators. They
2003 start with a short identifying string followed by a colon. There can be
2004 no space after the colon. The following list shows examples for each
2007 http://www.astro.uva.nl/~dominik on the web
2008 file:/home/dominik/images/jupiter.jpg file, absolute path
2009 file:papers/last.pdf file, relative path
2010 news:comp.emacs Usenet link
2011 mailto:adent@galaxy.net Mail link
2012 vm:folder VM folder link
2013 vm:folder#id VM message link
2014 vm://myself@some.where.org/folder#id VM on remote machine
2015 wl:folder WANDERLUST folder link
2016 wl:folder#id WANDERLUST message link
2017 mhe:folder MH-E folder link
2018 mhe:folder#id MH-E message link
2019 rmail:folder RMAIL folder link
2020 rmail:folder#id RMAIL message link
2021 gnus:group GNUS group link
2022 gnus:group#id GNUS article link
2023 bbdb:Richard Stallman BBDB link
2024 shell:ls *.org A shell command
2025 elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
2027 A link should be enclosed in double brackets and may contain a
2028 descriptive text to be displayed instead of the url (*note Link
2029 format::), for example:
2031 [[http://www.gnu.org/software/emacs/][GNU Emacs]]
2033 If the description is a file name or URL that points to an image, HTML
2034 export (*note HTML export::) will inline the image as a clickable
2035 button. If there is no description at all and the link points to an
2036 image, that image will be inlined into the exported HTML file.
2038 Org-mode also finds external links in the normal text and activates
2039 them as links. If spaces must be part of the link (for example in
2040 `bbdb:Richard Stallman'), or if you need to remove ambiguities about
2041 the end of the link, enclose them in angular brackets.
2044 File: org, Node: Handling links, Next: Using links outside Org-mode, Prev: External links, Up: Hyperlinks
2049 Org-mode provides methods to create a link in the correct syntax, to
2050 insert it into an org-mode file, and to follow the link.
2053 Store a link to the current location. This is a _global_ command
2054 which can be used in any buffer to create a link. The link will be
2055 stored for later insertion into an Org-mode buffer (see below).
2056 For Org-mode files, if there is a `<<target>>' at the cursor, the
2057 link points to the target. Otherwise it points to the current
2058 headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
2059 the link will indicate the current article/entry. For W3 and W3M
2060 buffers, the link goes to the current URL. For any other files,
2061 the link will point to the file, with a search string (*note
2062 Search options::) pointing to the contents of the current line.
2063 If there is an active region, the selected words will form the
2064 basis of the search string. If the automatically created link is
2065 not working correctly or accurately enough, you can write custom
2066 functions to select the search string and to do the search for
2067 particular file types - see *Note Custom searches::. The key
2068 binding `C-c l' is only a suggestion - see *Note Installation::.
2071 Insert a link. This prompts for a link to be inserted into the
2072 buffer. You can just type a link, using text for an internal
2073 link, or one of the link type prefixes mentioned in the examples
2074 above. All links stored during the current session are part of
2075 the history for this prompt, so you can access them with <up> and
2076 <down>. Completion, on the other hand, will help you to insert
2077 valid link prefixes like `http:' or `ftp:', including the prefixes
2078 defined through link abbreviations (*note Link abbreviations::).
2079 The link will be inserted into the buffer(1), along with a
2080 descriptive text. If some text was selected when this command is
2081 called, the selected text becomes the default description.
2082 Note that you don't have to use this command to insert a link.
2083 Links in Org-mode are plain text, and you can type or paste them
2084 straight into the buffer. By using this command, the links are
2085 automatically enclosed in double brackets, and you will be asked
2086 for the optional descriptive text.
2089 When `C-c C-l' is called with a `C-u' prefix argument, a link to a
2090 file will be inserted and you may use file name completion to
2091 select the name of the file. The path to the file is inserted
2092 relative to the directory of the current org file, if the linked
2093 file is in the current directory or in a subdirectory of it, or if
2094 the path is written relative to the current directory using `../'.
2095 Otherwise an absolute path is used, if possible with `~/' for
2096 your home directory. You can force an absolute path with two
2099 `C-c C-l (with cursor on existing link)'
2100 When the cursor is on an existing link, `C-c C-l' allows you to
2101 edit the link and description parts of the link.
2104 Open link at point. This will launch a web browser for URLs (using
2105 `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
2106 the corresponding links, and execute the command in a shell link.
2107 When the cursor is on an internal link, this commands runs the
2108 corresponding search. When the cursor is on a TAG list in a
2109 headline, it creates the corresponding TAGS view. If the cursor
2110 is on a time stamp, it compiles the agenda for that date.
2111 Furthermore, it will visit text and remote files in `file:' links
2112 with Emacs and select a suitable application for local non-text
2113 files. Classification of files is based on file extension only.
2114 See option `org-file-apps'. If you want to override the default
2115 application and visit the file with Emacs, use a `C-u' prefix.
2119 On links, `mouse-2' will open the link just as `C-c C-o' would.
2120 Under Emacs 22, also `mouse-1' will follow a link.
2123 Like `mouse-2', but force file links to be opened with Emacs, and
2124 internal links to be displayed in another window(2).
2127 Push the current position onto the mark ring, to be able to return
2128 easily. Commands following an internal link do this automatically.
2131 Jump back to a recorded position. A position is recorded by the
2132 commands following internal links, and by `C-c %'. Using this
2133 command several times in direct succession moves through a ring of
2134 previously recorded positions.
2138 Move forward/backward to the next link in the buffer. At the
2139 limit of the buffer, the search fails once, and then wraps around.
2140 The key bindings for this are really too long, you might want to
2141 bind this also to `C-n' and `C-p'
2142 (add-hook 'org-load-hook
2144 (define-key 'org-mode-map "\C-n" 'org-next-link)
2145 (define-key 'org-mode-map "\C-p" 'org-previous-link)))
2147 ---------- Footnotes ----------
2149 (1) After insertion of a stored link, the link will be removed from
2150 the list of stored links. To keep it in the list later use, use a
2151 triple `C-u' prefix to `C-c C-l', or configure the option
2152 `org-keep-stored-link-after-insertion'.
2154 (2) See the variable `org-display-internal-link-with-indirect-buffer'
2157 File: org, Node: Using links outside Org-mode, Next: Link abbreviations, Prev: Handling links, Up: Hyperlinks
2159 4.5 Using links outside Org-mode
2160 ================================
2162 You can insert and follow links that have Org-mode syntax not only in
2163 Org-mode, but in any Emacs buffer. For this, you should create two
2164 global commands, like this (please select suitable global keys
2167 (define-key global-map 'org-insert-link-global "\\C-c L")
2168 (define-key global-map 'org-open-at-point-global "\\C-c o")
2171 File: org, Node: Link abbreviations, Next: Search options, Prev: Using links outside Org-mode, Up: Hyperlinks
2173 4.6 Link abbreviations
2174 ======================
2176 Long URLs can be cumbersome to type, and often many similar links are
2177 needed in a document. For this you can use link abbreviations. An
2178 abbreviated link looks like this
2180 [[linkword:tag][description]]
2182 where the tag is optional. Such abbreviations are resolved according to
2183 the information in the variable `org-link-abbrev-alist' that relates
2184 the linkwords to replacement text. Here is an example:
2186 (setq org-link-abbrev-alist
2187 '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
2188 ("google" . "http://www.google.com/search?q=")
2189 ("ads" . "http://adsabs.harvard.edu/cgi-bin/
2190 nph-abs_connect?author=%s&db_key=AST")))
2192 If the replacement text contains the string `%s', it will be
2193 replaced with the tag. Otherwise the tag will be appended to the string
2194 in order to create the link. You may also specify a function that will
2195 be called with the tag as the only argument to create the link.
2197 With the above setting, you could link to a specific bug with
2198 `[[bugzilla:129]]', search the web for `OrgMode' with
2199 `[[google:OrgMode]]' and find out what the Org-mode author is doing
2200 besides Emacs hacking with `[[ads:Dominik,C]]'.
2202 If you need special abbreviations just for a single Org-mode buffer,
2203 you can define them in the file with
2205 #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
2206 #+LINK: google http://www.google.com/search?q=%s
2208 In-buffer completion *note Completion:: can be used after `[' to
2209 complete link abbreviations.
2212 File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
2214 4.7 Search options in file links
2215 ================================
2217 File links can contain additional information to make Emacs jump to a
2218 particular location in the file when following a link. This can be a
2219 line number or a search option after a double(1) colon. For example,
2220 when the command `C-c l' creates a link (*note Handling links::) to a
2221 file, it encodes the words in the current line as a search string that
2222 can be used to find this line back later when following the link with
2225 Here is the syntax of the different ways to attach a search to a file
2226 link, together with an explanation:
2228 [[file:~/code/main.c::255]]
2229 [[file:~/xx.org::My Target]]
2230 [[file:~/xx.org::*My Target]]
2231 [[file:~/xx.org::/regexp/]]
2237 Search for a link target `<<My Target>>', or do a text search for
2238 `my target', similar to the search in internal links, see *Note
2239 Internal links::. In HTML export (*note HTML export::), such a
2240 file link will become an HTML reference to the corresponding named
2241 anchor in the linked file.
2244 In an Org-mode file, restrict search to headlines.
2247 Do a regular expression search for `regexp'. This uses the Emacs
2248 command `occur' to list all matches in a separate window. If the
2249 target file is in Org-mode, `org-occur' is used to create a sparse
2250 tree with the matches.
2252 As a degenerate case, a file link with an empty file name can be used
2253 to search the current file. For example, `[[file:::find me]]' does a
2254 search for `find me' in the current file, just as `[[find me]]' would.
2256 ---------- Footnotes ----------
2258 (1) For backward compatibility, line numbers can also follow a
2262 File: org, Node: Custom searches, Next: Remember, Prev: Search options, Up: Hyperlinks
2267 The default mechanism for creating search strings and for doing the
2268 actual search related to a file link may not work correctly in all
2269 cases. For example, BibTeX database files have many entries like
2270 `year="1993"' which would not result in good search strings, because
2271 the only unique identification for a BibTeX entry is the citation key.
2273 If you come across such a problem, you can write custom functions to
2274 set the right search string for a particular file type, and to do the
2275 search for the string in the file. Using `add-hook', these functions
2276 need to be added to the hook variables
2277 `org-create-file-search-functions' and
2278 `org-execute-file-search-functions'. See the docstring for these
2279 variables for more information. Org-mode actually uses this mechanism
2280 for BibTeX database files, and you can use the corresponding code as an
2281 implementation example. Search for `BibTeX links' in the source file.
2284 File: org, Node: Remember, Prev: Custom searches, Up: Hyperlinks
2289 Another way to create org entries with links to other files is through
2290 the remember package by John Wiegley. Remember lets you store quick
2291 notes with little interruption of your work flow. See
2292 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
2293 information. The notes produced by Remember can be stored in different
2294 ways, and Org-mode files are a good target. Org-mode significantly
2295 expands the possibilities of remember: You may define templates for
2296 different note types, and to associate target files and headlines with
2297 specific templates. It also allows you to select the location where a
2298 note should be stored interactively, on the fly.
2302 * Setting up remember:: Some code for .emacs to get things going
2303 * Remember templates:: Define the outline of different note types
2304 * Storing notes:: Directly get the note to where it belongs
2307 File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
2309 4.9.1 Setting up remember
2310 -------------------------
2312 The following customization will tell remember to use org files as
2313 target, and to create annotations compatible with Org-mode links.
2315 (setq org-directory "~/path/to/my/orgfiles/")
2316 (setq org-default-notes-file "~/.notes")
2317 (setq remember-annotation-functions '(org-remember-annotation))
2318 (setq remember-handler-functions '(org-remember-handler))
2319 (add-hook 'remember-mode-hook 'org-remember-apply-template)
2322 File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
2324 4.9.2 Remember templates
2325 ------------------------
2327 In combination with Org-mode, you can use templates to generate
2328 different types of remember notes. For example, if you would like to
2329 use one template to create general TODO entries, another one for
2330 journal entries, and a third one for collecting random ideas, you could
2333 (setq org-remember-templates
2334 '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
2335 (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
2336 (?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
2338 In these entries, the character specifies how to select the template.
2339 The first string specifies the template. Two more (optional) strings
2340 give the file in which, and the headline under which the new note
2341 should be stored. The file defaults (if not present or `nil') to
2342 `org-default-notes-file', the heading to
2343 `org-remember-default-headline'. Both defaults help to get to the
2344 storing location quickly, but you can change the location interactively
2345 while storing the note.
2347 When you call `M-x remember' (or `M-x org-remember') to remember
2348 something, org will prompt for a key to select the template (if you have
2349 more than one template) and then prepare the buffer like
2351 [[file:link to where you called remember]]
2355 * [2006-03-21 Tue 15:37]
2357 [[file:link to where you called remember]]
2359 During expansion of the template, special `%'-escapes allow dynamic
2360 insertion of content:
2361 %^{prompt} prompt the user for a string and replace this sequence with it.
2362 %t time stamp, date only
2363 %T time stamp with date and time
2364 %u, %U like the above, but inactive time stamps
2365 %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
2366 You may define a prompt like `%^{Birthday}t'
2367 %n user name (taken from `user-full-name')
2368 %a annotation, normally the link created with `org-store-link'
2369 %i initial content, the region when remember is called with C-u.
2370 The entire text will be indented like `%i' itself.
2371 %^g prompt for tags, with completion on tags in target file.
2372 %^G prompt for tags, with completion all tags in all agenda files.
2373 %:keyword specific information for certain link types, see below
2375 For specific link types, the following keywords will be defined:
2377 Link type | Available keywords
2378 -------------------+----------------------------------------------
2379 bbdb | %:name %:company
2380 vm, wl, mh, rmail | %:type %:subject %:message-id
2381 | %:from %:fromname %:fromaddress
2382 | %:to %:toname %:toaddress
2383 | %:fromto (either "to NAME" or "from NAME")(1)
2384 gnus | %:group, for messages also all email fields
2386 info | %:file %:node
2389 To place the cursor after template expansion use:
2391 %? After completing the template, position cursor here.
2393 If you change you mind about which template to use, call `org-remember'
2394 in the remember buffer. You may then select a new template that will
2395 be filled with the previous context information.
2397 ---------- Footnotes ----------
2399 (1) This will always be the other, not the user. See the variable
2400 `org-from-is-user-regexp'.
2403 File: org, Node: Storing notes, Prev: Remember templates, Up: Remember
2408 When you are finished preparing a note with remember, you have to press
2409 `C-c C-c' to file the note away. The handler first prompts for a
2410 target file - if you press <RET>, the value specified for the template
2411 is used. Then the command offers the headings tree of the selected
2412 file, with the cursor position at the default headline (if you had
2413 specified one in the template). You can either immediately press <RET>
2414 to get the note placed there. Or you can use the following keys to
2415 find a better location:
2416 <TAB> Cycle visibility.
2417 <down> / <up> Next/previous visible headline.
2418 n / p Next/previous visible headline.
2419 f / b Next/previous headline same level.
2421 Pressing <RET> or <left> or <right> then leads to the following
2424 Cursor Key Note gets inserted
2426 buffer-start <RET> as level 2 heading at end of file
2427 on headline <RET> as sublevel of the heading at cursor
2428 <left>/<right>as same level, before/after current heading
2429 not on <RET> at cursor position, level taken from context.
2432 So a fast way to store the note to its default location is to press
2433 `C-c C-c <RET> <RET>'. Even shorter would be `C-u C-c C-c', which does
2434 the same without even asking for a file or showing the tree.
2436 Before inserting the text into a tree, the function ensures that the
2437 text has a headline, i.e. a first line that starts with a `*'. If not,
2438 a headline is constructed from the current date and some additional
2439 data. If the variable `org-adapt-indentation' is non-nil, the entire
2440 text is also indented so that it starts in the same column as the
2441 headline (after the asterisks).
2444 File: org, Node: TODO items, Next: Tags, Prev: Hyperlinks, Up: Top
2449 Org-mode does not maintain TODO lists as a separate document. TODO
2450 items are an integral part of the notes file, because TODO items
2451 usually come up while taking notes! With Org-mode, you simply mark any
2452 entry in a tree as being a TODO item. In this way, the information is
2453 not duplicated, and the entire context from which the item emerged is
2454 always present when you check.
2456 Of course, this technique causes TODO items to be scattered
2457 throughout your file. Org-mode provides methods to give you an
2458 overview over all things you have to do.
2462 * TODO basics:: Marking and displaying TODO entries
2463 * TODO extensions:: Workflow and assignments
2464 * Priorities:: Some things are more important than others
2465 * Breaking down tasks:: Splitting a task into manageable pieces
2466 * Checkboxes:: Tick-off lists
2469 File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
2471 5.1 Basic TODO functionality
2472 ============================
2474 Any headline can become a TODO item by starting it with the word TODO,
2477 *** TODO Write letter to Sam Fortune
2479 The most important commands to work with TODO entries are:
2482 Rotate the TODO state of the current item among
2484 ,-> (unmarked) -> TODO -> DONE --.
2485 '--------------------------------'
2487 The same rotation can also be done "remotely" from the timeline and
2488 agenda buffers with the `t' command key (*note Agenda commands::).
2492 Select the following/preceding TODO state, similar to cycling.
2493 Mostly useful if more than two TODO states are possible (*note
2497 View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
2498 the entire buffer, but shows all TODO items and the headings
2499 hierarchy above them. With prefix arg, search for a specific
2500 TODO. You will be prompted for the keyword, and you can also give
2501 a list of keywords like `kwd1|kwd2|...'. With numerical prefix N,
2502 show the tree for the Nth keyword in the variable
2503 `org-todo-keywords'. With two prefix args, find all TODO and DONE
2507 Show the global TODO list. This collects the TODO items from all
2508 agenda files (*note Agenda views::) into a single buffer. The
2509 buffer is in `agenda-mode', so there are commands to examine and
2510 manipulate the TODO entries directly from that buffer (*note
2511 Agenda commands::). *Note Global TODO list::, for more
2515 Insert a new TODO entry below the current one.
2518 File: org, Node: TODO extensions, Next: Priorities, Prev: TODO basics, Up: TODO items
2520 5.2 Extended use of TODO keywords
2521 =================================
2523 The default implementation of TODO entries is just two states: TODO and
2524 DONE. You can use the TODO feature for more complicated things by
2525 configuring the variable `org-todo-keywords'. With special setup, the
2526 TODO keyword system can work differently in different files.
2528 Note that tags are another way to classify headlines in general and
2529 TODO items in particular (*note Tags::).
2533 * Workflow states:: From TODO to DONE in steps
2534 * TODO types:: I do this, Fred the rest
2535 * Multiple sets in one file:: Mixing it all, and still finding your way
2536 * Per file keywords:: Different files, different requirements
2539 File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
2541 5.2.1 TODO keywords as workflow states
2542 --------------------------------------
2544 You can use TODO keywords to indicate different _sequential_ states in
2545 the process of working on an item, for example(1):
2547 (setq org-todo-keywords
2548 '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
2550 The vertical bar separates the TODO keywords (states that _need
2551 action_) from the DONE states (which need _no further action_. If you
2552 don't provide the separator bar, the last state is used as the DONE
2553 state. With this setup, the command `C-c C-t' will cycle an entry from
2554 TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
2555 You may also use a prefix argument to quickly select a specific state.
2556 For example `C-3 C-c C-t' will change the state immediately to VERIFY.
2557 If you define many keywords, you can use in-buffer completion (see
2558 *Note Completion::) to insert these words into the buffer. Changing a
2559 todo state can be logged with a timestamp, see *Note Tracking TODO
2560 state changes:: for more information.
2562 ---------- Footnotes ----------
2564 (1) Changing this variable only becomes effective after restarting
2565 Org-mode in a buffer.
2568 File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
2570 5.2.2 TODO keywords as types
2571 ----------------------------
2573 The second possibility is to use TODO keywords to indicate different
2574 _types_ of action items. For example, you might want to indicate that
2575 items are for "work" or "home". Or, when you work with several people
2576 on a single project, you might want to assign action items directly to
2577 persons, by using their names as TODO keywords. This would be set up
2580 (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
2582 In this case, different keywords do not indicate a sequence, but
2583 rather different types. So the normal work flow would be to assign a
2584 task to a person, and later to mark it DONE. Org-mode supports this
2585 style by adapting the workings of the command `C-c C-t'(1). When used
2586 several times in succession, it will still cycle through all names, in
2587 order to first select the right type for a task. But when you return
2588 to the item after some time and execute `C-c C-t' again, it will switch
2589 from any name directly to DONE. Use prefix arguments or completion to
2590 quickly select a specific name. You can also review the items of a
2591 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2592 C-v'. For example, to see all things Lucy has to do, you would use
2593 `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
2594 single buffer, you would use the prefix arg as well when creating the
2595 global todo list: `C-3 C-c t'.
2597 ---------- Footnotes ----------
2599 (1) This is also true for the `t' command in the timeline and agenda
2603 File: org, Node: Multiple sets in one file, Next: Per file keywords, Prev: TODO types, Up: TODO extensions
2605 5.2.3 Multiple keyword sets in one file
2606 ---------------------------------------
2608 Sometimes you may want to use different sets of TODO keywords in
2609 parallel. For example, you may want to have the basic `TODO'/`DONE',
2610 but also a workflow for bug fixing, and a separate state indicating
2611 that an item has been canceled (so it is not DONE, but also does not
2612 require action). Your setup would then look like this:
2614 (setq org-todo-keywords
2615 '((sequence "TODO" "|" "DONE")
2616 (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
2617 (sequence "|" "CANCELED")))
2619 The keywords should all be different, this helps Org-mode to keep
2620 track of which subsequence should be used for a given entry. In this
2621 setup, `C-c C-t' only operates within a subsequence, so it switches from
2622 `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
2623 `REPORT'. Therefore you need a mechanism to initially select the
2624 correct sequence. Besides the obvious ways like typing a keyword or
2625 using completion, you may also apply the following commands:
2629 These keys jump from one TODO subset to the next. In the above
2630 example, `C-S-<right>' would jump from `TODO' or `DONE' to
2631 `REPORT', and any of the words in the second row to `CANCELED'.
2635 `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
2636 from all sets, so for example `S-<<right>>' would switch from
2637 `DONE' to `REPORT' in the example above.
2640 File: org, Node: Per file keywords, Prev: Multiple sets in one file, Up: TODO extensions
2642 5.2.4 Setting up keywords for individual files
2643 ----------------------------------------------
2645 It can be very useful to use different aspects of the TODO mechanism in
2646 different files. For file-local settings, you need to add special lines
2647 to the file which set the keywords and interpretation for that file
2648 only. For example, to set one of the two examples discussed above, you
2649 need one of the following lines, starting in column zero anywhere in the
2652 #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
2654 #+TYP_TODO: Fred Sara Lucy Mike | DONE
2656 A setup for using several sets in parallel would be:
2658 #+SEQ_TODO: "TODO" "|" "DONE"
2659 #+SEQ_TODO: "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED"
2660 #+SEQ_TODO: "|" "CANCELED"
2662 To make sure you are using the correct keyword, type `#+' into the
2663 buffer and then use `M-<TAB>' completion.
2665 Remember that the keywords after the vertical bar (or the last
2666 keyword if no bar is there) must always mean that the item is DONE
2667 (although you may use a different word). After changing one of these
2668 lines, use `C-c C-c' with the cursor still in the line to make the
2669 changes known to Org-mode(1).
2671 ---------- Footnotes ----------
2673 (1) Org-mode parses these lines only when Org-mode is activated
2674 after visiting a file. `C-c C-c' with the cursor in a line starting
2675 with `#+' is simply restarting Org-mode for the current buffer.
2678 File: org, Node: Priorities, Next: Breaking down tasks, Prev: TODO extensions, Up: TODO items
2683 If you use Org-mode extensively to organize your work, you may end up
2684 with a number of TODO entries so large that you'd like to prioritize
2685 them. This can be done by placing a _priority cookie_ into the
2688 *** TODO [#A] Write letter to Sam Fortune
2690 With its standard setup, Org-mode supports priorities `A', `B', and
2691 `C'. `A' is the highest priority. An entry without a cookie is
2692 treated as priority `B'. Priorities make a difference only in the
2693 agenda (*note Weekly/Daily agenda::).
2696 Set the priority of the current headline. The command prompts for
2697 a priority character `A', `B' or `C'. When you press <SPC>
2698 instead, the priority cookie is removed from the headline. The
2699 priorities can also be changed "remotely" from the timeline and
2700 agenda buffer with the `,' command (*note Agenda commands::).
2704 Increase/decrease priority of current headline. Note that these
2705 keys are also used to modify time stamps (*note Creating
2706 timestamps::). Furthermore, these keys are also used by CUA-mode
2707 (*note Conflicts::).
2709 You can change the range of allowed priorities by setting the
2710 variables `org-highest-priority', `org-lowest-priority', and
2711 `org-default-priority'. For an individual buffer, you may set these
2712 values (highest, lowest, default) like this (please make sure that the
2713 highest priority is earlier in the alphabet than the lowest priority):
2718 File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
2720 5.4 Breaking tasks down into subtasks
2721 =====================================
2723 It is often advisable to break down large tasks into smaller, manageable
2724 subtasks. You can do this by creating an outline tree below a TODO
2725 item, with detailed subtasks on the tree(1). Another possibility is
2726 the use of checkboxes to identify (a hierarchy of) a large number of
2727 subtasks (*note Checkboxes::).
2729 ---------- Footnotes ----------
2731 (1) To keep subtasks out of the global TODO list, see the
2732 `org-agenda-todo-list-sublevels'.
2735 File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
2740 Every item in a plain list (*note Plain lists::) can be made a checkbox
2741 by starting it with the string `[ ]'. This feature is similar to TODO
2742 items (*note TODO items::), but more lightweight. Checkboxes are not
2743 included into the global TODO list, so they are often great to split a
2744 task into a number of simple steps. Or you can use them in a shopping
2745 list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
2746 `org-mouse.el'. Here is an example of a checkbox list.
2748 * TODO Organize party [3/6]
2754 - [ ] think about what music to play
2755 - [X] talk to the neighbors
2757 The `[3/6]' and `[1/3]' in the first and second line are cookies
2758 indicating how many checkboxes are present in this entry, and how many
2759 of them have been checked off. This can give you an idea on how many
2760 checkboxes remain, even without opening a folded entry. The cookies
2761 can be placed into a headline or into (the first line of) a plain list
2762 item. Each cookie covers all checkboxes structurally below that
2763 headline/item. You have to insert the cookie yourself by typing either
2764 `[/]' or `[%]'. In the first case you get an `n out of m' result, in
2765 the second case you get information about the percentage of checkboxes
2766 checked (in the above example, this would be `[50%]' and `[33%],
2769 The following commands work with checkboxes:
2772 Toggle checkbox at point. With prefix argument, set it to `[-]',
2773 which is considered to be an intermediate state.
2776 Toggle checkbox at point.
2777 - If there is an active region, toggle the first checkbox in
2778 the region and set all remaining boxes to the same status as
2779 the first. If you want to toggle all boxes in the region
2780 independently, use a prefix argument.
2782 - If the cursor is in a headline, toggle checkboxes in the
2783 region between this headline and the next (so _not_ the
2786 - If there is no active region, just toggle the checkbox at
2790 Insert a new item with a checkbox. This works only if the cursor
2791 is already in a plain list item (*note Plain lists::).
2794 Update the checkbox statistics in the current outline entry. When
2795 called with a `C-u' prefix, update the entire file. Checkbox
2796 statistic cookies are updated automatically if you toggle
2797 checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
2798 you delete boxes or add/change them by hand, use this command to
2799 get things back into synch. Or simply toggle any checkbox twice
2803 File: org, Node: Tags, Next: Properties and columns, Prev: TODO items, Up: Top
2808 If you wish to implement a system of labels and contexts for
2809 cross-correlating information, an excellent way is to assign tags to
2810 headlines. Org-mode has extensive support for using tags.
2812 Every headline can contain a list of tags, at the end of the
2813 headline. Tags are normal words containing letters, numbers, `_', and
2814 `@'. Tags must be preceded and followed by a single colon; like
2815 `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
2819 * Tag inheritance:: Tags use the tree structure of the outline
2820 * Setting tags:: How to assign tags to a headline
2821 * Tag searches:: Searching for combinations of tags
2824 File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
2829 Tags make use of the hierarchical structure of outline trees. If a
2830 heading has a certain tag, all subheadings will inherit the tag as
2831 well. For example, in the list
2833 * Meeting with the French group :WORK:
2834 ** Summary by Frank :BOSS:NOTES:
2835 *** TODO Prepare slides for him :ACTION:
2837 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
2838 `:ACTION:'. When executing tag searches and Org-mode finds that a
2839 certain headline matches the search criterion, it will not check any
2840 sublevel headline, assuming that these likely also match, and that the
2841 list of matches can become very long. This may not be what you want,
2842 however, and you can influence inheritance and searching using the
2843 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2846 File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
2851 Tags can simply be typed into the buffer at the end of a headline.
2852 After a colon, `M-<TAB>' offers completion on tags. There is also a
2853 special command for inserting tags:
2856 Enter new tags for the current headline. Org-mode will either
2857 offer completion or a special single-key interface for setting
2858 tags, see below. After pressing <RET>, the tags will be inserted
2859 and aligned to `org-tags-column'. When called with a `C-u'
2860 prefix, all tags in the current buffer will be aligned to that
2861 column, just to make things look nice. TAGS are automatically
2862 realigned after promotion, demotion, and TODO state changes (*note
2865 Org will support tag insertion based on a _list of tags_. By
2866 default this list is constructed dynamically, containing all tags
2867 currently used in the buffer. You may also globally specify a hard list
2868 of tags with the variable `org-tag-alist'. Finally you can set the
2869 default tags for a given file with lines like
2871 #+TAGS: @WORK @HOME @TENNISCLUB
2872 #+TAGS: Laptop Car PC Sailboat
2874 If you have globally defined your preferred set of tags using the
2875 variable `org-tag-alist', but would like to use a dynamic tag list in a
2876 specific file: Just add an empty TAGS option line to that file:
2880 The default support method for entering tags is minibuffer
2881 completion. However, Org-mode also implements a much better method:
2882 _fast tag selection_. This method allows to select and deselect tags
2883 with a single key per tag. To function efficiently, you should assign
2884 unique keys to most tags. This can be done globally with
2886 (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
2888 or on a per-file basis with
2890 #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
2892 You can also group together tags that are mutually exclusive. With
2895 #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
2897 you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
2900 Don't forget to press `C-c C-c' with the cursor in one of these lines
2901 to activate any changes.
2903 If at least one tag has a selection key, pressing `C-c C-c' will
2904 automatically present you with a special interface, listing inherited
2905 tags, the tags of the current headline, and a list of all legal tags
2906 with corresponding keys(2). In this interface, you can use the
2910 Pressing keys assigned to tags will add or remove them from the
2911 list of tags in the current line. Selecting a tag in a group of
2912 mutually exclusive tags will turn off any other tags from that
2916 Enter a tag in the minibuffer, even if the tag is not in the
2917 predefined list. You will be able to complete on all tags present
2921 Clear all tags for this line.
2924 Accept the modified set.
2927 Abort without installing changes.
2930 If `q' is not assigned to a tag, it aborts like `C-g'.
2933 Turn off groups of mutually exclusive tags. Use this to (as an
2934 exception) assign several tags from such a group.
2937 Toggle auto-exit after the next change (see below). If you are
2938 using expert mode, the first `C-c' will display the selection
2941 This method lets you assign tags to a headline with very few keys. With
2942 the above setup, you could clear the current tags and set `@HOME',
2943 `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
2944 p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
2945 C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
2946 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
2949 If you find that most of the time, you need only a single keypress to
2950 modify your list of tags, set the variable
2951 `org-fast-tag-selection-single-key'. Then you no longer have to press
2952 <RET> to exit fast tag selection - it will immediately exit after the
2953 first change. If you then occasionally need more keys, press `C-c' to
2954 turn off auto-exit for the current tag selection process (in effect:
2955 start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
2956 the variable to the value `expert', the special window is not even
2957 shown for single-key tag selection, it comes up only when you press an
2960 ---------- Footnotes ----------
2962 (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
2963 respectively. Several groups are allowed.
2965 (2) Keys will automatically be assigned to tags which have no
2969 File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
2974 Once a tags system has been set up, it can be used to collect related
2975 information into special lists.
2978 Create a sparse tree with all headlines matching a tags search.
2979 With a `C-u' prefix argument, ignore headlines that are not a TODO
2983 Create a global list of tag matches from all agenda files. *Note
2984 Matching tags and properties::.
2987 Create a global list of tag matches from all agenda files, but
2988 check only TODO items and force checking subitems (see variable
2989 `org-tags-match-list-sublevels').
2991 A tags search string can use Boolean operators `&' for AND and `|'
2992 for OR. `&' binds more strongly than `|'. Parenthesis are currently
2993 not implemented. A tag may also be preceded by `-', to select against
2994 it, and `+' is syntactic sugar for positive selection. The AND
2995 operator `&' is optional when `+' or `-' is present. Examples:
2998 Select headlines tagged `:WORK:', but discard those also tagged
3002 Selects lines tagged `:WORK:' or `:LAPTOP:'.
3005 Like before, but require the `:LAPTOP:' lines to be tagged also
3008 If you are using multi-state TODO keywords (*note TODO
3009 extensions::), it can be useful to also match on the TODO keyword.
3010 This can be done by adding a condition after a slash to a tags match.
3011 The syntax is similar to the tag matches, but should be applied with
3012 consideration: For example, a positive selection on several TODO
3013 keywords can not meaningfully be combined with boolean AND. However,
3014 _negative selection_ combined with AND can be meaningful. To make sure
3015 that only lines are checked that actually have any TODO keyword, use
3016 `C-c a M', or equivalently start the todo part after the slash with `!'.
3020 Select `:WORK:'-tagged TODO lines with the specific TODO keyword
3023 `WORK/!-WAITING-NEXT'
3024 Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
3027 `WORK/+WAITING|+NEXT'
3028 Select `:WORK:'-tagged TODO lines that are either `WAITING' or
3031 Any element of the tag/todo match can be a regular expression - in
3032 this case it must be enclosed in curly braces. For example,
3033 `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
3034 tag starting with `BOSS'.
3036 You can also require a headline to be of a certain level, by writing
3037 instead of any TAG an expression like `LEVEL=3'. For example, a search
3038 `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
3039 BOSS and are _not_ marked with the todo keyword DONE.
3042 File: org, Node: Properties and columns, Next: Timestamps, Prev: Tags, Up: Top
3044 7 Properties and Columns
3045 ************************
3047 Properties are a set of key-value pairs associated with an entry. There
3048 are two main applications for properties in Org-mode. First, properties
3049 are like tags, but with a value. For example, in a file where you
3050 document bugs and plan releases of a piece of software, instead of using
3051 tags like `:release_1:', `:release_2:', it can be more efficient to use
3052 a property `RELEASE' with a value `1.0' or `2.0'. Second, you can use
3053 properties to implement (very basic) database capabilities in an
3054 Org-mode buffer, for example to create a list of Music CD's you own.
3055 You can edit and view properties conveniently in column view (*note
3060 * Property syntax:: How properties are spelled out
3061 * Special properties:: Access to other Org-mode features
3062 * Property searches:: Matching property values
3063 * Column view:: Tabular viewing and editing
3064 * Property API:: Properties for Lisp programmers
3067 File: org, Node: Property syntax, Next: Special properties, Prev: Properties and columns, Up: Properties and columns
3072 Properties are key-value pairs. They need to be inserted into a special
3073 drawer (*note Drawers::) with the name `PROPERTIES'. Each property is
3074 specified on a single line, with the key (surrounded by colons) first,
3075 and the value after it. Here is an example:
3079 *** Goldberg Variations
3081 :Title: Goldberg Variations
3082 :Composer: J.S. Bach
3084 :Publisher: Deutsche Grammphon
3088 You may define the allowed values for a particular property `XYZ' by
3089 setting a property `XYZ_ALL'. This special property is _inherited_, so
3090 if you set it in a level 1 entry, it will apply to the entire tree.
3091 When allowed values are defined, setting the corresponding property
3092 becomes easier and is less prone to typing errors. For the example
3093 with the CD collection, we can predefine publishers and the number of
3094 disks in a box like this:
3098 :NDisks_ALL: 1 2 3 4
3099 :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
3102 If you want to set properties that can be inherited by any entry in a
3103 file, use a line like
3105 #+PROPERTY: NDisks_ALL 1 2 3 4
3107 Property values set with the global variable `org-global-properties'
3108 can be inherited by all entries in all Org-mode files.
3110 The following commands help to work with properties:
3113 After an initial colon in a line, complete property keys. All
3114 keys used in the current file will be offered as possible
3117 `M-x org-insert-property-drawer'
3118 Insert a property drawer into the current entry. The drawer will
3119 be inserted early in the entry, but after the lines with planning
3120 information like deadlines.
3123 With the cursor in a property drawer, this executes property
3127 Set a property in the current entry. Both the property and the
3128 value can be inserted using completion.
3131 Switch property at point to the next/previous allowed value.
3134 Remove a property from the current entry.
3137 Globally remove a property, from all entries in the current file.
3140 File: org, Node: Special properties, Next: Property searches, Prev: Property syntax, Up: Properties and columns
3142 7.2 Special Properties
3143 ======================
3145 Special properties provide alternative access method to Org-mode
3146 features discussed in the previous chapters, like the TODO state or the
3147 priority of an entry. This interface exists so that you can include
3148 these states into columns view (*note Column view::). The following
3149 property names are special and should not be used as keys in the
3152 TODO The TODO keyword of the entry.
3153 TAGS The tags defined directly in the headline.
3154 ALLTAGS All tags, including inherited ones.
3155 PRIORITY The priority of the entry, a string with a single letter.
3156 DEADLINE The deadline time string, without the angular brackets.
3157 SCHEDULED The scheduling time stamp, without the angular brackets.
3160 File: org, Node: Property searches, Next: Column view, Prev: Special properties, Up: Properties and columns
3162 7.3 Property searches
3163 =====================
3165 To create sparse trees and special lists with selection based on
3166 properties, the same commands are used as for tag searches (*note Tag
3167 searches::), and the same logic applies. For example, a search string
3169 +WORK-BOSS+PRIORITY="A"+coffee="unlimited"+with={Sarah\|Denny}
3171 finds entries tagged `:WORK:' but not `:BOSS:', which also have a
3172 priority value `A', a `:coffee:' property with the value `unlimited',
3173 and a `:with:' property that is matched by the regular expression
3177 File: org, Node: Column view, Next: Property API, Prev: Property searches, Up: Properties and columns
3182 A great way to view and edit properties in an outline tree is _column
3183 view_. In column view, each outline item is turned into a table row.
3184 Columns in this table provide access to properties of the entries.
3185 Org-mode implements columns by overlaying a tabular structure over the
3186 headline of each item. While the headlines have been turned into a
3187 table row, you can still change the visibility of the outline tree.
3188 For example, you get a compact table by switching to CONTENTS view
3189 (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
3190 can still open, read, and edit the entry below each headline. Or, you
3191 can switch to column view after executing a sparse tree command and in
3192 this way get a table only for the selected items. Column view also
3193 works in agenda buffers (*note Agenda views::) where queries have
3194 collected selected items, possibly from a number of files.
3198 * Defining columns:: The COLUMNS format property
3199 * Using column view:: How to create and use column view
3202 File: org, Node: Defining columns, Next: Using column view, Prev: Column view, Up: Column view
3204 7.4.1 Defining Columns
3205 ----------------------
3207 Setting up a column view first requires defining the columns. This is
3208 done by defining a column format line.
3212 * Scope of column definitions:: Where defined, where valid?
3213 * Column attributes:: Appearance and content of a column
3216 File: org, Node: Scope of column definitions, Next: Column attributes, Prev: Defining columns, Up: Defining columns
3218 7.4.1.1 Scope of column definitions
3219 ...................................
3221 To define a column format for an entire file, use a line like
3223 #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3225 To specify a format that only applies to a specific tree, add a
3226 COLUMNS property to the top node of that tree, for example
3227 ** Top node for columns view
3229 :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3232 If a `COLUMNS' property is present in an entry, it defines columns
3233 for the entry itself, and for the entire subtree below it. Since the
3234 column definition is part of the hierarchical structure of the document,
3235 you can define columns on level 1 that are general enough for all
3236 sublevels, and more specific columns further down, when you edit a
3237 deeper part of the tree.
3240 File: org, Node: Column attributes, Prev: Scope of column definitions, Up: Defining columns
3242 7.4.1.2 Column attributes
3243 .........................
3245 A column definition sets the attributes of a column. The general
3246 definition looks like this:
3248 %[width]property[(title)][{summary-type}]
3250 Except for the percent sign and the property name, all items are
3251 optional. The individual parts have the following meaning:
3253 width An integer specifying the width of the column in characters.
3254 If omitted, the width will be determined automatically.
3255 property The property that should be edited in this column.
3256 (title) The header text for the column. If omitted, the
3257 property name is used.
3258 {summary-type} The summary type. If specified, the column values for
3259 parent nodes are computed from the children.
3260 Supported summary types are:
3261 {+} Sum numbers in this column.
3262 {:} Sum times, HH:MM:SS, plain numbers are hours.
3263 {X} Checkbox status, [X] if all children are [X].
3265 Here is an example for a complete columns definition, along with allowed
3268 :COLUMNS: %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
3269 :Owner_ALL: Tammy Mark Karl Lisa Don
3270 :Status_ALL: "In progress" "Not started yet" "Finished" ""
3271 :Approved_ALL: "[ ]" "[X]"
3273 The first column, `%25ITEM', means the first 25 characters of the
3274 item itself, i.e. of the headline. You probably always should start the
3275 column definition with the ITEM specifier. The other specifiers create
3276 columns `Owner' with a list of names as allowed values, for `Status'
3277 with four different possible values, and for a checkbox field
3278 `Approved'. When no width is given after the `%' character, the column
3279 will be exactly as wide as it needs to be in order to fully display all
3280 values. The `Approved' column does have a modified title (`Approved?',
3281 with a question mark). Summaries will be created for the `Time_Spent'
3282 column by adding time duration expressions like HH:MM, and for the
3283 `Approved' column, by providing an `[X]' status if all children have
3287 File: org, Node: Using column view, Prev: Defining columns, Up: Column view
3289 7.4.2 Using Column View
3290 -----------------------
3292 Turning column view on and off
3293 ..............................
3296 Create the column view for the local environment. This command
3297 searches the hierarchy, up from point, for a `COLUMNS' property
3298 that defines a format. When one is found, the column view table
3299 is established for the entire tree, starting from the entry that
3300 contains the `COLUMNS' property. If none is found, the format is
3301 taken from the `#+COLUMNS' line or from the variable
3302 `org-columns-default-format', and column view is established for
3303 the current entry and its subtree.
3311 `<left> <right> <up> <down>'
3312 Move through the column view from field to field.
3315 Switch to the next/previous allowed value of the field. For this,
3316 you have to have specified allowed values for a property.
3319 Same as `S-<left>/<right>'
3322 Edit the property at point. For the special properties, this will
3323 invoke the same interface that you normally use to change that
3324 property. For example, when editing a TAGS property, the tag
3325 completion or fast selection interface will pop up.
3328 View the full value of this property. This is useful if the width
3329 of the column is smaller than that of the value.
3332 Edit the list of allowed values for this property. If the list is
3333 found in the hierarchy, the modified values is stored there. If
3334 no list is found, the new value is stored in the first entry that
3335 is part of the current column view.
3337 Modifying the table structure
3338 .............................
3341 Make the column narrower/wider by one character.
3344 Insert a new column, to the right of the current column.
3347 Delete the current column.
3350 File: org, Node: Property API, Prev: Column view, Up: Properties and columns
3352 7.5 The Property API
3353 ====================
3355 There is a full API for accessing and changing properties. This API can
3356 be used by Emacs Lisp programs to work with properties and to implement
3357 features based on them. For more information see *Note Using the
3361 File: org, Node: Timestamps, Next: Agenda views, Prev: Properties and columns, Up: Top
3366 Items can be labeled with timestamps to make them useful for project
3371 * Time stamps:: Assigning a time to a tree entry
3372 * Creating timestamps:: Commands which insert timestamps
3373 * Deadlines and scheduling:: Planning your work
3374 * Progress logging:: Documenting when what work was done.
3377 File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
3379 8.1 Time stamps, deadlines and scheduling
3380 =========================================
3382 A time stamp is a specification of a date (possibly with time or a range
3383 of times) in a special format, either `<2003-09-16 Tue>' or
3384 `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1). A time
3385 stamp can appear anywhere in the headline or body of an org-tree entry.
3386 Its presence causes entries to be shown on specific dates in the agenda
3387 (*note Weekly/Daily agenda::). We distinguish:
3390 A simple time stamp just assigns a date/time to an item. This is
3391 just like writing down an appointment in a paper agenda, or like
3392 writing down an event in a diary, when you want to take note of
3393 when something happened. In the timeline and agenda displays, the
3394 headline of an entry associated with a plain time stamp will be
3395 shown exactly on that date.
3397 * Meet Peter at the movies <2006-11-01 Wed 19:15>
3398 * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
3400 TIME STAMP WITH REPEATER INTERVAL
3401 A time stamp may contain a _repeater interval_, indicating that it
3402 applies not only on the given date, but again and again after a
3403 certain interval of N days (d), weeks (w), months(m), or years(y).
3404 The following will show up in the agenda every Wednesday:
3406 * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
3408 DIARY-STYLE SEXP ENTRIES
3409 For more complex date specifications, Org-mode supports using the
3410 special sexp diary entries implemented in the Emacs calendar/diary
3411 package. For example
3413 * The nerd meeting on every 2nd Thursday of the month
3414 <%%(diary-float t 4 2)>
3417 Two time stamps connected by `--' denote a range. The headline
3418 will be shown on the first and last day of the range, and on any
3419 dates that are displayed and fall in the range. Here is an
3422 ** Meeting in Amsterdam
3423 <2004-08-23 Mon>--<2004-08-26 Thu>
3426 Just like a plain time stamp, but with square brackets instead of
3427 angular ones. These time stamps are inactive in the sense that
3428 they do _not_ trigger an entry to show up in the agenda.
3430 * Gillian comes late for the fifth time [2006-11-01 Wed]
3433 ---------- Footnotes ----------
3435 (1) This is the standard ISO date/time format. If you cannot get
3436 used to these, see *Note Custom time format::
3439 File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Timestamps
3441 8.2 Creating timestamps
3442 =======================
3444 For Org-mode to recognize time stamps, they need to be in the specific
3445 format. All commands listed below produce time stamps in the correct
3449 Prompt for a date and insert a corresponding time stamp. When the
3450 cursor is at a previously used time stamp, it is updated to NOW.
3451 When this command is used twice in succession, a time range is
3455 Like `C-c .', but use the alternative format which contains date
3456 and time. The default time can be rounded to multiples of 5
3457 minutes, see the option `org-time-stamp-rounding-minutes'.
3460 Like `C-c .', but insert an inactive time stamp that will not cause
3464 Insert a time stamp corresponding to the cursor date in the
3468 Access the Emacs calendar for the current date. If there is a
3469 timestamp in the current line, goto the corresponding date instead.
3472 Access the agenda for the date given by the time stamp or -range at
3473 point (*note Weekly/Daily agenda::).
3477 Change date at cursor by one day. These key bindings conflict with
3478 CUA-mode (*note Conflicts::).
3482 Change the item under the cursor in a timestamp. The cursor can
3483 be on a year, month, day, hour or minute. Note that if the cursor
3484 is in a headline and not at a time stamp, these same keys modify
3485 the priority of an item. (*note Priorities::). The key bindings
3486 also conflict with CUA-mode (*note Conflicts::).
3489 Evaluate a time range by computing the difference between start and
3490 end. With prefix arg, insert result after the time range (in a
3491 table: into the following column).
3495 * The date/time prompt:: How org-mode helps you entering date and time
3496 * Custom time format:: Making dates look differently
3499 File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
3501 8.2.1 The date/time prompt
3502 --------------------------
3504 When Org-mode prompts for a date/time, the prompt suggests to enter an
3505 ISO date. But it will in fact accept any string containing some date
3506 and/or time information. You can, for example, use `C-y' to paste a
3507 (possibly multi-line) string copied from an email message. Org-mode
3508 will find whatever information is in there and will replace anything not
3509 specified with the current date and time. For example:
3511 3-2-5 --> 2003-02-05
3512 feb 15 --> currentyear-02-15
3513 sep 12 9 --> 2009-09-12
3514 12:45 --> today 12:45
3515 22 sept 0:34 --> currentyear-09-22 0:34
3516 12 --> currentyear-currentmonth-12
3517 Fri --> nearest Friday (today or later)
3518 +4 --> 4 days from now (if +N is the only thing given)
3520 The function understands English month and weekday abbreviations. If
3521 you want to use unabbreviated names and/or other languages, configure
3522 the variables `parse-time-months' and `parse-time-weekdays'.
3524 Parallel to the minibuffer prompt, a calendar is popped up(1). When
3525 you exit the date prompt, either by clicking on a date in the calendar,
3526 or by pressing <RET>, the date selected in the calendar will be
3527 combined with the information entered at the prompt. You can control
3528 the calendar fully from the minibuffer:
3531 Scroll calendar backwards by one month.
3534 Scroll calendar forwards by one month.
3537 Select date by clicking on it.
3558 Choose date in calendar (only if nothing was typed into
3561 ---------- Footnotes ----------
3563 (1) If you don't need/want the calendar, configure the variable
3564 `org-popup-calendar-for-date-prompt'.
3567 File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
3569 8.2.2 Custom time format
3570 ------------------------
3572 Org-mode uses the standard ISO notation for dates and times as it is
3573 defined in ISO 8601. If you cannot get used to this and require another
3574 representation of date and time to keep you happy, you can get it by
3575 customizing the variables `org-display-custom-times' and
3576 `org-time-stamp-custom-formats'.
3579 Toggle the display of custom formats for dates and times.
3581 Org-mode needs the default format for scanning, so the custom date/time
3582 format does not _replace_ the default format - instead it is put _over_
3583 the default format using text properties. This has the following
3585 * You cannot place the cursor onto a time stamp anymore, only before
3588 * The `S-<up>/<down>' keys can no longer be used to adjust each
3589 component of a time stamp. If the cursor is at the beginning of
3590 the stamp, `S-<up>/<down>' will change the stamp by one day, just
3591 like `S-<left>/<right>'. At the end of the stamp, the time will
3592 be changed by one minute.
3594 * If the time stamp contains a range of clock times or a repeater,
3595 these will not be overlayed, but remain in the buffer as they were.
3597 * When you delete a time stamp character-by-character, it will only
3598 disappear from the buffer after _all_ (invisible) characters
3599 belonging to the ISO timestamp have been removed.
3601 * If the custom time stamp format is longer than the default and you
3602 are using dates in tables, table alignment will be messed up. If
3603 the custom format is shorter, things do work as expected.
3606 File: org, Node: Deadlines and scheduling, Next: Progress logging, Prev: Creating timestamps, Up: Timestamps
3608 8.3 Deadlines and Scheduling
3609 ============================
3611 A time stamp may be preceded by special keywords to facilitate planning
3615 The task (most likely a TODO item) is supposed to be finished on
3616 that date, and it will be listed then. In addition, the
3617 compilation for _today_ will carry a warning about the approaching
3618 or missed deadline, starting `org-deadline-warning-days' before
3619 the due date, and continuing until the entry is marked DONE. An
3622 *** TODO write article about the Earth for the Guide
3623 The editor in charge is [[bbdb:Ford Prefect]]
3624 DEADLINE: <2004-02-29 Sun>
3626 You can specify a different lead time for warnings for a specific
3627 deadlines using the following syntax. Here is an example with a
3628 warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
3631 You are planning to start working on that task on the given date.
3632 The headline will be listed under the given date(1). In addition,
3633 a reminder that the scheduled date has passed will be present in
3634 the compilation for _today_, until the entry is marked DONE.
3635 I.e., the task will automatically be forwarded until completed.
3637 *** TODO Call Trillian for a date on New Years Eve.
3638 SCHEDULED: <2004-12-25 Sat>
3642 * Inserting deadline/schedule:: Planning items
3643 * Repeated tasks:: Items that show up again and again
3645 ---------- Footnotes ----------
3647 (1) It will still be listed on that date after it has been marked
3648 DONE. If you don't like this, set the variable
3649 `org-agenda-skip-scheduled-if-done'.
3652 File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
3654 8.3.1 Inserting deadline/schedule
3655 ---------------------------------
3657 The following commands allow to quickly insert a deadline or to schedule
3661 Insert `DEADLINE' keyword along with a stamp. The insertion will
3662 happen in the line directly following the headline.
3665 Create a sparse tree with all deadlines that are either past-due,
3666 or which will become due within `org-deadline-warning-days'. With
3667 `C-u' prefix, show all deadlines in the file. With a numeric
3668 prefix, check that many days. For example, `C-1 C-c C-w' shows
3669 all deadlines due tomorrow.
3672 Insert `SCHEDULED' keyword along with a stamp. The insertion will
3673 happen in the line directly following the headline. Any CLOSED
3674 timestamp will be removed.
3677 File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
3679 8.3.2 Repeated Tasks
3680 --------------------
3682 Some tasks need to be repeated again and again, and Org-mode therefore
3683 allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
3685 ** TODO Pay the rent
3686 DEADLINE: <2005-10-01 Sat +1m>
3688 Deadlines and scheduled items produce entries in the agenda when they
3689 are over-due, so it is important to be able to mark such an entry as
3690 completed once you have done so. When you mark a DEADLINE or a SCHEDULE
3691 with the todo keyword DONE, it will no longer produce entries in the
3692 agenda. The problem with this is, however, that then also the _next_
3693 instance of the repeated entry will not be active. Org-mode deals with
3694 this in the following way: When you try to mark such an entry DONE
3695 (using `C-c C-t'), it will shift the base date of the repeating time
3696 stamp by the repeater interval, and immediately set the entry state
3697 back to TODO. In the example above, setting the state to DONE would
3698 actually switch the date like this:
3700 ** TODO Pay the rent
3701 DEADLINE: <2005-11-01 Tue +1m>
3703 You will also be prompted for a note that will be put under the
3704 DEADLINE line to keep a record that you actually acted on the previous
3705 instance of this deadline.
3707 As a consequence of shifting the base date, this entry will no
3708 longer be visible in the agenda when checking past dates, but all
3709 future instances will be visible.
3711 You may have both scheduling and deadline information for a specific
3712 task - just make sure that the repeater intervals on both are the same.
3715 File: org, Node: Progress logging, Prev: Deadlines and scheduling, Up: Timestamps
3717 8.4 Progress Logging
3718 ====================
3720 Org-mode can automatically record a time stamp when you mark a TODO item
3721 as DONE, or even each time when you change the state of a TODO item.
3722 You can also measure precisely the time you spent on specific items in a
3723 project by starting and stopping a clock when you start and stop working
3724 on an aspect of a project.
3728 * Closing items:: When was this entry marked DONE?
3729 * Tracking TODO state changes:: When did the status change?
3730 * Clocking work time:: When exactly did you work on this item?
3733 File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
3738 If you want to keep track of _when_ a certain TODO item was finished,
3739 turn on logging with(1)
3741 (setq org-log-done t)
3743 Then each time you turn a TODO entry into DONE using either `C-c C-t'
3744 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
3745 [timestamp]' will be inserted just after the headline. If you turn the
3746 entry back into a TODO item through further state cycling, that line
3747 will be removed again. In the timeline (*note Timeline::) and in the
3748 agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
3749 display the TODO items closed on each day, giving you an overview of
3750 what has been done on a day. If you want to record a note along with
3751 the timestamp, use(2)
3753 (setq org-log-done '(done))
3755 ---------- Footnotes ----------
3757 (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'
3759 (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
3762 File: org, Node: Tracking TODO state changes, Next: Clocking work time, Prev: Closing items, Up: Progress logging
3764 8.4.2 Tracking TODO state changes
3765 ---------------------------------
3767 When TODO keywords are used as workflow states (*note Workflow
3768 states::), you might want to keep track of when a state change occurred,
3769 and you may even want to attach notes to that state change. With the
3772 (setq org-log-done '(state))
3774 each state change will prompt you for a note that will be attached to
3775 the current headline. Very likely you do not want this verbose tracking
3776 all the time, so it is probably better to configure this behavior with
3777 in-buffer options. For example, if you are tracking purchases, put
3778 these into a separate file that starts with:
3780 #+SEQ_TODO: TODO ORDERED INVOICE PAYED RECEIVED SENT
3781 #+STARTUP: lognotestate
3784 File: org, Node: Clocking work time, Prev: Tracking TODO state changes, Up: Progress logging
3786 8.4.3 Clocking work time
3787 ------------------------
3789 Org-mode allows you to clock the time you spent on specific tasks in a
3790 project. When you start working on an item, you can start the clock.
3791 When you stop working on that task, or when you mark the task done, the
3792 clock is stopped and the corresponding time interval is recorded. It
3793 also computes the total time spent on each subtree of a project.
3796 Start the clock on the current item (clock-in). This inserts the
3797 CLOCK keyword together with a timestamp.
3800 Stop the clock (clock-out). The inserts another timestamp at the
3801 same location where the clock was last started. It also directly
3802 computes the resulting time in inserts it after the time range as
3803 `=> HH:MM'. See the variable `org-log-done' for the possibility to
3804 record an additional note together with the clock-out time
3808 Recompute the time interval after changing one of the time stamps.
3809 This is only necessary if you edit the time stamps directly. If
3810 you change them with `S-<cursor>' keys, the update is automatic.
3813 Changing the TODO state of an item to DONE automatically stops the
3814 clock if it is running in this same item.
3817 Cancel the current clock. This is useful if a clock was started by
3818 mistake, or if you ended up working on something else.
3821 Display time summaries for each subtree in the current buffer.
3822 This puts overlays at the end of each headline, showing the total
3823 time recorded under that heading, including the time of any
3824 subheadings. You can use visibility cycling to study the tree, but
3825 the overlays disappear when you change the buffer (see variable
3826 `org-remove-highlights-with-change') or press `C-c C-c'.
3829 Insert a dynamic block (*note Dynamic blocks::) containing a clock
3830 report as an org-mode table into the current file.
3831 #+BEGIN: clocktable :maxlevel 2 :emphasize nil
3834 If such a block already exists, its content is replaced by the new
3835 table. The `BEGIN' line can specify options:
3836 :maxlevels Maximum level depth to which times are listed in the table.
3837 :emphasize When `t', emphasize level one and level two items
3838 :block The time block to consider. This block is specified relative
3839 to the current time and may be any of these keywords:
3840 `today', `yesterday', `thisweek', `lastweek',
3841 `thismonth', `lastmonth', `thisyear', or `lastyear'.
3842 :tstart A time string specifying when to start considering times
3843 :tend A time string specifying when to stop considering times
3844 So to get a clock summary for the current day, you could write
3845 #+BEGIN: clocktable :maxlevel 2 :block today
3848 and to use a specific time range you could write(2)
3849 #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
3850 :tend "<2006-08-10 Thu 12:00>"
3855 Update all dynamic blocks (*note Dynamic blocks::). This is
3856 useful if you have several clocktable blocks in a buffer.
3858 The `l' key may be used in the timeline (*note Timeline::) and in
3859 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
3860 worked on or closed during a day.
3862 ---------- Footnotes ----------
3864 (1) The corresponding in-buffer setting is: `#+STARTUP:
3867 (2) Note that all parameters must be specified in a single line -
3868 the line is broken here only to fit it onto the manual.
3871 File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Timestamps, Up: Top
3876 Due to the way Org-mode works, TODO items, time-stamped items, and
3877 tagged headlines can be scattered throughout a file or even a number of
3878 files. To get an overview over open action items, or over events that
3879 are important for a particular date, this information must be collected,
3880 sorted and displayed in an organized way.
3882 Org-mode can select items based on various criteria, and display them
3883 in a separate buffer. Six different view types are provided:
3885 * an _agenda_ that is like a calendar and shows information for
3888 * a _TODO list_ that covers all unfinished action items,
3890 * a _tags view_, showings headlines based on the tags associated
3893 * a _timeline view_ that shows all events in a single Org-mode file,
3894 in time-sorted view,
3896 * a _stuck projects view_ showing projects that currently don't move
3899 * _custom views_ that are special tag/keyword searches and
3900 combinations of different views.
3902 The extracted information is displayed in a special _agenda buffer_.
3903 This buffer is read-only, but provides commands to visit the
3904 corresponding locations in the original Org-mode files, and even to
3905 edit these files remotely.
3907 Two variables control how the agenda buffer is displayed and whether
3908 the window configuration is restored when the agenda exits:
3909 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
3913 * Agenda files:: Files being searched for agenda information
3914 * Agenda dispatcher:: Keyboard access to agenda views
3915 * Built-in agenda views:: What is available out of the box?
3916 * Presentation and sorting:: How agenda items are prepared for display
3917 * Agenda commands:: Remote editing of org trees
3918 * Custom agenda views:: Defining special searches and views
3921 File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
3926 The information to be shown is collected from all _agenda files_, the
3927 files listed in the variable `org-agenda-files'(1). Thus even if you
3928 only work with a single Org-mode file, this file should be put into
3929 that list(2). You can customize `org-agenda-files', but the easiest
3930 way to maintain it is through the following commands
3933 Add current file to the list of agenda files. The file is added to
3934 the front of the list. If it was already in the list, it is moved
3935 to the front. With prefix arg, file is added/moved to the end.
3938 Remove current file from the list of agenda files.
3942 Cycle through agenda file list, visiting one file after the other.
3944 The Org menu contains the current list of files and can be used to
3947 ---------- Footnotes ----------
3949 (1) If the value of that variable is not a list, but a single file
3950 name, then the list of agenda files will be maintained in that external
3953 (2) When using the dispatcher, pressing `1' before selecting a
3954 command will actually limit the command to the current file, and ignore
3955 `org-agenda-files' until the next dispatcher command.
3958 File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
3960 9.2 The agenda dispatcher
3961 =========================
3963 The views are created through a dispatcher that should be bound to a
3964 global key, for example `C-c a' (*note Installation::). In the
3965 following we will assume that `C-c a' is indeed how the dispatcher is
3966 accessed and list keyboard access to commands accordingly. After
3967 pressing `C-c a', an additional letter is required to execute a
3968 command. The dispatcher offers the following default commands:
3970 Create the calendar-like agenda (*note Weekly/Daily agenda::).
3973 Create a list of all TODO items (*note Global TODO list::).
3976 Create a list of headlines matching a TAGS expression (*note
3977 Matching tags and properties::).
3980 Create the timeline view for the current buffer (*note Timeline::).
3983 Create a list of stuck projects (*note Stuck projects::).
3986 Restrict an agenda command to the current buffer. After pressing
3987 `1', you still need to press the character selecting the command.
3990 If there is an active region, restrict the following agenda
3991 command to the region. Otherwise, restrict it to the current
3992 subtree. After pressing `0', you still need to press the
3993 character selecting the command.
3995 You can also define custom commands that will be accessible through
3996 the dispatcher, just like the default commands. This includes the
3997 possibility to create extended agenda buffers that contain several
3998 blocks together, for example the weekly agenda, the global TODO list and
3999 a number of special tags matches. *Note Custom agenda views::.
4002 File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
4004 9.3 The built-in agenda views
4005 =============================
4007 In this section we describe the built-in views.
4011 * Weekly/Daily agenda:: The calendar page with current tasks
4012 * Global TODO list:: All unfinished action items
4013 * Matching tags and properties:: Structured information with fine-tuned search
4014 * Timeline:: Time-sorted view for single file
4015 * Stuck projects:: Find projects you need to review
4018 File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
4020 9.3.1 The weekly/daily agenda
4021 -----------------------------
4023 The purpose of the weekly/daily _agenda_ is to act like a page of a
4024 paper agenda, showing all the tasks for the current week or day.
4027 Compile an agenda for the current week from a list of org files.
4028 The agenda shows the entries for each day. With a `C-u' prefix (or
4029 when the variable `org-agenda-include-all-todo' is `t'), all
4030 unfinished TODO items (including those without a date) are also
4031 listed at the beginning of the buffer, before the first date.
4033 Remote editing from the agenda buffer means, for example, that you
4034 can change the dates of deadlines and appointments from the agenda
4035 buffer. The commands available in the Agenda buffer are listed in
4036 *Note Agenda commands::.
4038 Calendar/Diary integration
4039 ..........................
4041 Emacs contains the calendar and diary by Edward M. Reingold. The
4042 calendar displays a three-month calendar with holidays from different
4043 countries and cultures. The diary allows you to keep track of
4044 anniversaries, lunar phases, sunrise/set, recurrent appointments
4045 (weekly, monthly) and more. In this way, it is quite complementary to
4046 Org-mode. It can be very useful to combine output from Org-mode with
4049 In order to include entries from the Emacs diary into Org-mode's
4050 agenda, you only need to customize the variable
4052 (setq org-agenda-include-diary t)
4054 After that, everything will happen automatically. All diary entries
4055 including holidays, anniversaries etc will be included in the agenda
4056 buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
4057 the agenda buffer to jump to the diary file in order to edit existing
4058 diary entries. The `i' command to insert new entries for the current
4059 date works in the agenda buffer, as well as the commands `S', `M', and
4060 `C' to display Sunrise/Sunset times, show lunar phases and to convert
4061 to other calendars, respectively. `c' can be used to switch back and
4062 forth between calendar and agenda.
4064 If you are using the diary only for sexp entries and holidays, it is
4065 faster to not use the above setting, but instead to copy or even move
4066 the entries into an Org-mode file. Org-mode evaluates diary-style sexp
4067 entries, and does it faster because there is no overhead for first
4068 creating the diary display. Note that the sexp entries must start at
4069 the left margin, no white space is allowed before them. For example,
4070 the following segment of an Org-mode file will be processed and entries
4071 will be made in the agenda:
4073 * Birthdays and similar stuff
4075 %%(org-calendar-holiday) ; special function for holiday names
4077 %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
4078 %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
4081 File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
4083 9.3.2 The global TODO list
4084 --------------------------
4086 The global TODO list contains all unfinished TODO items, formatted and
4087 collected into a single place.
4090 Show the global TODO list. This collects the TODO items from all
4091 agenda files (*note Agenda views::) into a single buffer. The
4092 buffer is in `agenda-mode', so there are commands to examine and
4093 manipulate the TODO entries directly from that buffer (*note
4097 Like the above, but allows selection of a specific TODO keyword.
4098 You can also do this by specifying a prefix argument to `C-c a t'.
4099 With a `C-u' prefix you are prompted for a keyword, and you may
4100 also specify several keywords by separating them with `|' as
4101 boolean OR operator. With a numeric prefix, the Nth keyword in
4102 `org-todo-keywords' is selected. The `r' key in the agenda buffer
4103 regenerates it, and you can give a prefix argument to this command
4104 to change the selected TODO keyword, for example `3 r'. If you
4105 often need a search for a specific keyword, define a custom
4106 command for it (*note Agenda dispatcher::).
4107 Matching specific TODO keywords can also be done as part of a tags
4108 search (*note Tag searches::).
4110 Remote editing of TODO items means that you can change the state of a
4111 TODO entry with a single key press. The commands available in the TODO
4112 list are described in *Note Agenda commands::.
4114 Normally the global todo list simply shows all headlines with TODO
4115 keywords. This list can become very long. There are two ways to keep
4117 - Some people view a TODO item that has been _scheduled_ for
4118 execution (*note Time stamps::) as no longer _open_. Configure the
4119 variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
4120 items from the global TODO list.
4122 - TODO items may have sublevels to break up the task into subtasks.
4123 In such cases it may be enough to list only the highest level TODO
4124 headline and omit the sublevels from the global list. Configure
4125 the variable `org-agenda-todo-list-sublevels' to get this behavior.
4128 File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
4130 9.3.3 Matching Tags and Properties
4131 ----------------------------------
4133 If headlines in the agenda files are marked with _tags_ (*note Tags::),
4134 you can select headlines based on the tags that apply to them and
4135 collect them into an agenda buffer.
4138 Produce a list of all headlines that match a given set of tags.
4139 The command prompts for a selection criterion, which is a boolean
4140 logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
4141 `WORK|HOME' (*note Tags::). If you often need a specific search,
4142 define a custom command for it (*note Agenda dispatcher::).
4145 Like `C-c a m', but only select headlines that are also TODO items
4146 and force checking subitems (see variable
4147 `org-tags-match-list-sublevels'). Matching specific todo keywords
4148 together with a tags match is also possible, see *Note Tag
4151 The commands available in the tags list are described in *Note
4155 File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
4157 9.3.4 Timeline for a single file
4158 --------------------------------
4160 The timeline summarizes all time-stamped items from a single Org-mode
4161 file in a _time-sorted view_. The main purpose of this command is to
4162 give an overview over events in a project.
4165 Show a time-sorted view of the org file, with all time-stamped
4166 items. When called with a `C-u' prefix, all unfinished TODO
4167 entries (scheduled or not) are also listed under the current date.
4169 The commands available in the timeline buffer are listed in *Note
4173 File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
4175 9.3.5 Stuck projects
4176 --------------------
4178 If you are following a system like David Allen's GTD to organize your
4179 work, one of the "duties" you have is a regular review to make sure
4180 that all projects move along. A _stuck_ project is a project that has
4181 no defined next actions, so it will never show up in the TODO lists
4182 Org-mode produces. During the review, you need to identify such
4183 projects and define next actions for them.
4186 List projects that are stuck.
4189 Customize the variable `org-stuck-projects' to define what a stuck
4190 project is and how to find it.
4192 You almost certainly will have to configure this view before it will
4193 work for you. The built-in default assumes that all your projects are
4194 level-2 headlines, and that a project is not stuck if it has at least
4195 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
4197 Lets assume that you, in your own way of using Org-mode, identify
4198 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
4199 indicate a project that should not be considered yet. Lets further
4200 assume that the todo keyword DONE marks finished projects, and that NEXT
4201 and TODO indicate next actions. The tag @SHOP indicates shopping and
4202 is a next action even without the NEXT tag. Finally, if the project
4203 contains the special word IGNORE anywhere, it should not be listed
4204 either. In this case you would start by identifying eligible projects
4205 with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
4206 NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
4207 not stuck. The correct customization for this is
4209 (setq org-stuck-projects
4210 '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
4214 File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
4216 9.4 Presentation and sorting
4217 ============================
4219 Before displaying items in an agenda view, Org-mode visually prepares
4220 the items and sorts them. Each item occupies a single line. The line
4221 starts with a _prefix_ that contains the _category_ (*note
4222 Categories::) of the item and other important information. You can
4223 customize the prefix using the option `org-agenda-prefix-format'. The
4224 prefix is followed by a cleaned-up version of the outline headline
4225 associated with the item.
4229 * Categories:: Not all tasks are equal
4230 * Time-of-day specifications:: How the agenda knows the time
4231 * Sorting of agenda items:: The order of things
4234 File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
4239 The category is a broad label assigned to each agenda item. By default,
4240 the category is simply derived from the file name, but you can also
4241 specify it with a special line in the buffer, like this:
4245 If there are several such lines in a file, each specifies the
4246 category for the text below it (but the first category also applies to
4247 any text before the first CATEGORY line). The display in the agenda
4248 buffer looks best if the category is not longer than 10 characters.
4251 File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
4253 9.4.2 Time-of-Day Specifications
4254 --------------------------------
4256 Org-mode checks each agenda item for a time-of-day specification. The
4257 time can be part of the time stamp that triggered inclusion into the
4258 agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
4259 specified with two time stamps, like
4260 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
4262 In the headline of the entry itself, a time(range) may also appear as
4263 plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
4264 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
4265 entries are recognized as well.
4267 For agenda display, Org-mode extracts the time and displays it in a
4268 standard 24 hour format as part of the prefix. The example times in
4269 the previous paragraphs would end up in the agenda like this:
4271 8:30-13:00 Arthur Dent lies in front of the bulldozer
4272 12:45...... Ford Prefect arrives and takes Arthur to the pub
4273 19:00...... The Vogon reads his poem
4274 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4276 If the agenda is in single-day mode, or for the display of today, the
4277 timed entries are embedded in a time grid, like
4279 8:00...... ------------------
4280 8:30-13:00 Arthur Dent lies in front of the bulldozer
4281 10:00...... ------------------
4282 12:00...... ------------------
4283 12:45...... Ford Prefect arrives and takes Arthur to the pub
4284 14:00...... ------------------
4285 16:00...... ------------------
4286 18:00...... ------------------
4287 19:00...... The Vogon reads his poem
4288 20:00...... ------------------
4289 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4291 The time grid can be turned on and off with the variable
4292 `org-agenda-use-time-grid', and can be configured with
4293 `org-agenda-time-grid'.
4296 File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
4298 9.4.3 Sorting of agenda items
4299 -----------------------------
4301 Before being inserted into a view, the items are sorted. How this is
4302 done depends on the type of view.
4303 * For the daily/weekly agenda, the items for each day are sorted.
4304 The default order is to first collect all items containing an
4305 explicit time-of-day specification. These entries will be shown
4306 at the beginning of the list, as a _schedule_ for the day. After
4307 that, items remain grouped in categories, in the sequence given by
4308 `org-agenda-files'. Within each category, items are sorted by
4309 priority (*note Priorities::), which is composed of the base
4310 priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
4311 plus additional increments for overdue scheduled or deadline items.
4313 * For the TODO list, items remain in the order of categories, but
4314 within each category, sorting takes place according to priority
4315 (*note Priorities::).
4317 * For tags matches, items are not sorted at all, but just appear in
4318 the sequence in which they are found in the agenda files.
4320 Sorting can be customized using the variable
4321 `org-agenda-sorting-strategy'.
4324 File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
4326 9.5 Commands in the agenda buffer
4327 =================================
4329 Entries in the agenda buffer are linked back to the org file or diary
4330 file where they originate. You are not allowed to edit the agenda
4331 buffer itself, but commands are provided to show and jump to the
4332 original entry location, and to edit the org-files "remotely" from the
4333 agenda buffer. In this way, all information is stored only once,
4334 removing the risk that your agenda and note files may diverge.
4336 Some commands can be executed with mouse clicks on agenda lines. For
4337 the other commands, the cursor needs to be in the desired line.
4343 Next line (same as <up>).
4346 Previous line (same as <down>).
4353 Display the original location of the item in another window.
4356 Display original location and recenter that window.
4361 Go to the original location of the item in another window. Under
4362 Emacs 22, `mouse-1' will also works for this.
4365 Go to the original location of the item and delete other windows.
4368 Toggle Follow mode. In Follow mode, as you move the cursor through
4369 the agenda buffer, the other window always shows the corresponding
4370 location in the org file. The initial setting for this mode in new
4371 agenda buffers can be set with the variable
4372 `org-agenda-start-with-follow-mode'.
4375 Display the entire subtree of the current item in an indirect
4376 buffer. With numerical prefix ARG, go up to this level and then
4377 take that tree. If ARG is negative, go up that many levels. With
4378 `C-u' prefix, do not remove the previously used indirect buffer.
4381 Toggle Logbook mode. In Logbook mode, entries that where marked
4382 DONE while logging was on (variable `org-log-done') are shown in
4383 the agenda, as are entries that have been clocked on that day.
4389 Delete other windows.
4392 Switch to day/week/month/year view. When switching to day or week
4393 view, this setting becomes the default for subseqent agenda
4394 commands. Since month and year views are slow to create, the do
4395 not become the default.
4398 Toggle the inclusion of diary entries. See *Note Weekly/Daily
4402 Toggle the time grid on and off. See also the variables
4403 `org-agenda-use-time-grid' and `org-agenda-time-grid'.
4406 Recreate the agenda buffer, for example to reflect the changes
4407 after modification of the time stamps of items with S-<left> and
4408 S-<right>. When the buffer is the global todo list, a prefix
4409 argument is interpreted to create a selective list for a specific
4413 Save all Org-mode buffers in the current Emacs session.
4416 Display the following `org-agenda-ndays' days. For example, if
4417 the display covers a week, switch to the following week. With
4418 prefix arg, go forward that many times `org-agenda-ndays' days.
4421 Display the previous dates.
4433 Undo a change due to a remote editing command. The change is
4434 undone both in the agenda buffer and in the remote buffer.
4437 Change the TODO state of the item, both in the agenda and in the
4441 Delete the current agenda item along with the entire subtree
4442 belonging to it in the original Org-mode file. If the text to be
4443 deleted remotely is longer than one line, the kill needs to be
4444 confirmed by the user. See variable `org-agenda-confirm-kill'.
4447 Archive the subtree corresponding to the current headline.
4450 Show all tags associated with the current item. Because of
4451 inheritance, this may be more than the tags listed in the line
4455 Set tags for the current headline.
4458 Toggle the ARCHIVE tag for the current headline.
4461 Set the priority for the current item. Org-mode prompts for the
4462 priority character. If you reply with <SPC>, the priority cookie
4463 is removed from the entry.
4466 Display weighted priority of current item.
4470 Increase the priority of the current item. The priority is
4471 changed in the original buffer, but the agenda is not resorted.
4472 Use the `r' key for this.
4476 Decrease the priority of the current item.
4482 Set a deadline for this item.
4485 Change the time stamp associated with the current line by one day
4486 into the future. With prefix argument, change it by that many
4487 days. For example, `3 6 5 S-<right>' will change it by a year.
4488 The stamp is changed in the original org file, but the change is
4489 not directly reflected in the agenda buffer. Use the `r' key to
4493 Change the time stamp associated with the current line by one day
4497 Change the time stamp associated with the current line to today.
4498 The key `>' has been chosen, because it is the same as `S-.' on my
4502 Start the clock on the current item. If a clock is running
4503 already, it is stopped first.
4506 Stop the previously started clock.
4509 Cancel the currently running clock.
4515 Open the Emacs calendar and move to the date at the agenda cursor.
4518 When in the calendar, compute and show the Org-mode agenda for the
4522 Insert a new entry into the diary. Prompts for the type of entry
4523 (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
4524 new entry in the diary, just as `i d' etc. would do in the
4525 calendar. The date is taken from the cursor position.
4528 Show the phases of the moon for the three months around current
4532 Show sunrise and sunset times. The geographical location must be
4533 set with calendar variables, see documentation of the Emacs
4537 Convert the date at cursor into many other cultural and historic
4541 Show holidays for three month around the cursor date.
4544 Export a single iCalendar file containing entries from all agenda
4551 Write the agenda view to a file. Depending on the extension of the
4552 selected file name, the view will be exported as HTML (extension
4553 `.html' or `.htm'), Postscript (extension `.ps'), or plain text
4554 (any other extension). Use the variable
4555 `org-agenda-exporter-settings' to set options for `ps-print' and
4556 for `htmlize' to be used during export.
4562 Quit agenda, remove the agenda buffer.
4565 Exit agenda, remove the agenda buffer and all buffers loaded by
4566 Emacs for the compilation of the agenda. Buffers created by the
4567 user to visit org files will not be removed.
4570 File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
4572 9.6 Custom agenda views
4573 =======================
4575 Custom agenda commands serve two purposes: to store and quickly access
4576 frequently used TODO and tags searches, and to create special composite
4577 agenda buffers. Custom agenda commands will be accessible through the
4578 dispatcher (*note Agenda dispatcher::), just like the default commands.
4582 * Storing searches:: Type once, use often
4583 * Block agenda:: All the stuff you need in a single buffer
4584 * Setting Options:: Changing the rules
4585 * Exporting Agenda Views:: Writing agendas to files.
4586 * Extracting Agenda Information for other programs::
4589 File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
4591 9.6.1 Storing searches
4592 ----------------------
4594 The first application of custom searches is the definition of keyboard
4595 shortcuts for frequently used searches, either creating an agenda
4596 buffer, or a sparse tree (the latter covering of course only the current
4597 buffer). Custom commands are configured in the variable
4598 `org-agenda-custom-commands'. You can customize this variable, for
4599 example by pressing `C-c a C'. You can also directly set it with Emacs
4600 Lisp in `.emacs'. The following example contains all valid search
4603 (setq org-agenda-custom-commands
4604 '(("w" todo "WAITING")
4605 ("W" todo-tree "WAITING")
4606 ("u" tags "+BOSS-URGENT")
4607 ("v" tags-todo "+BOSS-URGENT")
4608 ("U" tags-tree "+BOSS-URGENT")
4609 ("f" occur-tree "\\<FIXME\\>")))
4611 The initial single-character string in each entry defines the character
4612 you have to press after the dispatcher command `C-c a' in order to
4613 access the command. The second parameter is the search type, followed
4614 by the string or regular expression to be used for the matching. The
4615 example above will therefore define:
4618 as a global search for TODO entries with `WAITING' as the TODO
4622 as the same search, but only in the current buffer and displaying
4623 the results as a sparse tree
4626 as a global tags search for headlines marked `:BOSS:' but not
4630 as the same search as `C-c a u', but limiting the search to
4631 headlines that are also TODO items
4634 as the same search as `C-c a u', but only in the current buffer and
4635 displaying the result as a sparse tree
4638 to create a sparse tree (again: current buffer only) with all
4639 entries containing the word `FIXME'.
4642 File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
4647 Another possibility is the construction of agenda views that comprise
4648 the results of _several_ commands, each of which creates a block in the
4649 agenda buffer. The available commands include `agenda' for the daily
4650 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
4651 todo list (as constructed with `C-c a t'), and the matching commands
4652 discussed above: `todo', `tags', and `tags-todo'. Here are two
4655 (setq org-agenda-custom-commands
4656 '(("h" "Agenda and Home-related tasks"
4660 ("o" "Agenda and Office-related tasks"
4665 This will define `C-c a h' to create a multi-block view for stuff you
4666 need to attend to at home. The resulting agenda buffer will contain
4667 your agenda for the current week, all TODO items that carry the tag
4668 `HOME', and also all lines tagged with `GARDEN'. Finally the command
4669 `C-c a o' provides a similar view for office tasks.
4672 File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
4674 9.6.3 Setting Options for custom commands
4675 -----------------------------------------
4677 Org-mode contains a number of variables regulating agenda construction
4678 and display. The global variables define the behavior for all agenda
4679 commands, including the custom commands. However, if you want to change
4680 some settings just for a single custom view, you can do so. Setting
4681 options requires inserting a list of variable names and values at the
4682 right spot in `org-agenda-custom-commands'. For example:
4684 (setq org-agenda-custom-commands
4685 '(("w" todo "WAITING"
4686 ((org-agenda-sorting-strategy '(priority-down))
4687 (org-agenda-prefix-format " Mixed: ")))
4688 ("U" tags-tree "+BOSS-URGENT"
4689 ((org-show-following-heading nil)
4690 (org-show-hierarchy-above nil)))))
4692 Now the `C-c a w' command will sort the collected entries only by
4693 priority, and the prefix format is modified to just say ` Mixed:'
4694 instead of giving the category of the entry. The sparse tags tree of
4695 `C-c a U' will now turn out ultra-compact, because neither the headline
4696 hierarchy above the match, nor the headline following the match will be
4699 For command sets creating a block agenda,
4700 `org-agenda-custom-commands' has two separate spots for setting
4701 options. You can add options that should be valid for just a single
4702 command in the set, and options that should be valid for all commands in
4703 the set. The former are just added to the command entry, the latter
4704 must come after the list of command entries. Going back to the block
4705 agenda example (*note Block agenda::), let's change the sorting strategy
4706 for the `C-c a h' commands to `priority-down', but let's sort the
4707 results for GARDEN tags query in the opposite order, `priority-up'.
4708 This would look like this:
4710 (setq org-agenda-custom-commands
4711 '(("h" "Agenda and Home-related tasks"
4715 ((org-agenda-sorting-strategy '(priority-up)))))
4716 ((org-agenda-sorting-strategy '(priority-down))))
4717 ("o" "Agenda and Office-related tasks"
4722 As you see, the values and parenthesis setting is a little complex.
4723 When in doubt, use the customize interface to set this variable - it
4724 fully supports its structure. Just one caveat: When setting options in
4725 this interface, the _values_ are just lisp expressions. So if the
4726 value is a string, you need to add the double quotes around the value
4730 File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
4732 9.6.4 Exporting Agenda Views
4733 ----------------------------
4735 If you are away from your computer, it can be very useful to have a
4736 printed version of some agenda views to carry around. Org-mode can
4737 export custom agenda views as plain text, HTML(1) and postscript. If
4738 you want to do this only occasionally, use the command
4741 Write the agenda view to a file. Depending on the extension of the
4742 selected file name, the view will be exported as HTML (extension
4743 `.html' or `.htm'), Postscript (extension `.ps'), or plain text
4744 (any other extension). Use the variable
4745 `org-agenda-exporter-settings' to set options for `ps-print' and
4746 for `htmlize' to be used during export, for example
4747 (setq org-agenda-exporter-settings
4748 '((ps-number-of-columns 2)
4749 (ps-landscape-mode t)
4750 (htmlize-output-type 'css)))
4752 If you need to export certain agenda views frequently, you can
4753 associate any custom agenda command with a list of output file names
4754 (2). Here is an example that first does define custom commands for the
4755 agenda and the global todo list, together with a number of files to
4756 which to export them. Then we define two block agenda commands and
4757 specify filenames for them as well. File names can be relative to the
4758 current working directory, or absolute.
4760 (setq org-agenda-custom-commands
4761 '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
4762 ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
4763 ("h" "Agenda and Home-related tasks"
4768 ("~/views/home.html"))
4769 ("o" "Agenda and Office-related tasks"
4774 ("~/views/office.ps"))))
4776 The extension of the file name determines the type of export. If it
4777 is `.html', Org-mode will use the `htmlize.el' package to convert the
4778 buffer to HTML and save it to this file name. If the extension is
4779 `.ps', `ps-print-buffer-with-faces' is used to produce postscript
4780 output. Any other extension produces a plain ASCII file.
4782 The export files are _not_ created when you use one of those
4783 commands interactively. Instead, there is a special command to produce
4784 _all_ specified files in one step:
4787 Export all agenda views that have export filenames associated with
4790 You can use the options section of the custom agenda commands to also
4791 set options for the export commands. For example:
4793 (setq org-agenda-custom-commands
4795 ((ps-number-of-columns 2)
4796 (ps-landscape-mode t)
4797 (org-agenda-prefix-format " [ ] ")
4798 (org-agenda-with-colors nil)
4799 (org-agenda-remove-tags t))
4802 This command sets two options for the postscript exporter, to make it
4803 print in two columns in landscape format - the resulting page can be cut
4804 in two and then used in a paper agenda. The remaining settings modify
4805 the agenda prefix to omit category and scheduling information, and
4806 instead include a checkbox to check off items. We also remove the tags
4807 to make the lines compact, and we don't want to use colors for the
4808 black-and-white printer. Settings specified in
4809 `org-agenda-exporter-settings' will also apply, but the settings in
4810 `org-agenda-custom-commands' take precedence.
4812 From the command line you may also use
4813 emacs -f org-batch-store-agenda-views -kill
4814 or, if you need to modify some parameters
4815 emacs -eval '(org-batch-store-agenda-views \
4816 org-agenda-ndays 30 \
4817 org-agenda-include-diary nil \
4818 org-agenda-files (quote ("~/org/project.org")))' \
4820 which will create the agenda views restricted to the file
4821 `~/org/project.org', without diary entries and with 30 days extent.
4823 ---------- Footnotes ----------
4825 (1) You need to install Hrvoje Niksic' `htmlize.el'.
4827 (2) If you want to store standard views like the weekly agenda or
4828 the global TODO list as well, you need to define custom commands for
4829 them in order to be able to specify filenames.
4832 File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
4834 9.6.5 Extracting Agenda Information for other programs
4835 ------------------------------------------------------
4837 Org-mode provides commands to access agenda information for the command
4838 line in emacs batch mode. This extracted information can be sent
4839 directly to a printer, or it can be read by a program that does further
4840 processing of the data. The first of these commands is the function
4841 `org-batch-agenda', that produces an agenda view and sends it as ASCII
4842 text to STDOUT. The command takes a single string as parameter. If
4843 the string has length 1, it is used as a key to one of the commands you
4844 have configured in `org-agenda-custom-commands', basically any key you
4845 can use after `C-c a'. For example, to directly print the current TODO
4848 emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
4850 If the parameter is a string with 2 or more characters, it is used
4851 as a tags/todo match string. For example, to print your local shopping
4852 list (all items with the tag `shop', but excluding the tag `NewYork'),
4855 emacs -batch -l ~/.emacs \
4856 -eval '(org-batch-agenda "+shop-NewYork")' | lpr
4858 You may also modify parameters on the fly like this:
4860 emacs -batch -l ~/.emacs \
4861 -eval '(org-batch-agenda "a" \
4862 org-agenda-ndays 30 \
4863 org-agenda-include-diary nil \
4864 org-agenda-files (quote ("~/org/project.org")))' \
4867 which will produce a 30 day agenda, fully restricted to the Org file
4868 `~/org/projects.org', not even including the diary.
4870 If you want to process the agenda data in more sophisticated ways,
4871 you can use the command `org-batch-agenda-csv' to get a comma-separated
4872 list of values for each agenda item. Each line in the output will
4873 contain a number of fields separated by commas. The fields in a line
4876 category The category of the item
4877 head The headline, without TODO kwd, TAGS and PRIORITY
4878 type The type of the agenda entry, can be
4879 todo selected in TODO match
4880 tagsmatch selected in tags match
4881 diary imported from diary
4884 timestamp appointment, selected by timestamp
4885 closed entry was closed on date
4886 upcoming-deadline warning about nearing deadline
4887 past-scheduled forwarded scheduled item
4888 block entry has date block including date
4889 todo The todo keyword, if any
4890 tags All tags including inherited ones, separated by colons
4891 date The relevant date, like 2007-2-14
4892 time The time, like 15:00-16:50
4893 extra String with extra planning info
4894 priority-l The priority letter if any was given
4895 priority-n The computed numerical priority
4897 Time and date will only be given if a timestamp (or deadline/scheduled)
4898 lead to the selection of the item.
4900 A CSV list like this is very easy to use in a post processing script.
4901 For example, here is a Perl program that gets the TODO list from
4902 Emacs/org-mode and prints all the items, preceded by a checkbox:
4906 # define the Emacs command to run
4907 $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
4909 # run it and capture the output
4910 $agenda = qx{$cmd 2>/dev/null};
4912 # loop over all lines
4913 foreach $line (split(/\n/,$agenda)) {
4915 # get the individual values
4916 ($category,$head,$type,$todo,$tags,$date,$time,$extra,
4917 $priority_l,$priority_n) = split(/,/,$line);
4919 # proccess and print
4920 print "[ ] $head\n";
4924 File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
4929 Plain ASCII is normally sufficient for almost all note taking. One
4930 exception, however, are scientific notes which need to be able to
4931 contain mathematical symbols and the occasional formula. LaTeX(1) is
4932 widely used to typeset scientific documents. Org-mode supports
4933 embedding LaTeX code into its files, because many academics are used to
4934 read LaTeX source code, and because it can be readily processed into
4935 images for HTML production.
4937 It is not necessary to mark LaTeX macros and code in any special way.
4938 If you observe a few conventions, Org-mode knows how to find it and what
4943 * Math symbols:: TeX macros for symbols and Greek letters
4944 * Subscripts and Superscripts:: Simple syntax for raising/lowering text
4945 * LaTeX fragments:: Complex formulas made easy
4946 * Processing LaTeX fragments:: Previewing LaTeX processing
4947 * CDLaTeX mode:: Speed up entering of formulas
4949 ---------- Footnotes ----------
4951 (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
4952 Many of the features described here as "LaTeX" are really from TeX, but
4953 for simplicity I am blurring this distinction.
4956 File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
4961 You can use LaTeX macros to insert special symbols like `\alpha' to
4962 indicate the Greek letter, or `\to' to indicate an arrow. Completion
4963 for these macros is available, just type `\' and maybe a few letters,
4964 and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
4965 Org-mode allows these macros to be present without surrounding math
4966 delimiters, for example:
4968 Angles are written as Greek letters \alpha, \beta and \gamma.
4970 During HTML export (*note HTML export::), these symbols are
4971 translated into the proper syntax for HTML, for the above examples this
4972 is `α' and `→', respectively.
4975 File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
4977 10.2 Subscripts and Superscripts
4978 ================================
4980 Just like in LaTeX, `^' and `_' are used to indicate super- and
4981 subscripts. Again, these can be used without embedding them in
4982 math-mode delimiters. To increase the readability of ASCII text, it is
4983 not necessary (but OK) to surround multi-character sub- and superscripts
4984 with curly braces. For example
4986 The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
4987 the sun is R_{sun} = 6.96 x 10^8 m.
4989 To avoid interpretation as raised or lowered text, you can quote `^'
4990 and `_' with a backslash: `\_' and `\^'.
4992 During HTML export (*note HTML export::), subscript and superscripts
4993 are surrounded with `<sub>' and `<sup>' tags, respectively.
4996 File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
4998 10.3 LaTeX fragments
4999 ====================
5001 With symbols, sub- and superscripts, HTML is pretty much at its end when
5002 it comes to representing mathematical formulas(1). More complex
5003 expressions need a dedicated formula processor. To this end, Org-mode
5004 can contain arbitrary LaTeX fragments. It provides commands to preview
5005 the typeset result of these fragments, and upon export to HTML, all
5006 fragments will be converted to images and inlined into the HTML
5007 document(2). For this to work you need to be on a system with a working
5008 LaTeX installation. You also need the `dvipng' program, available at
5009 `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
5010 be used when processing a fragment can be configured with the variable
5011 `org-format-latex-header'.
5013 LaTeX fragments don't need any special marking at all. The following
5014 snippets will be identified as LaTeX source code:
5015 * Environments of any kind. The only requirement is that the
5016 `\begin' statement appears on a new line, preceded by only
5019 * Text within the usual LaTeX math delimiters. To avoid conflicts
5020 with currency specifications, single `$' characters are only
5021 recognized as math delimiters if the enclosed text contains at
5022 most two line breaks, is directly attached to the `$' characters
5023 with no whitespace in between, and if the closing `$' is followed
5024 by whitespace or punctuation. For the other delimiters, there is
5025 no such restriction, so when in doubt, use `\(...\)' as inline
5030 \begin{equation} % arbitrary environments,
5031 x=\sqrt{b} % even tables, figures
5032 \end{equation} % etc
5034 If $a^2=b$ and \( b=2 \), then the solution must be
5035 either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
5037 If you need any of the delimiter ASCII sequences for other purposes, you
5038 can configure the option `org-format-latex-options' to deselect the
5039 ones you do not wish to have interpreted by the LaTeX converter.
5041 ---------- Footnotes ----------
5043 (1) Yes, there is MathML, but that is not yet fully supported by
5044 many browsers, and there is no decent converter for turning LaTeX or
5045 ASCII representations of formulas into MathML. So for the time being,
5046 converting formulas into images seems the way to go.
5048 (2) The LaTeX export will not use images for displaying LaTeX
5049 fragments but include these fragments directly into the LaTeX code.
5052 File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
5054 10.4 Processing LaTeX fragments
5055 ===============================
5057 LaTeX fragments can be processed to produce a preview images of the
5058 typeset expressions:
5061 Produce a preview image of the LaTeX fragment at point and overlay
5062 it over the source code. If there is no fragment at point,
5063 process all fragments in the current entry (between two
5064 headlines). When called with a prefix argument, process the
5065 entire subtree. When called with two prefix arguments, or when
5066 the cursor is before the first headline, process the entire buffer.
5069 Remove the overlay preview images.
5071 During HTML export (*note HTML export::), all LaTeX fragments are
5072 converted into images and inlined into the document if the following
5075 (setq org-export-with-LaTeX-fragments t)
5078 File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
5080 10.5 Using CDLaTeX to enter math
5081 ================================
5083 CDLaTeX-mode is a minor mode that is normally used in combination with a
5084 major LaTeX mode like AUCTeX in order to speed-up insertion of
5085 environments and math templates. Inside Org-mode, you can make use of
5086 some of the features of cdlatex-mode. You need to install `cdlatex.el'
5087 and `texmathp.el' (the latter comes also with AUCTeX) from
5088 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
5089 cdlatex-mode itself under Org-mode, but use the light version
5090 `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
5091 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
5094 (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
5096 When this mode is enabled, the following features are present (for
5097 more details see the documentation of cdlatex-mode):
5098 * Environment templates can be inserted with `C-c {'.
5100 * The <TAB> key will do template expansion if the cursor is inside a
5101 LaTeX fragment(1). For example, <TAB> will expand `fr' to
5102 `\frac{}{}' and position the cursor correctly inside the first
5103 brace. Another <TAB> will get you into the second brace. Even
5104 outside fragments, <TAB> will expand environment abbreviations at
5105 the beginning of a line. For example, if you write `equ' at the
5106 beginning of a line and press <TAB>, this abbreviation will be
5107 expanded to an `equation' environment. To get a list of all
5108 abbreviations, type `M-x cdlatex-command-help'.
5110 * Pressing `_' and `^' inside a LaTeX fragment will insert these
5111 characters together with a pair of braces. If you use <TAB> to
5112 move out of the braces, and if the braces surround only a single
5113 character or macro, they are removed again (depending on the
5114 variable `cdlatex-simplify-sub-super-scripts').
5116 * Pressing the backquote ``' followed by a character inserts math
5117 macros, also outside LaTeX fragments. If you wait more than 1.5
5118 seconds after the backquote, a help window will pop up.
5120 * Pressing the normal quote `'' followed by another character
5121 modifies the symbol before point with an accent or a font. If you
5122 wait more than 1.5 seconds after the backquote, a help window will
5123 pop up. Character modification will work only inside LaTeX
5124 fragments, outside the quote is normal.
5126 ---------- Footnotes ----------
5128 (1) Org-mode has a method to test if the cursor is inside such a
5129 fragment, see the documentation of the function
5130 `org-inside-LaTeX-fragment-p'.
5133 File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
5138 Org-mode documents can be exported into a variety of other formats. For
5139 printing and sharing of notes, ASCII export produces a readable and
5140 simple version of an Org-mode file. HTML export allows you to publish a
5141 notes file on the web, while the XOXO format provides a solid base for
5142 exchange with a broad range of other applications. LaTeX export lets
5143 you use Org-mode and its structured editing functions to easily create
5144 LaTeX files. To incorporate entries with associated times like
5145 deadlines or appointments into a desktop calendar program like iCal,
5146 Org-mode can also produce extracts in the iCalendar format. Currently
5147 Org-mode only supports export, not import of these different formats.
5149 When exporting, Org-mode uses special conventions to enrich the
5150 output produced. *Note Text interpretation::, for more details.
5153 Dispatcher for export and publishing commands. Displays a
5154 help-window listing the additional key(s) needed to launch an
5155 export or publishing command.
5159 * ASCII export:: Exporting to plain ASCII
5160 * HTML export:: Exporting to HTML
5161 * LaTeX export:: Exporting to LaTeX
5162 * XOXO export:: Exporting to XOXO
5163 * iCalendar export:: Exporting in iCalendar format
5164 * Text interpretation:: How the exporter looks at the file
5167 File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
5172 ASCII export produces a simple and very readable version of an Org-mode
5176 Export as ASCII file. If there is an active region, only the
5177 region will be exported. For an org file `myfile.org', the ASCII
5178 file will be `myfile.txt'. The file will be overwritten without
5182 Export only the visible part of the document.
5184 In the exported version, the first 3 outline levels will become
5185 headlines, defining a general document structure. Additional levels
5186 will be exported as itemized lists. If you want that transition to
5187 occur at a different level, specify it with a prefix argument. For
5192 creates only top level headlines and does the rest as items. When
5193 headlines are converted to items, the indentation of the text following
5194 the headline is changed to fit nicely under the item. This is done with
5195 the assumption that the first bodyline indicates the base indentation of
5196 the body text. Any indentation larger than this is adjusted to preserve
5197 the layout relative to the first line. Should there be lines with less
5198 indentation than the first, these are left alone.
5201 File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
5206 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
5207 HTML formatting, in ways similar to John Grubers _markdown_ language,
5208 but with additional support for tables.
5212 * HTML Export commands:: How to invoke LaTeX export
5213 * Quoting HTML tags:: Using direct HTML in Org-mode
5214 * Links:: Transformation of links for HTML
5215 * Images:: How to include images
5216 * CSS support:: Changing the appearence of the output
5219 File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
5221 11.2.1 HTML export commands
5222 ---------------------------
5225 Export as HTML file `myfile.html'.
5228 Export as HTML file and open it with a browser.
5231 Export to a temporary buffer, do not create a file.
5234 Export the active region to a temporary buffer. With prefix arg,
5235 do not produce file header and foot, but just the plain HTML
5236 section for the region. This is good for cut-and-paste operations.
5245 Export only the visible part of the document.
5247 `M-x org-export-region-as-html'
5248 Convert the region to HTML under the assumption that it was
5249 org-mode syntax before. This is a global command that can be
5250 invoked in any buffer.
5252 `M-x org-replace-region-by-HTML'
5253 Replace the active region (assumed to be in Org-mode syntax) by
5256 In the exported version, the first 3 outline levels will become
5257 headlines, defining a general document structure. Additional levels
5258 will be exported as itemized lists. If you want that transition to
5259 occur at a different level, specify it with a prefix argument. For
5264 creates two levels of headings and does the rest as items.
5267 File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
5269 11.2.2 Quoting HTML tags
5270 ------------------------
5272 Plain `<' and `>' are always transformed to `<' and `>' in HTML
5273 export. If you want to include simple HTML tags which should be
5274 interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
5275 Note that this really works only for simple tags. For more extensive
5276 HTML that should be copied verbatim to the exported file use either
5278 #+HTML: Literal HTML code for export
5283 All lines between these markers are exported literally
5287 File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
5292 Internal links (*note Internal links::) will continue to work in HTML
5293 files only if they match a dedicated `<<target>>'. Automatic links
5294 created by radio targets (*note Radio targets::) will also work in the
5295 HTML file. Links to external files will still work if the HTML file is
5296 in the same directory as the Org-mode file. Links to other `.org'
5297 files will be translated into HTML links under the assumption that an
5298 HTML version also exists of the linked file. For information related to
5299 linking files while publishing them to a publishing directory see *Note
5303 File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
5308 HTML export can inline images given as links in the Org-mode file, and
5309 it can make an image the clickable part of a link. By default(1),
5310 images are inlined if a link does not have a description. So
5311 `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
5312 image]]' will just produce a link `the image' that points to the image.
5313 If the description part itself is a `file:' link or a `http:' URL
5314 pointing to an image, this image will be inlined and activated so that
5315 clicking on the image will activate the link. For example, to include
5316 a thumbnail that will link to a high resolution version of the image,
5319 [[file:highres.jpg][file:thumb.jpg]]
5321 and you could use `http' addresses just as well.
5323 ---------- Footnotes ----------
5325 (1) but see the variable `org-export-html-inline-images'
5328 File: org, Node: CSS support, Prev: Images, Up: HTML export
5333 You can also give style information for the exported file. The HTML
5334 exporter assigns the following CSS classes to appropriate parts of the
5335 document - your style specifications may change these:
5337 .done the DONE keyword
5338 .timestamp time stamp
5339 .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
5340 .tag tag in a headline
5341 .target target for links
5343 The default style specification can be configured through the option
5344 `org-export-html-style'. If you want to use a file-local style, you
5345 may use file variables, best wrapped into a COMMENT section at the end
5346 of the outline tree. For example(1):
5348 * COMMENT html style specifications
5351 # org-export-html-style: " <style type=\"text/css\">
5352 # p {font-weight: normal; color: gray; }
5353 # h1 {color: black; }
5357 Remember to execute `M-x normal-mode' after changing this to make
5358 the new style visible to Emacs. This command restarts org-mode for the
5359 current buffer and forces Emacs to re-evaluate the local variables
5360 section in the buffer.
5362 ---------- Footnotes ----------
5364 (1) Under Emacs 21, the continuation lines for a variable value
5365 should have no `#' at the start of the line.
5368 File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
5373 Org-mode contains a LaTeX exporter written by Bastien Guerry.
5377 * LaTeX export commands:: How to invoke LaTeX export
5378 * Quoting LaTeX code:: Incorporating literal LaTeX code
5381 File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
5383 11.3.1 LaTeX export commands
5384 ----------------------------
5387 Export as LaTeX file `myfile.tex'.
5390 Export to a temporary buffer, do not create a file.
5395 Export only the visible part of the document.
5397 `M-x org-export-region-as-latex'
5398 Convert the region to LaTeX under the assumption that it was
5399 org-mode syntax before. This is a global command that can be
5400 invoked in any buffer.
5402 `M-x org-replace-region-by-latex'
5403 Replace the active region (assumed to be in Org-mode syntax) by
5406 In the exported version, the first 3 outline levels will become
5407 headlines, defining a general document structure. Additional levels
5408 will be exported as description lists. The exporter can ignore them or
5409 convert them to a custom string depending on `org-latex-low-levels'.
5411 If you want that transition to occur at a different level, specify it
5412 with a prefix argument. For example,
5416 creates two levels of headings and does the rest as items.
5419 File: org, Node: Quoting LaTeX code, Prev: LaTeX export commands, Up: LaTeX export
5421 11.3.2 Quoting LaTeX code
5422 -------------------------
5424 Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
5425 inserted into the LaTeX file. Forthermore, you can add special code
5426 that should only be present in LaTeX export with the following
5429 #+LaTeX: Literal LaTeX code for export
5434 All lines between these markers are exported literally
5438 File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
5443 Org-mode contains an exporter that produces XOXO-style output.
5444 Currently, this exporter only handles the general outline structure and
5445 does not interpret any additional Org-mode features.
5448 Export as XOXO file `myfile.html'.
5451 Export only the visible part of the document.
5454 File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
5456 11.5 iCalendar export
5457 =====================
5459 Some people like to use Org-mode for keeping track of projects, but
5460 still prefer a standard calendar application for anniversaries and
5461 appointments. In this case it can be useful to have deadlines and
5462 other time-stamped items in Org-mode files show up in the calendar
5463 application. Org-mode can export calendar information in the standard
5464 iCalendar format. If you also want to have TODO entries included in the
5465 export, configure the variable `org-icalendar-include-todo'.
5468 Create iCalendar entries for the current file and store them in
5469 the same directory, using a file extension `.ics'.
5472 Like `C-c C-e i', but do this for all files in `org-agenda-files'.
5473 For each of these files, a separate iCalendar file will be
5477 Create a single large iCalendar file from all files in
5478 `org-agenda-files' and write it to the file given by
5479 `org-combined-agenda-icalendar-file'.
5481 How this calendar is best read and updated, depends on the
5482 application you are using. The FAQ covers this issue.
5485 File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
5487 11.6 Text interpretation by the exporter
5488 ========================================
5490 The exporter backends interpret additional structure in the Org-mode
5491 file in order to produce better output.
5495 * Comment lines:: Some lines will not be exported
5496 * Initial text:: Text before the first headline
5497 * Footnotes:: Numbers like [1]
5498 * Enhancing text:: Subscripts, symbols and more
5499 * Export options:: How to influence the export settings
5502 File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
5504 11.6.1 Comment lines
5505 --------------------
5507 Lines starting with `#' in column zero are treated as comments and will
5508 never be exported. Also entire subtrees starting with the word
5509 `COMMENT' will never be exported.
5512 Toggle the COMMENT keyword at the beginning of an entry.
5515 File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
5517 11.6.2 Text before the first headline
5518 -------------------------------------
5520 Org-mode normally ignores any text before the first headline when
5521 exporting, leaving this region for internal links to speed up navigation
5522 etc. However, in publishing-oriented files, you might want to have some
5523 text before the first headline, like a small introduction, special HTML
5524 code with a navigation bar, etc. You can ask to have this part of the
5525 file exported as well by setting the variable
5526 `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
5527 basis, you can get the same effect with
5531 The text before the first headline will be fully processed (*note
5532 Enhancing text::), and the first non-comment line becomes the title of
5533 the exported document. If you need to include literal HTML, use the
5534 special constructs described in *Note Quoting HTML tags::. The table
5535 of contents is normally inserted directly before the first headline of
5536 the file. If you would like to get it to a different location, insert
5537 the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
5540 Finally, if you want to use the space before the first headline for
5541 internal purposes, but _still_ want to place something before the first
5542 headline when exporting the file, you can use the `#+TEXT' construct:
5545 #+TEXT: This text will go before the *first* headline.
5546 #+TEXT: We place the table of contents here:
5547 #+TEXT: [TABLE-OF-CONTENTS]
5548 #+TEXT: This goes between the table of contents and the first headline
5551 File: org, Node: Footnotes, Next: Enhancing text, Prev: Initial text, Up: Text interpretation
5556 Numbers in square brackets are treated as footnotes, so that you can use
5557 the Emacs package `footnote.el' to create footnotes. For example:
5559 The org-mode homepage[1] clearly needs help from
5560 a good web designer.
5562 [1] The link is: http://www.astro.uva.nl/~dominik/Tools/org
5564 Note that the `footnote' package uses `C-c !' to invoke its commands.
5565 This binding conflicts with the org-mode command for inserting inactive
5566 time stamps. You could use the variable `footnote-prefix' to switch
5567 footnotes commands to another key. Or, if you are too used to this
5568 binding, you could use `org-replace-disputed-keys' and
5569 `org-disputed-keys' to change the settings in Org-mode.
5572 File: org, Node: Enhancing text, Next: Export options, Prev: Footnotes, Up: Text interpretation
5574 11.6.4 Enhancing text for export
5575 --------------------------------
5577 Some of the export backends of Org-mode allow for sophisticated text
5578 formatting, this is true in particular for the HTML and LaTeX backends.
5579 Org-mode has a number of typing conventions that allow to produce a
5580 richly formatted output.
5582 * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
5583 enumerator will be recognized and transformed if the backend
5584 supports lists. See *Note Plain lists::.
5586 * You can make words *bold*, /italic/, _underlined_, `=code=', and
5587 even `+strikethrough+'(1).
5589 * A line consisting of only dashes, and at least 5 of them, will be
5590 exported as a horizontal line (`<hr/>' in HTML).
5592 * Many TeX macros and entire LaTeX fragments are converted into HTML
5593 entities or images (*note Embedded LaTeX::).
5595 * Tables are transformed into native tables under the exporter, if
5596 the export backend supports this. Data fields before the first
5597 horizontal separator line will be formatted as table header fields.
5599 * If a headline starts with the word `QUOTE', the text below the
5600 headline will be typeset as fixed-width, to allow quoting of
5601 computer codes etc. Lines starting with `:' are also typeset in
5604 Toggle fixed-width for entry (QUOTE) or region, see below.
5606 * A double backslash _at the end of a line_ enforces a line break at
5609 If these conversions conflict with your habits of typing ASCII text,
5610 they can all be turned off with corresponding variables. See the
5611 customization group `org-export-general', and the following section
5612 which explains how to set export options with special lines in a buffer.
5614 ---------- Footnotes ----------
5616 (1) but remember that strikethrough is typographically evil and
5617 should never be used.
5620 File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
5622 11.6.5 Export options
5623 ---------------------
5625 The exporter recognizes special lines in the buffer which provide
5626 additional information. These lines may be put anywhere in the file.
5627 The whole set of lines can be inserted into the buffer with `C-c C-e
5628 t'. For individual lines, a good way to make sure the keyword is
5629 correct is to type `#+' and then use `M-<TAB>' completion (*note
5633 Insert template with export options, see example below.
5635 #+TITLE: the title to be shown (default is the buffer name)
5636 #+AUTHOR: the author (default taken from `user-full-name')
5637 #+EMAIL: his/her email address (default from `user-mail-address')
5638 #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
5639 #+TEXT: Some descriptive text to be inserted at the beginning.
5640 #+TEXT: Several lines may be given.
5641 #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
5643 The OPTIONS line is a compact form to specify export settings. Here
5645 H: set the number of headline levels for export
5646 num: turn on/off section-numbers
5647 toc: turn on/off table of contents, or set level limit (integer)
5648 \n: turn on/off linebreak-preservation
5649 @: turn on/off quoted HTML tags
5650 :: turn on/off fixed-width sections
5651 |: turn on/off tables
5652 ^: turn on/off TeX-like syntax for sub- and superscripts. If
5653 you write "^:{}", `a_{b}' will be interpreted, but
5654 the simple `a_b' will be left as it is.
5655 f: turn on/off foototes like this[1].
5656 *: turn on/off emphasized text (bold, italic, underlined)
5657 TeX: turn on/off simple TeX macros in plain text
5658 LaTeX: turn on/off LaTeX fragments
5659 skip: turn on/off skipping the text before the first heading
5660 author: turn on/off inclusion of author name/email into exported file
5661 timestamp: turn on/off inclusion creation time into exported file
5663 These options take effect in both the HTML and LaTeX export, except
5664 for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
5668 File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
5673 Org-mode includes(1) a publishing management system that allows you to
5674 configure automatic HTML conversion of _projects_ composed of
5675 interlinked org files. This system is called _org-publish_. You can
5676 also configure org-publish to automatically upload your exported HTML
5677 pages and related attachments, such as images and source code files, to
5678 a web server. Org-publish turns org-mode into a web-site authoring tool.
5680 You can also use Org-publish to convert files into LaTeX, or even
5681 combine HTML and LaTeX conversion so that files are available in both
5682 formats on the server(2).
5684 Org-publish has been contributed to Org-mode by David O'Toole.
5688 * Configuration:: Defining projects
5689 * Sample configuration:: Example projects
5690 * Triggering publication:: Publication commands
5692 ---------- Footnotes ----------
5694 (1) `org-publish.el' is not distributed with Emacs 21, if you are
5695 still using Emacs 21, you need you need to download this file
5698 (2) Since LaTeX files on a server are not that helpful, you surely
5699 want to perform further conversion on them - e.g. convert them to `PDF'
5703 File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
5708 Publishing needs significant configuration to specify files, destination
5709 and many other properties of a project.
5713 * Project alist:: The central configuration variable
5714 * Sources and destinations:: From here to there
5715 * Selecting files:: What files are part of the project?
5716 * Publishing action:: Setting the function doing the publishing
5717 * Publishing options:: Tweaking HTML export
5718 * Publishing links:: Which links keep working after publishing?
5719 * Project page index:: Publishing a list of project files
5722 File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
5724 12.1.1 The variable `org-publish-project-alist'
5725 -----------------------------------------------
5727 Org-publish is configured almost entirely through setting the value of
5728 one variable, called `org-publish-project-alist'. Each element of the
5729 list configures one project, and may be in one of the two following
5732 ("project-name" :property value :property value ...)
5736 ("project-name" :components ("project-name" "project-name" ...))
5738 In both cases, projects are configured by specifying property values.
5739 A project defines the set of files that will be published, as well as
5740 the publishing configuration to use when publishing those files. When
5741 a project takes the second form listed above, the individual members of
5742 the "components" property are taken to be components of the project,
5743 which group together files requiring different publishing options. When
5744 you publish such a "meta-project" all the components will also publish.
5747 File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
5749 12.1.2 Sources and destinations for files
5750 -----------------------------------------
5752 Most properties are optional, but some should always be set. In
5753 particular, org-publish needs to know where to look for source files,
5754 and where to put published files.
5756 `:base-directory' Directory containing publishing source files
5757 `:publishing-directory'Directory (possibly remote) where output files
5759 `:preparation-function'Function called before starting publishing
5760 process, for example to run `make' for updating
5761 files to be published.
5764 File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
5766 12.1.3 Selecting files
5767 ----------------------
5769 By default, all files with extension `.org' in the base directory are
5770 considered part of the project. This can be modified by setting the
5772 `:base-extension' Extension (without the dot!) of source files. This
5773 actually is a regular expression.
5774 `:exclude' Regular expression to match file names that should
5775 not be published, even though they have been selected
5776 on the basis of their extension.
5777 `:include' List of files to be included regardless of
5778 `:base-extension' and `:exclude'.
5781 File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
5783 12.1.4 Publishing Action
5784 ------------------------
5786 Publishing means that a file is copied to the destination directory and
5787 possibly transformed in the process. The default transformation is to
5788 export Org-mode files as HTML files, and this is done by the function
5789 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
5790 export::). But you also can publish your files in LaTeX by using the
5791 function `org-publish-org-to-latex' instead. Other files like images
5792 only need to be copied to the publishing destination. For non-Org-mode
5793 files, you need to specify the publishing function.
5795 `:publishing-function' Function executing the publication of a file.
5796 This may also be a list of functions, which will
5797 all be called in turn.
5799 The function must accept two arguments: a property list containing at
5800 least a `:publishing-directory' property, and the name of the file to
5801 be published. It should take the specified file, make the necessary
5802 transformation (if any) and place the result into the destination
5803 folder. You can write your own publishing function, but `org-publish'
5804 provides one for attachments (files that only need to be copied):
5805 `org-publish-attachment'.
5808 File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
5810 12.1.5 Options for the HTML/LaTeX exporters
5811 -------------------------------------------
5813 The property list can be used to set many export options for the HTML
5814 and LaTeX exporters. In most cases, these properties correspond to user
5815 variables in Org-mode. The table below lists these properties along
5816 with the variable they belong to. See the documentation string for the
5817 respective variable for details.
5819 `:language' `org-export-default-language'
5820 `:headline-levels' `org-export-headline-levels'
5821 `:section-numbers' `org-export-with-section-numbers'
5822 `:table-of-contents' `org-export-with-toc'
5823 `:archived-trees' `org-export-with-archived-trees'
5824 `:emphasize' `org-export-with-emphasize'
5825 `:sub-superscript' `org-export-with-sub-superscripts'
5826 `:TeX-macros' `org-export-with-TeX-macros'
5827 `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
5828 `:fixed-width' `org-export-with-fixed-width'
5829 `:timestamps' `org-export-with-timestamps'
5831 `:tags' `org-export-with-tags'
5833 `:tables' `org-export-with-tables'
5834 `:table-auto-headline' `org-export-highlight-first-table-line'
5835 `:style' `org-export-html-style'
5836 `:convert-org-links' `org-export-html-link-org-files-as-html'
5837 `:inline-images' `org-export-html-inline-images'
5838 `:expand-quoted-html' `org-export-html-expand'
5839 `:timestamp' `org-export-html-with-timestamp'
5840 `:publishing-directory'`org-export-publishing-directory'
5841 `:preamble' `org-export-html-preamble'
5842 `:postamble' `org-export-html-postamble'
5843 `:auto-preamble' `org-export-html-auto-preamble'
5844 `:auto-postamble' `org-export-html-auto-postamble'
5845 `:author' `user-full-name'
5846 `:email' `user-mail-address'
5848 Most of the `org-export-with-*' variables have the same effect in
5849 both HTML and LaTeX exporters, except for `:TeX-macros' and
5850 `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
5852 When a property is given a value in org-publish-project-alist, its
5853 setting overrides the value of the corresponding user variable (if any)
5854 during publishing. Options set within a file (*note Export options::),
5855 however, override everything.
5858 File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
5860 12.1.6 Links between published files
5861 ------------------------------------
5863 To create a link from one Org-mode file to another, you would use
5864 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
5865 (*note Hyperlinks::). Upon publishing this link becomes a link to
5866 `foo.html'. In this way, you can interlink the pages of your "org web"
5867 project and the links will work as expected when you publish them to
5870 You may also link to related files, such as images. Provided you are
5871 careful with relative pathnames, and provided you have also configured
5872 org-publish to upload the related files, these links will work too.
5873 *Note Complex example:: for an example of this usage.
5875 Sometime an Org-mode file to be published may contain links that are
5876 only valid in your production environment, but not in the publishing
5877 location. In this case, use the property
5879 `:link-validation-function' Function to validate links
5881 to define a function for checking link validity. This function must
5882 accept two arguments, the file name and a directory relative to which
5883 the file name is interpreted in the production environment. If this
5884 function returns `nil', then the HTML generator will only insert a
5885 description into the HTML file, but no link. One option for this
5886 function is `org-publish-validate-link' which checks if the given file
5887 is part of any project in `org-publish-project-alist'.
5890 File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
5892 12.1.7 Project page index
5893 -------------------------
5895 The following properties may be used to control publishing of an index
5896 of files or summary page for a given project.
5898 `:auto-index' When non-nil, publish an index during
5899 org-publish-current-project or org-publish-all.
5900 `:index-filename' Filename for output of index. Defaults to `index.org'
5901 (which becomes `index.html').
5902 `:index-title' Title of index page. Defaults to name of file.
5903 `:index-function' Plugin function to use for generation of index.
5904 Defaults to `org-publish-org-index', which generates
5905 a plain list of links to all files in the project.
5908 File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
5910 12.2 Sample configuration
5911 =========================
5913 Below we provide two example configurations. The first one is a simple
5914 project publishing only a set of Org-mode files. The second example is
5915 more complex, with a multi-component project.
5919 * Simple example:: One-component publishing
5920 * Complex example:: A multi-component publishing example
5923 File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
5925 12.2.1 Example: simple publishing configuration
5926 -----------------------------------------------
5928 This example publishes a set of Org-mode files to the `public_html'
5929 directory on the local machine.
5931 (setq org-publish-project-alist
5933 :base-directory "~/org/"
5934 :publishing-directory "~/public_html"
5935 :section-numbers nil
5936 :table-of-contents nil
5937 :style "<link rel=stylesheet
5938 href=\"../other/mystyle.css\"
5939 type=\"text/css\">")))
5942 File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
5944 12.2.2 Example: complex publishing configuration
5945 ------------------------------------------------
5947 This more complicated example publishes an entire website, including
5948 org files converted to HTML, image files, emacs lisp source code, and
5949 stylesheets. The publishing-directory is remote and private files are
5952 To ensure that links are preserved, care should be taken to replicate
5953 your directory structure on the web server, and to use relative file
5954 paths. For example, if your org files are kept in `~/org' and your
5955 publishable images in `~/images', you'd link to an image with
5956 file:../images/myimage.png
5957 On the web server, the relative path to the image should be the
5958 same. You can accomplish this by setting up an "images" folder in the
5959 right place on the webserver, and publishing images to it.
5961 (setq org-publish-project-alist
5963 :base-directory "~/org/"
5964 :base-extension "org"
5965 :publishing-directory "/ssh:user@host:~/html/notebook/"
5966 :publishing-function org-publish-org-to-html
5967 :exclude "PrivatePage.org" ;; regexp
5969 :section-numbers nil
5970 :table-of-contents nil
5971 :style "<link rel=stylesheet
5972 href=\"../other/mystyle.css\" type=\"text/css\">"
5974 :auto-postamble nil)
5977 :base-directory "~/images/"
5978 :base-extension "jpg\\|gif\\|png"
5979 :publishing-directory "/ssh:user@host:~/html/images/"
5980 :publishing-function org-publish-attachment)
5983 :base-directory "~/other/"
5984 :base-extension "css\\|el"
5985 :publishing-directory "/ssh:user@host:~/html/other/"
5986 :publishing-function org-publish-attachment)
5987 ("website" :components ("orgfiles" "images" "other"))))
5990 File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
5992 12.3 Triggering publication
5993 ===========================
5995 Once org-publish is properly configured, you can publish with the
5996 following functions:
5999 Prompt for a specific project and publish all files that belong to
6003 Publish the project containing the current file.
6006 Publish only the current file.
6009 Publish all projects.
6011 Org uses timestamps to track when a file has changed. The above
6012 functions normally only publish changed files. You can override this and
6013 force publishing of all files by giving a prefix argument.
6016 File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
6023 * Completion:: M-TAB knows what you need
6024 * Customization:: Adapting Org-mode to your taste
6025 * In-buffer settings:: Overview of the #+KEYWORDS
6026 * The very busy C-c C-c key:: When in doubt, press C-c C-c
6027 * Clean view:: Getting rid of leading stars in the outline
6028 * TTY keys:: Using Org-mode on a tty
6029 * Interaction:: Other Emacs packages
6030 * Bugs:: Things which do not work perfectly
6033 File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
6038 Org-mode supports in-buffer completion. This type of completion does
6039 not make use of the minibuffer. You simply type a few letters into the
6040 buffer and use the key to complete text right there.
6043 Complete word at point
6044 * At the beginning of a headline, complete TODO keywords.
6046 * After `\', complete TeX symbols supported by the exporter.
6048 * After `*', complete headlines in the current buffer so that
6049 they can be used in search links like `[[*find this
6052 * After `:' in a headline, complete tags. The list of tags is
6053 taken from the variable `org-tag-alist' (possibly set through
6054 the `#+TAGS' in-buffer option, *note Setting tags::), or it
6055 is created dynamically from all tags used in the current
6058 * After `:' and not in a headline, complete property keys. The
6059 list of keys is constructed dynamically from all keys used in
6062 * After `[', complete link abbreviations (*note Link
6065 * After `#+', complete the special keywords like `TYP_TODO' or
6066 `OPTIONS' which set file-specific options for Org-mode. When
6067 the option keyword is already complete, pressing `M-<TAB>'
6068 again will insert example settings for this keyword.
6070 * In the line after `#+STARTUP: ', complete startup keywords,
6071 i.e. valid keys for this line.
6073 * Elsewhere, complete dictionary words using ispell.
6076 File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
6081 There are more than 180 variables that can be used to customize
6082 Org-mode. For the sake of compactness of the manual, I am not
6083 describing the variables here. A structured overview of customization
6084 variables is available with `M-x org-customize'. Or select `Browse Org
6085 Group' from the `Org->Customization' menu. Many settings can also be
6086 activated on a per-file basis, by putting special lines into the buffer
6087 (*note In-buffer settings::).
6090 File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
6092 13.3 Summary of in-buffer settings
6093 ==================================
6095 Org-mode uses special lines in the buffer to define settings on a
6096 per-file basis. These lines start with a `#+' followed by a keyword, a
6097 colon, and then individual words defining a setting. Several setting
6098 words can be in the same line, but you can also have multiple lines for
6099 the keyword. While these settings are described throughout the manual,
6100 here is a summary. After changing any of those lines in the buffer,
6101 press `C-c C-c' with the cursor still in the line to activate the
6102 changes immediately. Otherwise they become effective only when the
6103 file is visited again in a new Emacs session.
6105 `#+ARCHIVE: %s_done::'
6106 This line sets the archive location for the agenda file. It
6107 applies for all subsequent lines until the next `#+ARCHIVE' line,
6108 or the end of the file. The first such line also applies to any
6109 entries before it. The corresponding variable is
6110 `org-archive-location'.
6113 This line sets the category for the agenda file. The category
6114 applies for all subsequent lines until the next `#+CATEGORY' line,
6115 or the end of the file. The first such line also applies to any
6118 `#+COLUMNS: %25ITEM .....'
6119 Set the default format for columns view. This format applies when
6120 columns view is invoked in location where no COLUMNS property
6123 `#+CONSTANTS: name1=value1 ...'
6124 Set file-local values for constants to be used in table formulas.
6125 This line set the local variable
6126 `org-table-formula-constants-local'. The global version of theis
6127 variable is `org-table-formula-constants'. corresponding
6129 `#+LINK: linkword replace'
6130 These lines (several are allowed) specify link abbreviations.
6131 *Note Link abbreviations::. The corresponding variable is
6132 `org-link-abbrev-alist'.
6134 `#+PRIORITIES: highest lowest default'
6135 This line sets the limits and the default for the priorities. All
6136 three must be either letters A-Z or numbers 0-9. The highest
6137 priority must have a lower ASCII number that the lowest priority.
6139 `#+PROPERTY: Property_Name Value'
6140 This line sets a default inheritance value for entries in the
6141 current buffer, most useful for specifying the allowed values of a
6145 This line sets options to be used at startup of Org-mode, when an
6146 Org-mode file is being visited. The first set of options deals
6147 with the initial visibility of the outline tree. The
6148 corresponding variable for global default settings is
6149 `org-startup-folded', with a default value `t', which means
6151 overview top-level headlines only
6152 content all headlines
6153 showall no folding at all, show everything
6154 Then there are options for aligning tables upon visiting a file.
6155 This is useful in files containing narrowed table columns. The
6156 corresponding variable is `org-startup-align-all-tables', with a
6157 default value `nil'.
6158 align align all tables
6159 noalign don't align tables on startup
6160 Logging TODO state changes and clock intervals (variable
6161 `org-log-done') can be configured using these options.
6162 logging record a timestamp when an item is marked DONE
6163 nologging don't record when items are marked DONE
6164 lognotedone record timestamp and a note when DONE
6165 lognotestate record timestamp and a note when TODO state changes
6166 logrepeat record a note when re-instating a repeating item
6167 nologrepeat do not record when re-instating repeating item
6168 lognoteclock-out record timestamp and a note when clocking out
6169 Here are the options for hiding leading stars in outline headings.
6170 The corresponding variables are `org-hide-leading-stars' and
6171 `org-odd-levels-only', both with a default setting `nil' (meaning
6172 `showstars' and `oddeven').
6173 hidestars make all but one of the stars starting a headline invisible.
6174 showstars show all stars starting a headline
6175 odd allow only odd outline levels (1,3,...)
6176 oddeven allow all outline levels
6177 To turn on custom format overlays over time stamps (variables
6178 `org-put-time-stamp-overlays' and
6179 `org-time-stamp-overlay-formats'), use
6180 customtime overlay custom time format
6181 The following options influence the table spreadsheet (variable
6182 `constants-unit-system').
6183 constcgs `constants.el' should use the c-g-s unit system
6184 constSI `constants.el' should use the SI unit system
6186 `#+TAGS: TAG1(c1) TAG2(c2)'
6187 These lines (several such lines are allowed) specify the legal
6188 tags in this file, and (potentially) the corresponding _fast tag
6189 selection_ keys. The corresponding variable is `org-tag-alist'.
6192 This line contains the formulas for the table directly above the
6195 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
6196 These lines provide settings for exporting files. For more
6197 details see *Note Export options::.
6199 `#+SEQ_TODO: #+TYP_TODO:'
6200 These lines set the TODO keywords and their interpretation in the
6201 current file. The corresponding variables are `org-todo-keywords'
6202 and `org-todo-interpretation'.
6205 File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
6207 13.4 The very busy C-c C-c key
6208 ==============================
6210 The key `C-c C-c' has many purposes in org-mode, which are all
6211 mentioned scattered throughout this manual. One specific function of
6212 this key is to add _tags_ to a headline (*note Tags::). In many other
6213 circumstances it means something like _Hey Org-mode, look here and
6214 update according to what you see here_. Here is a summary of what this
6215 means in different contexts.
6217 - If there are highlights in the buffer from the creation of a sparse
6218 tree, or from clock display, remove these highlights.
6220 - If the cursor is in one of the special `#+KEYWORD' lines, this
6221 triggers scanning the buffer for these lines and updating the
6224 - If the cursor is inside a table, realign the table. This command
6225 works even if the automatic table editor has been turned off.
6227 - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
6230 - If the cursor is inside a table created by the `table.el' package,
6231 activate that table.
6233 - If the current buffer is a remember buffer, close the note and
6234 file it. With a prefix argument, file it, without further
6235 interaction, to the default location.
6237 - If the cursor is on a `<<<target>>>', update radio targets and
6238 corresponding links in this buffer.
6240 - If the cursor is in a property line or at the start or end of a
6241 property drawer, offer property commands.
6243 - If the cursor is in a plain list item with a checkbox, toggle the
6244 status of the checkbox.
6246 - If the cursor is on a numbered item in a plain list, renumber the
6250 File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
6252 13.5 A cleaner outline view
6253 ===========================
6255 Some people find it noisy and distracting that the Org-mode headlines
6256 are starting with a potentially large number of stars. For example the
6257 tree from *Note Headlines:::
6259 * Top level headline
6265 * Another top level headline
6267 Unfortunately this is deeply ingrained into the code of Org-mode and
6268 cannot be easily changed. You can, however, modify the display in such
6269 a way that all leading stars become invisible and the outline more easy
6270 to read. To do this, customize the variable `org-hide-leading-stars'
6273 (setq org-hide-leading-stars t)
6275 or change this on a per-file basis with one of the lines (anywhere in
6278 #+STARTUP: showstars
6279 #+STARTUP: hidestars
6281 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
6284 With stars hidden, the tree becomes:
6286 * Top level headline
6292 * Another top level headline
6294 Note that the leading stars are not truly replaced by whitespace, they
6295 are only fontified with the face `org-hide' that uses the background
6296 color as font color. If you are not using either white or black
6297 background, you may have to customize this face to get the wanted
6298 effect. Another possibility is to set this font such that the extra
6299 stars are almost invisible, for example using the color `grey90' on a
6302 Things become cleaner still if you skip all the even levels and use
6303 only odd levels 1, 3, 5..., effectively adding two stars to go from one
6304 outline level to the next:
6306 * Top level headline
6312 * Another top level headline
6314 In order to make the structure editing and export commands handle this
6315 convention correctly, use
6317 (setq org-odd-levels-only t)
6319 or set this on a per-file basis with one of the following lines (don't
6320 forget to press `C-c C-c' with the cursor in the startup line to
6321 activate changes immediately).
6326 You can convert an Org-mode file from single-star-per-level to the
6327 double-star-per-level convention with `M-x org-convert-to-odd-levels
6328 RET' in that file. The reverse operation is `M-x
6329 org-convert-to-oddeven-levels'.
6332 File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
6334 13.6 Using org-mode on a tty
6335 ============================
6337 Org-mode uses a number of keys that are not accessible on a tty. This
6338 applies to most special keys like cursor keys, <TAB> and <RET>, when
6339 these are combined with modifier keys like <Meta> and/or <Shift>.
6340 Org-mode uses these bindings because it needs to provide keys for a
6341 large number of commands, and because these keys appeared particularly
6342 easy to remember. In order to still be able to access the core
6343 functionality of Org-mode on a tty, alternative bindings are provided.
6344 Here is a complete list of these bindings, which are obviously more
6345 cumbersome to use. Note that sometimes a work-around can be better.
6346 For example changing a time stamp is really only fun with `S-<cursor>'
6347 keys. On a tty you would rather use `C-c .' to re-insert the
6350 Default Alternative 1 Alternative 2
6351 `S-<TAB>' `C-u <TAB>'
6352 `M-<left>' `C-c C-x l' `<Esc> <left>'
6353 `M-S-<left>'`C-c C-x L'
6354 `M-<right>' `C-c C-x r' `<Esc>
6356 `M-S-<right>'`C-c C-x R'
6357 `M-<up>' `C-c C-x u' `<Esc> <up>'
6358 `M-S-<up>' `C-c C-x U'
6359 `M-<down>' `C-c C-x d' `<Esc> <down>'
6360 `M-S-<down>'`C-c C-x D'
6361 `S-<RET>' `C-c C-x c'
6362 `M-<RET>' `C-c C-x m' `<Esc> <RET>'
6363 `M-S-<RET>' `C-c C-x M'
6364 `S-<left>' `C-c <left>'
6365 `S-<right>' `C-c <right>'
6367 `S-<down>' `C-c <down>'
6368 `C-S-<left>'`C-c C-x
6370 `C-S-<right>'`C-c C-x
6374 File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
6376 13.7 Interaction with other packages
6377 ====================================
6379 Org-mode lives in the world of GNU Emacs and interacts in various ways
6380 with other code out there.
6384 * Cooperation:: Packages Org-mode cooperates with
6385 * Conflicts:: Packages that lead to conflicts
6388 File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
6390 13.7.1 Packages that Org-mode cooperates with
6391 ---------------------------------------------
6393 `calc.el' by Dave Gillespie
6394 Org-mode uses the calc package for implementing spreadsheet
6395 functionality in its tables (*note The spreadsheet::). Org-mode
6396 checks for the availability of calc by looking for the function
6397 `calc-eval' which should be autoloaded in your setup if calc has
6398 been installed properly. As of Emacs 22, calc is part of the Emacs
6399 distribution. Another possibility for interaction between the two
6400 packages is using calc for embedded calculations. *Note Embedded
6401 Mode: (calc)Embedded Mode.
6403 `constants.el' by Carsten Dominik
6404 In a table formula (*note The spreadsheet::), it is possible to use
6405 names for natural constants or units. Instead of defining your own
6406 constants in the variable `org-table-formula-constants', install
6407 the `constants' package which defines a large number of constants
6408 and units, and lets you use unit prefixes like `M' for `Mega' etc.
6409 You will need version 2.0 of this package, available at
6410 `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
6411 function `constants-get', which has to be autoloaded in your
6412 setup. See the installation instructions in the file
6415 `cdlatex.el' by Carsten Dominik
6416 Org-mode can make use of the cdlatex package to efficiently enter
6417 LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
6419 `remember.el' by John Wiegley
6420 Org mode cooperates with remember, see *Note Remember::.
6421 `Remember.el' is not part of Emacs, find it on the web.
6423 `table.el' by Takaaki Ota
6424 Complex ASCII tables with automatic line wrapping, column- and
6425 row-spanning, and alignment can be created using the Emacs table
6426 package by Takaaki Ota (`http://sourceforge.net/projects/table',
6427 and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
6428 such a table, Org-mode will call `table-recognize-table' and move
6429 the cursor into the table. Inside a table, the keymap of Org-mode
6430 is inactive. In order to execute Org-mode-related commands, leave
6434 Recognize `table.el' table. Works when the cursor is in a
6438 Insert a table.el table. If there is already a table at
6439 point, this command converts it between the table.el format
6440 and the Org-mode format. See the documentation string of the
6441 command `org-convert-table' for the restrictions under which
6443 `table.el' is part of Emacs 22.
6445 `footnote.el' by Steven L. Baur
6446 Org-mode recognizes numerical footnotes as provided by this package
6447 (*note Footnotes::).
6450 File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
6452 13.7.2 Packages that lead to conflicts with Org-mode
6453 ----------------------------------------------------
6455 `allout.el' by Ken Manheimer
6456 Startup of Org-mode may fail with the error message
6457 `(wrong-type-argument keymapp nil)' when there is an outdated
6458 version `allout.el' on the load path, for example the version
6459 distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
6460 will disappear. If for some reason you cannot do this, make sure
6461 that org.el is loaded _before_ `allout.el', for example by putting
6462 `(require 'org)' early enough into your `.emacs' file.
6464 `CUA.el' by Kim. F. Storm
6465 Keybindings in Org-mode conflict with the `S-<cursor>' keys used
6466 by CUA-mode (as well as pc-select-mode and s-region-mode) to
6467 select and extend the region. If you want to use one of these
6468 packages along with Org-mode, configure the variable
6469 `org-CUA-compatible'. When set, Org-mode will move the following
6470 keybindings in Org-mode files, and in the agenda buffer (but not
6471 during date selection).
6473 S-UP -> M-p S-DOWN -> M-n
6474 S-LEFT -> M-- S-RIGHT -> M-+
6476 Yes, these are unfortunately more difficult to remember. If you
6477 want to have other replacement keys, look at the variable
6478 `org-disputed-keys'.
6480 `windmove.el' by Hovav Shacham
6481 Also this package uses the `S-<cursor>' keys, so everything written
6482 in the paragraph above about CUA mode also applies here.
6484 `footnote.el' by Steven L. Baur
6485 Org-mode supports the syntax of the footnote package, but only the
6486 numerical footnote markers. Also, the default key for footnote
6487 commands, `C-c !' is already used by Org-mode. You could use the
6488 variable `footnote-prefix' to switch footnotes commands to another
6489 key. Or, you could use `org-replace-disputed-keys' and
6490 `org-disputed-keys' to change the settings in Org-mode.
6494 File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
6499 Here is a list of things that should work differently, but which I have
6500 found too hard to fix.
6502 * If a table field starts with a link, and if the corresponding table
6503 column is narrowed (*note Narrow columns::) to a width too small to
6504 display the link, the field would look entirely empty even though
6505 it is not. To prevent this, Org-mode throws an error. The
6506 work-around is to make the column wide enough to fit the link, or
6507 to add some text (at least 2 characters) before the link in the
6510 * Narrowing table columns does not work on XEmacs, because the
6511 `format' function does not transport text properties.
6513 * Text in an entry protected with the `QUOTE' keyword should not
6516 * When the application called by `C-c C-o' to open a file link fails
6517 (for example because the application does not exist or refuses to
6518 open the file), it does so silently. No error message is
6521 * Recalculating a table line applies the formulas from left to right.
6522 If a formula uses _calculated_ fields further down the row,
6523 multiple recalculation may be needed to get all fields consistent.
6524 You may use the command `org-table-iterate' (`C-u C-c *') to
6525 recalculate until convergence.
6527 * A single letter cannot be made bold, for example `*a*'.
6529 * The exporters work well, but could be made more efficient.
6532 File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
6534 Appendix A Extensions, Hooks and Hacking
6535 ****************************************
6537 This appendix lists extensions for Org-mode written by other authors.
6538 It also covers some aspects where users can extend the functionality of
6543 * Extensions:: Existing 3rd-part extensions
6544 * Adding hyperlink types:: New custom link types
6545 * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
6546 * Dynamic blocks:: Automatically filled blocks
6547 * Special agenda views:: Customized views
6548 * Using the property API:: Writing programs that use entry properties
6551 File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
6553 A.1 Third-party extensions for Org-mode
6554 =======================================
6556 The following extensions for Org-mode have been written by other people:
6558 `org-publish.el' by David O'Toole
6559 This package provides facilities for publishing related sets of
6560 Org-mode files together with linked files like images as webpages.
6561 It is highly configurable and can be used for other publishing
6562 purposes as well. As of Org-mode version 4.30, `org-publish.el'
6563 is part of the Org-mode distribution. It is not yet part of
6564 Emacs, however, a delay caused by the preparations for the 22.1
6565 release. In the mean time, `org-publish.el' can be downloaded
6566 from David's site: `http://dto.freeshell.org/e/org-publish.el'.
6568 `org-mouse.el' by Piotr Zielinski
6569 This package implements extended mouse functionality for Org-mode.
6570 It allows you to cycle visibility and to edit the document
6571 structure with the mouse. Best of all, it provides a
6572 context-sensitive menu on <mouse-3> that changes depending on the
6573 context of a mouse-click. As of Org-mode version 4.53,
6574 `org-mouse.el' is part of the Org-mode distribution. It is not
6575 yet part of Emacs, however, a delay caused by the preparations for
6576 the 22.1 release. In the mean time, `org-mouse.el' can be
6577 downloaded from Piotr's site:
6578 `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
6580 `org-blog.el' by David O'Toole
6581 A blogging plug-in for `org-publish.el'.
6582 `http://dto.freeshell.org/notebook/OrgMode.html'.
6584 `blorg.el' by Bastien Guerry
6585 Publish Org-mode files as blogs.
6586 `http://www.cognition.ens.fr/~guerry/blorg.html'.
6588 `org2rem.el' by Bastien Guerry
6589 Translates Org-mode files into something readable by Remind.
6590 `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
6593 File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
6595 A.2 Adding hyperlink types
6596 ==========================
6598 Org-mode has a large number of hyperlink types built-in (*note
6599 Hyperlinks::). If you would like to add new link types, it provides an
6600 interface for doing so. Lets look at an example file `org-man.el' that
6601 will add support for creating links like `[[man:printf][The printf
6602 manpage]]' to show unix manual pages inside emacs:
6604 ;;; org-man.el - Support for links to manpages in Org-mode
6608 (org-add-link-type "man" 'org-man-open)
6609 (add-hook 'org-store-link-functions 'org-man-store-link)
6611 (defcustom org-man-command 'man
6612 "The Emacs command to be used to display a man page."
6614 :type '(choice (const man) (const woman)))
6616 (defun org-man-open (path)
6617 "Visit the manpage on PATH.
6618 PATH should be a topic that can be thrown at the man command."
6619 (funcall org-man-command path))
6621 (defun org-man-store-link ()
6622 "Store a link to a manpage."
6623 (when (memq major-mode '(Man-mode woman-mode))
6624 ;; This is a man page, we do make this link
6625 (let* ((page (org-man-get-page-name))
6626 (link (concat "man:" page))
6627 (description (format "Manpage for %s" page)))
6628 (org-store-link-props
6631 :description description))))
6633 (defun org-man-get-page-name ()
6634 "Extract the page name from the buffer name."
6635 ;; This works for both `Man-mode' and `woman-mode'.
6636 (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
6637 (match-string 1 (buffer-name))
6638 (error "Cannot create link to this man page")))
6642 ;;; org-man.el ends here
6644 You would activate this new link type in `.emacs' with
6648 Lets go through the file and see what it does.
6649 1. It does `(require 'org)' to make sure that `org.el' has been
6652 2. The next line calls `org-add-link-type' to define a new link type
6653 with prefix `man'. The call also contains the name of a function
6654 that will be called to follow such a link.
6656 3. The next line adds a function to `org-store-link-functions', in
6657 order to allow the command `C-c l' to record a useful link in a
6658 buffer displaying a man page.
6660 The rest of the file defines the necessary variables and functions.
6661 First there is a customization variable that determines which emacs
6662 command should be used to display manpages. There are two options,
6663 `man' and `woman'. Then the function to follow a link is defined. It
6664 gets the link path as an argument - in this case the link path is just
6665 a topic for the manual command. The function calls the value of
6666 `org-man-command' to display the man page.
6668 Finally the function `org-man-store-link' is defined. When you try
6669 to store a link with `C-c l', also this function will be called to try
6670 to make a link. The function must first decide if it is supposed to
6671 create the link for this buffer type, we do this by checking the value
6672 of the variable `major-mode'. If not, the function must exit and
6673 retunr the value `nil'. If yes, the link is created by getting the
6674 manual tpoic from the buffer name and prefixing it with the string
6675 `man:'. Then it must call the command `org-store-link-props' and set
6676 the `:type' and `:link' properties. Optionally you can also set the
6677 `:description' property to provide a default for the link description
6678 when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
6681 File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
6683 A.3 Tables in arbitrary syntax
6684 ==============================
6686 Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
6687 frequent feature request has been to make it work with native tables in
6688 specific languages, for example LaTeX. However, this is extremely hard
6689 to do in a general way, would lead to a customization nightmare, and
6690 would take away much of the simplicity of the Orgtbl-mode table editor.
6692 This appendix describes a different approach. We keep the
6693 Orgtbl-mode table in its native format (the source table), and use a
6694 custom function to translate the table to the correct syntax, and to
6695 install it in the right location (the target table). This puts the
6696 burden of writing conversion functions on the user, but it allows for a
6697 very flexible system.
6701 * Radio tables:: Sending and receiving
6702 * A LaTeX example:: Step by step, almost a tutorial
6703 * Translator functions:: Copy and modify
6706 File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
6711 To define the location of the target table, you first need to create two
6712 lines that are comments in the current mode, but contain magic words for
6713 Orgtbl-mode to find. Orgtbl-mode will insert the translated table
6714 between these lines, replacing whatever was there before. For example:
6716 /* BEGIN RECEIVE ORGTBL table_name */
6717 /* END RECEIVE ORGTBL table_name */
6719 Just above the source table, we put a special line that tells
6720 Orgtbl-mode how to translate this table and where to install it. For
6722 #+ORGTBL: SEND table_name translation_function arguments....
6724 `table_name' is the reference name for the table that is also used in
6725 the receiver lines. `translation_function' is the Lisp function that
6726 does the translation. Furthermore, the line can contain a list of
6727 arguments (alternating key and value) at the end. The arguments will be
6728 passed as a property list to the translation function for
6729 interpretation. A few standard parameters are already recognized and
6730 acted upon before the translation function is called:
6733 Skip the first N lines of the table. Hlines do count!
6735 `:skipcols (n1 n2 ...)'
6736 List of columns that should be skipped. If the table has a column
6737 with calculation marks, that column is automatically discarded as
6738 well. Please note that the translator function sees the table
6739 _after_ the removal of these columns, the function never knows
6740 that there have been additional columns.
6742 The one problem remaining is how to keep the source table in the buffer
6743 without disturbing the normal workings of the file, for example during
6744 compilation of a C file or processing of a LaTeX file. There are a
6745 number of different solutions:
6747 * The table could be placed in a block comment if that is supported
6748 by the language. For example, in C-mode you could wrap the table
6749 between `/*' and `*/' lines.
6751 * Sometimes it is possible to put the table after some kind of END
6752 statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
6754 * You can just comment the table line by line whenever you want to
6755 process the file, and uncomment it whenever you need to edit the
6756 table. This only sounds tedious - the command `M-x
6757 orgtbl-toggle-comment' does make this comment-toggling very easy,
6758 in particular if you bind it to a key.
6761 File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
6763 A.3.2 A LaTeX example
6764 ---------------------
6766 The best way to wrap the source table in LaTeX is to use the `comment'
6767 environment provided by `comment.sty'. It has to be activated by
6768 placing `\usepackage{comment}' into the document header. Orgtbl-mode
6769 can insert a radio table skeleton(1) with the command `M-x
6770 orgtbl-insert-radio-table'. You will be prompted for a table name,
6771 lets say we use `salesfigures'. You will then get the following
6774 % BEGIN RECEIVE ORGTBL salesfigures
6775 % END RECEIVE ORGTBL salesfigures
6777 #+ORGTBL: SEND salesfigures orgtbl-to-latex
6781 The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
6782 `orgtbl-to-latex' to convert the table into LaTeX and to put it into
6783 the receiver location with name `salesfigures'. You may now fill in
6784 the table, feel free to use the spreadsheet features(2):
6786 % BEGIN RECEIVE ORGTBL salesfigures
6787 % END RECEIVE ORGTBL salesfigures
6789 #+ORGTBL: SEND salesfigures orgtbl-to-latex
6790 | Month | Days | Nr sold | per day |
6791 |-------+------+---------+---------|
6792 | Jan | 23 | 55 | 2.4 |
6793 | Feb | 21 | 16 | 0.8 |
6794 | March | 22 | 278 | 12.6 |
6795 #+TBLFM: $4=$3/$2;%.1f
6796 % $ (optional extra dollar to keep font-lock happy, see footnote)
6799 When you are done, press `C-c C-c' in the table to get the converted
6800 table inserted between the two marker lines.
6802 Now lets assume you want to make the table header by hand, because
6803 you want to control how columns are aligned etc. In this case we make
6804 sure that the table translator does skip the first 2 lines of the source
6805 table, and tell the command to work as a splice, i.e. to not produce
6806 header and footer commands of the target table:
6808 \begin{tabular}{lrrr}
6809 Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
6810 % BEGIN RECEIVE ORGTBL salesfigures
6811 % END RECEIVE ORGTBL salesfigures
6815 #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
6816 | Month | Days | Nr sold | per day |
6817 |-------+------+---------+---------|
6818 | Jan | 23 | 55 | 2.4 |
6819 | Feb | 21 | 16 | 0.8 |
6820 | March | 22 | 278 | 12.6 |
6821 #+TBLFM: $4=$3/$2;%.1f
6824 The LaTeX translator function `orgtbl-to-latex' is already part of
6825 Orgtbl-mode. It uses a `tabular' environment to typeset the table and
6826 marks horizontal lines with `\hline'. Furthermore, it interprets the
6827 following parameters:
6830 When set to t, return only table body lines, don't wrap them into a
6831 tabular environment. Default is nil.
6834 A format to be used to wrap each field, should contain `%s' for the
6835 original field value. For example, to wrap each field value in
6836 dollars, you could use `:fmt "$%s$"'. This may also be a property
6837 list with column numbers and formats. for example `:fmt (2 "$%s$"
6841 Use this format to print numbers with exponentials. The format
6842 should have `%s' twice for inserting mantissa and exponent, for
6843 example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
6844 may also be a property list with column numbers and formats, for
6845 example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
6846 After `efmt' has been applied to a value, `fmt' will also be
6849 ---------- Footnotes ----------
6851 (1) By default this works only for LaTeX, HTML, and TeXInfo.
6852 Configure the variable `orgtbl-radio-tables' to install templates for
6855 (2) If the `#+TBLFM' line contains an odd number of dollar
6856 characters, this may cause problems with font-lock in latex-mode. As
6857 shown in the example you can fix this by adding an extra line inside the
6858 `comment' environment that is used to balance the dollar expressions.
6859 If you are using AUCTeX with the font-latex library, a much better
6860 solution is to add the `comment' environment to the variable
6861 `LaTeX-verbatim-environments'.
6864 File: org, Node: Translator functions, Prev: A LaTeX example, Up: Tables in arbitrary syntax
6866 A.3.3 Translator functions
6867 --------------------------
6869 Orgtbl-mode has several translator functions built-in:
6870 `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
6871 for `orgtbl-to-html'(1), these all use a generic translator,
6872 `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
6873 short function that computes the column definitions for the `tabular'
6874 environment, defines a few field and line separators and then hands
6875 over to the generic translator. Here is the entire code:
6877 (defun orgtbl-to-latex (table params)
6878 "Convert the orgtbl-mode TABLE to LaTeX."
6879 (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
6880 org-table-last-alignment ""))
6883 :tstart (concat "\\begin{tabular}{" alignment "}")
6884 :tend "\\end{tabular}"
6885 :lstart "" :lend " \\\\" :sep " & "
6886 :efmt "%s\\,(%s)" :hline "\\hline")))
6887 (orgtbl-to-generic table (org-combine-plists params2 params))))
6889 As you can see, the properties passed into the function (variable
6890 PARAMS) are combined with the ones newly defined in the function
6891 (variable PARAMS2). The ones passed into the function (i.e. the ones
6892 set by the `ORGTBL SEND' line) take precedence. So if you would like
6893 to use the LaTeX translator, but wanted the line endings to be
6894 `\\[2mm]' instead of the default `\\', you could just overrule the
6897 #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
6899 For a new language, you can either write your own converter function
6900 in analogy with the LaTeX translator, or you can use the generic
6901 function directly. For example, if you have a language where a table
6902 is started with `!BTBL!', ended with `!ETBL!', and where table lines are
6903 started with `!BL!', ended with `!EL!' and where the field separator is
6904 a TAB, you could call the generic translator like this (on a single
6907 #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
6908 :lstart "!BL! " :lend " !EL!" :sep "\t"
6910 Please check the documentation string of the function
6911 `orgtbl-to-generic' for a full list of parameters understood by that
6912 function and remember that you can pass each of them into
6913 `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
6914 the generic function.
6916 Of course you can also write a completely new function doing
6917 complicated things the generic translator cannot do. A translator
6918 function takes two arguments. The first argument is the table, a list
6919 of lines, each line either the symbol `hline' or a list of fields. The
6920 second argument is the property list containing all parameters
6921 specified in the `#+ORGTBL: SEND' line. The function must return a
6922 single string containing the formatted table. If you write a generally
6923 useful translator, please post it on `emacs-orgmode@gnu.org' so that
6924 others can benefit from your work.
6926 ---------- Footnotes ----------
6928 (1) The HTML translator uses the same code that produces tables
6932 File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
6937 Org-mode documents can contain _dynamic blocks_. These are specially
6938 marked regions that are updated by some user-written function. A good
6939 example for such a block is the clock table inserted by the command
6940 `C-c C-x C-r' (*note Clocking work time::).
6942 Dynamic block are enclosed by a BEGIN-END structure that assigns a
6943 name to the block and can also specify parameters for the function
6944 producing the content of the block.
6946 #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
6950 Dynamic blocks are updated with the following commands
6953 Update dynamic block at point.
6956 Update all dynamic blocks in the current file.
6958 Updating a dynamic block means to remove all the text between BEGIN
6959 and END, parse the BEGIN line for parameters and then call the specific
6960 writer function for this block to insert the new content. For a block
6961 with name `myblock', the writer function is `org-dblock-write:myblock'
6962 with as only parameter a property list with the parameters given in the
6963 begin line. Here is a trivial example of a block that keeps track of
6964 when the block update function was last run:
6966 #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
6970 The corresponding block writer function could look like this:
6972 (defun org-dblock-write:block-update-time (params)
6973 (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
6974 (insert "Last block update at: "
6975 (format-time-string fmt (current-time)))))
6977 If you want to make sure that all dynamic blocks are always
6978 up-to-date, you could add the function `org-update-all-dblocks' to a
6979 hook, for example `before-save-hook'. `org-update-all-dblocks' is
6980 written in a way that is does nothing in buffers that are not in
6984 File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
6986 A.5 Special Agenda Views
6987 ========================
6989 Org-mode provides a special hook that can be used to narrow down the
6990 selection made by any of the agenda views. You may specify a function
6991 that is used at each match to verify if the match should indeed be part
6992 of the agenda view, and if not, how much should be skipped.
6994 Let's say you want to produce a list of projects that contain a
6995 WAITING tag anywhere in the project tree. Let's further assume that
6996 you have marked all tree headings that define a project with the todo
6997 keyword PROJECT. In this case you would run a todo search for the
6998 keyword PROJECT, but skip the match unless there is a WAITING tag
6999 anywhere in the subtree belonging to the project line.
7001 To achieve this, you must write a function that searches the subtree
7002 for the tag. If the tag is found, the function must return `nil' to
7003 indicate that this match should not be skipped. If there is no such
7004 tag, return the location of the end of the subtree, to indicate that
7005 search should continue from there.
7007 (defun my-skip-unless-waiting ()
7008 "Skip trees that are not waiting"
7009 (let ((subtree-end (save-excursion (org-end-of-subtree t))))
7010 (if (re-search-forward ":WAITING:" subtree-end t)
7011 nil ; tag found, do not skip
7012 subtree-end))) ; tag not found, continue after end of subtree
7014 Now you may use this function in an agenda custom command, for
7017 (org-add-agenda-custom-command
7018 '("b" todo "PROJECT"
7019 ((org-agenda-skip-function 'my-org-waiting-projects)
7020 (org-agenda-overriding-header "Projects waiting for something: "))))
7022 Note that this also binds `org-agenda-overriding-header' to get a
7023 meaningful header in the agenda view.
7025 You may also put a Lisp form into `org-agenda-skip-function'. In
7026 particular, you may use the functions `org-agenda-skip-entry-if' and
7027 `org-agenda-skip-subtree-if' in this form, for example:
7029 `'(org-agenda-skip-entry-if 'scheduled)'
7030 Skip current entry if it has been scheduled.
7032 `'(org-agenda-skip-entry-if 'notscheduled)'
7033 Skip current entry if it has not been scheduled.
7035 `'(org-agenda-skip-entry-if 'deadline)'
7036 Skip current entry if it has a deadline.
7038 `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
7039 Skip current entry if it has a deadline, or if it is scheduled.
7041 `'(org-agenda-skip-entry 'regexp "regular expression")'
7042 Skip current entry if the regular expression contained in the
7043 variable `org-agenda-skip-regexp' matches in the entry.
7045 `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
7046 Same as above, but check and skip the entire subtree.
7048 Therefore we could also have written the search for WAITING projects
7049 like this, even without defining a special function:
7051 (org-add-agenda-custom-command
7052 '("b" todo "PROJECT"
7053 ((org-agenda-skip-function '(org-agenda-skip-subtree-if
7054 'regexp ":WAITING:"))
7055 (org-agenda-overriding-header "Projects waiting for something: "))))
7058 File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
7060 A.6 Using the property API
7061 ==========================
7063 Here is a description of the functions that can be used to work with
7066 -- Function: org-entry-properties &optional pom which
7067 Get all properties of the entry at point-or-marker POM. This
7068 includes the TODO keyword, the tags, time strings for deadline,
7069 scheduled, and clocking, and any additional properties defined in
7070 the entry. The return value is an alist, keys may occur multiple
7071 times if the property key was used several times. POM may also be
7072 nil, in which case the current entry is used. If WHICH is nil or
7073 `all', get all properties. If WHICH is `special' or `standard',
7074 only get that subclass.
7076 -- Function: org-entry-get pom property &optional inherit
7077 Get value of PROPERTY for entry at point-or-marker POM. If
7078 INHERIT is non-nil and the entry does not have the property, then
7079 also check higher levels of the hierarchy.
7081 -- Function: org-entry-delete pom property
7082 Delete the property PROPERTY from entry at point-or-marker POM.
7084 -- Function: org-entry-put pom property value
7085 Set PROPERTY to VALUE for entry at point-or-marker POM.
7087 -- Function: org-buffer-property-keys &optional include-specials
7088 Get all property keys in the current buffer.
7090 -- Function: org-insert-property-drawer
7091 Insert a property drawer at point.
7094 File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
7096 Appendix B History and Acknowledgments
7097 **************************************
7099 Org-mode was borne in 2003, out of frustration over the user interface
7100 of the Emacs outline-mode. I was trying to organize my notes and
7101 projects, and using Emacs seemed to be the natural way to go. However,
7102 having to remember eleven different commands with two or three keys per
7103 command, only to hide and unhide parts of the outline tree, that seemed
7104 entirely unacceptable to me. Also, when using outlines to take notes, I
7105 constantly want to restructure the tree, organizing it parallel to my
7106 thoughts and plans. _Visibility cycling_ and _structure editing_ were
7107 originally implemented in the package `outline-magic.el', but quickly
7108 moved to the more general `org.el'. As this environment became
7109 comfortable for project planning, the next step was adding _TODO
7110 entries_, basic _time stamps_, and _table support_. These areas
7111 highlight the two main goals that Org-mode still has today: To create a
7112 new, outline-based, plain text mode with innovative and intuitive
7113 editing features, and to incorporate project planning functionality
7114 directly into a notes file.
7116 Since the first release, literally thousands of emails to me or on
7117 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
7118 feedback, new ideas, and sometimes patches and add-on code. Many
7119 thanks to everyone who has helped to improve this package. I am trying
7120 to keep here a list of the people who had significant influence in
7121 shaping one or more aspects of Org-mode. The list may not be complete,
7122 if I have forgotten someone, please accept my apologies and let me know.
7124 * Russel Adams came up with the idea for drawers.
7126 * Thomas Baumann contributed the code for links to the MH-E email
7129 * Alex Bochannek provided a patch for rounding time stamps.
7131 * Charles Cave's suggestion sparked the implementation of templates
7134 * Pavel Chalmoviansky influenced the agenda treatment of items with
7137 * Gregory Chernov patched support for lisp forms into table
7138 calculations and improved XEmacs compatibility, in particular by
7139 porting `nouline.el' to XEmacs.
7141 * Sacha Chua suggested to copy some linking code from Planner.
7143 * Eddward DeVilla proposed and tested checkbox statistics. He also
7144 came up with the idea of properties, and that there should be an
7147 * Kees Dullemond used to edit projects lists directly in HTML and so
7148 inspired some of the early development, including HTML export. He
7149 also asked for a way to narrow wide table columns.
7151 * Christian Egli converted the documentation into TeXInfo format,
7152 patched CSS formatting into the HTML exporter, and inspired the
7155 * David Emery provided a patch for custom CSS support in exported
7158 * Nic Ferrier contributed mailcap and XOXO support.
7160 * John Foerch figured out how to make incremental search show context
7161 around a match in a hidden outline tree.
7163 * Niels Giessen had the idea to automatically archive DONE trees.
7165 * Bastien Guerry wrote the LaTeX exporter and has been prolific with
7166 patches, ideas, and bug reports. to Org-mode.
7168 * Kai Grossjohann pointed out key-binding conflicts with other
7171 * Scott Jaderholm proposed footnotes, control over whitespace between
7172 folded entries, and column view for properties.
7174 * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
7175 provided frequent feedback and some patches.
7177 * Jason F. McBrayer suggested agenda export to CSV format.
7179 * Dmitri Minaev sent a patch to set priority limits on a per-file
7182 * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
7185 * Rick Moynihan proposed to allow multiple TODO sequences in a file.
7187 * Todd Neal provided patches for links to Info files and elisp forms.
7189 * Tim O'Callaghan suggested in-file links, search options for general
7190 file links, and TAGS.
7192 * Takeshi Okano translated the manual and David O'Toole's tutorial
7195 * Oliver Oppitz suggested multi-state TODO items.
7197 * Scott Otterson sparked the introduction of descriptive text for
7198 links, among other things.
7200 * Pete Phillips helped during the development of the TAGS feature,
7201 and provided frequent feedback.
7203 * T.V. Raman reported bugs and suggested improvements.
7205 * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
7208 * Kevin Rogers contributed code to access VM files on remote hosts.
7210 * Frank Ruell solved the mystery of the `keymapp nil' bug, a
7211 conflict with `allout.el'.
7213 * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
7215 * Philip Rooke created the Org-mode reference card and provided lots
7218 * Christian Schlauer proposed angular brackets around links, among
7221 * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
7222 `organizer-mode.el'.
7224 * Daniel Sinder came up with the idea of internal archiving by
7227 * Dale Smith proposed link abbreviations.
7229 * Adam Spiers asked for global linking commands and inspired the link
7230 extension system. support mairix.
7232 * David O'Toole wrote `org-publish.el' and drafted the manual
7233 chapter about publishing.
7235 * Ju"rgen Vollmer contributed code generating the table of contents
7238 * Chris Wallace provided a patch implementing the `QUOTE' keyword.
7240 * David Wainberg suggested archiving, and improvements to the linking
7243 * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
7244 development of Org-mode was fully independent, and both systems are
7245 really different beasts in their basic ideas and implementation
7246 details. I later looked at John's code, however, and learned from
7247 his implementation of (i) links where the link itself is hidden
7248 and only a description is shown, and (ii) popping up a calendar to
7249 select a date. John has also contributed a number of great ideas
7250 directly to Org-mode.
7252 * Carsten Wimmer suggested some changes and helped fix a bug in
7255 * Roland Winkler requested additional keybindings to make Org-mode
7258 * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
7259 contributed various ideas and code snippets.
7262 File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
7270 * abbreviation, links: Link abbreviations. (line 6)
7271 * acknowledgments: History and Acknowledgments.
7273 * action, for publishing: Publishing action. (line 6)
7274 * activation: Activation. (line 6)
7275 * active region <1>: HTML Export commands.
7277 * active region <2>: ASCII export. (line 9)
7278 * active region <3>: Built-in table editor.
7280 * active region: Structure editing. (line 64)
7281 * agenda: Weekly/Daily agenda. (line 6)
7282 * agenda dispatcher: Agenda dispatcher. (line 6)
7283 * agenda files: Agenda files. (line 6)
7284 * agenda files, removing buffers: Agenda commands. (line 239)
7285 * agenda views: Agenda views. (line 6)
7286 * agenda views, custom: Custom agenda views. (line 6)
7287 * agenda views, exporting <1>: Exporting Agenda Views.
7289 * agenda views, exporting: Agenda commands. (line 228)
7290 * agenda views, user-defined: Special agenda views.
7292 * agenda, pipe: Extracting Agenda Information for other programs.
7294 * agenda, with block views: Block agenda. (line 6)
7295 * align, STARTUP keyword: In-buffer settings. (line 68)
7296 * allout.el: Conflicts. (line 6)
7297 * angular brackets, around links: External links. (line 43)
7298 * API, for properties <1>: Using the property API.
7300 * API, for properties: Property API. (line 6)
7301 * archive locations: Moving subtrees. (line 21)
7302 * archiving: Archiving. (line 6)
7303 * ASCII export: ASCII export. (line 6)
7304 * author: Feedback. (line 6)
7305 * author info, in export: Export options. (line 25)
7306 * autoload: Activation. (line 6)
7307 * backtrace of an error: Feedback. (line 27)
7308 * BBDB links: External links. (line 6)
7309 * block agenda: Block agenda. (line 6)
7310 * blorg.el: Extensions. (line 32)
7311 * bold text: Enhancing text. (line 15)
7312 * Boolean logic, for tag searches: Tag searches. (line 23)
7313 * bug reports: Feedback. (line 6)
7314 * bugs: Bugs. (line 6)
7315 * C-c C-c, overview: The very busy C-c C-c key.
7317 * calc package: The spreadsheet. (line 6)
7318 * calc.el: Cooperation. (line 6)
7319 * calculations, in tables <1>: The spreadsheet. (line 6)
7320 * calculations, in tables: Built-in table editor.
7322 * calendar commands, from agenda: Agenda commands. (line 191)
7323 * calendar integration: Weekly/Daily agenda. (line 24)
7324 * calendar, for selecting date: The date/time prompt.
7326 * category: Categories. (line 6)
7327 * CDLaTeX: CDLaTeX mode. (line 6)
7328 * cdlatex.el: Cooperation. (line 29)
7329 * checkbox statistics: Checkboxes. (line 23)
7330 * checkboxes: Checkboxes. (line 6)
7331 * children, subtree visibility state: Visibility cycling. (line 10)
7332 * clean outline view: Clean view. (line 6)
7333 * column formula: Column formulas. (line 6)
7334 * column view, for properties: Defining columns. (line 6)
7335 * commands, in agenda buffer: Agenda commands. (line 6)
7336 * comment lines: Comment lines. (line 6)
7337 * completion, of dictionary words: Completion. (line 6)
7338 * completion, of file names: Handling links. (line 43)
7339 * completion, of link abbreviations: Completion. (line 6)
7340 * completion, of links: Handling links. (line 25)
7341 * completion, of option keywords <1>: Completion. (line 6)
7342 * completion, of option keywords <2>: Export options. (line 6)
7343 * completion, of option keywords: Per file keywords. (line 23)
7344 * completion, of property keys: Completion. (line 6)
7345 * completion, of tags <1>: Completion. (line 6)
7346 * completion, of tags: Setting tags. (line 11)
7347 * completion, of TeX symbols: Completion. (line 6)
7348 * completion, of TODO keywords <1>: Completion. (line 6)
7349 * completion, of TODO keywords: Workflow states. (line 15)
7350 * constants, in calculations: References. (line 82)
7351 * constants.el: Cooperation. (line 14)
7352 * constcgs, STARTUP keyword: In-buffer settings. (line 93)
7353 * constSI, STARTUP keyword: In-buffer settings. (line 93)
7354 * content, STARTUP keyword: In-buffer settings. (line 61)
7355 * contents, global visibility state: Visibility cycling. (line 22)
7356 * copying, of subtrees: Structure editing. (line 6)
7357 * creating timestamps: Creating timestamps. (line 6)
7358 * CUA.el: Conflicts. (line 15)
7359 * custom agenda views: Custom agenda views. (line 6)
7360 * custom date/time format: Custom time format. (line 6)
7361 * custom search strings: Custom searches. (line 6)
7362 * customization: Customization. (line 6)
7363 * customtime, STARTUP keyword: In-buffer settings. (line 90)
7364 * cutting, of subtrees: Structure editing. (line 6)
7365 * cycling, of TODO states: TODO basics. (line 13)
7366 * cycling, visibility: Visibility cycling. (line 6)
7367 * daily agenda: Weekly/Daily agenda. (line 6)
7368 * date format, custom: Custom time format. (line 6)
7369 * date range: Time stamps. (line 41)
7370 * date stamps <1>: Time stamps. (line 6)
7371 * date stamps: Timestamps. (line 6)
7372 * date, reading in minibuffer: The date/time prompt.
7374 * DEADLINE keyword: Deadlines and scheduling.
7376 * deadlines: Time stamps. (line 6)
7377 * debugging, of table formulas: Editing and debugging formulas.
7379 * demotion, of subtrees: Structure editing. (line 6)
7380 * diary entries, creating from agenda: Agenda commands. (line 196)
7381 * diary integration: Weekly/Daily agenda. (line 24)
7382 * dictionary word completion: Completion. (line 6)
7383 * directories, for publishing: Sources and destinations.
7385 * dispatching agenda commands: Agenda dispatcher. (line 6)
7386 * display changing, in agenda: Agenda commands. (line 65)
7387 * document structure: Document structure. (line 6)
7388 * DONE, final TODO keyword: Per file keywords. (line 26)
7389 * drawer, for properties: Property syntax. (line 6)
7390 * drawers: Drawers. (line 6)
7391 * dynamic blocks: Dynamic blocks. (line 6)
7392 * editing tables: Tables. (line 6)
7393 * editing, of table formulas: Editing and debugging formulas.
7395 * elisp links: External links. (line 6)
7396 * emphasized text: Export options. (line 25)
7397 * enhancing text: Enhancing text. (line 6)
7398 * evaluate time range: Creating timestamps. (line 48)
7399 * even, STARTUP keyword: In-buffer settings. (line 83)
7400 * exporting: Exporting. (line 6)
7401 * exporting agenda views <1>: Exporting Agenda Views.
7403 * exporting agenda views: Agenda commands. (line 228)
7404 * exporting, not: Comment lines. (line 6)
7405 * extended TODO keywords: TODO extensions. (line 6)
7406 * extension, third-party: Extensions. (line 6)
7407 * external archiving: Moving subtrees. (line 6)
7408 * external links: External links. (line 6)
7409 * external links, in HTML export: Links. (line 6)
7410 * FAQ: Summary. (line 56)
7411 * feedback: Feedback. (line 6)
7412 * field formula: Field formulas. (line 6)
7413 * field references: References. (line 15)
7414 * file links: External links. (line 6)
7415 * file links, searching: Search options. (line 6)
7416 * file name completion: Handling links. (line 43)
7417 * files for agenda: Agenda files. (line 6)
7418 * files, adding to agenda list: Agenda files. (line 12)
7419 * files, selecting for publishing: Selecting files. (line 6)
7420 * fixed width: Enhancing text. (line 28)
7421 * fixed-width sections: Export options. (line 25)
7422 * folded, subtree visibility state: Visibility cycling. (line 10)
7423 * folding, sparse trees: Sparse trees. (line 6)
7424 * following links: Handling links. (line 58)
7425 * footnote.el <1>: Conflicts. (line 35)
7426 * footnote.el <2>: Cooperation. (line 56)
7427 * footnote.el: Footnotes. (line 6)
7428 * footnotes <1>: Export options. (line 25)
7429 * footnotes: Footnotes. (line 6)
7430 * format specifier: Formula syntax for Calc.
7432 * format, of links: Link format. (line 6)
7433 * formula debugging: Editing and debugging formulas.
7435 * formula editing: Editing and debugging formulas.
7437 * formula syntax, Calc: Formula syntax for Calc.
7439 * formula, for individual table field: Field formulas. (line 6)
7440 * formula, for table column: Column formulas. (line 6)
7441 * formula, in tables: Built-in table editor.
7443 * global cycling: Visibility cycling. (line 22)
7444 * global keybindings: Activation. (line 6)
7445 * global TODO list: Global TODO list. (line 6)
7446 * global visibility states: Visibility cycling. (line 22)
7447 * GNUS links: External links. (line 6)
7448 * grouping columns in tables: Column groups. (line 6)
7449 * hand-formatted lists: Enhancing text. (line 11)
7450 * headline levels: Export options. (line 25)
7451 * headline levels, for exporting <1>: LaTeX export commands.
7453 * headline levels, for exporting <2>: HTML Export commands.
7455 * headline levels, for exporting: ASCII export. (line 18)
7456 * headline navigation: Motion. (line 6)
7457 * headline tagging: Tags. (line 6)
7458 * headline, promotion and demotion: Structure editing. (line 6)
7459 * headlines: Headlines. (line 6)
7460 * hide text: Visibility cycling. (line 6)
7461 * hidestars, STARTUP keyword: In-buffer settings. (line 83)
7462 * hiding leading stars: Clean view. (line 6)
7463 * history: History and Acknowledgments.
7465 * horizontal rules, in exported files: Enhancing text. (line 18)
7466 * HTML export: HTML export. (line 6)
7467 * HTML, and orgtbl-mode: Translator functions.
7469 * hyperlinks: Hyperlinks. (line 6)
7470 * hyperlinks, adding new types: Adding hyperlink types.
7472 * iCalendar export: iCalendar export. (line 6)
7473 * images, inline in HTML: Images. (line 6)
7474 * in-buffer settings: In-buffer settings. (line 6)
7475 * inactive timestamp: Time stamps. (line 50)
7476 * index, of published pages: Project page index. (line 6)
7477 * Info links: External links. (line 6)
7478 * inheritance, of tags: Tag inheritance. (line 6)
7479 * inlining images in HTML: Images. (line 6)
7480 * inserting links: Handling links. (line 25)
7481 * installation: Installation. (line 6)
7482 * internal archiving: ARCHIVE tag. (line 6)
7483 * internal links: Internal links. (line 6)
7484 * internal links, in HTML export: Links. (line 6)
7485 * introduction: Introduction. (line 6)
7486 * italic text: Enhancing text. (line 15)
7487 * jumping, to headlines: Motion. (line 6)
7488 * keybindings, global: Activation. (line 6)
7489 * keyword options: Per file keywords. (line 6)
7490 * LaTeX export: LaTeX export. (line 6)
7491 * LaTeX fragments <1>: Export options. (line 25)
7492 * LaTeX fragments: LaTeX fragments. (line 6)
7493 * LaTeX fragments, export: Enhancing text. (line 21)
7494 * LaTeX fragments, preview: Processing LaTeX fragments.
7496 * LaTeX interpretation: Embedded LaTeX. (line 6)
7497 * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
7498 * level, require for tags match: Tag searches. (line 68)
7499 * linebreak preservation: Export options. (line 25)
7500 * linebreak, forced: Enhancing text. (line 35)
7501 * link abbreviations: Link abbreviations. (line 6)
7502 * link abbreviations, completion of: Completion. (line 6)
7503 * link completion: Handling links. (line 25)
7504 * link format: Link format. (line 6)
7505 * links, external: External links. (line 6)
7506 * links, finding next/previous: Handling links. (line 91)
7507 * links, handling: Handling links. (line 6)
7508 * links, in HTML export: Links. (line 6)
7509 * links, internal: Internal links. (line 6)
7510 * links, publishing: Publishing links. (line 6)
7511 * links, radio targets: Radio targets. (line 6)
7512 * links, returning to: Handling links. (line 85)
7513 * Lisp forms, as table formulas: Formula syntax for Lisp.
7515 * lists, hand-formatted: Enhancing text. (line 11)
7516 * lists, ordered: Plain lists. (line 6)
7517 * lists, plain: Plain lists. (line 6)
7518 * logdone, STARTUP keyword: In-buffer settings. (line 72)
7519 * logging, of progress: Progress logging. (line 6)
7520 * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 72)
7521 * lognotedone, STARTUP keyword: In-buffer settings. (line 72)
7522 * lognotestate, STARTUP keyword: In-buffer settings. (line 72)
7523 * logrepeat, STARTUP keyword: In-buffer settings. (line 72)
7524 * maintainer: Feedback. (line 6)
7525 * mark ring: Handling links. (line 81)
7526 * marking characters, tables: Advanced features. (line 40)
7527 * matching, of properties: Matching tags and properties.
7529 * matching, of tags: Matching tags and properties.
7531 * matching, tags: Tags. (line 6)
7532 * math symbols: Math symbols. (line 6)
7533 * MH-E links: External links. (line 6)
7534 * minor mode for structure editing: orgstruct-mode. (line 6)
7535 * minor mode for tables: orgtbl-mode. (line 6)
7536 * mode, for calc: Formula syntax for Calc.
7538 * motion commands in agenda: Agenda commands. (line 19)
7539 * motion, between headlines: Motion. (line 6)
7540 * name, of column or field: References. (line 82)
7541 * named references: References. (line 82)
7542 * names as TODO keywords: TODO types. (line 6)
7543 * narrow columns in tables: Narrow columns. (line 6)
7544 * noalign, STARTUP keyword: In-buffer settings. (line 68)
7545 * nologging, STARTUP keyword: In-buffer settings. (line 72)
7546 * nologrepeat, STARTUP keyword: In-buffer settings. (line 72)
7547 * occur, command: Sparse trees. (line 6)
7548 * odd, STARTUP keyword: In-buffer settings. (line 83)
7549 * option keyword completion: Completion. (line 6)
7550 * options, for custom agenda views: Setting Options. (line 6)
7551 * options, for customization: Customization. (line 6)
7552 * options, for export: Export options. (line 6)
7553 * options, for publishing: Publishing options. (line 6)
7554 * ordered lists: Plain lists. (line 6)
7555 * org-agenda, command: Weekly/Daily agenda. (line 9)
7556 * org-blog.el: Extensions. (line 28)
7557 * org-mode, turning on: Activation. (line 22)
7558 * org-mouse.el: Extensions. (line 16)
7559 * org-publish-project-alist: Project alist. (line 6)
7560 * org-publish.el: Extensions. (line 8)
7561 * org2rem.el: Extensions. (line 36)
7562 * orgstruct-mode: orgstruct-mode. (line 6)
7563 * orgtbl-mode <1>: Tables in arbitrary syntax.
7565 * orgtbl-mode: orgtbl-mode. (line 6)
7566 * outline tree: Headlines. (line 6)
7567 * outline-mode: Outlines. (line 6)
7568 * outlines: Outlines. (line 6)
7569 * overview, global visibility state: Visibility cycling. (line 22)
7570 * overview, STARTUP keyword: In-buffer settings. (line 61)
7571 * packages, interaction with other: Interaction. (line 6)
7572 * pasting, of subtrees: Structure editing. (line 6)
7573 * per file keywords: Per file keywords. (line 6)
7574 * plain lists: Plain lists. (line 6)
7575 * plain text external links: External links. (line 43)
7576 * presentation, of agenda items: Presentation and sorting.
7578 * printing sparse trees: Sparse trees. (line 41)
7579 * priorities: Priorities. (line 6)
7580 * priorities, of agenda items: Sorting of agenda items.
7582 * progress logging: Progress logging. (line 6)
7583 * projects, for publishing: Project alist. (line 6)
7584 * promotion, of subtrees: Structure editing. (line 6)
7585 * properties: Properties and columns.
7587 * properties, API <1>: Using the property API.
7589 * properties, API: Property API. (line 6)
7590 * properties, column view: Defining columns. (line 6)
7591 * properties, searching: Property searches. (line 6)
7592 * properties, special: Special properties. (line 6)
7593 * property syntax: Property syntax. (line 6)
7594 * publishing: Publishing. (line 6)
7595 * quoted HTML tags: Export options. (line 25)
7596 * radio tables: Radio tables. (line 6)
7597 * radio targets: Radio targets. (line 6)
7598 * range references: References. (line 60)
7599 * ranges, time: Time stamps. (line 6)
7600 * recomputing table fields: Updating the table. (line 6)
7601 * references: References. (line 6)
7602 * references, named: References. (line 82)
7603 * references, to fields: References. (line 15)
7604 * references, to ranges: References. (line 60)
7605 * region, active <1>: HTML Export commands.
7607 * region, active <2>: ASCII export. (line 9)
7608 * region, active <3>: Built-in table editor.
7610 * region, active: Structure editing. (line 64)
7611 * regular expressions, with tags search: Tag searches. (line 63)
7612 * remember.el <1>: Cooperation. (line 33)
7613 * remember.el: Remember. (line 6)
7614 * remote editing, from agenda: Agenda commands. (line 106)
7615 * remote editing, undo: Agenda commands. (line 107)
7616 * richer text: Enhancing text. (line 6)
7617 * RMAIL links: External links. (line 6)
7618 * SCHEDULED keyword: Deadlines and scheduling.
7620 * scheduling: Time stamps. (line 6)
7621 * Scripts, for agenda processing: Extracting Agenda Information for other programs.
7623 * search option in file links: Search options. (line 6)
7624 * search strings, custom: Custom searches. (line 6)
7625 * searching for tags: Tag searches. (line 6)
7626 * section-numbers: Export options. (line 25)
7627 * setting tags: Setting tags. (line 6)
7628 * SHELL links: External links. (line 6)
7629 * show all, command: Visibility cycling. (line 33)
7630 * show all, global visibility state: Visibility cycling. (line 22)
7631 * show hidden text: Visibility cycling. (line 6)
7632 * showall, STARTUP keyword: In-buffer settings. (line 61)
7633 * showstars, STARTUP keyword: In-buffer settings. (line 83)
7634 * sorting, of agenda items: Sorting of agenda items.
7636 * sparse tree, for deadlines: Inserting deadline/schedule.
7638 * sparse tree, for TODO: TODO basics. (line 26)
7639 * sparse tree, tag based: Tags. (line 6)
7640 * sparse trees: Sparse trees. (line 6)
7641 * special keywords: In-buffer settings. (line 6)
7642 * spreadsheet capabilities: The spreadsheet. (line 6)
7643 * statistics, for checkboxes: Checkboxes. (line 23)
7644 * storing links: Handling links. (line 9)
7645 * structure editing: Structure editing. (line 6)
7646 * structure of document: Document structure. (line 6)
7647 * sublevels, inclusion into tags match: Tag inheritance. (line 6)
7648 * sublevels, inclusion into todo list: Global TODO list. (line 34)
7649 * subscript: Subscripts and Superscripts.
7651 * subtree cycling: Visibility cycling. (line 10)
7652 * subtree visibility states: Visibility cycling. (line 10)
7653 * subtree, cut and paste: Structure editing. (line 6)
7654 * subtree, subtree visibility state: Visibility cycling. (line 10)
7655 * subtrees, cut and paste: Structure editing. (line 6)
7656 * summary: Summary. (line 6)
7657 * superscript: Subscripts and Superscripts.
7659 * syntax, of formulas: Formula syntax for Calc.
7661 * table editor, built-in: Built-in table editor.
7663 * table editor, table.el: Cooperation. (line 37)
7664 * table of contents: Export options. (line 25)
7665 * table.el: Cooperation. (line 34)
7666 * tables <1>: Export options. (line 25)
7667 * tables: Tables. (line 6)
7668 * tables, export: Enhancing text. (line 24)
7669 * tables, in other modes: Tables in arbitrary syntax.
7671 * tag completion: Completion. (line 6)
7672 * tag searches: Tag searches. (line 6)
7673 * tags: Tags. (line 6)
7674 * tags view: Matching tags and properties.
7676 * tags, setting: Setting tags. (line 6)
7677 * targets, for links: Internal links. (line 6)
7678 * targets, radio: Radio targets. (line 6)
7679 * tasks, breaking down: Breaking down tasks. (line 6)
7680 * templates, for remember: Remember templates. (line 6)
7681 * TeX interpretation: Embedded LaTeX. (line 6)
7682 * TeX macros <1>: Export options. (line 25)
7683 * TeX macros: Math symbols. (line 6)
7684 * TeX macros, export: Enhancing text. (line 21)
7685 * TeX symbol completion: Completion. (line 6)
7686 * TeX-like syntax for sub- and superscripts: Export options. (line 25)
7687 * thanks: History and Acknowledgments.
7689 * time format, custom: Custom time format. (line 6)
7690 * time grid: Time-of-day specifications.
7692 * time info, in export: Export options. (line 25)
7693 * time stamps <1>: Time stamps. (line 6)
7694 * time stamps: Timestamps. (line 6)
7695 * time, reading in minibuffer: The date/time prompt.
7697 * time-of-day specification: Time-of-day specifications.
7699 * time-sorted view: Timeline. (line 6)
7700 * timeline, single file: Timeline. (line 6)
7701 * timerange: Time stamps. (line 41)
7702 * timestamp: Time stamps. (line 14)
7703 * timestamp, inactive: Time stamps. (line 50)
7704 * timestamp, with repeater interval: Time stamps. (line 25)
7705 * timestamps, creating: Creating timestamps. (line 6)
7706 * TODO items: TODO items. (line 6)
7707 * TODO keyword matching: Global TODO list. (line 17)
7708 * TODO keyword matching, with tags search: Tag searches. (line 40)
7709 * todo keyword sets: Multiple sets in one file.
7711 * TODO keywords completion: Completion. (line 6)
7712 * TODO list, global: Global TODO list. (line 6)
7713 * TODO types: TODO types. (line 6)
7714 * TODO workflow: Workflow states. (line 6)
7715 * transient-mark-mode <1>: HTML Export commands.
7717 * transient-mark-mode <2>: ASCII export. (line 9)
7718 * transient-mark-mode <3>: Built-in table editor.
7720 * transient-mark-mode: Structure editing. (line 64)
7721 * translator function: Translator functions.
7723 * trees, sparse: Sparse trees. (line 6)
7724 * trees, visibility: Visibility cycling. (line 6)
7725 * tty keybindings: TTY keys. (line 6)
7726 * types as TODO keywords: TODO types. (line 6)
7727 * underlined text: Enhancing text. (line 15)
7728 * undoing remote-editing events: Agenda commands. (line 107)
7729 * updating, table: Updating the table. (line 6)
7730 * URL links: External links. (line 6)
7731 * USENET links: External links. (line 6)
7732 * variables, for customization: Customization. (line 6)
7733 * vectors, in table calculations: Formula syntax for Calc.
7735 * visibility cycling: Visibility cycling. (line 6)
7736 * visibility cycling, drawers: Drawers. (line 6)
7737 * visible text, printing: Sparse trees. (line 41)
7738 * VM links: External links. (line 6)
7739 * WANDERLUST links: External links. (line 6)
7740 * weekly agenda: Weekly/Daily agenda. (line 6)
7741 * windmove.el: Conflicts. (line 32)
7742 * workflow states as TODO keywords: Workflow states. (line 6)
7743 * XEmacs: Installation. (line 6)
7744 * XOXO export: XOXO export. (line 6)
7747 File: org, Node: Key Index, Prev: Index, Up: Top
7755 * $: Agenda commands. (line 121)
7756 * ': CDLaTeX mode. (line 43)
7757 * +: Agenda commands. (line 143)
7758 * ,: Agenda commands. (line 135)
7759 * -: Agenda commands. (line 149)
7760 * .: Agenda commands. (line 98)
7761 * :: Agenda commands. (line 129)
7762 * < <1>: The date/time prompt.
7764 * <: Using column view. (line 54)
7765 * <left>: Agenda commands. (line 95)
7766 * <RET> <1>: Agenda commands. (line 39)
7767 * <RET> <2>: The date/time prompt.
7769 * <RET> <3>: Setting tags. (line 76)
7770 * <RET>: Built-in table editor.
7772 * <right>: Agenda commands. (line 90)
7773 * <SPC> <1>: Agenda commands. (line 28)
7774 * <SPC>: Setting tags. (line 73)
7775 * <TAB> <1>: CDLaTeX mode. (line 23)
7776 * <TAB> <2>: Agenda commands. (line 33)
7777 * <TAB> <3>: Setting tags. (line 68)
7778 * <TAB> <4>: Editing and debugging formulas.
7780 * <TAB> <5>: Built-in table editor.
7782 * <TAB> <6>: Plain lists. (line 41)
7783 * <TAB>: Visibility cycling. (line 10)
7784 * > <1>: Agenda commands. (line 171)
7785 * > <2>: The date/time prompt.
7787 * >: Using column view. (line 54)
7788 * ^: CDLaTeX mode. (line 33)
7789 * _: CDLaTeX mode. (line 33)
7790 * `: CDLaTeX mode. (line 39)
7791 * a <1>: Agenda commands. (line 132)
7792 * a: Using column view. (line 43)
7793 * b: Agenda commands. (line 49)
7794 * C: Agenda commands. (line 211)
7795 * c: Agenda commands. (line 191)
7796 * C-#: Advanced features. (line 9)
7797 * C-': Agenda files. (line 18)
7798 * C-,: Agenda files. (line 18)
7799 * C-_: Agenda commands. (line 107)
7800 * C-c ! <1>: Footnotes. (line 14)
7801 * C-c !: Creating timestamps. (line 19)
7802 * C-c #: Checkboxes. (line 57)
7803 * C-c %: Handling links. (line 81)
7804 * C-c &: Handling links. (line 85)
7805 * C-c ': Editing and debugging formulas.
7807 * C-c *: Updating the table. (line 13)
7808 * C-c +: Built-in table editor.
7810 * C-c ,: Priorities. (line 18)
7811 * C-c - <1>: Built-in table editor.
7813 * C-c -: Plain lists. (line 88)
7814 * C-c .: Creating timestamps. (line 10)
7815 * C-c /: Sparse trees. (line 15)
7816 * C-c :: Enhancing text. (line 32)
7817 * C-c ;: Comment lines. (line 10)
7818 * C-c <: Creating timestamps. (line 23)
7819 * C-c <TAB>: Built-in table editor.
7821 * C-c = <1>: Editing and debugging formulas.
7823 * C-c =: Column formulas. (line 26)
7824 * C-c >: Creating timestamps. (line 27)
7825 * C-c ?: Editing and debugging formulas.
7827 * C-c [: Agenda files. (line 12)
7828 * C-c \: Tag searches. (line 9)
7829 * C-c ]: Agenda files. (line 15)
7830 * C-c ^ <1>: Built-in table editor.
7832 * C-c ^: Structure editing. (line 52)
7833 * C-c `: Built-in table editor.
7835 * C-c a !: Stuck projects. (line 14)
7836 * C-c a #: Stuck projects. (line 13)
7837 * C-c a a: Weekly/Daily agenda. (line 9)
7838 * C-c a C: Storing searches. (line 9)
7839 * C-c a e: Exporting Agenda Views.
7841 * C-c a L: Timeline. (line 10)
7842 * C-c a M: Matching tags and properties.
7844 * C-c a m: Matching tags and properties.
7846 * C-c a M: Tag searches. (line 16)
7847 * C-c a m: Tag searches. (line 12)
7848 * C-c a T: Global TODO list. (line 14)
7849 * C-c a t <1>: Global TODO list. (line 9)
7850 * C-c a t: TODO basics. (line 36)
7851 * C-c C-a: Visibility cycling. (line 33)
7852 * C-c C-b: Motion. (line 15)
7853 * C-c C-c <1>: Cooperation. (line 37)
7854 * C-c C-c <2>: The very busy C-c C-c key.
7856 * C-c C-c <3>: Processing LaTeX fragments.
7858 * C-c C-c <4>: Property syntax. (line 54)
7859 * C-c C-c <5>: Setting tags. (line 10)
7860 * C-c C-c <6>: Checkboxes. (line 37)
7861 * C-c C-c <7>: Editing and debugging formulas.
7863 * C-c C-c <8>: Built-in table editor.
7865 * C-c C-c: Plain lists. (line 81)
7866 * C-c C-d <1>: Agenda commands. (line 156)
7867 * C-c C-d: Inserting deadline/schedule.
7869 * C-c C-e: Exporting. (line 20)
7870 * C-c C-e a: ASCII export. (line 9)
7871 * C-c C-e b: HTML Export commands.
7873 * C-c C-e c: iCalendar export. (line 21)
7874 * C-c C-e H: HTML Export commands.
7876 * C-c C-e h: HTML Export commands.
7878 * C-c C-e I: iCalendar export. (line 16)
7879 * C-c C-e i: iCalendar export. (line 14)
7880 * C-c C-e L: LaTeX export commands.
7882 * C-c C-e l: LaTeX export commands.
7884 * C-c C-e R: HTML Export commands.
7886 * C-c C-e t: Export options. (line 13)
7887 * C-c C-e v <1>: XOXO export. (line 11)
7888 * C-c C-e v: Sparse trees. (line 41)
7889 * C-c C-e v a: ASCII export. (line 13)
7890 * C-c C-e v b: HTML Export commands.
7892 * C-c C-e v H: HTML Export commands.
7894 * C-c C-e v h: HTML Export commands.
7896 * C-c C-e v L: LaTeX export commands.
7898 * C-c C-e v l: LaTeX export commands.
7900 * C-c C-e v R: HTML Export commands.
7902 * C-c C-e x: XOXO export. (line 10)
7903 * C-c C-f: Motion. (line 12)
7904 * C-c C-j: Motion. (line 21)
7905 * C-c C-l: Handling links. (line 25)
7906 * C-c C-n: Motion. (line 8)
7907 * C-c C-o <1>: Creating timestamps. (line 31)
7908 * C-c C-o: Handling links. (line 58)
7909 * C-c C-p: Motion. (line 9)
7910 * C-c C-q <1>: Editing and debugging formulas.
7912 * C-c C-q: Built-in table editor.
7914 * C-c C-r <1>: Editing and debugging formulas.
7916 * C-c C-r: Visibility cycling. (line 34)
7917 * C-c C-s <1>: Agenda commands. (line 153)
7918 * C-c C-s: Inserting deadline/schedule.
7920 * C-c C-t <1>: Clocking work time. (line 27)
7921 * C-c C-t: TODO basics. (line 13)
7922 * C-c C-u: Motion. (line 18)
7923 * C-c C-v: TODO basics. (line 26)
7924 * C-c C-w: Inserting deadline/schedule.
7926 * C-c C-x b: Visibility cycling. (line 41)
7927 * C-c C-x C-a: ARCHIVE tag. (line 28)
7928 * C-c C-x C-b: Checkboxes. (line 39)
7929 * C-c C-x C-c <1>: Agenda commands. (line 218)
7930 * C-c C-x C-c: Using column view. (line 9)
7931 * C-c C-x C-d: Clocking work time. (line 35)
7932 * C-c C-x C-i: Clocking work time. (line 12)
7933 * C-c C-x C-k: Structure editing. (line 39)
7934 * C-c C-x C-l: Processing LaTeX fragments.
7936 * C-c C-x C-n: Handling links. (line 91)
7937 * C-c C-x C-o: Clocking work time. (line 14)
7938 * C-c C-x C-p: Handling links. (line 91)
7939 * C-c C-x C-r: Clocking work time. (line 43)
7940 * C-c C-x C-s: Moving subtrees. (line 10)
7941 * C-c C-x C-t: Custom time format. (line 12)
7942 * C-c C-x C-u: Dynamic blocks. (line 21)
7943 * C-c C-x C-w <1>: Built-in table editor.
7945 * C-c C-x C-w: Structure editing. (line 39)
7946 * C-c C-x C-x: Clocking work time. (line 31)
7947 * C-c C-x C-y <1>: Built-in table editor.
7949 * C-c C-x C-y: Structure editing. (line 46)
7950 * C-c C-x M-w <1>: Built-in table editor.
7952 * C-c C-x M-w: Structure editing. (line 43)
7953 * C-c C-y <1>: Clocking work time. (line 22)
7954 * C-c C-y: Creating timestamps. (line 48)
7955 * C-c l: Handling links. (line 9)
7956 * C-c { <1>: CDLaTeX mode. (line 21)
7957 * C-c {: Editing and debugging formulas.
7959 * C-c |: Built-in table editor.
7961 * C-c }: Editing and debugging formulas.
7963 * C-c ~: Cooperation. (line 48)
7964 * C-k: Agenda commands. (line 115)
7965 * C-S-<left>: Multiple sets in one file.
7967 * C-S-<right>: Multiple sets in one file.
7969 * C-TAB: ARCHIVE tag. (line 38)
7970 * C-u C-c *: Updating the table. (line 16)
7971 * C-u C-c .: Creating timestamps. (line 14)
7972 * C-u C-c = <1>: Editing and debugging formulas.
7974 * C-u C-c =: Field formulas. (line 24)
7975 * C-u C-c C-c: Updating the table. (line 19)
7976 * C-u C-c C-l: Handling links. (line 43)
7977 * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
7978 * C-u C-c C-x C-s: Moving subtrees. (line 12)
7979 * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
7980 * C-u C-c C-x C-u: Clocking work time. (line 70)
7981 * C-u C-u C-c *: Updating the table. (line 22)
7982 * C-u C-u C-c =: Editing and debugging formulas.
7984 * C-x C-s: Editing and debugging formulas.
7986 * C-x C-w <1>: Exporting Agenda Views.
7988 * C-x C-w: Agenda commands. (line 227)
7989 * D: Agenda commands. (line 72)
7990 * d: Agenda commands. (line 66)
7991 * e: Using column view. (line 33)
7992 * f: Agenda commands. (line 42)
7993 * g: Agenda commands. (line 76)
7994 * H: Agenda commands. (line 215)
7995 * i: Agenda commands. (line 196)
7996 * I: Agenda commands. (line 176)
7997 * l: Agenda commands. (line 55)
7998 * L: Agenda commands. (line 30)
7999 * M: Agenda commands. (line 202)
8000 * m: Agenda commands. (line 66)
8001 * M-<down> <1>: Editing and debugging formulas.
8003 * M-<down>: Built-in table editor.
8005 * M-<left> <1>: Built-in table editor.
8007 * M-<left>: Structure editing. (line 21)
8008 * M-<RET> <1>: Plain lists. (line 49)
8009 * M-<RET>: Structure editing. (line 6)
8010 * M-<right> <1>: Built-in table editor.
8012 * M-<right>: Structure editing. (line 24)
8013 * M-<TAB> <1>: Completion. (line 10)
8014 * M-<TAB> <2>: Property syntax. (line 46)
8015 * M-<TAB> <3>: Setting tags. (line 6)
8016 * M-<TAB> <4>: Per file keywords. (line 23)
8017 * M-<TAB>: Editing and debugging formulas.
8019 * M-<up> <1>: Editing and debugging formulas.
8021 * M-<up>: Built-in table editor.
8023 * M-S-<down> <1>: Editing and debugging formulas.
8025 * M-S-<down> <2>: Built-in table editor.
8027 * M-S-<down> <3>: Plain lists. (line 66)
8028 * M-S-<down>: Structure editing. (line 36)
8029 * M-S-<left> <1>: The date/time prompt.
8031 * M-S-<left> <2>: Built-in table editor.
8033 * M-S-<left> <3>: Plain lists. (line 72)
8034 * M-S-<left>: Structure editing. (line 27)
8035 * M-S-<RET> <1>: Checkboxes. (line 54)
8036 * M-S-<RET> <2>: Plain lists. (line 59)
8037 * M-S-<RET>: Structure editing. (line 18)
8038 * M-S-<right> <1>: The date/time prompt.
8040 * M-S-<right> <2>: Built-in table editor.
8042 * M-S-<right> <3>: Plain lists. (line 72)
8043 * M-S-<right>: Structure editing. (line 30)
8044 * M-S-<up> <1>: Editing and debugging formulas.
8046 * M-S-<up> <2>: Built-in table editor.
8048 * M-S-<up> <3>: Plain lists. (line 66)
8049 * M-S-<up>: Structure editing. (line 33)
8050 * mouse-1 <1>: Agenda commands. (line 33)
8051 * mouse-1 <2>: The date/time prompt.
8053 * mouse-1: Handling links. (line 72)
8054 * mouse-2 <1>: Agenda commands. (line 33)
8055 * mouse-2: Handling links. (line 72)
8056 * mouse-3 <1>: Agenda commands. (line 28)
8057 * mouse-3: Handling links. (line 77)
8058 * n <1>: Agenda commands. (line 19)
8059 * n: Using column view. (line 30)
8060 * O: Agenda commands. (line 180)
8061 * o: Agenda commands. (line 65)
8062 * P: Agenda commands. (line 140)
8063 * p <1>: Agenda commands. (line 20)
8064 * p: Using column view. (line 30)
8065 * q <1>: Agenda commands. (line 238)
8066 * q: Using column view. (line 17)
8067 * r <1>: Agenda commands. (line 80)
8068 * r: Global TODO list. (line 22)
8069 * S: Agenda commands. (line 206)
8070 * s: Agenda commands. (line 87)
8071 * S-<down> <1>: Agenda commands. (line 149)
8072 * S-<down> <2>: The date/time prompt.
8074 * S-<down> <3>: Creating timestamps. (line 40)
8075 * S-<down> <4>: Priorities. (line 23)
8076 * S-<down> <5>: Editing and debugging formulas.
8078 * S-<down>: Plain lists. (line 62)
8079 * S-<left> <1>: Agenda commands. (line 167)
8080 * S-<left> <2>: The date/time prompt.
8082 * S-<left> <3>: Creating timestamps. (line 35)
8083 * S-<left> <4>: Using column view. (line 26)
8084 * S-<left> <5>: Property syntax. (line 62)
8085 * S-<left> <6>: Multiple sets in one file.
8087 * S-<left> <7>: TODO basics. (line 20)
8088 * S-<left>: Editing and debugging formulas.
8090 * S-<RET>: Built-in table editor.
8092 * S-<right> <1>: Agenda commands. (line 159)
8093 * S-<right> <2>: The date/time prompt.
8095 * S-<right> <3>: Creating timestamps. (line 35)
8096 * S-<right> <4>: Using column view. (line 26)
8097 * S-<right> <5>: Property syntax. (line 62)
8098 * S-<right> <6>: Multiple sets in one file.
8100 * S-<right> <7>: TODO basics. (line 20)
8101 * S-<right>: Editing and debugging formulas.
8103 * S-<TAB> <1>: Built-in table editor.
8105 * S-<TAB>: Visibility cycling. (line 22)
8106 * S-<up> <1>: Agenda commands. (line 143)
8107 * S-<up> <2>: The date/time prompt.
8109 * S-<up> <3>: Creating timestamps. (line 40)
8110 * S-<up> <4>: Priorities. (line 23)
8111 * S-<up> <5>: Editing and debugging formulas.
8113 * S-<up>: Plain lists. (line 62)
8114 * S-M-<left>: Using column view. (line 58)
8115 * S-M-<RET>: TODO basics. (line 44)
8116 * S-M-<right>: Using column view. (line 55)
8117 * T: Agenda commands. (line 124)
8118 * t: Agenda commands. (line 111)
8119 * v: Using column view. (line 39)
8120 * w: Agenda commands. (line 66)
8121 * x: Agenda commands. (line 239)
8122 * X: Agenda commands. (line 183)
8123 * y: Agenda commands. (line 66)
8129 Node: Introduction
\x7f12966
8130 Node: Summary
\x7f13381
8131 Node: Installation
\x7f16533
8132 Node: Activation
\x7f17911
8133 Node: Feedback
\x7f19162
8134 Node: Document structure
\x7f21238
8135 Node: Outlines
\x7f22130
8136 Node: Headlines
\x7f22795
8137 Ref: Headlines-Footnote-1
\x7f23799
8138 Node: Visibility cycling
\x7f23910
8139 Ref: Visibility cycling-Footnote-1
\x7f26120
8140 Ref: Visibility cycling-Footnote-2
\x7f26178
8141 Ref: Visibility cycling-Footnote-3
\x7f26228
8142 Node: Motion
\x7f26498
8143 Node: Structure editing
\x7f27452
8144 Node: Archiving
\x7f30278
8145 Node: ARCHIVE tag
\x7f30836
8146 Node: Moving subtrees
\x7f32629
8147 Node: Sparse trees
\x7f33940
8148 Ref: Sparse trees-Footnote-1
\x7f36072
8149 Ref: Sparse trees-Footnote-2
\x7f36254
8150 Node: Plain lists
\x7f36369
8151 Ref: Plain lists-Footnote-1
\x7f40566
8152 Ref: Plain lists-Footnote-2
\x7f40924
8153 Node: Drawers
\x7f41105
8154 Node: orgstruct-mode
\x7f41943
8155 Node: Tables
\x7f42843
8156 Node: Built-in table editor
\x7f43424
8157 Node: Narrow columns
\x7f50669
8158 Ref: Narrow columns-Footnote-1
\x7f52604
8159 Node: Column groups
\x7f52650
8160 Node: orgtbl-mode
\x7f54183
8161 Node: The spreadsheet
\x7f54986
8162 Node: References
\x7f56073
8163 Ref: References-Footnote-1
\x7f60537
8164 Node: Formula syntax for Calc
\x7f60826
8165 Node: Formula syntax for Lisp
\x7f63283
8166 Node: Field formulas
\x7f65001
8167 Node: Column formulas
\x7f66309
8168 Node: Editing and debugging formulas
\x7f67908
8169 Node: Updating the table
\x7f72061
8170 Node: Advanced features
\x7f73096
8171 Node: Hyperlinks
\x7f77621
8172 Node: Link format
\x7f78459
8173 Node: Internal links
\x7f79752
8174 Ref: Internal links-Footnote-1
\x7f81677
8175 Node: Radio targets
\x7f81812
8176 Node: External links
\x7f82503
8177 Node: Handling links
\x7f84907
8178 Ref: Handling links-Footnote-1
\x7f90204
8179 Ref: Handling links-Footnote-2
\x7f90441
8180 Node: Using links outside Org-mode
\x7f90515
8181 Node: Link abbreviations
\x7f91041
8182 Node: Search options
\x7f92734
8183 Ref: Search options-Footnote-1
\x7f94514
8184 Node: Custom searches
\x7f94595
8185 Node: Remember
\x7f95643
8186 Node: Setting up remember
\x7f96630
8187 Node: Remember templates
\x7f97212
8188 Ref: Remember templates-Footnote-1
\x7f100658
8189 Node: Storing notes
\x7f100756
8190 Node: TODO items
\x7f102643
8191 Node: TODO basics
\x7f103620
8192 Node: TODO extensions
\x7f105384
8193 Node: Workflow states
\x7f106203
8194 Ref: Workflow states-Footnote-1
\x7f107378
8195 Node: TODO types
\x7f107471
8196 Ref: TODO types-Footnote-1
\x7f109054
8197 Node: Multiple sets in one file
\x7f109136
8198 Node: Per file keywords
\x7f110747
8199 Ref: Per file keywords-Footnote-1
\x7f112036
8200 Node: Priorities
\x7f112237
8201 Node: Breaking down tasks
\x7f113847
8202 Ref: Breaking down tasks-Footnote-1
\x7f114367
8203 Node: Checkboxes
\x7f114463
8204 Node: Tags
\x7f117312
8205 Node: Tag inheritance
\x7f118084
8206 Node: Setting tags
\x7f119021
8207 Ref: Setting tags-Footnote-1
\x7f123544
8208 Ref: Setting tags-Footnote-2
\x7f123656
8209 Node: Tag searches
\x7f123739
8210 Node: Properties and columns
\x7f126456
8211 Node: Property syntax
\x7f127561
8212 Node: Special properties
\x7f129982
8213 Node: Property searches
\x7f130898
8214 Node: Column view
\x7f131553
8215 Node: Defining columns
\x7f132720
8216 Node: Scope of column definitions
\x7f133118
8217 Node: Column attributes
\x7f134040
8218 Node: Using column view
\x7f136288
8219 Node: Property API
\x7f138275
8220 Node: Timestamps
\x7f138629
8221 Node: Time stamps
\x7f139090
8222 Ref: Time stamps-Footnote-1
\x7f141518
8223 Node: Creating timestamps
\x7f141634
8224 Node: The date/time prompt
\x7f143708
8225 Ref: The date/time prompt-Footnote-1
\x7f145696
8226 Node: Custom time format
\x7f145802
8227 Node: Deadlines and scheduling
\x7f147494
8228 Ref: Deadlines and scheduling-Footnote-1
\x7f149114
8229 Node: Inserting deadline/schedule
\x7f149269
8230 Node: Repeated tasks
\x7f150207
8231 Node: Progress logging
\x7f151846
8232 Node: Closing items
\x7f152501
8233 Ref: Closing items-Footnote-1
\x7f153435
8234 Ref: Closing items-Footnote-2
\x7f153504
8235 Node: Tracking TODO state changes
\x7f153577
8236 Node: Clocking work time
\x7f154433
8237 Ref: Clocking work time-Footnote-1
\x7f158079
8238 Ref: Clocking work time-Footnote-2
\x7f158157
8239 Node: Agenda views
\x7f158283
8240 Node: Agenda files
\x7f160234
8241 Ref: Agenda files-Footnote-1
\x7f161200
8242 Ref: Agenda files-Footnote-2
\x7f161349
8243 Node: Agenda dispatcher
\x7f161542
8244 Node: Built-in agenda views
\x7f163239
8245 Node: Weekly/Daily agenda
\x7f163819
8246 Node: Global TODO list
\x7f166761
8247 Node: Matching tags and properties
\x7f169039
8248 Node: Timeline
\x7f170128
8249 Node: Stuck projects
\x7f170800
8250 Node: Presentation and sorting
\x7f172651
8251 Node: Categories
\x7f173442
8252 Node: Time-of-day specifications
\x7f174106
8253 Node: Sorting of agenda items
\x7f176077
8254 Node: Agenda commands
\x7f177359
8255 Node: Custom agenda views
\x7f184640
8256 Node: Storing searches
\x7f185359
8257 Node: Block agenda
\x7f187271
8258 Node: Setting Options
\x7f188501
8259 Node: Exporting Agenda Views
\x7f191240
8260 Ref: Exporting Agenda Views-Footnote-1
\x7f195524
8261 Ref: Exporting Agenda Views-Footnote-2
\x7f195581
8262 Node: Extracting Agenda Information for other programs
\x7f195767
8263 Node: Embedded LaTeX
\x7f199893
8264 Ref: Embedded LaTeX-Footnote-1
\x7f200987
8265 Node: Math symbols
\x7f201177
8266 Node: Subscripts and Superscripts
\x7f201944
8267 Node: LaTeX fragments
\x7f202790
8268 Ref: LaTeX fragments-Footnote-1
\x7f205023
8269 Ref: LaTeX fragments-Footnote-2
\x7f205284
8270 Node: Processing LaTeX fragments
\x7f205418
8271 Node: CDLaTeX mode
\x7f206366
8272 Ref: CDLaTeX mode-Footnote-1
\x7f208852
8273 Node: Exporting
\x7f209000
8274 Node: ASCII export
\x7f210467
8275 Node: HTML export
\x7f211757
8276 Node: HTML Export commands
\x7f212383
8277 Node: Quoting HTML tags
\x7f213751
8278 Node: Links
\x7f214386
8279 Node: Images
\x7f215083
8280 Ref: Images-Footnote-1
\x7f215954
8281 Node: CSS support
\x7f216015
8282 Ref: CSS support-Footnote-1
\x7f217334
8283 Node: LaTeX export
\x7f217447
8284 Node: LaTeX export commands
\x7f217771
8285 Node: Quoting LaTeX code
\x7f218933
8286 Node: XOXO export
\x7f219438
8287 Node: iCalendar export
\x7f219878
8288 Node: Text interpretation
\x7f221097
8289 Node: Comment lines
\x7f221688
8290 Node: Initial text
\x7f222083
8291 Node: Footnotes
\x7f223752
8292 Node: Enhancing text
\x7f224567
8293 Ref: Enhancing text-Footnote-1
\x7f226436
8294 Node: Export options
\x7f226526
8295 Node: Publishing
\x7f228802
8296 Ref: Publishing-Footnote-1
\x7f229763
8297 Ref: Publishing-Footnote-2
\x7f229907
8298 Node: Configuration
\x7f230058
8299 Node: Project alist
\x7f230776
8300 Node: Sources and destinations
\x7f231842
8301 Node: Selecting files
\x7f232572
8302 Node: Publishing action
\x7f233320
8303 Node: Publishing options
\x7f234654
8304 Node: Publishing links
\x7f237029
8305 Node: Project page index
\x7f238542
8306 Node: Sample configuration
\x7f239320
8307 Node: Simple example
\x7f239812
8308 Node: Complex example
\x7f240485
8309 Node: Triggering publication
\x7f242561
8310 Node: Miscellaneous
\x7f243246
8311 Node: Completion
\x7f243880
8312 Node: Customization
\x7f245550
8313 Node: In-buffer settings
\x7f246133
8314 Node: The very busy C-c C-c key
\x7f251660
8315 Node: Clean view
\x7f253421
8316 Node: TTY keys
\x7f255998
8317 Node: Interaction
\x7f257608
8318 Node: Cooperation
\x7f258005
8319 Node: Conflicts
\x7f260881
8320 Node: Bugs
\x7f262884
8321 Node: Extensions and Hacking
\x7f264380
8322 Node: Extensions
\x7f265105
8323 Node: Adding hyperlink types
\x7f267048
8324 Node: Tables in arbitrary syntax
\x7f270710
8325 Node: Radio tables
\x7f271799
8326 Node: A LaTeX example
\x7f274302
8327 Ref: A LaTeX example-Footnote-1
\x7f277948
8328 Ref: A LaTeX example-Footnote-2
\x7f278096
8329 Node: Translator functions
\x7f278531
8330 Ref: Translator functions-Footnote-1
\x7f281640
8331 Node: Dynamic blocks
\x7f281728
8332 Node: Special agenda views
\x7f283700
8333 Node: Using the property API
\x7f286878
8334 Node: History and Acknowledgments
\x7f288359
8335 Node: Index
\x7f294935
8336 Node: Key Index
\x7f329427