Release 4.44
[org-mode/org-tableheadings.git] / org
blob4d5b178d2bdf1cfe570644e083a4a46f390c34e6
1 This is org, produced by makeinfo version 4.8 from org.texi.
3 INFO-DIR-SECTION Emacs
4 START-INFO-DIR-ENTRY
5 * Org Mode: (org).      outline-based notes management and organizer
6 END-INFO-DIR-ENTRY
8    This manual is for Org-mode (version 4.44).
10    Copyright (C) 2004, 2005, 2006 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."
24 \x1f
25 File: org,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
27 Org Mode Manual
28 ***************
30 This manual is for Org-mode (version 4.44).
32    Copyright (C) 2004, 2005, 2006 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."
46 * Menu:
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 * Timestamps::                  Assign date and time to items
54 * Tags::                        Tagging headlines and matching sets of tags
55 * Agenda views::                Collecting information into views
56 * Embedded LaTeX::              LaTeX fragments and formulas
57 * Exporting::                   Sharing and publishing of notes
58 * Publishing::                  Create a web site of linked Org-mode files
59 * Miscellaneous::               All the rest which did not fit elsewhere
60 * Extensions and Hacking::      It is possible to write add-on code
61 * History and Acknowledgments::  How Org-mode came into being
62 * Index::                       The fast road to specific information
63 * Key Index::                   Key bindings and where they are described
65  --- The Detailed Node Listing ---
67 Introduction
69 * Summary::                     Brief summary of what Org-mode does
70 * Installation::                How to install a downloaded version of Org-mode
71 * Activation::                  How to activate Org-mode for certain buffers.
72 * Feedback::                    Bug reports, ideas, patches etc.
74 Document Structure
76 * Outlines::                    Org-mode is based on outline-mode
77 * Headlines::                   How to typeset org-tree headlines
78 * Visibility cycling::          Show and hide, much simplified
79 * Motion::                      Jumping to other headlines
80 * Structure editing::           Changing sequence and level of headlines
81 * Archiving::                   Move done task trees to a different place
82 * Sparse trees::                Matches embedded in context
83 * Plain lists::                 Editing hand-formatted lists
84 * Checkboxes::                  Easily checking off things.
86 Archiving
88 * ARCHIVE tag::                 Marking a tree as inactive
89 * Moving subtrees::             Moving a tree to an archive file
91 Tables
93 * Built-in table editor::       Simple tables
94 * Narrow columns::              Stop wasting space in tables
95 * Table calculations::          Compute a field from other fields
96 * orgtbl-mode::                 The table editor as minor mode
97 * table.el::                    Complex tables
99 Calculations in tables
101 * Formula syntax::              How to write a formula
102 * Lisp formulas::               An alternative way to write formulas
103 * Column formulas::             Formulas valid for all fields in a column
104 * Advanced features::           Field names, parameters and automatic recalc
105 * Named-field formulas::        Formulas valid in single fields
106 * Editing/debugging formulas::  Changing a stored formula
107 * Appetizer::                   Taste the power of calc
109 Hyperlinks
111 * Link format::                 How links in Org-mode are formatted
112 * Internal links::              Links to other places in the current file
113 * External links::              URL-like links to the world
114 * Handling links::              Creating, inserting and following
115 * Search options::              Linking to a specific location
116 * Custom searches::             When the default search is not enough
117 * Remember::                    Org-trees store quick notes
119 Internal links
121 * Radio targets::               Make targets trigger links in plain text.
122 * CamelCase links::             Activating CamelCase words as links
124 TODO items
126 * TODO basics::                 Marking and displaying TODO entries
127 * TODO extensions::             Workflow and assignments
128 * Priorities::                  Some things are more important than others
130 Extended use of TODO keywords
132 * Workflow states::             From TODO to DONE in steps
133 * TODO types::                  I do this, Fred the rest
134 * Per file keywords::           Different files, different requirements
136 Timestamps
138 * Time stamps::                 Assigning a time to a tree entry
139 * Creating timestamps::         Commands which insert timestamps
140 * Progress logging::            Documenting when what work was done.
142 Progress Logging
144 * Closing items::               When was this entry marked DONE?
145 * Clocking work time::          When exactly did you work on this item?
147 Tags
149 * Tag inheritance::             Tags use the tree structure of the outline
150 * Setting tags::                How to assign tags to a headline
151 * Tag searches::                Searching for combinations of tags
153 Agenda Views
155 * Agenda files::                Files being searched for agenda information
156 * Agenda dispatcher::           Keyboard access to agenda views
157 * Weekly/Daily agenda::         The calendar page with current tasks
158 * Global TODO list::            All unfinished action items
159 * Matching headline tags::      Structured information with fine-tuned search
160 * Timeline::                    Time-sorted view for single file
161 * Agenda commands::             Remote editing of org trees
163 The weekly/daily agenda
165 * Categories::                  Not all tasks are equal
166 * Time-of-day specifications::  How the agenda knows the time
167 * Calendar/Diary integration::  Integrating Anniversaries and more
168 * Sorting of agenda items::     The order of things
170 Embedded LaTeX
172 * Math symbols::                TeX macros for symbols and Greek letters
173 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
174 * LaTeX fragments::             Complex formulas made easy
175 * Processing LaTeX fragments::  Previewing LaTeX processing
176 * CDLaTeX mode::                Speed up entering of formulas
178 Exporting
180 * ASCII export::                Exporting to plain ASCII
181 * HTML export::                 Exporting to HTML
182 * XOXO export::                 Exporting to XOXO
183 * iCalendar export::            Exporting in iCalendar format
184 * Text interpretation::         How the exporter looks at the file
186 Text interpretation by the exporter
188 * Comment lines::               Some lines will not be exported
189 * Enhancing text::              Subscripts, symbols and more
190 * Export options::              How to influence the export settings
192 Publishing
194 * Configuration::               Defining projects
195 * Sample configuration::        Example projects
196 * Triggering publication::      Publication commands
198 Configuration
200 * Project alist::               The central configuration variable
201 * Sources and destinations::    From here to there
202 * Selecting files::             What files are part of the project?
203 * Publishing action::           Setting the function doing the publishing
204 * Publishing options::          Tweaking HTML export
205 * Publishing links::            Which links keep working after publishing?
206 * Project page index::          Publishing a list of project files
208 Sample configuration
210 * Simple example::              One-component publishing
211 * Complex example::             A multi-component publishing example
213 Miscellaneous
215 * Completion::                  M-TAB knows what you need
216 * Customization::               Adapting Org-mode to your taste
217 * In-buffer settings::          Overview of the #+KEYWORDS
218 * The very busy C-c C-c key::   When in doubt, press C-c C-c
219 * Clean view::                  Getting rid of leading stars in the outline
220 * TTY keys::                    Using Org-mode on a tty
221 * Interaction::                 Other Emacs packages
222 * Bugs::                        Things which do not work perfectly
224 Interaction with other packages
226 * Cooperation::                 Packages Org-mode cooperates with
227 * Conflicts::                   Packages that lead to conflicts
229 Extensions, Hooks and Hacking
231 * Extensions::                  Existing 3rd-part extensions
232 * Dynamic blocks::              Automatically filled blocks
234 \x1f
235 File: org,  Node: Introduction,  Next: Document structure,  Prev: Top,  Up: Top
237 1 Introduction
238 **************
240 * Menu:
242 * Summary::                     Brief summary of what Org-mode does
243 * Installation::                How to install a downloaded version of Org-mode
244 * Activation::                  How to activate Org-mode for certain buffers.
245 * Feedback::                    Bug reports, ideas, patches etc.
247 \x1f
248 File: org,  Node: Summary,  Next: Installation,  Prev: Introduction,  Up: Introduction
250 1.1 Summary
251 ===========
253 Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
254 project planning with a fast and effective plain-text system.
256    Org-mode develops organizational tasks around NOTES files that
257 contain information about projects as plain text.  Org-mode is
258 implemented on top of outline-mode, which makes it possible to keep the
259 content of large files well structured.  Visibility cycling and
260 structure editing help to work with the tree.  Tables are easily
261 created with a built-in table editor.  Org-mode supports ToDo items,
262 deadlines, time stamps, and scheduling.  It dynamically compiles
263 entries into an agenda that utilizes and smoothly integrates much of
264 the Emacs calendar and diary.  Plain text URL-like links connect to
265 websites, emails, Usenet messages, BBDB entries, and any files related
266 to the projects.  For printing and sharing of notes, an Org-mode file
267 can be exported as a structured ASCII file, as HTML, or (todo and
268 agenda items only) as an iCalendar file.  It can also serve as a
269 publishing tool for a set of linked webpages.
271    Org-mode keeps simple things simple.  When first fired up, it should
272 feel like a straightforward, easy to use outliner.  Complexity is not
273 imposed, but a large amount of functionality is available when you need
274 it.  Org-mode can be used on different levels and in different ways, for
275 example:
277      * as an outline extension with visibility cycling and structure editing
278      * as an ASCII system and table editor for taking structured notes
279      * as an ASCII table editor with spreadsheet-like capabilities
280      * as a TODO list editor
281      * as a full agenda and planner with deadlines and work scheduling
282      * as a simple hypertext system, with HTML export
283      * as a publishing tool to create a set of interlinked webpages
285    The Org-mode table editor can be integrated into any major mode by
286 activating the minor Orgtbl-mode.
288    There is a website for Org-mode which provides links to the newest
289 version of Org-mode, as well as additional information, frequently asked
290 questions (FAQ), links to tutorials etc.  This page is located at
291 `http://www.astro.uva.nl/~dominik/Tools/org/'.
293 \x1f
294 File: org,  Node: Installation,  Next: Activation,  Prev: Summary,  Up: Introduction
296 1.2 Installation
297 ================
299 Important: If Org-mode is part of the Emacs distribution or an XEmacs
300 package, please skip this section and go directly to *Note Activation::.
302    If you have downloaded Org-mode from the Web, you must take the
303 following steps to install it: Go into the Org-mode distribution
304 directory and edit the top section of the file `Makefile'.  You must
305 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
306 and the paths to the directories where local Lisp and Info files are
307 kept.  If you don't have access to the system-wide directories, create
308 your own two directories for these files, enter them into the Makefile,
309 and make sure Emacs finds the Lisp files by adding the following line
310 to `.emacs':
312      (setq load-path (cons "~/path/to/lispdir" load-path))
314    XEmacs users now need to install the file `noutline.el' from the
315 `xemacs' subdirectory of the Org-mode distribution.  Use the command:
317      make install-noutline
319 Now byte-compile and install the Lisp files with the shell commands:
321      make
322      make install
324 If you want to install the info documentation, use this command:
326      make install-info
328 Then add to `.emacs':
330      ;; This line only if org-mode is not part of the X/Emacs distribution.
331      (require 'org-install)
333 \x1f
334 File: org,  Node: Activation,  Next: Feedback,  Prev: Installation,  Up: Introduction
336 1.3 Activation
337 ==============
339 Add the following lines to your `.emacs' file.  The last two lines
340 define _global_ keys for the commands `org-store-link' and `org-agenda'
341 - please choose suitable keys yourself.
343      ;; The following lines are always needed.  Choose your own keys.
344      (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
345      (define-key global-map "\C-cl" 'org-store-link)
346      (define-key global-map "\C-ca" 'org-agenda)
348    Furthermore, you must activate `font-lock-mode' in org-mode buffers,
349 because significant functionality depends on font-locking being active.
350 You can do this with either one of the following two lines (XEmacs
351 user must use the second option):
352      (global-font-lock-mode 1)                     ; for all buffers
353      (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only
355    With this setup, all files with extension `.org' will be put into
356 Org-mode.  As an alternative, make the first line of a file look like
357 this:
359      MY PROJECTS    -*- mode: org; -*-
361 which will select Org-mode for this buffer no matter what the file's
362 name is.  See also the variable `org-insert-mode-line-in-empty-file'.
364 \x1f
365 File: org,  Node: Feedback,  Prev: Activation,  Up: Introduction
367 1.4 Feedback
368 ============
370 If you find problems with Org-mode, or if you have questions, remarks,
371 or ideas about it, please contact the maintainer Carsten Dominik at
372 <dominik@science.uva.nl>.
374    For bug reports, please provide as much information as possible,
375 including the version information of Emacs (`C-h v emacs-version
376 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
377 Org-mode related setup in `.emacs'.  If an error occurs, a traceback
378 can be very useful.  Often a small example file helps, along with clear
379 information about:
381   1. What exactly did you do?
383   2. What did you expect to happen?
385   3. What happened instead?
386         Thank you for helping to improve this mode.
388 \x1f
389 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
391 2 Document Structure
392 ********************
394 Org-mode is based on outline mode and provides flexible commands to
395 edit the structure of the document.
397 * Menu:
399 * Outlines::                    Org-mode is based on outline-mode
400 * Headlines::                   How to typeset org-tree headlines
401 * Visibility cycling::          Show and hide, much simplified
402 * Motion::                      Jumping to other headlines
403 * Structure editing::           Changing sequence and level of headlines
404 * Archiving::                   Move done task trees to a different place
405 * Sparse trees::                Matches embedded in context
406 * Plain lists::                 Editing hand-formatted lists
407 * Checkboxes::                  Easily checking off things.
409 \x1f
410 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
412 2.1 Outlines
413 ============
415 Org-mode is implemented on top of outline-mode.  Outlines allow to
416 organize a document in a hierarchical structure, which (at least for
417 me) is the best representation of notes and thoughts.  Overview over
418 this structure is achieved by folding (hiding) large parts of the
419 document to show only the general document structure and the parts
420 currently being worked on.  Org-mode greatly simplifies the use of
421 outlines by compressing the entire show/hide functionality into a
422 single command `org-cycle', which is bound to the <TAB> key.
424 \x1f
425 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
427 2.2 Headlines
428 =============
430 Headlines define the structure of an outline tree.  The headlines in
431 Org-mode start with one or more stars, on the left margin.  For example:
433      * Top level headline
434      ** Second level
435      *** 3rd level
436          some text
437      *** 3rd level
438          more text
439      * Another top level headline
441 Some people find the many stars too noisy and would prefer an outline
442 that has whitespace followed by a single star as headline starters.
443 *Note Clean view:: describes a setup to realize this.
445 \x1f
446 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
448 2.3 Visibility cycling
449 ======================
451 Outlines make it possible to hide parts of the text in the buffer.
452 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
453 the visibility in the buffer.
455 `<TAB>'
456      _Subtree cycling_: Rotate current subtree between the states
458           ,-> FOLDED -> CHILDREN -> SUBTREE --.
459           '-----------------------------------'
461      The cursor must be on a headline for this to work(1).  When the
462      cursor is at the beginning of the buffer and the first line is not
463      a headline, then <TAB> actually runs global cycling (see
464      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
465      global cycling is invoked.
467 `S-<TAB>'
468 `C-u <TAB>'
469      _Global cycling_: Rotate the entire buffer between the states
471           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
472           '--------------------------------------'
474      Note that inside tables, `S-<TAB>' jumps to the previous field.
476 `C-c C-a'
477      Show all.
479    When Emacs first visits an Org-mode file, the global state is set to
480 OVERVIEW, i.e. only the top level headlines are visible.  This can be
481 configured through the variable `org-startup-folded', or on a per-file
482 basis by adding one of the following lines anywhere in the buffer:
484      #+STARTUP: overview
485      #+STARTUP: content
486      #+STARTUP: showall
488    ---------- Footnotes ----------
490    (1) see, however, the option `org-cycle-emulate-tab'.
492    (2) see the option `org-cycle-global-at-bob'.
494 \x1f
495 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
497 2.4 Motion
498 ==========
500 The following commands jump to other headlines in the buffer.
502 `C-c C-n'
503      Next heading.  
505 `C-c C-p'
506      Previous heading.  
508 `C-c C-f'
509      Next heading same level.  
511 `C-c C-b'
512      Previous heading same level.  
514 `C-c C-u'
515      Backward to higher level heading.  
517 `C-c C-j'
518      Jump to a different place without changing the current outline
519      visibility.  Shows the document structure in a temporary buffer,
520      where you can use visibility cycling (<TAB>) to find your
521      destination.  After pressing <RET>, the cursor moves to the
522      selected location in the original buffer, and the headings
523      hierarchy above it is made visible.
525 \x1f
526 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
528 2.5 Structure editing
529 =====================
531 `M-<RET>'
532      Insert new heading with same level as current.  If the cursor is
533      in a plain list item, a new item is created (*note Plain lists::).
534      To force creation of a new headline, use a prefix arg, or first
535      press <RET> to get to the beginning of the next line.  When this
536      command is used in the middle of a line, the line is split and the
537      rest of the line becomes the new headline.  If the command is used
538      at the beginning of a headline, the new headline is created before
539      the current line.  If at the beginning of any other line, the
540      content of that line is made the new heading.  
542 `M-S-<RET>'
543      Insert new TODO entry with same level as current heading.  
545 `M-<left>'
546      Promote current heading by one level.  
548 `M-<right>'
549      Demote current heading by one level.  
551 `M-S-<left>'
552      Promote the current subtree by one level.  
554 `M-S-<right>'
555      Demote the current subtree by one level.  
557 `M-S-<up>'
558      Move subtree up (swap with previous subtree of same level).  
560 `M-S-<down>'
561      Move subtree down (swap with next subtree of same level).  
563 `C-c C-x C-w'
564 `C-c C-x C-k'
565      Kill subtree, i.e. remove it from buffer but save in kill ring.  
567 `C-c C-x M-w'
568      Copy subtree to kill ring.  
570 `C-c C-x C-y'
571      Yank subtree from kill ring.  This does modify the level of the
572      subtree to make sure the tree fits in nicely at the yank position.
573      The yank level can also be specified with a prefix arg, or by
574      yanking after a headline marker like `****'.
576    When there is an active region (transient-mark-mode), promotion and
577 demotion work on all headlines in the region.  To select a region of
578 headlines, it is best to place both point and mark at the beginning of a
579 line, mark at the beginning of the first headline, and point at the line
580 just after the last headline to change.  Note that when the cursor is
581 inside a table (*note Tables::), the Meta-Cursor keys have different
582 functionality.
584 \x1f
585 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
587 2.6 Archiving
588 =============
590 When a project represented by a (sub)tree is finished, you may want to
591 move the tree out of the way and to stop it from contributing to the
592 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
593 the ARCHIVE tag, or you can move an entire (sub)tree to a different
594 location.
596 * Menu:
598 * ARCHIVE tag::                 Marking a tree as inactive
599 * Moving subtrees::             Moving a tree to an archive file
601 \x1f
602 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
604 2.6.1 The ARCHIVE tag
605 ---------------------
607 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
608 its location in the outline tree, but behaves in the following way:
609    - It does not open when you attempt to do so with a visibility
610      cycling command (*note Visibility cycling::).  You can still open
611      it with a normal outline command like `show-all'.  Or you can
612      modify the option `org-cycle-open-archived-trees'.
614    - During sparse tree construction (*note Sparse trees::), matches in
615      archived subtrees are not exposed, unless you configure the option
616      `org-sparse-tree-open-archived-trees'.
618    - During agenda view construction (*note Agenda views::), the
619      content of archived trees is ignored unless you configure the
620      option `org-agenda-skip-archived-trees'.
622    - Archived trees are not exported (*note Exporting::), only the
623      headline is.  Configure the details using the variable
624      `org-export-with-archived-trees'.
626    The following commands allow to set or clear the ARCHIVE tag:
628 `C-c C-x C-a'
629      Toggle the ARCHIVE tag for the current headline.  When the tag is
630      set, the headline changes to a shadowish face, and the subtree
631      below it is hidden.  
633 `C-u C-c C-x C-a'
634      Check if any direct children of the current headline should be
635      archived.  To do this, each subtree is checked for open TODO
636      entries.  If none are found, the command offers to set the ARCHIVE
637      tag for the child.  If the cursor is _not_ on a headline when this
638      command is invoked, the level 1 trees will be checked.
640 \x1f
641 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
643 2.6.2 Moving subtrees
644 ---------------------
646 Once an entire project is finished, you may want to move it to a
647 different location, either in the current file, or even in a different
648 file, the archive file.
650 `C-c $'
651      Archive the subtree starting at the cursor position to the location
652      given by `org-archive-location'.  
654 `C-u C-c $'
655      Check if any direct children of the current headline could be
656      moved to the archive.  To do this, each subtree is checked for
657      open TODO entries.  If none are found, the command offers to move
658      it to the archive location.  If the cursor is _not_ on a headline
659      when this command is invoked, the level 1 trees will be checked.
661    The default archive location is a file in the same directory as the
662 current file, with the name derived by appending `_archive' to the
663 current file name.  For information and examples on how to change this,
664 see the documentation string of the variable `org-archive-location'.
666 \x1f
667 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
669 2.7 Sparse trees
670 ================
672 An important feature of Org-mode is the ability to construct _sparse
673 trees_ for selected information in an outline tree.  A sparse tree
674 means that the entire document is folded as much as possible, but the
675 selected information is made visible along with the headline structure
676 above it(1).  Just try it out and you will see immediately how it works.
678    Org-mode contains several commands creating such trees.  The most
679 basic one is `org-occur':
681 `C-c /'
682      Occur.  Prompts for a regexp and shows a sparse tree with all
683      matches.  If the match is in a headline, the headline is made
684      visible.  If the match is in the body of an entry, headline and
685      body are made visible.  In order to provide minimal context, also
686      the full hierarchy of headlines above the match is shown, as well
687      as the headline following the match.  Each match is also
688      highlighted; the highlights disappear when the buffer is changed
689      with an editing command.
690    For frequently used sparse trees of specific search strings, you can
691 use the variable `org-agenda-custom-commands' to define fast keyboard
692 access to specific sparse trees.  These commands will then be
693 accessible through the agenda dispatcher (*note Agenda dispatcher::).
694 For example:
696      (setq org-agenda-custom-commands
697            '(("f" occur-tree "FIXME")))
699 will define the key `C-c a f' as a shortcut for creating a sparse tree
700 matching the string `FIXME'.
702    Other commands use sparse trees as well.  For example `C-c C-v'
703 creates a sparse TODO tree (*note TODO basics::).
705    To print a sparse tree, you can use the Emacs command
706 `ps-print-buffer-with-faces' which does not print invisible parts of
707 the document (2).  Or you can use the command `C-c C-e v' to export
708 only the visible part of the document and print the resulting file.
710    ---------- Footnotes ----------
712    (1) See also the variables `org-show-hierarchy-above' and
713 `org-show-following-heading'.
715    (2) This does not work under XEmacs, because XEmacs uses selective
716 display for outlining, not text properties.
718 \x1f
719 File: org,  Node: Plain lists,  Next: Checkboxes,  Prev: Sparse trees,  Up: Document structure
721 2.8 Plain lists
722 ===============
724 Headlines define both the structure of the Org-mode file, and also lists
725 (for example, TODO items (*note TODO items::) should be created using
726 headline levels).  When taking notes, however, the plain text is
727 sometimes easier to read with hand-formatted lists.  Org-mode supports
728 editing such lists, and the HTML exporter (*note Exporting::) does
729 parse and format them.
731    Org-mode knows ordered and unordered lists.  Unordered list items
732 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
733 with `1.' or `1)'.  Items belonging to the same list must have the same
734 indentation on the first line.  In particular, if an ordered list
735 reaches number `10.', then the 2-digit numbers must be written
736 left-aligned with the other numbers in the list.  Indentation also
737 determines the end of a list item.  It ends before the next line that
738 is indented like the bullet/number, or less.  For example:
740      ** Lord of the Rings
741      My favorite scenes are (in this order)
742      1. Eowyns fight with the witch king
743         + this was already my favorite scene in the book
744         + I really like Miranda Otto.
745      2. The attack of the Rohirrim
746      3. Peter Jackson being shot by Legolas
747          - on DVD only
748         He makes a really funny face when it happens.
749      But in the end, not individual scenes matter but the film as a whole.
751    Org-mode supports these lists by tuning filling and wrapping
752 commands to deal with them correctly(2).
754    The following commands act on items when the cursor is in the first
755 line of an item (the line with the bullet or number).
757 `<TAB>'
758      Items can be folded just like headline levels if you set the
759      variable `org-cycle-include-plain-lists'.  The level of an item is
760      then given by the indentation of the bullet/number.  Items are
761      always subordinate to real headlines, however; the hierarchies
762      remain completely separated.  
764 `M-<RET>'
765      Insert new item at current level.  With prefix arg, force a new
766      heading (*note Structure editing::).  If this command is used in
767      the middle of a line, the line is _split_ and the rest of the line
768      becomes the new item.  If this command is executed in the
769      _whitespace before a bullet or number_, the new item is created
770      _before_ the current item.  If the command is executed in the
771      white space before the text that is part of an item but does not
772      contain the bullet, a bullet is added to the current line.  
774 `M-S-<RET>'
775      Insert a new item with a checkbox (*note Checkboxes::).  
777 `S-<up>'
778 `S-<down>'
779      Jump to the previous/next item in the current list.  
781 `M-S-<up>'
782 `M-S-<down>'
783      Move the item including subitems up/down (swap with previous/next
784      item of same indentation).  If the list is ordered, renumbering is
785      automatic.  
787 `M-S-<left>'
788 `M-S-<right>'
789      Decrease/increase the indentation of the item, including subitems.
790      Initially, the item tree is selected based on current indentation.
791      When these commands are executed several times in direct
792      succession, the initially selected region is used, even if the new
793      indentation would imply a different hierarchy.  To use the new
794      hierarchy, break the command chain with a cursor motion or so.  
796 `C-c C-c'
797      If there is a checkbox (*note Checkboxes::) in the item line,
798      toggle the state of the checkbox.  Otherwise, if this is an
799      ordered list, renumber the ordered list at the cursor.
801    ---------- Footnotes ----------
803    (1) When using `*' as a bullet, lines must be indented or they will
804 be seen as top-level headlines.  Also, when you are hiding leading
805 stars to get a clean outline view, plain list items starting with a
806 star are visually indistinguishable from true headlines.  In short:
807 even though `*' is supported, it may be better not to use it for plain
808 list items
810    (2) Org-mode only changes the filling settings for Emacs.  For
811 XEmacs, you should use Kyle E. Jones' `filladapt.el'.  To turn is on,
812 put into `.emacs':
813      (require 'filladapt)
815 \x1f
816 File: org,  Node: Checkboxes,  Prev: Plain lists,  Up: Document structure
818 2.9 Checkboxes
819 ==============
821 Every item in a plain list (ordered and unordered) can be made a
822 checkbox by starting it with the string `[ ]'.  This feature is similar
823 to TODO items (*note TODO items::), but more lightweight.  Checkboxes
824 are not included into the global TODO list, so they are often great to
825 split a task into a number of simple steps.  Or you can use them in a
826 shopping list to select the items you need to buy.  To toggle a
827 checkbox, use `C-c C-c', or try Piotr Zielinski's `org-mouse.el'.  Here
828 is an example of a checkbox list.
830      * Avoid stupid mistakes when distributing a new version
831        - [ ] update also Emacs CVS
832        - [X] forget to update index.html on the website
833        - [X] leaving a `(debug)' form in the code
835 The following commands work with checkboxes:
837 `C-c C-c'
838      Toggle checkbox at point.  
840 `C-c C-x C-b'
841      Toggle checkbox at point.
842         - If there is an active region, toggle the first checkbox in
843           the region and set all remaining boxes to the same status as
844           the first.  If you want to toggle all boxes in the region
845           independently, use a prefix argument.
847         - If the cursor is in a headline, toggle checkboxes in the
848           region between this headline and the next.  This does _not_
849           act on the entire subtree, just the current entry.
851         - If no active region, just toggle the checkbox at point.
852      
853 `M-S-<RET>'
854      Insert a new item with a checkbox.  This works only if the cursor
855      is already in a plain list item (*note Plain lists::).
857 \x1f
858 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
860 3 Tables
861 ********
863 Org-mode has a very fast and intuitive table editor built-in.
864 Spreadsheet-like calculations are supported in connection with the
865 Emacs `calc' package.
867 * Menu:
869 * Built-in table editor::       Simple tables
870 * Narrow columns::              Stop wasting space in tables
871 * Table calculations::          Compute a field from other fields
872 * orgtbl-mode::                 The table editor as minor mode
873 * table.el::                    Complex tables
875 \x1f
876 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
878 3.1 The built-in table editor
879 =============================
881 Org-mode makes it easy to format tables in plain ASCII.  Any line with
882 `|' as the first non-white character is considered part of a table.
883 `|' is also the column separator.  A table might look like this:
885      | Name  | Phone | Age |
886      |-------+-------+-----|
887      | Peter |  1234 |  17 |
888      | Anna  |  4321 |  25 |
890    A table is re-aligned automatically each time you press <TAB> or
891 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
892 field (<RET> to the next row) and creates new table rows at the end of
893 the table or before horizontal lines.  The indentation of the table is
894 set by the first line.  Any line starting with `|-' is considered as a
895 horizontal separator line and will be expanded on the next re-align to
896 span the whole table width.  So, to create the above table, you would
897 only type
899      |Name|Phone|Age
900      |-
902 and then press <TAB> to align the table and start filling in fields.
904    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
905 and all character keys in a special way, so that inserting and deleting
906 avoids shifting other fields.  Also, when typing _immediately after the
907 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
908 the field is automatically made blank.  If this behavior is too
909 unpredictable for you, configure the variables
910 `org-enable-table-editor' and `org-table-auto-blank-field'.
912 Creation and conversion
913 .......................
915 `C-c |'
916      Convert the active region to table. If every line contains at
917      least one TAB character, the function assumes that the material is
918      tab separated.  If not, lines are split at whitespace into fields.
919      You can use a prefix argument to indicate the minimum number of
920      consecutive spaces required to identify a field separator
921      (default: just one).
922      If there is no active region, this command creates an empty
923      Org-mode table.  But it's easier just to start typing, like
924      `|Name|Phone|Age <RET> |- <TAB>'.
926 Re-aligning and field motion
927 ............................
929 `C-c C-c'
930      Re-align the table without moving the cursor.
932 `<TAB>'
933      Re-align the table, move to the next field.  Creates a new row if
934      necessary.
936 `S-<TAB>'
937      Re-align, move to previous field.
939 `<RET>'
940      Re-align the table and move down to next row.  Creates a new row if
941      necessary.  At the beginning or end of a line, <RET> still does
942      NEWLINE, so it can be used to split a table.
944 Column and row editing
945 ......................
947 `M-<left>'
948 `M-<right>'
949      Move the current column left/right.
951 `M-S-<left>'
952      Kill the current column.
954 `M-S-<right>'
955      Insert a new column to the left of the cursor position.
957 `M-<up>'
958 `M-<down>'
959      Move the current row up/down.
961 `M-S-<up>'
962      Kill the current row or horizontal line.
964 `M-S-<down>'
965      Insert a new row above (with arg: below) the current row.
967 `C-c -'
968      Insert a horizontal line below current row. With prefix arg, the
969      line is created above the current line.
971 `C-c ^'
972      Sort the table lines in the region.  Point and mark must be in the
973      first and last line to be included, and must be in the column that
974      should be used for sorting.  The command prompts for numerical
975      versus alphanumerical sorting.
977 Regions
978 .......
980 `C-c C-x M-w'
981      Copy a rectangular region from a table to a special clipboard.
982      Point and mark determine edge fields of the rectangle.  The
983      process ignores horizontal separator lines.  
985 `C-c C-x C-w'
986      Copy a rectangular region from a table to a special clipboard, and
987      blank all fields in the rectangle.  So this is the "cut" operation.  
989 `C-c C-x C-y'
990      Paste a rectangular region into a table.  The upper right corner
991      ends up in the current field.  All involved fields will be
992      overwritten.  If the rectangle does not fit into the present table,
993      the table is enlarged as needed.  The process ignores horizontal
994      separator lines.  
996 `C-c C-q'
997      Wrap several fields in a column like a paragraph.  If there is an
998      active region, and both point and mark are in the same column, the
999      text in the column is wrapped to minimum width for the given
1000      number of lines.  A prefix ARG may be used to change the number of
1001      desired lines.  If there is no region, the current field is split
1002      at the cursor position and the text fragment to the right of the
1003      cursor is prepended to the field one line down. If there is no
1004      region, but you specify a prefix ARG, the current field is made
1005      blank, and the content is appended to the field above.
1007 Calculations
1008 ............
1010 `C-c ='
1011      Install a new formula for the current column and replace current
1012      field with the result of the formula.
1014 `C-u C-c ='
1015      Install a new formula for the current field, which must be a named
1016      field.  Evaluate the formula and replace the field content with the
1017      result.
1019 `C-c ''
1020      Edit all formulas associated with the current table in a separate
1021      buffer.
1023 `C-c *'
1024      Recalculate the current row by applying the stored formulas from
1025      left to right.  When called with a `C-u' prefix, recalculate the
1026      entire table, starting with the first non-header line (i.e. below
1027      the first horizontal separator line).  For details, see *Note
1028      Table calculations::.
1030 `C-#'
1031      Rotate the calculation mark in first column through the states `',
1032      `#', `*', `!', `$'.  For the meaning of these marks see *Note
1033      Advanced features::.  When there is an active region, change all
1034      marks in the region.
1036 `C-c ?'
1037      Which table column is the cursor in?  Displays number >0 in echo
1038      area.
1040 `C-c +'
1041      Sum the numbers in the current column, or in the rectangle defined
1042      by the active region.  The result is shown in the echo area and can
1043      be inserted with `C-y'.
1045 `S-<RET>'
1046      When current field is empty, copy from first non-empty field above.
1047      When not empty, copy current field down to next row and move cursor
1048      along with it.  Depending on the variable
1049      `org-table-copy-increment', integer field values will be
1050      incremented during copy.  This key is also used by CUA-mode (*note
1051      Cooperation::).
1053 Miscellaneous
1054 .............
1056 `C-c `'
1057      Edit the current field in a separate window.  This is useful for
1058      fields that are not fully visible (*note Narrow columns::).  When
1059      called with a `C-u' prefix, just make the full field visible, so
1060      that it can be edited in place.
1062 `C-c <TAB>'
1063      This is an alias for `C-u C-c `' to make the current field fully
1064      visible.
1066 `M-x org-table-import'
1067      Import a file as a table.  The table should be TAB- or whitespace
1068      separated.  Useful, for example, to import an Excel table or data
1069      from a database, because these programs generally can write
1070      TAB-separated text files.  This command works by inserting the
1071      file into the buffer and then converting the region to a table.
1072      Any prefix argument is passed on to the converter, which uses it
1073      to determine the separator.
1075 `M-x org-table-export'
1076      Export the table as a TAB-separated file.  Useful for data
1077      exchange with, for example, Excel or database programs.
1080    If you don't like the automatic table editor because it gets in your
1081 way on lines which you would like to start with `|', you can turn it
1082 off with
1084      (setq org-enable-table-editor nil)
1086 Then the only table command that still works is `C-c C-c' to do a
1087 manual re-align.
1089 \x1f
1090 File: org,  Node: Narrow columns,  Next: Table calculations,  Prev: Built-in table editor,  Up: Tables
1092 3.2 Narrow columns
1093 ==================
1095 The width of columns is automatically determined by the table editor.
1096 Sometimes a single field or a few fields need to carry more text,
1097 leading to inconveniently wide columns.  To limit(1) the width of a
1098 column, one field anywhere in the column may contain just the string
1099 `<N>' where `N' is an integer specifying the width of the column in
1100 characters.  The next re-align will then set the width of this column
1101 to no more than this value.
1103      |---+------------------------------|               |---+--------|
1104      |   |                              |               |   | <6>    |
1105      | 1 | one                          |               | 1 | one    |
1106      | 2 | two                          |     ----\     | 2 | two    |
1107      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1108      | 4 | four                         |               | 4 | four   |
1109      |---+------------------------------|               |---+--------|
1111 Fields that are wider become clipped and end in the string `=>'.  Note
1112 that the full text is still in the buffer, it is only invisible.  To
1113 see the full text, hold the mouse over the field - a tooltip window
1114 will show the full content.  To edit such a field, use the command `C-c
1115 `' (that is `C-c' followed by the backquote).  This will open a new
1116 window with the full field.  Edit it and finish with `C-c C-c'.
1118    When visiting a file containing a table with narrowed columns, the
1119 necessary character hiding has not yet happened, and the table needs to
1120 be aligned before it looks nice.  Setting the option
1121 `org-startup-align-all-tables' will realign all tables in a file upon
1122 visiting, but also slow down startup.  You can also set this option on
1123 a per-file basis with:
1125      #+STARTUP: align
1126      #+STARTUP: noalign
1128    ---------- Footnotes ----------
1130    (1) This feature does not work on XEmacs.
1132 \x1f
1133 File: org,  Node: Table calculations,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1135 3.3 Calculations in tables
1136 ==========================
1138 The table editor makes use of the Emacs `calc' package to implement
1139 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1140 derive fields from other fields.  Org-mode has two levels of complexity
1141 for table calculations.  On the basic level, tables do only horizontal
1142 computations, so a field can be computed from other fields _in the same
1143 row_, and Org-mode assumes that there is only one formula for each
1144 column.  This is very efficient to work with and enough for many tasks.
1145 On the complex level, columns and individual fields can be named for
1146 easier referencing in formulas, individual named fields can have their
1147 own formula associated with them, and recalculation can be automated.
1149 * Menu:
1151 * Formula syntax::              How to write a formula
1152 * Lisp formulas::               An alternative way to write formulas
1153 * Column formulas::             Formulas valid for all fields in a column
1154 * Advanced features::           Field names, parameters and automatic recalc
1155 * Named-field formulas::        Formulas valid in single fields
1156 * Editing/debugging formulas::  Changing a stored formula
1157 * Appetizer::                   Taste the power of calc
1159 \x1f
1160 File: org,  Node: Formula syntax,  Next: Lisp formulas,  Prev: Table calculations,  Up: Table calculations
1162 3.3.1 Formula syntax
1163 --------------------
1165 A formula can be any algebraic expression understood by the Emacs
1166 `calc' package.  Note that `calc' has the slightly non-standard
1167 convention that `/' has lower precedence than `*', so that `a/b*c' is
1168 interpreted as `a/(b*c)'.  Before evaluation by `calc-eval' (*note
1169 calc-eval: (calc)Calling Calc from Your Programs.), variable
1170 substitution takes place:
1172        $        refers to the current field
1173        $3       refers to the field in column 3 of the current row
1174        $3..$7   a vector of the fields in columns 3-7 of current row
1175        $P1..$P3 vector of column range, using column names
1176        &2       second data field above the current, in same column
1177        &5-2     vector from fifth to second field above current
1178        &III-II  vector of fields between 2nd and 3rd hline above
1179        &III     vector of fields between third hline above and current field
1180        $name    a named field, parameter or constant
1182    The range vectors can be directly fed into the calc vector functions
1183 like `vmean' and `vsum'.
1185    `$name' is interpreted as the name of a column, parameter or
1186 constant.  Constants are defined globally through the variable
1187 `org-table-formula-constants'.  If you have the `constants.el' package,
1188 it will also be used to resolve constants, including natural constants
1189 like `$h' for Planck's constant, and units like `$km' for kilometers.
1190 Column names and parameters can be specified in special table lines.
1191 These are described below, see *Note Advanced features::.
1193    A formula can contain an optional mode string after a semicolon.
1194 This string consists of flags to influence calc's modes(1) during
1195 execution, e.g.  `p20' to switch the internal precision to 20 digits,
1196 `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
1197 or fixed display format, respectively, and `D', `R', `F', and `S' to
1198 turn on degrees, radians, fraction and symbolic modes, respectively.
1199 In addition, you may provide a `printf' format specifier to reformat
1200 the final result.  A few examples:
1202      $1+$2                Sum of first and second field
1203      $1+$2;%.2f           Same, format result to two decimals
1204      exp($2)+exp($1)      Math functions can be used
1205      $;%.1f               Reformat current cell to 1 decimal
1206      ($3-32)*5/9          Degrees F -> C conversion
1207      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1208      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1209      sin($1);Dp3%.1e      Same, but use printf specifier for display
1210      vmean($2..$7)        Compute column range mean, using vector function
1211      vsum(&III)           Sum numbers from 3rd hline above, up to here
1212      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1214    ---------- Footnotes ----------
1216    (1) By default, Org-mode uses the standard calc modes (precision 12,
1217 angular units degrees, fraction and symbolic modes off).  The display
1218 format, however, has been changed to `(float 5)' to keep tables compact.
1219 The default settings can be configured using the variable
1220 `org-calc-default-modes'.
1222 \x1f
1223 File: org,  Node: Lisp formulas,  Next: Column formulas,  Prev: Formula syntax,  Up: Table calculations
1225 3.3.2 Emacs Lisp forms as formulas
1226 ----------------------------------
1228 It is also possible to write a formula in Emacs lisp; this can be useful
1229 for string manipulation and control structures.  If a formula starts
1230 with a single quote followed by an opening parenthesis, then it is
1231 evaluated as a lisp form.  The evaluation should return either a string
1232 or a number.  Just as with `calc' formulas, you can provide a format
1233 specifier after a semicolon.  A few examples:
1235      swap the first two characters of the content of column 1
1236      '(concat (substring "$1" 1 2) (substring "$1" 0 1) (substring "$1" 2))
1237      Add columns 1 and 2, equivalent to the calc's `$1+$2'
1238      '(+ $1 $2)
1240 \x1f
1241 File: org,  Node: Column formulas,  Next: Advanced features,  Prev: Lisp formulas,  Up: Table calculations
1243 3.3.3 Column formulas
1244 ---------------------
1246 To apply a formula to a field, type it directly into the field,
1247 preceded by an equal sign, like `=$1+$2'.  When you press <TAB> or
1248 <RET> or `C-c C-c' with the cursor still in the field, the formula will
1249 be stored as the formula for the current column, evaluated and the
1250 current field replaced with the result.  If the field contains only
1251 `=', the previously stored formula for this column is used.
1253    For each column, Org-mode will remember the most recently used
1254 formula.  The information is stored in a special line starting with
1255 `#+TBLFM' directly below the table.  When adding/deleting/moving
1256 columns with the appropriate commands, the stored equations will be
1257 modified accordingly.  When a column used in a calculation is removed,
1258 references to this column become invalid and will cause an error upon
1259 applying the equation.
1261    Instead of typing an equation into the field, you may also use the
1262 command `C-c ='.  It prompts for a formula (with default taken from the
1263 `#+TBLFM:' line) and applies it to the current field.  A numerical
1264 prefix (e.g. `C-5 C-c =') will apply it to that many consecutive fields
1265 in the current column.
1267    To recompute all the fields in a line, use the command `C-c *'.  It
1268 re-applies all stored equations to the current row, from left to right.
1269 With a `C-u' prefix, this will be done to every line in the table, so
1270 use this command it you want to make sure the entire table is
1271 up-to-date. `C-u C-c C-c' is another way to update the entire table.
1272 Global updating does not touch the line(s) above the first horizontal
1273 separator line, assuming that this is the table header.
1275 \x1f
1276 File: org,  Node: Advanced features,  Next: Named-field formulas,  Prev: Column formulas,  Up: Table calculations
1278 3.3.4 Advanced features
1279 -----------------------
1281 If you want the recalculation of fields to happen automatically, or if
1282 you want to be able to assign a formula to an individual field (instead
1283 of an entire column) you need to reserve the first column of the table
1284 for special marking characters.  Here is an example of a table that
1285 collects exam results of students and makes use of these features:
1287      |---+---------+--------+--------+--------+-------+------|
1288      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1289      |---+---------+--------+--------+--------+-------+------|
1290      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1291      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1292      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1293      |---+---------+--------+--------+--------+-------+------|
1294      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1295      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1296      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1297      |---+---------+--------+--------+--------+-------+------|
1298      |   | Average |        |        |        |  29.7 |      |
1299      | ^ |         |        |        |        |    at |      |
1300      | $ | max=50  |        |        |        |       |      |
1301      |---+---------+--------+--------+--------+-------+------|
1302      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
1304 Important: Please note that for these special tables, recalculating the
1305 table with `C-u C-c *' will only affect rows that are marked `#' or
1306 `*', and named fields.  The column formulas are not applied in rows
1307 with empty first field.
1309    The marking characters have the following meaning:
1311      The fields in this line define names for the columns, so that you
1312      may refer to a column as `$Tot' instead of `$6'.
1315      This row defines names for the fields _above_ the row.  With such
1316      a definition, any formula in the table may use `$m1' to refer to
1317      the value `10'.  Also, named fields can have their own formula
1318      associated with them.
1321      Similar to `^', but defines names for the fields in the row
1322      _below_.
1325      Fields in this row can define _parameters_ for formulas.  For
1326      example, if a field in a `$' row contains `max=50', then formulas
1327      in this table can refer to the value 50 using `$max'.  Parameters
1328      work exactly like constants, only that they can be defined on a
1329      per-table basis.  Changing a parameter and then recalculating the
1330      table can be useful.
1333      Fields in this row are automatically recalculated when pressing
1334      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1335      selected for a global recalculation with `C-u C-c *'.  Unmarked
1336      lines will be left alone by this command.
1339      Selects this line for global recalculation with `C-u C-c *', but
1340      not for automatic recalculation.  Use this when automatic
1341      recalculation slows down editing too much.
1344      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1345      All lines that should be recalculated should be marked with `#' or
1346      `*'.
1348 \x1f
1349 File: org,  Node: Named-field formulas,  Next: Editing/debugging formulas,  Prev: Advanced features,  Up: Table calculations
1351 3.3.5 Named-field formulas
1352 --------------------------
1354 A named field can have its own formula associated with it.  In the
1355 example above, this is used for the `at' field that contains the
1356 average result of the students.  To enter a formula for a named field,
1357 just type it into the buffer, preceded by `:='.  Or use `C-u C-c ='.
1358 This equation will be stored below the table like `$name=...'.  Any
1359 recalculation in the table (even if only requested for the current
1360 line) will also update all named field formulas.
1362 \x1f
1363 File: org,  Node: Editing/debugging formulas,  Next: Appetizer,  Prev: Named-field formulas,  Up: Table calculations
1365 3.3.6 Editing and debugging formulas
1366 ------------------------------------
1368 To edit a column or field formula, use the commands `C-c =' and `C-u
1369 C-c =', respectively.  The currently active expression is then
1370 presented as default in the minibuffer, where it may be edited.
1372    Note that making a table field blank does not remove the formula
1373 associated with the field - during the next recalculation the field
1374 will be filled again.  To remove a formula from a field, you have to
1375 give an empty reply when prompted for the formula, or to edit the
1376 `#+TBLFM' line.
1378    You may edit the `#+TBLFM' directly and re-apply the changed
1379 equations with `C-c C-c' in that line, or with the normal recalculation
1380 commands in the table.
1382    In particular for large tables with many formulas, it is convenient
1383 to use the command `C-c '' to edit the formulas of the current table in
1384 a separate buffer.  That buffer will show the formulas one per line,
1385 and you are free to edit, add and remove formulas.  Press `C-c ?' on a
1386 `$...'  expression to get information about its interpretation.
1387 Exiting the buffer with `C-c C-c' only stores the modified formulas
1388 below the table.  Exiting with `C-u C-c C-c' also applies them to the
1389 entire table.  `C-c C-q' exits without installing the changes.
1391    When the evaluation of a formula leads to an error, the field content
1392 becomes the string `#ERROR'.  If you would like see what is going on
1393 during variable substitution and calculation in order to find a bug,
1394 turn on formula debugging in the menu and repeat the calculation, for
1395 example by pressing `C-c = <RET>' in a field.  Detailed information
1396 will be displayed.
1398 \x1f
1399 File: org,  Node: Appetizer,  Prev: Editing/debugging formulas,  Up: Table calculations
1401 3.3.7 Appetizer
1402 ---------------
1404 Finally, just to whet your appetite on what can be done with the
1405 fantastic `calc' package, here is a table that computes the Taylor
1406 series for a couple of functions (homework: try that with Excel :-)
1408      |---+-------------+---+-----+--------------------------------------|
1409      |   | Func        | n | x   | Result                               |
1410      |---+-------------+---+-----+--------------------------------------|
1411      | # | exp(x)      | 1 | x   | 1 + x                                |
1412      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1413      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1414      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1415      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1416      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1417      |---+-------------+---+-----+--------------------------------------|
1418      #+TBLFM: $5=taylor($2,$4,$3);n3
1420 \x1f
1421 File: org,  Node: orgtbl-mode,  Next: table.el,  Prev: Table calculations,  Up: Tables
1423 3.4 The Orgtbl minor mode
1424 =========================
1426 If you like the intuitive way the Org-mode table editor works, you
1427 might also want to use it in other modes like text-mode or mail-mode.
1428 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1429 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1430 in mail mode, use
1432      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1434 \x1f
1435 File: org,  Node: table.el,  Prev: orgtbl-mode,  Up: Tables
1437 3.5 The `table.el' package
1438 ==========================
1440 Complex ASCII tables with automatic line wrapping, column- and
1441 row-spanning, and alignment can be created using the Emacs table
1442 package by Takaaki Ota (`http://sourceforge.net/projects/table', and
1443 also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in such a
1444 table, Org-mode will call `table-recognize-table' and move the cursor
1445 into the table.  Inside a table, the keymap of Org-mode is inactive.
1446 In order to execute Org-mode-related commands, leave the table.
1448 `C-c C-c'
1449      Recognize `table.el' table.  Works when the cursor is in a
1450      table.el table.
1452 `C-c ~'
1453      Insert a table.el table.  If there is already a table at point,
1454      this command converts it between the table.el format and the
1455      Org-mode format.  See the documentation string of the command
1456      `org-convert-table' for the restrictions under which this is
1457      possible.
1459 \x1f
1460 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1462 4 Hyperlinks
1463 ************
1465 Just like HTML, Org-mode provides links inside a file, and external
1466 links to other files, Usenet articles, emails, and much more.
1468 * Menu:
1470 * Link format::                 How links in Org-mode are formatted
1471 * Internal links::              Links to other places in the current file
1472 * External links::              URL-like links to the world
1473 * Handling links::              Creating, inserting and following
1474 * Search options::              Linking to a specific location
1475 * Custom searches::             When the default search is not enough
1476 * Remember::                    Org-trees store quick notes
1478 \x1f
1479 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1481 4.1 Link format
1482 ===============
1484 Org-mode will recognize plain URL-like links and activate them as
1485 clickable links.  The general link format, however, looks like this:
1487      [[link][description]]       or alternatively           [[link]]
1489    Once a link in the buffer is complete (all brackets present),
1490 Org-mode will change the display so that `description' is displayed
1491 instead of `[[link][description]]' and `link' is displayed instead of
1492 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1493 default is an underlined face.  You can directly edit the visible part
1494 of a link.  Note that this can be either the `link' part (if there is
1495 no description) or the `description' part.  To edit also the invisible
1496 `link' part, use `C-c C-l' with the cursor on the link.
1498    If you place the cursor at the beginning or just behind the end of
1499 the displayed text and press <BACKSPACE>, you will remove the
1500 (invisible) bracket at that location.  This makes the link incomplete
1501 and the internals are again displayed as plain text.  Inserting the
1502 missing bracket hides the link internals again.  To show the internal
1503 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1504 links'.
1506 \x1f
1507 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
1509 4.2 Internal links
1510 ==================
1512 If the link does not look like a URL, it is considered to be internal in
1513 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
1514 my target]]' lead to a text search in the current file.  The link can
1515 be followed with `C-c C-o' when the cursor is on the link, or with a
1516 mouse click (*note Handling links::).  The preferred match for such a
1517 link is a dedicated target: the same string in double angular brackets.
1518 Targets may be located anywhere; often it is convenient to put them
1519 into a comment line. For example
1521      # <<My Target>>
1523 In HTML export (*note HTML export::), such targets will become named
1524 anchors for direct access through `http' links(1).
1526    If no dedicated target exists, Org-mode will search for the words in
1527 the link.  In the above example the search would be for `my target'.
1528 Links starting with a star like `*My Target' restrict the search to
1529 headlines.  When searching, Org-mode will first try an exact match, but
1530 then move on to more and more lenient searches.  For example, the link
1531 `[[*My Targets]]' will find any of the following:
1533      ** My targets
1534      ** TODO my targets are bright
1535      ** my 20 targets are
1537    To insert a link targeting a headline, in-buffer completion can be
1538 used.  Just type a star followed by a few optional letters into the
1539 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
1540 offered as completions.  *Note Handling links::, for more commands
1541 creating links.
1543    Following a link pushes a mark onto Org-mode's own mark ring.  You
1544 can return to the previous position with `C-c &'.  Using this command
1545 several times in direct succession goes back to positions recorded
1546 earlier.
1548 * Menu:
1550 * Radio targets::               Make targets trigger links in plain text.
1551 * CamelCase links::             Activating CamelCase words as links
1553    ---------- Footnotes ----------
1555    (1) Note that text before the first headline will never be exported,
1556 so the first such target must be after the first headline.
1558 \x1f
1559 File: org,  Node: Radio targets,  Next: CamelCase links,  Prev: Internal links,  Up: Internal links
1561 4.2.1 Radio targets
1562 -------------------
1564 You can configure Org-mode to link any occurrences of certain target
1565 names in normal text.  So without explicitly creating a link, the text
1566 connects to the target radioing its position.  Radio targets are
1567 enclosed by triple angular brackets.  For example, a target `<<<My
1568 Target>>>' causes each occurrence of `my target' in normal text to
1569 become activated as a link.  The Org-mode file is scanned automatically
1570 for radio targets only when the file is first loaded into Emacs.  To
1571 update the target list during editing, press `C-c C-c' with the cursor
1572 on or at a target.
1574 \x1f
1575 File: org,  Node: CamelCase links,  Prev: Radio targets,  Up: Internal links
1577 4.2.2 CamelCase words as links
1578 ------------------------------
1580 Org-mode also supports CamelCase words as links.  This feature is not
1581 turned on by default because of the inconsistencies this system suffers
1582 from.  To activate CamelCase words as links, you need to customize the
1583 option `org-activate-links'.  A CamelCase word then leads to a text
1584 search such that `CamelCaseLink' is equivalent to `[[camel case link]]'.
1586 \x1f
1587 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
1589 4.3 External links
1590 ==================
1592 Org-mode supports links to files, websites, Usenet and email messages,
1593 and BBDB database entries.  External links are URL-like locators.  They
1594 start with a short identifying string followed by a colon.  There can be
1595 no space after the colon.  The following list shows examples for each
1596 link type.
1598      http://www.astro.uva.nl/~dominik          on the web
1599      file:/home/dominik/images/jupiter.jpg     file, absolute path
1600      file:papers/last.pdf                      file, relative path
1601      news:comp.emacs                           Usenet link
1602      mailto:adent@galaxy.net                   Mail link
1603      vm:folder                                 VM folder link
1604      vm:folder#id                              VM message link
1605      vm://myself@some.where.org/folder#id      VM on remote machine
1606      wl:folder                                 WANDERLUST folder link
1607      wl:folder#id                              WANDERLUST message link
1608      mhe:folder                                MH-E folder link
1609      mhe:folder#id                             MH-E message link
1610      rmail:folder                              RMAIL folder link
1611      rmail:folder#id                           RMAIL message link
1612      gnus:group                                GNUS group link
1613      gnus:group#id                             GNUS article link
1614      bbdb:Richard Stallman                     BBDB link
1615      shell:ls *.org                            A shell command
1616      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
1618    A link should be enclosed in double brackets and may contain a
1619 descriptive text to be displayed instead of the url (*note Link
1620 format::), for example:
1622      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
1624    Org-mode also finds external links in the normal text and activates
1625 them as links.  If spaces must be part of the link (for example in
1626 `bbdb:Richard Stallman'), or you need to remove ambiguities about the
1627 end of the link, enclose them in angular brackets.
1629 \x1f
1630 File: org,  Node: Handling links,  Next: Search options,  Prev: External links,  Up: Hyperlinks
1632 4.4 Handling links
1633 ==================
1635 Org-mode provides methods to create a link in the correct syntax, to
1636 insert it into an org-mode file, and to follow the link.
1638 `C-c l'
1639      Store a link to the current location.  This is a _global_ command
1640      which can be used in any buffer to create a link.  The link will be
1641      stored for later insertion into an Org-mode buffer (see below).
1642      For Org-mode files, if there is a `<<target>>' at the cursor, the
1643      link points to the target.  Otherwise it points to the current
1644      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
1645      the link will indicate the current article/entry.  For W3 and W3M
1646      buffers, the link goes to the current URL.  For any other files,
1647      the link will point to the file, with a search string (*note
1648      Search options::) pointing to the contents of the current line.
1649      If there is an active region, the selected words will form the
1650      basis of the search string.  If the automatically created link is
1651      not working correctly or accurately enough, you can write custom
1652      functions to select the search string and to do the search for
1653      particular file types - see *Note Custom searches::.  The key
1654      binding `C-c l' is only a suggestion - see *Note Installation::.
1656 `C-c C-l'
1657      Insert a link.  This prompts for a link to be inserted into the
1658      buffer.  You can just type a link, using text for an internal
1659      link, or one of the link type prefixes mentioned in the examples
1660      above.  Through completion, all links stored during the current
1661      session can be accessed(1).  The link will be inserted into the
1662      buffer, along with a descriptive text.  Note that you don't have
1663      to use this command to insert a link.  Links in Org-mode are plain
1664      text, and you can type or paste them straight into the buffer.  By
1665      using this command, the links are automatically enclosed in double
1666      brackets, and you will be asked for the optional descriptive text.
1667      If the link is a `file:' link and the linked file is located in
1668      the same directory as the current file or a subdirectory of it, the
1669      path of the file will be inserted relative to the current
1670      directory.
1672 `C-u C-c C-l'
1673      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
1674      file will be inserted and you may use file name completion to
1675      select the name of the file.  The path to the file is inserted
1676      relative to the directory of the current org file, if the linked
1677      file is in the current directory or in a subdirectory of it, or if
1678      the path is written relative to the current directory using `../'.
1679      Otherwise an absolute path is used, if possible with `~/' for
1680      your home directory.  You can force an absolute path with two
1681      `C-u' prefixes.
1683 `C-c C-l with cursor on existing link'
1684      When the cursor is on an existing link, `C-c C-l' allows you to
1685      edit the link and description parts of the link.
1687 `C-c C-o'
1688      Open link at point.  This will launch a web browser for URLs (using
1689      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
1690      the corresponding links, and execute the command in a shell link.
1691      When the cursor is on an internal link, this commands runs the
1692      corresponding search.  When the cursor is on a TAG list in a
1693      headline, it creates the corresponding TAGS view.  If the cursor
1694      is on a time stamp, it compiles the agenda for that date.
1695      Furthermore, it will visit text and remote files in `file:' links
1696      with Emacs and select a suitable application for local non-text
1697      files.  Classification of files is based on file extension only.
1698      See option `org-file-apps'.  If you want to override the default
1699      application and visit the file with Emacs, use a `C-u' prefix.
1701 `mouse-2'
1702 `mouse-1'
1703      On links, `mouse-2' will open the link just as `C-c C-o' would.
1704      Under Emacs 22, also `mouse-1' will follow a link.
1706 `mouse-3'
1707      Like `mouse-2', but force file links to be opened with Emacs.
1709 `C-c %'
1710      Push the current position onto the mark ring, to be able to return
1711      easily. Commands following an internal link do this automatically.
1713 `C-c &'
1714      Jump back to a recorded position.  A position is recorded by the
1715      commands following internal links, and by `C-c %'.  Using this
1716      command several times in direct succession moves through a ring of
1717      previously recorded positions.
1719    ---------- Footnotes ----------
1721    (1) After insertion of a stored link, the link will be removed from
1722 the list of stored links.  To keep it in the list later use, use a
1723 triple `C-u' prefix to `C-c C-l', or configure the option
1724 `org-keep-stored-link-after-insertion'.
1726 \x1f
1727 File: org,  Node: Search options,  Next: Custom searches,  Prev: Handling links,  Up: Hyperlinks
1729 4.5 Search options in file links
1730 ================================
1732 File links can contain additional information to make Emacs jump to a
1733 particular location in the file when following a link.  This can be a
1734 line number or a search option after a double(1) colon. For example,
1735 when the command `C-c l' creates a link (*note Handling links::) to a
1736 file, it encodes the words in the current line as a search string that
1737 can be used to find this line back later when following the link with
1738 `C-c C-o'.
1740    Here is the syntax of the different ways to attach a search to a file
1741 link, together with an explanation:
1743      [[file:~/code/main.c::255]]
1744      [[file:~/xx.org::My Target]]
1745      [[file:~/xx.org::*My Target]]
1746      [[file:~/xx.org::/regexp/]]
1748 `255'
1749      Jump to line 255.
1751 `My Target'
1752      Search for a link target `<<My Target>>', or do a text search for
1753      `my target', similar to the search in internal links, see *Note
1754      Internal links::.  In HTML export (*note HTML export::), such a
1755      file link will become an HTML reference to the corresponding named
1756      anchor in the linked file.
1758 `*My Target'
1759      In an Org-mode file, restrict search to headlines.
1761 `/regexp/'
1762      Do a regular expression search for `regexp'.  This uses the Emacs
1763      command `occur' to list all matches in a separate window.  If the
1764      target file is in Org-mode, `org-occur' is used to create a sparse
1765      tree with the matches.
1767    As a degenerate case, a file link with an empty file name can be used
1768 to search the current file.  For example, `<file:::find me>' does a
1769 search for `find me' in the current file, just as `[[find me]]' would.
1771    ---------- Footnotes ----------
1773    (1) For backward compatibility, line numbers can also follow a
1774 single colon.
1776 \x1f
1777 File: org,  Node: Custom searches,  Next: Remember,  Prev: Search options,  Up: Hyperlinks
1779 4.6 Custom Searches
1780 ===================
1782 The default mechanism for creating search strings and for doing the
1783 actual search related to a file link may not work correctly in all
1784 cases.  For example, BibTeX database files have many entries like
1785 `year="1993"' which would not result in good search strings, because
1786 the only unique identification for a BibTeX entry is the citation key.
1788    If you come across such a problem, you can write custom functions to
1789 set the right search string for a particular file type, and to do the
1790 search for the string in the file.  Using `add-hook', these functions
1791 need to be added to the hook variables
1792 `org-create-file-search-functions' and
1793 `org-execute-file-search-functions'.  See the docstring for these
1794 variables for more information.  Org-mode actually uses this mechanism
1795 for BibTeX database files, and you can use the corresponding code as an
1796 implementation example.  Search for `BibTeX links' in the source file.
1798 \x1f
1799 File: org,  Node: Remember,  Prev: Custom searches,  Up: Hyperlinks
1801 4.7 Remember
1802 ============
1804 Another way to create org entries with links to other files is through
1805 the _Remember_ package by John Wiegley.  _Remember_ lets you store
1806 quick notes with little interruption of your work flow.  See
1807 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
1808 information.  The notes produced by _Remember_ can be stored in
1809 different ways, and Org-mode files are a good target.  Org-mode allows
1810 you to file away notes either to a default file, or directly to the
1811 correct location in your Org-mode outline tree.  The following
1812 customization will tell _Remember_ to use org files as target, and to
1813 create annotations compatible with Org-mode links.
1815      (setq org-directory "~/path/to/my/orgfiles/")
1816      (setq org-default-notes-file "~/.notes")
1817      (setq remember-annotation-functions '(org-remember-annotation))
1818      (setq remember-handler-functions '(org-remember-handler))
1819      (add-hook 'remember-mode-hook 'org-remember-apply-template)
1821    In combination with Org-mode, you can use templates to generate
1822 different types of remember notes.  For example, if you would like to
1823 use one template to create general TODO entries, and another one for
1824 journal entries, you could use:
1826      (setq org-remember-templates
1827            '((?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org")
1828              (?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")))
1830 In these entries, the character specifies how to select the template,
1831 the first string specifies the template, and the (optional) second
1832 string specifies a default file (overruling `org-default-notes-file')
1833 as a target for this note.
1835    When you call `M-x remember' to remember something, org will prompt
1836 for a key to select the template and then prepare the buffer like
1837      * TODO
1838        <file:link to where you called remember>
1842      * [2006-03-21 Tue 15:37]
1844        <file:link to where you called remember>
1846 See the variable `org-remember-templates' for more details.
1848    When you are finished composing a note with remember, you have to
1849 press `C-c C-c' to file the note away.  The handler first prompts for a
1850 target file - if you press <RET>, the value of `org-default-notes-file'
1851 is used.  Then the command offers the headings tree of the selected
1852 file.  You can either immediately press <RET> to get the note appended
1853 to the file.  Or you can use vertical cursor motion (<up> and <down>)
1854 and visibility cycling (<TAB>) to find a better place.  Pressing <RET>
1855 or <left> or <right> leads to the following result.
1857 Cursor         Key     Note gets inserted
1858 position               
1859 buffer-start   <RET>   as level 2 heading at end of file
1860 on headline    <RET>   as sublevel of the heading at cursor
1861                <left>  as same level, before current heading
1862                <right> as same level, after current heading
1863 not on         <RET>   at cursor position, level taken from context.
1864 headline                      Or use prefix arg to specify level
1865                        manually.
1867    So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
1868 append it to the default file.  Even shorter would be `C-u C-c C-c',
1869 which does the same without even showing the tree.  But with little
1870 extra effort, you can push it directly to the correct location.
1872    Before inserting the text into a tree, the function ensures that the
1873 text has a headline, i.e. a first line that starts with a `*'.  If not,
1874 a headline is constructed from the current date and some additional
1875 data.  If the variable `org-adapt-indentation' is non-nil, the entire
1876 text is also indented so that it starts in the same column as the
1877 headline (after the asterisks).
1879 \x1f
1880 File: org,  Node: TODO items,  Next: Timestamps,  Prev: Hyperlinks,  Up: Top
1882 5 TODO items
1883 ************
1885 Org-mode does not maintain TODO lists as a separate document.  TODO
1886 items are an integral part of the notes file, because TODO items
1887 usually come up while taking notes!  With Org-mode, you simply mark any
1888 entry in a tree as being a TODO item.  In this way, the information is
1889 not duplicated, and the entire context from which the item emerged is
1890 always present when you check.
1892    Of course, this technique causes TODO items to be scattered
1893 throughout your file.  Org-mode provides methods to give you an
1894 overview over all things you have to do.
1896 * Menu:
1898 * TODO basics::                 Marking and displaying TODO entries
1899 * TODO extensions::             Workflow and assignments
1900 * Priorities::                  Some things are more important than others
1902 \x1f
1903 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
1905 5.1 Basic TODO functionality
1906 ============================
1908 Any headline can become a TODO item by starting it with the word TODO,
1909 for example:
1911      *** TODO Write letter to Sam Fortune
1913 The most important commands to work with TODO entries are:
1915 `C-c C-t'
1916      Rotate the TODO state of the current item between
1918           ,-> (unmarked) -> TODO -> DONE --.
1919           '--------------------------------'
1921      The same rotation can also be done "remotely" from the timeline and
1922      agenda buffers with the `t' command key (*note Agenda commands::).  
1924 `S-<right>'
1925 `S-<left>'
1926      Select the following/preceding TODO state, similar to cycling.
1927      Mostly useful if more than two TODO states are possible (*note
1928      TODO extensions::).  
1930 `C-c C-v'
1931      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
1932      the entire buffer, but shows all TODO items and the headings
1933      hierarchy above them.  With prefix arg, show also the DONE
1934      entries.  With numerical prefix N, show the tree for the Nth
1935      keyword in the variable `org-todo-keywords'.  
1937 `C-c a t'
1938      Show the global TODO list.  This collects the TODO items from all
1939      agenda files (*note Agenda views::) into a single buffer.  The
1940      buffer is in `agenda-mode', so there are commands to examine and
1941      manipulate the TODO entries directly from that buffer (*note
1942      Agenda commands::).  *Note Global TODO list::, for more
1943      information.
1945 \x1f
1946 File: org,  Node: TODO extensions,  Next: Priorities,  Prev: TODO basics,  Up: TODO items
1948 5.2 Extended use of TODO keywords
1949 =================================
1951 The default implementation of TODO entries is just two states: TODO and
1952 DONE.  You can, however, use the TODO feature for more complicated
1953 things by configuring the variables `org-todo-keywords' and
1954 `org-todo-interpretation'.  Using special setup, you can even use TODO
1955 keywords in different ways in different org files.
1957    Note that tags are another way to classify headlines in general and
1958 TODO items in particular (*note Tags::).
1960 * Menu:
1962 * Workflow states::             From TODO to DONE in steps
1963 * TODO types::                  I do this, Fred the rest
1964 * Per file keywords::           Different files, different requirements
1966 \x1f
1967 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
1969 5.2.1 TODO keywords as workflow states
1970 --------------------------------------
1972 You can use TODO keywords to indicate different states in the process
1973 of working on an item, for example:
1975      (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
1976            org-todo-interpretation 'sequence)
1978    Changing these variables only becomes effective in a new Emacs
1979 session.  With this setup, the command `C-c C-t' will cycle an entry
1980 from TODO to FEEDBACK, then to VERIFY, and finally to DONE.  You may
1981 also use a prefix argument to quickly select a specific state.  For
1982 example `C-3 C-c C-t' will change the state immediately to VERIFY.  If
1983 you define many keywords, you can use in-buffer completion (see *Note
1984 Completion::) to insert these words into the buffer.
1986 \x1f
1987 File: org,  Node: TODO types,  Next: Per file keywords,  Prev: Workflow states,  Up: TODO extensions
1989 5.2.2 TODO keywords as types
1990 ----------------------------
1992 The second possibility is to use TODO keywords to indicate different
1993 types of action items.  For example, you might want to indicate that
1994 items are for "work" or "home".  If you are into David Allen's _Getting
1995 Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
1996 `MAYBE'.  Or, when you work with several people on a single project,
1997 you might want to assign action items directly to persons, by using
1998 their names as TODO keywords.  This would be set up like this:
2000      (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
2001            org-todo-interpretation 'type)
2003    In this case, different keywords do not indicate a sequence, but
2004 rather different types.  So it is normally not useful to change from
2005 one type to another.  Therefore, in this case the behavior of the
2006 command `C-c C-t' is changed slightly(1).  When used several times in
2007 succession, it will still cycle through all names.  But when you return
2008 to the item after some time and execute `C-c C-t' again, it will switch
2009 from each name directly to DONE.  Use prefix arguments or completion to
2010 quickly select a specific name.  You can also review the items of a
2011 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2012 C-v'.  For example, to see all things Lucy has to do, you would use
2013 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
2014 single buffer, you would use the prefix arg as well when creating the
2015 global todo list: `C-3 C-c t'.
2017    ---------- Footnotes ----------
2019    (1) This is also true for the `t' command in the timeline and agenda
2020 buffers.
2022 \x1f
2023 File: org,  Node: Per file keywords,  Prev: TODO types,  Up: TODO extensions
2025 5.2.3 Setting up TODO keywords for individual files
2026 ---------------------------------------------------
2028 It can be very useful to use different aspects of the TODO mechanism in
2029 different files, which is not possible with the global settings
2030 described above.  For file-local settings, you need to add special
2031 lines to the file which set the keywords and interpretation for that
2032 file only.  For example, to set one of the two examples discussed
2033 above, you need one of the following lines, starting in column zero
2034 anywhere in the file:
2036      #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
2037      #+TYP_TODO: Fred Sara Lucy Mike DONE
2039 To make sure you are using the correct keyword, type `#+' into the
2040 buffer and then use `M-<TAB>' completion.
2042    Remember that the last keyword must always mean that the item is DONE
2043 (although you may use a different word).  Also note that in each file,
2044 only one of the two aspects of TODO keywords can be used.  After
2045 changing one of these lines, use `C-c C-c' with the cursor still in the
2046 line to make the changes known to Org-mode(1).
2048    If you want to use very many keywords, for example when working with
2049 a large group of people, you may split the names over several lines:
2051      #+TYP_TODO: Fred Sara Lucy Mike
2052      #+TYP_TODO: Luis George Jules Jessica
2053      #+TYP_TODO: Kim Arnold Peter
2054      #+TYP_TODO: DONE
2056    ---------- Footnotes ----------
2058    (1) Org-mode parses these lines only when Org-mode is activated
2059 after visiting a file.  `C-c C-c' with the cursor in a line starting
2060 with `#+' is simply restarting Org-mode, making sure that these changes
2061 will be respected.
2063 \x1f
2064 File: org,  Node: Priorities,  Prev: TODO extensions,  Up: TODO items
2066 5.3 Priorities
2067 ==============
2069 If you use Org-mode extensively to organize your work, you may end up
2070 with a number of TODO entries so large that you'd like to prioritize
2071 them.  This can be done by placing a _priority cookie_ into the
2072 headline, like this
2074      *** TODO [#A] Write letter to Sam Fortune
2076 With its standard setup, Org-mode supports priorities `A', `B', and
2077 `C'.  `A' is the highest priority.  An entry without a cookie is
2078 treated as priority `B'.  Priorities make a difference only in the
2079 agenda (*note Weekly/Daily agenda::).
2081 `C-c ,'
2082      Set the priority of the current headline.  The command prompts for
2083      a priority character `A', `B' or `C'.  When you press <SPC>
2084      instead, the priority cookie is removed from the headline.  The
2085      priorities can also be changed "remotely" from the timeline and
2086      agenda buffer with the `,' command (*note Agenda commands::).
2088 `S-<up>'
2089 `S-<down>'
2090      Increase/decrease priority of current headline.  Note that these
2091      keys are also used to modify time stamps (*note Creating
2092      timestamps::).  Furthermore, these keys are also used by CUA-mode
2093      (*note Conflicts::).
2095 \x1f
2096 File: org,  Node: Timestamps,  Next: Tags,  Prev: TODO items,  Up: Top
2098 6 Timestamps
2099 ************
2101 Items can be labeled with timestamps to make them useful for project
2102 planning.
2104 * Menu:
2106 * Time stamps::                 Assigning a time to a tree entry
2107 * Creating timestamps::         Commands which insert timestamps
2108 * Progress logging::            Documenting when what work was done.
2110 \x1f
2111 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Timestamps,  Up: Timestamps
2113 6.1 Time stamps, deadlines and scheduling
2114 =========================================
2116 A time stamp is a specification of a date (possibly with time) in a
2117 special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue 09:39>'.
2118 A time stamp can appear anywhere in the headline or body of an org-tree
2119 entry.  Its presence allows entries to be shown on specific dates in
2120 the agenda (*note Weekly/Daily agenda::).  We distinguish:
2122 PLAIN TIME STAMP
2123      A simple time stamp just assigns a date/time to an item.  This is
2124      just like writing down an appointment in a paper agenda, or like
2125      writing down an event in a diary, when you want to take note of
2126      when something happened.  In the timeline and agenda displays, the
2127      headline of an entry associated with a plain time stamp will be
2128      shown exactly on that date.
2130 TIME STAMP RANGE
2131      Two time stamps connected by `--' denote a time range.  The
2132      headline will be shown on the first and last day of the range, and
2133      on any dates that are displayed and fall in the range.  Here is an
2134      example:
2136           ** Meeting in Amsterdam
2137              <2004-08-23 Mon>--<2004-08-26 Thu>
2139 TIME STAMP WITH SCHEDULED KEYWORD
2140      If a time stamp is preceded by the word `SCHEDULED:', it means you
2141      are planning to start working on that task on the given date. So
2142      this is not about recording an event, but about planning your
2143      work.  The headline will be listed under the given date.  In
2144      addition, a reminder that the scheduled date has passed will be
2145      present in the compilation for _today_, until the entry is marked
2146      DONE.  I.e., the task will automatically be forwarded until
2147      completed.
2149           *** TODO Call Trillian for a date on New Years Eve.
2150               SCHEDULED: <2004-12-25 Sat>
2152 TIME STAMP WITH DEADLINE KEYWORD
2153      If a time stamp is preceded by the word `DEADLINE:', the task
2154      (most likely a TODO item) is supposed to be finished on that date,
2155      and it will be listed then.  In addition, the compilation for
2156      _today_ will carry a warning about the approaching or missed
2157      deadline, starting `org-deadline-warning-days' before the due
2158      date, and continuing until the entry is marked DONE.  An example:
2160           *** TODO write article about the Earth for the Guide
2161               The editor in charge is <bbdb:Ford Prefect>
2162               DEADLINE: <2004-02-29 Sun>
2164 TIME STAMP WITH CLOSED KEYWORD
2165      When `org-log-done' is non-nil, Org-mode will automatically insert
2166      a special time stamp each time a TODO entry is marked done (*note
2167      Progress logging::).  This time stamp is enclosed in square
2168      brackets instead of angular brackets.
2170 TIME RANGE WITH CLOCK KEYWORD
2171      When using the clock to time the work that is being done on
2172      specific items, time ranges preceded by the CLOCK keyword are
2173      inserted automatically into the file.  The time stamps are
2174      enclosed in square brackets instead of angular brackets.  *Note
2175      Clocking work time::.
2177 \x1f
2178 File: org,  Node: Creating timestamps,  Next: Progress logging,  Prev: Time stamps,  Up: Timestamps
2180 6.2 Creating timestamps
2181 =======================
2183 For Org-mode to recognize time stamps, they need to be in the specific
2184 format.  All commands listed below produce time stamps in the correct
2185 format.
2187 `C-c .'
2188      Prompt for a date and insert a corresponding time stamp.  When the
2189      cursor is at a previously used time stamp, it is updated to NOW.
2190      When this command is used twice in succession, a time range is
2191      inserted.
2193 `C-u C-c .'
2194      Like `C-c .', but use the alternative format which contains date
2195      and time.  The default time can be rounded to multiples of 5
2196      minutes, see the option `org-time-stamp-rounding-minutes'.
2198 `C-c !'
2199      Like `C-c .', but insert an inactive time stamp not triggering the
2200      agenda.
2202 `C-c <'
2203      Insert a time stamp corresponding to the cursor date in the
2204      Calendar.
2206 `C-c >'
2207      Access the Emacs calendar for the current date.  If there is a
2208      timestamp in the current line, goto the corresponding date instead.
2210 `C-c C-o'
2211      Access the agenda for the date given by the time stamp at point
2212      (*note Weekly/Daily agenda::).
2214 `C-c C-d'
2215      Insert `DEADLINE' keyword along with a stamp.  The insertion will
2216      happen in the line directly following the headline.
2218 `C-c C-w'
2219      Create a sparse tree with all deadlines that are either past-due,
2220      or which will become due within `org-deadline-warning-days'.  With
2221      `C-u' prefix, show all deadlines in the file.  With a numeric
2222      prefix, check that many days.  For example, `C-1 C-c C-w' shows
2223      all deadlines due tomorrow.
2225 `C-c C-s'
2226      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
2227      happen in the line directly following the headline.  Any CLOSED
2228      timestamp will be removed.
2230 `S-<left>'
2231 `S-<right>'
2232      Change date at cursor by one day.  These key bindings conflict with
2233      CUA-mode (*note Conflicts::).
2235 `S-<up>'
2236 `S-<down>'
2237      Change the item under the cursor in a timestamp.  The cursor can
2238      be on a year, month, day, hour or minute.  Note that if the cursor
2239      is not at a time stamp, these same keys modify the priority of an
2240      item.  (*note Priorities::). The key bindings also conflict with
2241      CUA-mode (*note Conflicts::).
2243 `C-c C-y'
2244      Evaluate a time range by computing the difference between start and
2245      end.  With prefix arg, insert result after the time range (in a
2246      table: into the following column).
2248    When Org-mode prompts for a date/time, the function reading your
2249 input will replace anything you choose not to specify with the current
2250 date and time.  For details, see the documentation string of
2251 `org-read-date'.  Also, a calender will pop up to allow selecting a
2252 date.  The calendar can be fully controlled from the minibuffer, and a
2253 date can be selected with the following commands:
2256      Scroll calendar backwards by one month.  
2259      Scroll calendar forwards by one month.  
2261 `mouse-1'
2262      Select date by clicking on it.  
2264 `S-<right>'
2265      One day forward.  
2267 `S-<left>'
2268      One day back.  
2270 `S-<down>'
2271      One week forward.  
2273 `S-<up>'
2274      One week back.  
2276 `M-S-<right>'
2277      One month forward.  
2279 `M-S-<left>'
2280      One month back.  
2282 `<RET>'
2283      Choose date in calendar (only if nothing typed into minibuffer).
2285 \x1f
2286 File: org,  Node: Progress logging,  Prev: Creating timestamps,  Up: Timestamps
2288 6.3 Progress Logging
2289 ====================
2291 Org-mode can automatically record a time stamp when you mark a TODO item
2292 as DONE.  You can also measure precisely the time you spent on specific
2293 items in a project by starting and stopping a clock when you start and
2294 stop working on an aspect of a project.
2296 * Menu:
2298 * Closing items::               When was this entry marked DONE?
2299 * Clocking work time::          When exactly did you work on this item?
2301 \x1f
2302 File: org,  Node: Closing items,  Next: Clocking work time,  Prev: Progress logging,  Up: Progress logging
2304 6.3.1 Closing items
2305 -------------------
2307 If you want to keep track of _when_ a certain TODO item was finished,
2308 turn on logging with
2310      (setq org-log-done t)
2312 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2313 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2314 [timestamp]' will be inserted just after the headline.  If you turn the
2315 entry back into a TODO item again through further state cycling, that
2316 line will be removed again.  In the timeline (*note Timeline::) and in
2317 the agenda (*note Weekly/Daily agenda::), you can then use the `l' key
2318 to display the TODO items closed on each day, giving you an overview of
2319 what has been done on a day.
2321 \x1f
2322 File: org,  Node: Clocking work time,  Prev: Closing items,  Up: Progress logging
2324 6.3.2 Clocking work time
2325 ------------------------
2327 Org-mode allows you to clock the time you spent on specific tasks in a
2328 project.  When you start working on an item, you can start the clock.
2329 When you stop working on that task, or when you mark the task done, the
2330 clock is stopped and the corresponding time interval is recorded.  It
2331 also computes the total time spent on each subtree of a project.
2333 `C-c C-x C-i'
2334      Start the clock on the current item (clock-in).  This inserts the
2335      CLOCK keyword together with a timestamp.  
2337 `C-c C-x C-o'
2338      Stop the clock (clock-out).  The inserts another timestamp at the
2339      same location where the clock was last started.  It also directly
2340      computes the resulting time in inserts it after the time range as
2341      `=> HH:MM'.  
2343 `C-c C-y'
2344      Recompute the time interval after changing one of the time stamps.
2345      This is only necessary if you edit the time stamps directly.  If
2346      you change them with `S-<cursor>' keys, the update is automatic.  
2348 `C-c C-t'
2349      Changing the TODO state of an item to DONE automatically stops the
2350      clock if it is running in this same item.  
2352 `C-c C-x C-x'
2353      Cancel the current clock.  This is useful if a clock was started by
2354      mistake, or if you ended up working on something else.  
2356 `C-c C-x C-d'
2357      Display time summaries for each subtree in the current buffer.
2358      This puts overlays at the end of each headline, showing the total
2359      time recorded under that heading, including the time of any
2360      subheadings. You can use visibility cycling to study the tree, but
2361      the overlays disappear automatically when the buffer is changed.  
2363 `C-c C-x C-r'
2364      Insert a dynamic block (*note Dynamic blocks::) containing a clock
2365      report as an org-mode table into the current file.
2366           #+BEGIN: clocktable :maxlevel 2 :emphasize nil
2368           #+END: clocktable
2369      If such a block already exists, its content is replaced by the new
2370      table.  The `BEGIN' line can specify options:
2371           :maxlevels   Maximum level depth to which times are listed in the table.
2372           :emphasize   When `t', emphasize level one and level two items
2373           :block       The time block to consider.  This block is specified relative
2374                        to the current time and may be any of these keywords:
2375                        `today', `yesterday', `thisweek', `lastweek',
2376                        `thismonth', `lastmonth', `thisyear', or `lastyear'.
2377           :tstart      A time string specifying when to start considering times
2378           :tend        A time string specifying when to stop considering times
2379      So to get a clock summary for the current day, you could write
2380           #+BEGIN: clocktable :maxlevel 2 :block today
2382           #+END: clocktable
2383      and to use a specific time range you could write(1)
2384           #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
2385                               :tend "<2006-08-10 Thu 12:00>"
2387           #+END: clocktable
2388      
2389 `C-u C-c C-x C-u'
2390      Update all dynamic blocks (*note Dynamic blocks::).  This is
2391      useful if you have several clocktable blocks in a buffer.
2393    The `l' key may be used in the timeline (*note Timeline::) and in
2394 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
2395 worked on or closed during a day.
2397    ---------- Footnotes ----------
2399    (1) Note that all parameters must be specified in a single line -
2400 the line is broken here only to fit it onto the manual.
2402 \x1f
2403 File: org,  Node: Tags,  Next: Agenda views,  Prev: Timestamps,  Up: Top
2405 7 Tags
2406 ******
2408 If you wish to implement a system of labels and contexts for
2409 cross-correlating information, an excellent way is to assign tags to
2410 headlines.  Org-mode has extensive support for using tags.
2412    Every headline can contain a list of tags, at the end of the
2413 headline.  Tags are normal words containing letters, numbers, `_', and
2414 `@'.  Tags must be preceded and followed by a single colon; like
2415 `:WORK:'.  Several tags can be specified like `:WORK:URGENT:'.
2417 * Menu:
2419 * Tag inheritance::             Tags use the tree structure of the outline
2420 * Setting tags::                How to assign tags to a headline
2421 * Tag searches::                Searching for combinations of tags
2423 \x1f
2424 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2426 7.1 Tag inheritance
2427 ===================
2429 Tags make use of the hierarchical structure of outline trees.  If a
2430 heading has a certain tag, all subheadings will inherit the tag as
2431 well.  For example, in the list
2433      * Meeting with the French group      :WORK:
2434      ** Summary by Frank                  :BOSS:NOTES:
2435      *** TODO Prepare slides for him      :ACTION:
2437 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
2438 `:ACTION:'.  When executing tag searches and Org-mode finds that a
2439 certain headline matches the search criterion, it will not check any
2440 sublevel headline, assuming that these likely also match, and that the
2441 list of matches can become very long.  This may not be what you want,
2442 however, and you can influence inheritance and searching using the
2443 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2445 \x1f
2446 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2448 7.2 Setting tags
2449 ================
2451 Tags can simply be typed into the buffer at the end of a headline.
2452 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2453 special command for inserting tags:
2455 `C-c C-c'
2456      Enter new tags for the current headline.  Org-mode will either
2457      offer completion or a special single-key interface for setting
2458      tags, see below.  After pressing <RET>, the tags will be inserted
2459      and aligned to `org-tags-column'.  When called with a `C-u'
2460      prefix, all tags in the current buffer will be aligned to that
2461      column, just to make things look nice.  TAGS are automatically
2462      realigned after promotion, demotion, and TODO state changes (*note
2463      TODO basics::).
2465    Org will support tag insertion based on a _list of tags_.  By
2466 default this list is constructed dynamically, containing all tags
2467 currently used in the buffer.  You may also globally specify a hard list
2468 of tags with the variable `org-tag-alist'.  Finally you can set the
2469 allowed tags for a given file with lines like
2471      #+TAGS: @WORK @HOME @TENNISCLUB
2472      #+TAGS: Laptop Car PC Sailboat
2474    The default support method is minibuffer completion.  However,
2475 Org-mode also implements a much better method: _fast tag selection_.
2476 This method allows to select and deselect tags with a single key per
2477 tag.  To function efficiently, you should assign unique keys to all
2478 tags.  This can be done globally with
2480      (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
2482 or on a per-file basis with
2484      #+TAGS: @WORK(w)  @HOME(h)  @TENNISCLUB(t)  Laptop(l)  PC(p)
2486 You can also group together tags that are mutually exclusive.  With
2487 curly braces(1)
2489      #+TAGS: { @WORK(w)  @HOME(h)  @TENNISCLUB(t) }  Laptop(l)  PC(p)
2491 you indicate that at most one of `@WORK', `@HOME', and `@SAILBOAT'
2492 should be selected.
2494 Don't forget to press `C-c C-c' with the cursor in one of these lines
2495 to activate any changes.
2497    If at least one tag has a selection key, pressing `C-c C-c' will
2498 automatically present you with a special interface, listing inherited
2499 tags, the tags of the current headline, and a list of all legal tags
2500 with corresponding keys(2).  Pressing keys for the tags will add or
2501 remove them from the list of tags in the current line.  Selecting a tag
2502 in a group of mutually exclusive tags will turn off any other tags from
2503 that group.  <SPC> clears all tags for this line, `RET' accepts the
2504 modified set, and `C-g' aborts without installing changes.  This method
2505 lets you assign tags to a headline with very few keys.  With the above
2506 setup, you could clear the current tags and set `@HOME', `Laptop' and
2507 `PC' tags with just the following keys: `C-c C-c <SPC> h l p <RET>'.
2508 Switching from `@HOME' to `@WORK' would be done with `C-c C-c w <RET>'.
2510    What if you have globally defined your preferred set of tags using
2511 the variable `org-tag-alist', but would like to use a dynamic tag list
2512 in a specific file?  Just add an empty TAGS option line to that file:
2514      #+TAGS:
2516    ---------- Footnotes ----------
2518    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
2519 respectively.  Several groups are allowed.
2521    (2) Keys will automatically assigned to tags which have no
2522 configured keys.
2524 \x1f
2525 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
2527 7.3 Tag searches
2528 ================
2530 Once a tags system has been set up, it can be used to collect related
2531 information into special lists.
2533 `C-c \'
2534      Create a sparse tree with all headlines matching a tags search.  
2536 `C-c a m'
2537      Create a global list of tag matches from all agenda files.  *Note
2538      Matching headline tags::.  
2540 `C-c a M'
2541      Create a global list of tag matches from all agenda files, but
2542      check only TODO items and force checking subitems (see variable
2543      `org-tags-match-list-sublevels').
2545    A tags search string can use Boolean operators `&' for AND and `|'
2546 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
2547 not implemented.  A tag may also be preceded by `-', to select against
2548 it, and `+' is syntactic sugar for positive selection.  The AND
2549 operator `&' is optional when `+' or `-' is present.  For example,
2550 `+WORK-BOSS' would select all headlines that are tagged `:WORK:', but
2551 discard those also tagged `:BOSS:'.  The search string `WORK|LAPTOP'
2552 selects all lines tagged `:WORK:' or `:LAPTOP:'.  The string
2553 `WORK|LAPTOP&NIGHT' requires that the `:LAPTOP:' lines are also tagged
2554 `NIGHT'.
2556 \x1f
2557 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Tags,  Up: Top
2559 8 Agenda Views
2560 **************
2562 Due to the way Org-mode works, TODO items, time-stamped items, and
2563 tagged headlines can be scattered throughout a file or even a number of
2564 files.  To get an overview over open action items, or over events that
2565 are important for a particular date, this information must be collected,
2566 sorted and displayed in an organized way.
2568    Org-mode can select items based on various criteria, and display them
2569 in a separate buffer.  Three different views are provided:
2571    * an _agenda_ that is like a calendar and shows information for
2572      specific dates
2574    * a _TODO list_ that covers all unfinished action items, and
2576    * a _tags view_ that shows information based on the tags associated
2577      with headlines in the outline tree.
2579 The extracted information is displayed in a special _agenda buffer_.
2580 This buffer is read-only, but provides commands to visit the
2581 corresponding locations in the original Org-mode files, and even to
2582 edit these files remotely.
2584 * Menu:
2586 * Agenda files::                Files being searched for agenda information
2587 * Agenda dispatcher::           Keyboard access to agenda views
2588 * Weekly/Daily agenda::         The calendar page with current tasks
2589 * Global TODO list::            All unfinished action items
2590 * Matching headline tags::      Structured information with fine-tuned search
2591 * Timeline::                    Time-sorted view for single file
2592 * Agenda commands::             Remote editing of org trees
2594 \x1f
2595 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
2597 8.1 Agenda files
2598 ================
2600 The information to be shown is collected from all _agenda files_, the
2601 files listed in the variable `org-agenda-files'(1).  Thus even if you
2602 only work with a single Org-mode file, this file should be put into
2603 that list(2).  You can customize `org-agenda-files', but the easiest
2604 way to maintain it is through the following commands
2606 `C-c ['
2607      Add current file to the list of agenda files.  The file is added to
2608      the front of the list.  If it was already in the list, it is moved
2609      to the front.  With prefix arg, file is added/moved to the end.  
2611 `C-c ]'
2612      Remove current file from the list of agenda files.  
2614 `C-,'
2615      Cycle through agenda file list, visiting one file after the other.
2617 The Org menu contains the current list of files and can be used to
2618 visit any of them.
2620    ---------- Footnotes ----------
2622    (1) If the value of that variable is not a list, but a single file
2623 name, then the list of agenda files will be maintained in that external
2624 file.
2626    (2) When using the dispatcher pressing `1' before selecting a
2627 command will actually limit the command to the current file, and ignore
2628 `org-agenda-files' until the next dispatcher command.
2630 \x1f
2631 File: org,  Node: Agenda dispatcher,  Next: Weekly/Daily agenda,  Prev: Agenda files,  Up: Agenda views
2633 8.2 The agenda dispatcher
2634 =========================
2636 The views are created through a dispatcher that should be bound to a
2637 global key, for example `C-c a' (*note Installation::).  In the
2638 following we will assume that `C-c a' is indeed how the dispatcher is
2639 accessed and list keyboard access to commands accordingly.  After
2640 pressing `C-c a', an additional letter is required to execute a
2641 command.  The dispatcher offers the following default commands:
2643      Create the calendar-like agenda (*note Weekly/Daily agenda::).
2645 `t / T'
2646      Create a list of all TODO items (*note Global TODO list::).
2648 `m / M'
2649      Create a list of headlines matching a TAGS expression (*note
2650      Matching headline tags::).
2652    You can also define custom commands that will be accessible through
2653 the dispatcher, just like the default commands.  Custom commands are
2654 global searches for tags and specific TODO keywords, or a variety of
2655 sparse tree creating commands (*note Sparse trees::).  As sparse trees
2656 are only defined for a single org-mode file, these latter commands act
2657 on the current buffer instead of the list of agenda files.
2659    Custom commands are configured in the variable
2660 `org-agenda-custom-commands'.  You can customize this variable, for
2661 example by pressing `C-c a C'.  You can also directly set it with Emacs
2662 Lisp in `.emacs'.  For example:
2664      (setq org-agenda-custom-commands
2665            '(("w" todo "WAITING")
2666              ("u" tags "+BOSS-URGENT")
2667              ("U" tags-tree "+BOSS-URGENT")
2668              ("f" occur-tree "\\<FIXME\\>")))
2670 will define `C-c a w' as a global search for TODO entries with
2671 `WAITING' as the TODO keyword, `C-c a u' as a global tags search for
2672 headlines marked `:BOSS:' but not `:URGENT:', `C-c a U' to do the same
2673 search but only in the current buffer and display the result as a
2674 sparse tree, and `C-c a f' to create a sparse tree with all entries
2675 containing the word `FIXME'.  For more information, look at the
2676 documentation string of the variable `org-agenda-custom-commands'.
2678 \x1f
2679 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Agenda dispatcher,  Up: Agenda views
2681 8.3 The weekly/daily agenda
2682 ===========================
2684 The purpose of the weekly/daily _agenda_ is to act like a page of a
2685 paper agenda, showing all the tasks for the current week or day.
2687 `C-c a a'
2688      Compile an agenda for the current week from a list of org files.
2689      The agenda shows the entries for each day.  With a `C-u' prefix (or
2690      when the variable `org-agenda-include-all-todo' is `t'), all
2691      unfinished TODO items (including those without a date) are also
2692      listed at the beginning of the buffer, before the first date.
2694    Remote editing from the agenda buffer means, for example, that you
2695 can change the dates of deadlines and appointments from the agenda
2696 buffer.  The commands available in the Agenda buffer are listed in
2697 *Note Agenda commands::.
2699 * Menu:
2701 * Categories::                  Not all tasks are equal
2702 * Time-of-day specifications::  How the agenda knows the time
2703 * Calendar/Diary integration::  Integrating Anniversaries and more
2704 * Sorting of agenda items::     The order of things
2706 \x1f
2707 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Weekly/Daily agenda,  Up: Weekly/Daily agenda
2709 8.3.1 Categories
2710 ----------------
2712 In the agenda buffer, each entry is preceded by a _category_, which is
2713 derived from the file name.  The category can also be set with a
2714 special line anywhere in the buffer, looking like this:
2716      #+CATEGORY: Thesis
2718    If there are several such lines in a file, each specifies the
2719 category for the text below it (but the first category also applies to
2720 any text before the first CATEGORY line).  The display in the agenda
2721 buffer looks best if the category is not longer than 10 characters.
2723 \x1f
2724 File: org,  Node: Time-of-day specifications,  Next: Calendar/Diary integration,  Prev: Categories,  Up: Weekly/Daily agenda
2726 8.3.2 Time-of-Day Specifications
2727 --------------------------------
2729 Org-mode checks each agenda item for a time-of-day specification.  The
2730 time can be part of the time stamp that triggered inclusion into the
2731 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
2732 specified with two time stamps, like
2733 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
2735    In the headline of the entry itself, a time(range) may also appear as
2736 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
2737 Emacs diary (*note Calendar/Diary integration::), time specifications
2738 in diary entries are recognized as well.
2740    For agenda display, Org-mode extracts the time and displays it in a
2741 standard 24 hour format as part of the prefix.  The example times in
2742 the previous paragraphs would end up in the agenda like this:
2744          8:30-13:00 Arthur Dent lies in front of the bulldozer
2745         12:45...... Ford Prefect arrives and takes Arthur to the pub
2746         19:00...... The Vogon reads his poem
2747         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
2749    If the agenda is in single-day mode, or for the display of today, the
2750 timed entries are embedded in a time grid, like
2752          8:00...... ------------------
2753          8:30-13:00 Arthur Dent lies in front of the bulldozer
2754         10:00...... ------------------
2755         12:00...... ------------------
2756         12:45...... Ford Prefect arrives and takes Arthur to the pub
2757         14:00...... ------------------
2758         16:00...... ------------------
2759         18:00...... ------------------
2760         19:00...... The Vogon reads his poem
2761         20:00...... ------------------
2762         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
2764    The time grid can be turned on and off with the variable
2765 `org-agenda-use-time-grid', and can be configured with
2766 `org-agenda-time-grid'.
2768 \x1f
2769 File: org,  Node: Calendar/Diary integration,  Next: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Weekly/Daily agenda
2771 8.3.3 Calendar/Diary integration
2772 --------------------------------
2774 Emacs contains the calendar and diary by Edward M. Reingold.  The
2775 calendar displays a three-month calendar with holidays from different
2776 countries and cultures.  The diary allows you to keep track of
2777 anniversaries, lunar phases, sunrise/set, recurrent appointments
2778 (weekly, monthly) and more.  In this way, it is quite complementary to
2779 Org-mode.  It can be very useful to combine output from Org-mode with
2780 the diary.
2782    In order to include entries from the Emacs diary into Org-mode's
2783 agenda, you only need to customize the variable
2785      (setq org-agenda-include-diary t)
2787 After that, everything will happen automatically.  All diary entries
2788 including holidays, anniversaries etc will be included in the agenda
2789 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
2790 the agenda buffer to jump to the diary file in order to edit existing
2791 diary entries.  The `i' command to insert new entries for the current
2792 date works in the agenda buffer, as well as the commands `S', `M', and
2793 `C' to display Sunrise/Sunset times, show lunar phases and to convert
2794 to other calendars, respectively.  `c' can be used to switch back and
2795 forth between calendar and agenda.
2797 \x1f
2798 File: org,  Node: Sorting of agenda items,  Prev: Calendar/Diary integration,  Up: Weekly/Daily agenda
2800 8.3.4 Sorting of agenda items
2801 -----------------------------
2803 The entries for each day are sorted.  The default order is to first
2804 collect all items containing an explicit time-of-day specification.
2805 These entries will be shown at the beginning of the list, as a
2806 _schedule_ for the day.  After that, items remain grouped in
2807 categories, in the sequence given by `org-agenda-files'.  Within each
2808 category, items are sorted by priority (*note Priorities::).
2810    The priority is a numerical quantity composed of the base priority
2811 (2000 for priority `A', 1000 for `B', and 0 for `C'), plus additional
2812 increments for overdue scheduled or deadline items.
2814    Sorting can be customized using the variable
2815 `org-agenda-sorting-strategy'.
2817 \x1f
2818 File: org,  Node: Global TODO list,  Next: Matching headline tags,  Prev: Weekly/Daily agenda,  Up: Agenda views
2820 8.4 The global TODO list
2821 ========================
2823 The global TODO list contains all unfinished TODO items, formatted and
2824 collected into a single place.
2826 `C-c a t'
2827      Show the global TODO list.  This collects the TODO items from all
2828      agenda files (*note Agenda views::) into a single buffer.  The
2829      buffer is in `agenda-mode', so there are commands to examine and
2830      manipulate the TODO entries directly from that buffer (*note
2831      Agenda commands::).  
2833 `C-c a T'
2834      Like the above, but allows selection of a specific TODO keyword.
2835      You can also do this by specifying a prefix argument to `C-c a t'.
2836      With a `C-u' prefix you are prompted for a keyword.  With a
2837      numeric prefix, the Nth keyword in `org-todo-keywords' is selected.  The
2838      `r' key in the agenda buffer regenerates it, and you can give a
2839      prefix argument to this command to change the selected TODO
2840      keyword, for example `3 r'.  If you often need a search for a
2841      specific keyword, define a custom command for it (*note Agenda
2842      dispatcher::).
2844    Remote editing of TODO items means that you can change the state of a
2845 TODO entry with a single key press.  The commands available in the TODO
2846 list are described in *Note Agenda commands::.
2848    Nomally the global todo list simply shows all headlines with TODO
2849 keywords.  This list can become very long.  There are two ways to keep
2850 it more compact:
2851    - Some people view a TODO item that has been _scheduled_ for
2852      execution (*note Time stamps::) as no longer _open_.  Configure the
2853      variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
2854      items from the global TODO list.
2856    - TODO items may have sublevels to break up the task into subtasks.
2857      In such cases it may be enough to list only the highest level TODO
2858      headline and omit the sublevels from the global list.  Configure
2859      the variable `org-agenda-todo-list-sublevels' to get this behavior.
2861 \x1f
2862 File: org,  Node: Matching headline tags,  Next: Timeline,  Prev: Global TODO list,  Up: Agenda views
2864 8.5 Matching headline tags
2865 ==========================
2867 If headlines in the agenda files are marked with _tags_ (*note Tags::),
2868 you can select headlines based on the tags that apply to them and
2869 collect them into an agenda buffer.
2871 `C-c a m'
2872      Produce a list of all headlines that match a given set of tags.
2873      The command prompts for a selection criterion, which is a boolean
2874      logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
2875      `WORK|HOME' (*note Tags::).  If you often need a specific search,
2876      define a custom command for it (*note Agenda dispatcher::).  
2878 `C-c a M'
2879      Like `C-c a m', but only select headlines that are also TODO items
2880      and force checking subitems (see variable
2881      `org-tags-match-list-sublevels'.
2883    The commands available in the tags list are described in *Note
2884 Agenda commands::.
2886 \x1f
2887 File: org,  Node: Timeline,  Next: Agenda commands,  Prev: Matching headline tags,  Up: Agenda views
2889 8.6 Timeline for a single file
2890 ==============================
2892 The timeline is not really an agenda view, because it only summarizes
2893 items from a single Org-mode file.  But it also uses the agenda buffer
2894 and provides similar commands, so we discuss it here.  The timeline
2895 shows all time-stamped items in a single Org-mode file (or the selected
2896 part of it), in a _time-sorted view_.  The main purpose of this command
2897 is to give an overview over events in a project.
2899 `C-c C-r'
2900      Show a time-sorted view of the org file, with all time-stamped
2901      items.  When called with a `C-u' prefix, all unfinished TODO
2902      entries (scheduled or not) are also listed under the current date.
2904 The commands available in the timeline buffer are listed in *Note
2905 Agenda commands::.
2907 \x1f
2908 File: org,  Node: Agenda commands,  Prev: Timeline,  Up: Agenda views
2910 8.7 Commands in the agenda buffer
2911 =================================
2913 Entries in the agenda buffer are linked back to the org file or diary
2914 file where they originate.  You are not allowed to edit the agenda
2915 buffer itself, but commands are provided to show and jump to the
2916 original entry location, and to edit the org-files "remotely" from the
2917 agenda buffer.  In this way, all information is stored only once,
2918 removing the risk that your agenda and note files may diverge.
2920    Some commands can be executed with mouse clicks on agenda lines.  For
2921 the other commands, the cursor needs to be in the desired line.
2923 Motion
2924 ......
2927      Next line (same as <up>).  
2930      Previous line (same as <down>).
2932 View/GoTo org file
2933 ..................
2935 `mouse-3'
2936 `<SPC>'
2937      Display the original location of the item in another window.
2940      Display original location and recenter that window.
2942 `mouse-2'
2943 `mouse-1'
2944 `<TAB>'
2945      Go to the original location of the item in another window.  Under
2946      Emacs 22, `mouse-1' will also works for this.
2948 `<RET>'
2949      Go to the original location of the item and delete other windows.
2952      Toggle Follow mode.  In Follow mode, as you move the cursor through
2953      the agenda buffer, the other window always shows the corresponding
2954      location in the org file.  The initial setting for this mode in new
2955      agenda buffers can be set with the variable
2956      `org-agenda-start-with-follow-mode'.
2959      Toggle Logbook mode.  In Logbook mode, entries that where marked
2960      DONE while logging was on (variable `org-log-done') are shown in
2961      the agenda, as are entries that have been clocked on that day.
2963 Change display
2964 ..............
2967      Delete other windows.
2970      Switch to weekly view (7 days displayed together).
2973      Switch to daily view (just one day displayed).
2976      Toggle the inclusion of diary entries.  See *Note Calendar/Diary
2977      integration::.
2980      Toggle the time grid on and off.  See also the variables
2981      `org-agenda-use-time-grid' and `org-agenda-time-grid'.
2984      Recreate the agenda buffer, for example to reflect the changes
2985      after modification of the time stamps of items with S-<left> and
2986      S-<right>.  When the buffer is the global todo list, a prefix
2987      argument is interpreted to create a selective list for a specific
2988      TODO keyword.
2991      Save all Org-mode buffers in the current Emacs session.
2993 `<right>'
2994      Display the following `org-agenda-ndays' days.  For example, if
2995      the display covers a week, switch to the following week.  With
2996      prefix arg, go forward that many times `org-agenda-ndays' days.
2998 `<left>'
2999      Display the previous dates.
3002      Goto today.
3004 Remote editing
3005 ..............
3007 `0-9'
3008      Digit argument.
3011      Change the TODO state of the item, both in the agenda and in the
3012      original org file.
3015      Show all tags associated with the current item.  Because of
3016      inheritance, this may be more than the tags listed in the line
3017      itself.
3020      Set tags for the current headline.
3023      Toggle the ARCHIVE tag for the current headline.
3026      Set the priority for the current item.  Org-mode prompts for the
3027      priority character. If you reply with <SPC>, the priority cookie
3028      is removed from the entry.
3031      Display weighted priority of current item.
3034 `S-<up>'
3035      Increase the priority of the current item.  The priority is
3036      changed in the original buffer, but the agenda is not resorted.
3037      Use the `r' key for this.
3040 `S-<down>'
3041      Decrease the priority of the current item.
3043 `C-c C-s'
3044      Schedule this item
3046 `C-c C-d'
3047      Set a deadline for this item.
3049 `S-<right>'
3050      Change the time stamp associated with the current line by one day
3051      into the future.  With prefix argument, change it by that many
3052      days.  For example, `3 6 5 S-<right>' will change it by a year.
3053      The stamp is changed in the original org file, but the change is
3054      not directly reflected in the agenda buffer.  Use the `r' key to
3055      update the buffer.
3057 `S-<left>'
3058      Change the time stamp associated with the current line by one day
3059      into the past.
3062      Change the time stamp associated with the current line to today.
3063      The key `>' has been chosen, because it is the same as `S-.' on my
3064      keyboard.
3067      Start the clock on the current item.  If a clock is running
3068      already, it is stopped first.  
3071      Stop the previously started clock.  
3074      Cancel the currently running clock.
3076 Calendar commands
3077 .................
3080      Open the Emacs calendar and move to the date at the agenda cursor.
3083      When in the calendar, compute and show the Org-mode agenda for the
3084      date at the cursor.
3087      Insert a new entry into the diary.  Prompts for the type of entry
3088      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
3089      new entry in the diary, just as `i d' etc. would do in the
3090      calendar.  The date is taken from the cursor position.
3093      Show the phases of the moon for the three months around current
3094      date.
3097      Show sunrise and sunset times.  The geographical location must be
3098      set with calendar variables, see documentation of the Emacs
3099      calendar.
3102      Convert the date at cursor into many other cultural and historic
3103      calendars.
3106      Show holidays for three month around the cursor date.
3108 `C-c C-x C-c'
3109      Export a single iCalendar file containing entries from all agenda
3110      files.
3112 Quit and Exit
3113 .............
3116      Quit agenda, remove the agenda buffer.
3119      Exit agenda, remove the agenda buffer and all buffers loaded by
3120      Emacs for the compilation of the agenda.  Buffers created by the
3121      user to visit org files will not be removed.
3124 \x1f
3125 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
3127 9 Embedded LaTeX
3128 ****************
3130 Plain ASCII is normally sufficient for almost all note taking.  One
3131 exception, however, are scientific notes which need to be able to
3132 contain mathematical symbols and the occasional formula.  LaTeX(1) is
3133 widely used to typeset scientific documents. Org-mode supports
3134 embedding LaTeX code into its files, because many academics are used to
3135 read LaTeX source code, and because it can be readily processed into
3136 images for HTML production.
3138    It is not necessary to mark LaTeX macros and code in any special way.
3139 If you observe a few conventions, Org-mode knows how to find it and what
3140 to do with it.
3142 * Menu:
3144 * Math symbols::                TeX macros for symbols and Greek letters
3145 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
3146 * LaTeX fragments::             Complex formulas made easy
3147 * Processing LaTeX fragments::  Previewing LaTeX processing
3148 * CDLaTeX mode::                Speed up entering of formulas
3150    ---------- Footnotes ----------
3152    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
3153 Many of the features described here as "LaTeX" are really from TeX, but
3154 for simplicity I am blurring this distinction.
3156 \x1f
3157 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
3159 9.1 Math symbols
3160 ================
3162 You can use LaTeX macros to insert special symbols like `\alpha' to
3163 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
3164 for these macros is available, just type `\' and maybe a few letters,
3165 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
3166 Org-mode allows these macros to be present without surrounding math
3167 delimiters, for example:
3169      Angles are written as Greek letters \alpha, \beta and \gamma.
3171    During HTML export (*note HTML export::), these symbols are
3172 translated into the proper syntax for HTML, for the above examples this
3173 is `&alpha;' and `&rarr;', respectively.
3175 \x1f
3176 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
3178 9.2 Subscripts and Superscripts
3179 ===============================
3181 Just like in LaTeX, `^' and `_' are used to indicate super- and
3182 subscripts.  Again, these can be used without embedding them in
3183 math-mode delimiters.  To increase the readability of ASCII text, it is
3184 not necessary (but OK) to surround multi-character sub- and superscripts
3185 with curly braces.  For example
3187      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
3188      the sun is R_{sun} = 6.96 x 10^8 m.
3190    To avoid interpretation as raised or lowered text, you can quote `^'
3191 and `_' with a backslash: `\_' and `\^'.
3193    During HTML export (*note HTML export::), subscript and superscripts
3194 are surrounded with `<sub>' and `<sup>' tags, respectively.
3196 \x1f
3197 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
3199 9.3 LaTeX fragments
3200 ===================
3202 With symbols, sub- and superscripts, HTML is pretty much at its end when
3203 it comes to representing mathematical formulas.  More complex
3204 expressions need a dedicated formula processor.  To this end, Org-mode
3205 can contain arbitrary LaTeX fragments.  It provides commands to preview
3206 the typeset result of these fragments, and upon export to HTML, all
3207 fragments will be converted to images and inlined into the HTML
3208 document.  For this to work you need to be on a system with a working
3209 LaTeX installation.  You also need the `dvipng' program, available at
3210 `http://sourceforge.net/projects/dvipng/'.
3212    LaTeX fragments don't need any special marking at all.  The following
3213 snippets will be identified as LaTeX source code:
3214    * Environments of any kind.  The only requirement is that the
3215      `\begin' statement appears on a new line, preceded by only
3216      whitespace.
3218    * Text within the usual LaTeX math delimiters.  To avoid conflicts
3219      with currency specifications, single `$' characters are only
3220      recognized as math delimiters if the enclosed text contains at
3221      most two line breaks, is directly attached to the `$' characters
3222      with no whitespace in between, and if the closing `$' is followed
3223      by whitespace or punctuation.  For the other delimiters, there is
3224      no such restriction, so when in doubt, use `\(...\)' as inline
3225      math delimiters.
3227 For example:
3229      \begin{equation}                          % arbitrary environments,
3230      x=\sqrt{b}                                % even tables, figures
3231      \end{equation}                            % etc
3233      If $a^2=b$ and \( b=2 \), then the solution must be
3234      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
3236 If you need any of the delimiter ASCII sequences for other purposes, you
3237 can configure the option `org-format-latex-options' to deselect the
3238 ones you do not wish to have interpreted by the LaTeX converter.
3240 \x1f
3241 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
3243 9.4 Processing LaTeX fragments
3244 ==============================
3246 LaTeX fragments can be processed to produce a preview images of the
3247 typeset expressions:
3249 `C-c C-x C-l'
3250      Produce a preview image of the LaTeX fragment at point and overlay
3251      it over the source code.  If there is no fragment at point,
3252      process all fragments in the current entry (between two
3253      headlines).  When called with a prefix argument, process the
3254      entire subtree.  When called with two prefix arguments, or when
3255      the cursor is before the first headline, process the entire buffer.  
3257 `C-c C-c'
3258      Remove the overlay preview images.
3260    During HTML export (*note HTML export::), all LaTeX fragments are
3261 converted into images and inlined into the document if the following
3262 setting is active:
3264      (setq org-export-with-LaTeX-fragments t)
3266 \x1f
3267 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
3269 9.5 Using CDLaTeX to enter math
3270 ===============================
3272 CDLaTeX-mode is a minor mode that is normally used in combination with a
3273 major LaTeX mode like AUCTeX in order to speed-up insertion of
3274 environments and math templates.  Inside Org-mode, you can make use of
3275 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
3276 and `texmathp.el' (the latter comes also with AUCTeX) from
3277 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
3278 cdlatex-mode itself under Org-mode, but use the light version
3279 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
3280 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
3281 with
3283      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
3285    When this mode is enabled, the following features are present (for
3286 more details see the documentation of cdlatex-mode):
3287    * Environment templates can be inserted with `C-c {'.
3289    * The <TAB> key will do template expansion if the cursor is inside a
3290      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
3291      `\frac{}{}' and position the cursor correctly inside the first
3292      brace.  Another <TAB> will get you into the second brace.  Even
3293      outside fragments, <TAB> will expand environment abbreviations at
3294      the beginning of a line.  For example, if you write `equ' at the
3295      beginning of a line and press <TAB>, this abbreviation will be
3296      expanded to an `equation' environment.  To get a list of all
3297      abbreviations, type `M-x cdlatex-command-help'.
3299    * Pressing `_' and `^' inside a LaTeX fragment will insert these
3300      characters together with a pair of braces.  If you use <TAB> to
3301      move out of the braces, and if the braces surround only a single
3302      character or macro, they are removed again (depending on the
3303      variable `cdlatex-simplify-sub-super-scripts').
3305    * Pressing the backquote ``' followed by a character inserts math
3306      macros, also outside LaTeX fragments.  If you wait more than 1.5
3307      seconds after the backquote, a help window will pop up.
3309    * Pressing the normal quote `'' followed by another character
3310      modifies the symbol before point with an accent or a font.  If you
3311      wait more than 1.5 seconds after the backquote, a help window will
3312      pop up.  Character modification will work only inside LaTeX
3313      fragments, outside the quote is normal.
3315    ---------- Footnotes ----------
3317    (1) Org-mode has a method to test if the cursor is inside such a
3318 fragment, see the documentation of the function
3319 `org-inside-LaTeX-fragment-p'.
3321 \x1f
3322 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
3324 10 Exporting
3325 ************
3327 Org-mode documents can be exported into a variety of other formats.  For
3328 printing and sharing of notes, ASCII export produces a readable and
3329 simple version of an Org-mode file.  HTML export allows you to publish a
3330 notes file on the web, while the XOXO format provides a solid base for
3331 exchange with a broad range of other applications.  To incorporate
3332 entries with associated times like deadlines or appointments into a
3333 desktop calendar program like iCal, Org-mode can also produce extracts
3334 in the iCalendar format.  Currently Org-mode only supports export, not
3335 import of these different formats.
3337    When exporting, Org-mode uses special conventions to enrich the
3338 output produced.  *Note Text interpretation::, for more details.
3340 `C-c C-e'
3341      Dispatcher for export and publishing commands.  Displays a
3342      help-window listing the additional key(s) needed to launch an
3343      export or publishing command.
3345 * Menu:
3347 * ASCII export::                Exporting to plain ASCII
3348 * HTML export::                 Exporting to HTML
3349 * XOXO export::                 Exporting to XOXO
3350 * iCalendar export::            Exporting in iCalendar format
3351 * Text interpretation::         How the exporter looks at the file
3353 \x1f
3354 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
3356 10.1 ASCII export
3357 =================
3359 ASCII export produces a simple and very readable version of an Org-mode
3360 file.
3362 `C-c C-e a'
3363      Export as ASCII file.  If there is an active region, only the
3364      region will be exported.  For an org file `myfile.org', the ASCII
3365      file will be `myfile.txt'.  The file will be overwritten without
3366      warning.  
3368 `C-c C-e v a'
3369      Export only the visible part of the document.
3371    In the exported version, the first 3 outline levels will become
3372 headlines, defining a general document structure.  Additional levels
3373 will be exported as itemized lists.  If you want that transition to
3374 occur at a different level, specify it with a prefix argument.  For
3375 example,
3377      C-1 C-c C-e a
3379 creates only top level headlines and does the rest as items.  When
3380 headlines are converted to items, the indentation of the text following
3381 the headline is changed to fit nicely under the item.  This is done with
3382 the assumption that the first bodyline indicates the base indentation of
3383 the body text.  Any indentation larger than this is adjusted to preserve
3384 the layout relative to the first line.  Should there be lines with less
3385 indentation than the first, these are left alone.
3387 \x1f
3388 File: org,  Node: HTML export,  Next: XOXO export,  Prev: ASCII export,  Up: Exporting
3390 10.2 HTML export
3391 ================
3393 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
3394 HTML formatting, in ways similar to John Grubers _markdown_ language,
3395 but with additional support for tables.
3397 `C-c C-e h'
3398      Export as HTML file `myfile.html'.  
3400 `C-c C-e b'
3401      Export as HTML file and open it with a browser.  
3403 `C-c C-e v h'
3405 `C-c C-e v b'
3406      Export only the visible part of the document.
3408    In the exported version, the first 3 outline levels will become
3409 headlines, defining a general document structure.  Additional levels
3410 will be exported as itemized lists.  If you want that transition to
3411 occur at a different level, specify it with a prefix argument.  For
3412 example,
3414      C-2 C-c C-e b
3416 creates two levels of headings and does the rest as items.
3418    If you want to include HTML tags which should be interpreted as such,
3419 mark them with `@' as in `@<b>bold text@</b>'.  Plain `<' and `>' are
3420 always transformed to `&lt;' and `&gt;' in HTML export.
3422    Internal links (*note Internal links::) will continue to work in HTML
3423 files only if they match a dedicated `<<target>>'.  Automatic links
3424 created by radio targets (*note Radio targets::) will also work in the
3425 HTML file.  Links to external files will still work if the HTML file is
3426 in the same directory as the Org-mode file.  Links to other `.org'
3427 files will be translated into HTML links under the assumption that an
3428 HTML version also exists of the linked file.  For information related to
3429 linking files while publishing them to a publishing directory see *Note
3430 Publishing links::.
3432    You can also give style information for the exported file.  The HTML
3433 exporter assigns the following CSS classes to appropriate parts of the
3434 document - your style specifications may change these:
3435      .todo           TODO keywords
3436      .done           the DONE keyword
3437      .timestamp      time stamp
3438      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
3439      .tag            tag in a headline
3440      .target         target for links
3442    The default style specification can be configured through the option
3443 `org-export-html-style'.  If you want to use a file-local style, you
3444 may use file variables, best wrapped into a COMMENT section at the end
3445 of the outline tree.  For example:
3447      * COMMENT HTML style specifications
3449      # Local Variables:
3450      # org-export-html-style: "   <style type=\"text/css\">
3451      #       p {font-weight: normal; color: gray; }
3452      #       h1 {color: black; }
3453      #   </style>"
3454      # End:
3456    Remember to execute `M-x normal-mode' after changing this to make
3457 the new style visible to Emacs.  This command restarts org-mode for the
3458 current buffer and forces Emacs to re-evaluate the local variables
3459 section in the buffer.
3461 \x1f
3462 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: HTML export,  Up: Exporting
3464 10.3 XOXO export
3465 ================
3467 Org-mode contains an exporter that produces XOXO-style output.
3468 Currently, this exporter only handles the general outline structure and
3469 does not interpret any additional Org-mode features.
3471 `C-c C-e x'
3472      Export as XOXO file `myfile.html'.  
3474 `C-c C-e v x'
3475      Export only the visible part of the document.
3477 \x1f
3478 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
3480 10.4 iCalendar export
3481 =====================
3483 Some people like to use Org-mode for keeping track of projects, but
3484 still prefer a standard calendar application for anniversaries and
3485 appointments.  In this case it can be useful to have deadlines and
3486 other time-stamped items in Org-mode files show up in the calendar
3487 application.  Org-mode can export calendar information in the standard
3488 iCalendar format.
3490 `C-c C-e i'
3491      Create iCalendar entries for the current file and store them in
3492      the same directory, using a file extension `.ics'.  
3494 `C-c C-e I'
3495      Like `C-c C-e i', but do this for all files in `org-agenda-files'.
3496      For each of these files, a separate iCalendar file will be
3497      written.  
3499 `C-c C-e c'
3500      Create a single large iCalendar file from all files in
3501      `org-agenda-files' and write it to the file given by
3502      `org-combined-agenda-icalendar-file'.
3504    How this calendar is best read and updated, depends on the
3505 application you are using.  For example, when using iCal under Apple
3506 MacOS X, you could create a new calendar `OrgMode' (the default name
3507 for the calendar created by `C-c C-e c', see the variables
3508 `org-icalendar-combined-name' and
3509 `org-combined-agenda-icalendar-file').  Then set Org-mode to overwrite
3510 the corresponding file `~/Library/Calendars/OrgMode.ics'.  You may even
3511 use AppleScript to make iCal re-read the calendar files each time a new
3512 version of `OrgMode.ics' is produced.  Here is the setup needed for
3513 this:
3515      (setq org-combined-agenda-icalendar-file
3516          "~/Library/Calendars/OrgMode.ics")
3517      (add-hook 'org-after-save-iCalendar-file-hook
3518       (lambda ()
3519        (shell-command
3520         "osascript -e 'tell application \"iCal\" to reload calendars'")))
3522 \x1f
3523 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
3525 10.5 Text interpretation by the exporter
3526 ========================================
3528 The exporter backends interpret additional structure in the Org-mode
3529 file in order to produce better output.
3531 * Menu:
3533 * Comment lines::               Some lines will not be exported
3534 * Enhancing text::              Subscripts, symbols and more
3535 * Export options::              How to influence the export settings
3537 \x1f
3538 File: org,  Node: Comment lines,  Next: Enhancing text,  Prev: Text interpretation,  Up: Text interpretation
3540 10.5.1 Comment lines
3541 --------------------
3543 Lines starting with `#' in column zero are treated as comments and will
3544 never be exported.  Also entire subtrees starting with the word
3545 `COMMENT' will never be exported.  Finally, any text before the first
3546 headline will not be exported either.
3548 `C-c ;'
3549      Toggle the COMMENT keyword at the beginning of an entry.
3551 \x1f
3552 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Comment lines,  Up: Text interpretation
3554 10.5.2 Enhancing text for export
3555 --------------------------------
3557 Some of the export backends of Org-mode allow for sophisticated text
3558 formatting, this is true in particular for the HTML backend.  Org-mode
3559 has a number of typing conventions that allow to produce a richly
3560 formatted output.
3562    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
3563      enumerator will be recognized and transformed if the backend
3564      supports lists.  See *Note Plain lists::.
3566    * You can make words *bold*, /italic/, _underlined_, `=code=', and
3567      `+strikethrough+'.
3569    * Many TeX macros and entire LaTeX fragments are converted into HTML
3570      entities or images (*note Embedded LaTeX::).
3572    * Tables are transformed into native tables under the exporter, if
3573      the export backend supports this. Data fields before the first
3574      horizontal separator line will be formatted as table header fields.
3576    * If a headline starts with the word `QUOTE', the text below the
3577      headline will be typeset as fixed-width, to allow quoting of
3578      computer codes etc.  Lines starting with `:' are also typeset in
3579      fixed-width font.
3580     `C-c :'
3581           Toggle fixed-width for entry (QUOTE) or region, see below.
3583    * A double backslash _at the end of a line_ enforces a line break at
3584      this position.
3586    If these conversions conflict with your habits of typing ASCII text,
3587 they can all be turned off with corresponding variables (see the
3588 customization group `org-export-general', and the following section
3589 which explains how to set export options with special lines in a buffer.
3591 \x1f
3592 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
3594 10.5.3 Export options
3595 ---------------------
3597 The exporter recognizes special lines in the buffer which provide
3598 additional information.  These lines may be put anywhere in the file.
3599 The whole set of lines can be inserted into the buffer with `C-c C-e
3600 t'.  For individual lines, a good way to make sure the keyword is
3601 correct is to type `#+' and then use `M-<TAB>' completion (*note
3602 Completion::).
3604 `C-c C-e t'
3605      Insert template with export options, see example below.
3607      #+TITLE:     the title to be shown (default is the buffer name)
3608      #+AUTHOR:    the author (default taken from `user-full-name')
3609      #+EMAIL:     his/her email address (default from `user-mail-address')
3610      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
3611      #+TEXT:      Some descriptive text to be inserted at the beginning.
3612      #+TEXT:      Several lines may be given.
3613      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t
3615 The OPTIONS line is a compact form to specify export settings.  Here
3616 you can: 
3617      H:      set the number of headline levels for export
3618      num:    turn on/off section-numbers
3619      toc:    turn on/off table of contents
3620      \n:     turn on/off linebreak-preservation
3621      @:      turn on/off quoted HTML tags
3622      ::      turn on/off fixed-width sections
3623      |:      turn on/off tables
3624      ^:      turn on/off TeX-like syntax for sub- and superscripts.
3625      *:      turn on/off emphasized text (bold, italic, underlined)
3626      TeX:    turn on/off simple TeX macros in plain text
3627      LaTeX:  turn on/off LaTeX fragments
3629 \x1f
3630 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
3632 11 Publishing
3633 *************
3635 Org-mode includes(1) a publishing management system that allows you to
3636 configure automatic HTML conversion of _projects_ composed of
3637 interlinked org files.  This system is called _org-publish_.  You can
3638 also configure org-publish to automatically upload your exported HTML
3639 pages and related attachments, such as images and source code files, to
3640 a web server.  Org-publish turns org-mode into a web-site authoring
3641 tool.
3643    Org-publish has been contributed to Org-mode by David O'Toole.
3645 * Menu:
3647 * Configuration::               Defining projects
3648 * Sample configuration::        Example projects
3649 * Triggering publication::      Publication commands
3651    ---------- Footnotes ----------
3653    (1) `org-publish.el' is not yet part of emacs, so if you are using
3654 `org.el' as it comes with Emacs, you need to download this file
3655 separately.  Also make sure org.el is at least version 4.27.
3657 \x1f
3658 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
3660 11.1 Configuration
3661 ==================
3663 Publishing needs significant configuration to specify files, destination
3664 and many other properties of a project.
3666 * Menu:
3668 * Project alist::               The central configuration variable
3669 * Sources and destinations::    From here to there
3670 * Selecting files::             What files are part of the project?
3671 * Publishing action::           Setting the function doing the publishing
3672 * Publishing options::          Tweaking HTML export
3673 * Publishing links::            Which links keep working after publishing?
3674 * Project page index::          Publishing a list of project files
3676 \x1f
3677 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
3679 11.1.1 The variable `org-publish-project-alist'
3680 -----------------------------------------------
3682 Org-publish is configured almost entirely through setting the value of
3683 one variable, called `org-publish-project-alist'.  Each element of the
3684 list configures one project, and may be in one of the two following
3685 forms:
3687      ("project-name"  :property value :property value ...)
3689      or
3691      ("project-name"  :components ("project-name" "project-name" ...))
3693    In both cases, projects are configured by specifying property values.
3694 A project defines the set of files that will be published, as well as
3695 the publishing configuration to use when publishing those files.  When
3696 a project takes the second form listed above, the individual members of
3697 the "components" property are taken to be components of the project,
3698 which group together files requiring different publishing options. When
3699 you publish such a "meta-project" all the components will also publish.
3701 \x1f
3702 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
3704 11.1.2 Sources and destinations for files
3705 -----------------------------------------
3707 Most properties are optional, but some should always be set. In
3708 particular, org-publish needs to know where to look for source files,
3709 and where to put published files.
3711 `:base-directory'      Directory containing publishing source files
3712 `:publishing-directory'Directory (possibly remote) where output files
3713                        will be published.
3715 \x1f
3716 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
3718 11.1.3 Selecting files
3719 ----------------------
3721 By default, all files with extension `.org' in the base directory are
3722 considered part of the project.  This can be modified by setting the
3723 properties
3724 `:base-extension'  Extension (without the dot!) of source files.  This
3725                    actually is a regular expression.
3726 `:exclude'         Regular expression to match file names that should
3727                    not be published, even though they have been selected
3728                    on the basis of their extension.
3729 `:include'         List of files to be included regardless of
3730                    `:base-extension' and `:exclude'.
3732 \x1f
3733 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
3735 11.1.4 Publishing Action
3736 ------------------------
3738 Publishing means that a file is copied to the destination directory and
3739 possibly transformed in the process.  The default transformation is to
3740 export Org-mode files as HTML files, and this is done by the function
3741 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
3742 export::).  Other files like images only need to be copied to the
3743 publishing destination.  For non-Org-mode files, you need to specify
3744 the publishing function.
3746 `:publishing-function' Function executing the publication of a file.
3748    The function must accept two arguments: a property list containing at
3749 least a `:publishing-directory' property, and the name of the file to
3750 be published.  It should take the specified file, make the necessary
3751 transformation (if any) and place the result into the destination
3752 folder.  You can write your own publishing function, but `org-publish'
3753 provides one for attachments (files that only need to be copied):
3754 `org-publish-attachment'.
3756 \x1f
3757 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
3759 11.1.5 Options for the HTML exporter
3760 ------------------------------------
3762 The property list can be used to set many export options for the HTML
3763 exporter.  In most cases, these properties correspond to user variables
3764 in Org-mode.  The table below lists these properties along with the
3765 variable they belong to.  See the documentation string for the
3766 respective variable for details.
3768 `:language'            `org-export-default-language'
3769 `:headline-levels'     `org-export-headline-levels'
3770 `:section-numbers'     `org-export-with-section-numbers'
3771 `:table-of-contents'   `org-export-with-toc'
3772 `:archived-trees'      `org-export-with-archived-trees'
3773 `:emphasize'           `org-export-with-emphasize'
3774 `:sub-superscript'     `org-export-with-sub-superscripts'
3775 `:TeX-macros'          `org-export-with-TeX-macros'
3776 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
3777 `:fixed-width'         `org-export-with-fixed-width'
3778 `:timestamps'          `org-export-with-timestamps'
3779  .                     
3780 `:tags'                `org-export-with-tags'
3781  .                     
3782 `:tables'              `org-export-with-tables'
3783 `:table-auto-headline' `org-export-highlight-first-table-line'
3784 `:style'               `org-export-html-style'
3785 `:convert-org-links'   `org-export-html-link-org-files-as-html'
3786 `:inline-images'       `org-export-html-inline-images'
3787 `:expand-quoted-html'  `org-export-html-expand'
3788 `:timestamp'           `org-export-html-with-timestamp'
3789 `:publishing-directory'`org-export-publishing-directory'
3790 `:preamble'            `org-export-html-preamble'
3791 `:postamble'           `org-export-html-postamble'
3792 `:auto-preamble'       `org-export-html-auto-preamble'
3793 `:auto-postamble'      `org-export-html-auto-postamble'
3794 `:author'              `user-full-name'
3795 `:email'               `user-mail-address'
3797    When a property is given a value in org-publish-project-alist, its
3798 setting overrides the value of the corresponding user variable (if any)
3799 during publishing.  options set within a file (*note Export options::),
3800 however, override everything.
3802 \x1f
3803 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
3805 11.1.6 Links between published files
3806 ------------------------------------
3808 To create a link from one Org-mode file to another, you would use
3809 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
3810 (*note Hyperlinks::).  Upon publishing this link becomes a link to
3811 `foo.html'.  In this way, you can interlink the pages of your "org web"
3812 project and the links will work as expected when you publish them to
3813 HTML.
3815    You may also link to related files, such as images. Provided you are
3816 careful with relative pathnames, and provided you have also configured
3817 org-publish to upload the related files, these links will work too.
3818 *Note Complex example:: for an example of this usage.
3820    Sometime an Org-mode file to be published may contain links that are
3821 only valid in your production environment, but not in the publishing
3822 location.  In this case, use the property
3824 `:link-validation-function'   Function to validate links
3826 to define a function for checking link validity.  This function must
3827 accept two arguments, the file name and a directory relative to which
3828 the file name is interpreted in the production environment.  If this
3829 function returns `nil', then the HTML generator will only insert a
3830 description into the HTML file, but no link.  One option for this
3831 function is `org-publish-validate-link' which checks if the given file
3832 is part of any project in `org-publish-project-alist'.
3834 \x1f
3835 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
3837 11.1.7 Project page index
3838 -------------------------
3840 The following properties may be used to control publishing of an index
3841 of files or summary page for a given project.
3843 `:auto-index'      When non-nil, publish an index during
3844                    org-publish-current-project or org-publish-all.
3845 `:index-filename'  Filename for output of index. Defaults to `index.org'
3846                    (which becomes `index.html').
3847 `:index-title'     Title of index page. Defaults to name of file.
3848 `:index-function'  Plugin function to use for generation of index.
3849                    Defaults to `org-publish-org-index', which generates
3850                    a plain list of links to all files in the project.
3852 \x1f
3853 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
3855 11.2 Sample configuration
3856 =========================
3858 Below we provide two example configurations.  The first one is a simple
3859 project publishing only a set of Org-mode files.  The second example is
3860 more complex, with a multi-component project.
3862 * Menu:
3864 * Simple example::              One-component publishing
3865 * Complex example::             A multi-component publishing example
3867 \x1f
3868 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
3870 11.2.1 Example: simple publishing configuration
3871 -----------------------------------------------
3873 This example publishes a set of Org-mode files to the `public_html'
3874 directory on the local machine.
3876      (setq org-publish-project-alist
3877            '(("org"
3878               :base-directory "~/org/"
3879               :publishing-directory "~/public_html"
3880               :section-numbers nil
3881               :table-of-contents nil
3882               :style "<link rel=stylesheet
3883                      href=\"../other/mystyle.css\"
3884                      type=\"text/css\">")))
3886 \x1f
3887 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
3889 11.2.2 Example: complex publishing configuration
3890 ------------------------------------------------
3892 This more complicated example publishes an entire website, including
3893 org files converted to HTML, image files, emacs lisp source code, and
3894 stylesheets. The publishing-directory is remote and private files are
3895 excluded.
3897    To ensure that links are preserved, care should be taken to replicate
3898 your directory structure on the web server, and to use relative file
3899 paths. For example, if your org files are kept in `~/org' and your
3900 publishable images in `~/images', you'd link to an image with
3901      file:../images/myimage.png
3902    On the web server, the relative path to the image should be the
3903 same. You can accomplish this by setting up an "images" folder in the
3904 right place on the webserver, and publishing images to it.
3906      (setq org-publish-project-alist
3907            '(("orgfiles"
3908                :base-directory "~/org/"
3909                :base-extension "org"
3910                :publishing-directory "/ssh:user@host:~/html/notebook/"
3911                :publishing-function org-publish-org-to-html
3912                :exclude "PrivatePage.org"   ;; regexp
3913                :headline-levels 3
3914                :section-numbers nil
3915                :table-of-contents nil
3916                :style "<link rel=stylesheet
3917                        href=\"../other/mystyle.css\" type=\"text/css\">"
3918                :auto-preamble t
3919                :auto-postamble nil)
3921               ("images"
3922                :base-directory "~/images/"
3923                :base-extension "jpg\\|gif\\|png"
3924                :publishing-directory "/ssh:user@host:~/html/images/"
3925                :publishing-function org-publish-attachment)
3927               ("other"
3928                :base-directory "~/other/"
3929                :base-extension "css\\|el"
3930                :publishing-directory "/ssh:user@host:~/html/other/"
3931                :publishing-function org-publish-attachment)
3932               ("website" :components ("orgfiles" "images" "other"))))
3934 \x1f
3935 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
3937 11.3 Triggering publication
3938 ===========================
3940 Once org-publish is properly configured, you can publish with the
3941 following functions:
3943 `C-c C-e c'
3944      Prompt for a specific project and publish all files that belong to
3945      it.
3947 `C-c C-e p'
3948      Publish the project containin the current file.
3950 `C-c C-e f'
3951      Publish only the current file.
3953 `C-c C-e a'
3954      Publish all projects.
3956    Org uses timestamps to track when a file has changed. The above
3957 functions normally only publish changed files. You can override this and
3958 force publishing of all files by giving a prefix argument.
3960 \x1f
3961 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
3963 12 Miscellaneous
3964 ****************
3966 * Menu:
3968 * Completion::                  M-TAB knows what you need
3969 * Customization::               Adapting Org-mode to your taste
3970 * In-buffer settings::          Overview of the #+KEYWORDS
3971 * The very busy C-c C-c key::   When in doubt, press C-c C-c
3972 * Clean view::                  Getting rid of leading stars in the outline
3973 * TTY keys::                    Using Org-mode on a tty
3974 * Interaction::                 Other Emacs packages
3975 * Bugs::                        Things which do not work perfectly
3977 \x1f
3978 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
3980 12.1 Completion
3981 ===============
3983 Org-mode supports in-buffer completion.  This type of completion does
3984 not make use of the minibuffer.  You simply type a few letters into the
3985 buffer and use the key to complete text right there.
3987 `M-<TAB>'
3988      Complete word at point
3989         * At the beginning of a headline, complete TODO keywords.
3991         * After `\', complete TeX symbols supported by the exporter.
3993         * After `*', complete CamelCase versions of all headlines in the
3994           buffer.
3996         * After `:', complete tags used elsewhere in the buffer.
3998         * After `#+', complete the special keywords like `TYP_TODO' or
3999           `OPTIONS' which set file-specific options for Org-mode.  When
4000           the option keyword is already complete, pressing `M-<TAB>'
4001           again will insert example settings for this keyword.
4003         * Elsewhere, complete dictionary words using ispell.
4005 \x1f
4006 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
4008 12.2 Customization
4009 ==================
4011 There are more than 100 variables that can be used to customize
4012 Org-mode.  For the sake of compactness of the manual, we are not
4013 describing the variables here.  A structured overview of customization
4014 variables is available with `M-x org-customize'.  Or select `Browse Org
4015 Group' from the `Org->Customization' menu.  Many settings can also be
4016 activated on a per-file basis, by putting special lines into the buffer
4017 (*note In-buffer settings::).
4019 \x1f
4020 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
4022 12.3 Summary of in-buffer settings
4023 ==================================
4025 Org-mode uses special lines in the buffer to define settings on a
4026 per-file basis.  These lines start with a `#+' followed by a keyword, a
4027 colon, and then individual words defining a setting.  Several setting
4028 words can be in the same line, but you can also have multiple lines for
4029 the keyword.  While these settings are described throughout the manual,
4030 here is a summary.  After changing any of those lines in the buffer,
4031 press `C-c C-c' with the cursor still in the line to activate the
4032 changes immediately.  Otherwise they become effective only when the
4033 file is visited again in a new Emacs session.
4035 `#+STARTUP:'
4036      This line sets options to be used at startup of org-mode, when an
4037      Org-mode file is being visited.  The first set of options deals
4038      with the initial visibility of the outline tree.  The
4039      corresponding variable for global default settings is
4040      `org-startup-folded', with a default value `t', which means
4041      `overview'.
4042           overview   top-level headlines only
4043           content    all headlines
4044           showall    no folding at all, show everything
4045      Then there are options for aligning tables upon visiting a file.
4046      This is useful in files containing narrowed table columns.  The
4047      corresponding variable is `org-startup-align-all-tables', with a
4048      default value `nil'.
4049           align      align all tables
4050           noalign    don't align tables on startup
4051      Logging when a TODO item is marked DONE (variable `org-log-done')
4052      can be configured using these options.
4053           logging    record a timestamp when an item is marked DONE
4054           nologging  don't record when items are marked DONE
4055      Here are the options for hiding leading stars in outline headings.
4056      The corresponding variables are `org-hide-leading-stars' and
4057      `org-odd-levels-only', both with a default setting `nil' (meaning
4058      `showstars' and `oddeven').
4059           hidestars  make all but one of the stars starting a headline invisible.
4060           showstars  show all stars starting a headline
4061           odd        allow only odd outline levels (1,3,...)
4062           oddeven    allow all outline levels
4064 `#+SEQ_TODO:   #+TYP_TODO:'
4065      These lines set the TODO keywords and their interpretation in the
4066      current file.  The corresponding variables are `org-todo-keywords'
4067      and `org-todo-interpretation'.
4069 `#+TAGS:  TAG1(c1) TAG2(c2)'
4070      These lines (several such lines are allowed) specify the legal
4071      tags in this file, and (potentially) the corresponding _fast tag
4072      selection_ keys.  The corresponding variable is `org-tag-alist'.
4074 `#+CATEGORY:'
4075      This line sets the category for the agenda file.  The category
4076      applies for all subsequent lines until the next `#+CATEGORY' line,
4077      or the end of the file.
4079 `#+TBLFM:'
4080      This line contains the formulas for the table directly above the
4081      line.
4083 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
4084      These lines provide settings for exporting files.  For more
4085      details see *Note Export options::.
4087 \x1f
4088 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
4090 12.4 The very busy C-c C-c key
4091 ==============================
4093 The key `C-c C-c' has many purposes in org-mode, which are all
4094 mentioned scattered throughout this manual.  One specific function of
4095 this key is to add _tags_ to a headline (*note Tags::).  In many other
4096 circumstances it means something like _Hey Org-mode, look here and
4097 update according to what you see here_.  Here is a summary of what this
4098 means in different contexts.
4100    - If there are highlights in the buffer from the creation of a sparse
4101      tree, or from clock display, remove these highlights.
4103    - If the cursor is in one of the special `#+KEYWORD' lines, this
4104      triggers scanning the buffer for these lines and updating the
4105      information.
4107    - If the cursor is inside a table, realign the table.  This command
4108      works even if the automatic table editor has been turned off.
4110    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
4111      entire table.
4113    - If the cursor is inside a table created by the `table.el' package,
4114      activate that table.
4116    - If the current buffer is a remember buffer, close note and file it.
4117      with a prefix argument, file it without further interaction to the
4118      default location.
4120    - If the cursor is on a `<<<target>>>', update radio targets and
4121      corresponding links in this buffer.
4123    - If the cursor is in a plain list item with a checkbox, toggle the
4124      status of the checkbox.
4126    - If the cursor is on a numbered item in a plain list, renumber the
4127      ordered list.
4129 \x1f
4130 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
4132 12.5 A cleaner outline view
4133 ===========================
4135 Some people find it noisy and distracting that the Org-mode headlines
4136 are starting with a potentially large number of stars.  For example the
4137 tree from *Note Headlines:::
4139      * Top level headline
4140      ** Second level
4141      *** 3rd level
4142          some text
4143      *** 3rd level
4144          more text
4145      * Another top level headline
4147 Unfortunately this is deeply ingrained into the code of Org-mode and
4148 cannot be easily changed.  You can, however, modify the display in such
4149 a way that all leading stars become invisible and the outline more easy
4150 to read.  To do this, customize the variable `org-hide-leading-stars'
4151 like this:
4153      (setq org-hide-leading-stars t)
4155 or change this on a per-file basis with one of the lines (anywhere in
4156 the buffer)
4158      #+STARTUP: showstars
4159      #+STARTUP: hidestars
4161 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
4162 modifications.
4164    With stars hidden, the tree becomes:
4166      * Top level headline
4167       * Second level
4168        * 3rd level
4169          some text
4170        * 3rd level
4171          more text
4172      * Another top level headline
4174 Note that the leading stars are not truly replaced by whitespace, they
4175 are only fontified with the face `org-hide' that uses the background
4176 color as font color.  If are are not using either white or black
4177 background, you may have to customize this face to get the wanted
4178 effect.  Another possibility is to set this font such that the extra
4179 stars are almost invisible, for example using the color `grey90' on a
4180 white background.
4182    Things become cleaner still if you skip all the even levels and use
4183 only odd levels 1, 3, 5..., effectively adding two stars to go from one
4184 outline level to the next:
4186      * Top level headline
4187        * Second level
4188          * 3rd level
4189            some text
4190          * 3rd level
4191            more text
4192      * Another top level headline
4194 In order to make the structure editing and export commands handle this
4195 convention correctly, use
4197      (setq org-odd-levels-only t)
4199 or set this on a per-file basis with one of the following lines (don't
4200 forget to press `C-c C-c' with the cursor in the startup line to
4201 activate changes immediately).
4203      #+STARTUP: odd
4204      #+STARTUP: oddeven
4206    You can convert an Org-mode file from single-star-per-level to the
4207 double-star-per-level convention with `M-x org-convert-to-odd-levels
4208 RET' in that file.  The reverse operation is `M-x
4209 org-convert-to-oddeven-levels'.
4211 \x1f
4212 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
4214 12.6 Using org-mode on a tty
4215 ============================
4217 Org-mode uses a number of keys that are not accessible on a tty.  This
4218 applies to most special keys like cursor keys, <TAB> and <RET>, when
4219 these are combined with modifier keys like <Meta> and/or <Shift>.
4220 Org-mode uses these bindings because it needs to provide keys for a
4221 large number of commands, and because these keys appeared particularly
4222 easy to remember.  In order to still be able to access the core
4223 functionality of Org-mode on a tty, alternative bindings are provided.
4224 Here is a complete list of these bindings, which are obviously more
4225 cumbersome to use.  Note that sometimes a work-around can be better.
4226 For example changing a time stamp is really only fun with `S-<cursor>'
4227 keys.  On a tty you would rather use `C-c .'  to re-insert the
4228 timestamp.
4230 Default     Alternative 1  Alternative 2
4231 `S-<TAB>'   `C-u <TAB>'    
4232 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
4233 `M-S-<left>'`C-c C-x L'    
4234 `M-<right>' `C-c C-x r'    `<Esc>
4235                            <right>'
4236 `M-S-<right>'`C-c C-x R'    
4237 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
4238 `M-S-<up>'  `C-c C-x U'    
4239 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
4240 `M-S-<down>'`C-c C-x D'    
4241 `S-<RET>'   `C-c C-x c'    
4242 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
4243 `M-S-<RET>' `C-c C-x M'    
4244 `S-<left>'  `C-c C-x       
4245             <left>'        
4246 `S-<right>' `C-c C-x       
4247             <right>'       
4248 `S-<up>'    `C-c C-x       
4249             <up>'          
4250 `S-<down>'  `C-c C-x       
4251             <down>'        
4253 \x1f
4254 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
4256 12.7 Interaction with other packages
4257 ====================================
4259 Org-mode lives in the world of GNU Emacs and interacts in various ways
4260 with other code out there.
4262 * Menu:
4264 * Cooperation::                 Packages Org-mode cooperates with
4265 * Conflicts::                   Packages that lead to conflicts
4267 \x1f
4268 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
4270 12.7.1 Packages that Org-mode cooperates with
4271 ---------------------------------------------
4273 `calc.el' by Dave Gillespie
4274      Org-mode uses the calc package for implementing spreadsheet
4275      functionality in its tables (*note Table calculations::).
4276      Org-modes checks for the availability of calc by looking for the
4277      function `calc-eval' which should be autoloaded in your setup if
4278      calc has been installed properly.  As of Emacs 22, calc is part of
4279      the Emacs distribution.  Another possibility for interaction
4280      between the two packages is using calc for embedded calculations.
4281      *Note Embedded Mode: (calc)Embedded Mode.  
4283 `constants.el' by Carsten Dominik
4284      In a table formula (*note Table calculations::), it is possible to
4285      use names for natural constants or units.  Instead of defining
4286      your own constants in the variable `org-table-formula-constants',
4287      install the `constants' package which defines a large number of
4288      constants and units, and lets you use unit prefixes like `M' for
4289      `Mega' etc.  You will need version 2.0 of this package, available
4290      at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
4291      the function `constants-get', which has to be autoloaded in your
4292      setup.  See the installation instructions in the file
4293      `constants.el'.
4295 `cdlatex.el' by Carsten Dominik
4296      Org-mode can make use of the cdlatex package to efficiently enter
4297      LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
4299 `remember.el' by John Wiegley
4300      Org mode cooperates with remember, see *Note Remember::.
4301      `Remember.el' is not part of Emacs, find it on the web.  
4303 `table.el' by Takaaki Ota
4304      Org mode cooperates with table.el, see *Note table.el::.
4305      `table.el' is part of Emacs 22.
4307 \x1f
4308 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
4310 12.7.2 Packages that lead to conflicts with Org-mode
4311 ----------------------------------------------------
4313 `allout.el' by Ken Manheimer
4314      Startup of Org-mode may fail with the error message
4315      `(wrong-type-argument keymapp nil)' when there is an outdated
4316      version `allout.el' on the load path, for example the version
4317      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
4318      will disappear.  If for some reason you cannot do this, make sure
4319      that org.el is loaded _before_ `allout.el', for example by putting
4320      `(require 'org)' early enough into your `.emacs' file.
4322 `CUA.el' by Kim. F. Storm
4323      Keybindings in Org-mode conflict with the `S-<cursor>' keys used
4324      by CUA-mode (as well as pc-select-mode and s-region-mode) to
4325      select and extend the region.  If you want to use one of these
4326      packages along with Org-mode, configure the variable
4327      `org-CUA-compatible'.  When set, Org-mode will move the following
4328      keybindings in org-mode files, and in the agenda buffer (but not
4329      during date selection).
4331           S-UP    -> M-p             S-DOWN  -> M-n
4332           S-LEFT  -> M--             S-RIGHT -> M-+
4333           S-RET   -> C-S-RET
4335      Yes, these are unfortunately more difficult to remember.  If you
4336      want to have other replacement keys, look at the variable
4337      `org-disputed-keys'.
4339 `windmove.el' by Hovav Shacham
4340      Also this package uses the `S-<cursor>' keys, so everything written
4341      in the paragraph above about CUA mode also applies here.
4343 \x1f
4344 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
4346 12.8 Bugs
4347 =========
4349 Here is a list of things that should work differently, but which I have
4350 found too hard to fix.
4352    * If a table field starts with a link, and if the corresponding table
4353      column is narrowed (*note Narrow columns::) to a width too small to
4354      display the link, the field would look entirely empty even though
4355      it is not.  To prevent this, Org-mode throws an error.  The
4356      work-around is to make the column wide enough to fit the link, or
4357      to add some text (at least 2 characters) before the link in the
4358      same field.
4360    * Narrowing table columns does not work on XEmacs, because the
4361      `format' function does not transport text properties.
4363    * Text in an entry protected with the `QUOTE' keyword should not
4364      autowrap.
4366    * When the application called by `C-c C-o' to open a file link fails
4367      (for example because the application does not exist or refuses to
4368      open the file), it does so silently.  No error message is
4369      displayed.
4371    * The remote-editing commands in the agenda buffer cannot be undone
4372      with `undo' called from within the agenda buffer.  But you can go
4373      to the corresponding buffer (using <TAB> or <RET> and execute
4374      `undo' there.
4376    * Recalculating a table line applies the formulas from left to right.
4377      If a formula uses _calculated_ fields further down the row,
4378      multiple recalculation may be needed to get all fields consistent.
4380    * A single letter cannot be made bold, for example `*a*'.
4382    * The exporters work well, but could be made more efficient.
4384 \x1f
4385 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
4387 Appendix A Extensions, Hooks and Hacking
4388 ****************************************
4390 This appendix lists extensions for Org-mode written by other authors.
4391 It also covers some aspects where users can easily extend the
4392 functionality of Org-mode.
4394 * Menu:
4396 * Extensions::                  Existing 3rd-part extensions
4397 * Dynamic blocks::              Automatically filled blocks
4399 \x1f
4400 File: org,  Node: Extensions,  Next: Dynamic blocks,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
4402 A.1 Third-party extensions for Org-mode
4403 =======================================
4405 The following extensions for Org-mode have been written by other people:
4407 `org-mouse.el' by Piotr Zielinski
4408      This package implements extended mouse functionality for Org-mode.
4409      It allows you to cycle visibility and to edit the document
4410      structure with the mouse.  Best of all, it provides a
4411      context-sensitive menu on <mouse-3> that changes depending on the
4412      context of a mouse-click.  `org-mouse.el' is freely available at
4413      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
4415 `org-publish.el' by David O'Toole
4416      This package provides facilities for publishing related sets of
4417      Org-mode files together with linked files like images as a
4418      webpages.  It is highly configurable and can be used for other
4419      publishing purposes as well.  As of Org-mode version 4.30,
4420      `org-publish.el' is part of the Org-mode distribution.  It is not
4421      yet part of Emacs, however, a delay caused by the preparations for
4422      the 22.1 release.  In the mean time, `org-publish.el' can be
4423      downloaded from David's site:
4424      `http://dto.freeshell.org/e/org-publish.el'.  
4426 `org-blog.el' by David O'Toole
4427      A blogging plug-in for `org-publish.el'.
4428      `http://dto.freeshell.org/notebook/OrgMode.html'.  
4430 `org-blogging.el' by  Bastien Guerry
4431      Publish Org-mode files as blogs.
4432      `http://www.cognition.ens.fr/~guerry/org-blogging.html'.
4434 \x1f
4435 File: org,  Node: Dynamic blocks,  Prev: Extensions,  Up: Extensions and Hacking
4437 A.2 Dynamic blocks
4438 ==================
4440 Org-mode documents can contain _dynamic blocks_.  These are specially
4441 marked regions that are updated by some user-written function.  A good
4442 example for such a block is the clock table inserted by the command
4443 `C-c C-x C-r' (*note Clocking work time::).
4445    Dynamic block are enclosed by a BEGIN-END structure that assigns a
4446 name to the block and can also specify parameters for the function
4447 producing the content of the block.
4449      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
4451      #+END:
4453    Dynamic blocks are updated with the following commands
4455 `C-c C-x C-u'
4456      Update dynamic block at point.  
4458 `C-u C-c C-x C-u'
4459      Update all dynamic blocks in the current file.
4461    Updating a dynamic block means to remove all the text between BEGIN
4462 and END, parse the BEGIN line for parameters and then call the specific
4463 writer function for this block to insert the new content.  For a block
4464 with name `myblock', the writer function is `org-dblock-write:myblock'
4465 with as only parameter a property list with the parameters given in the
4466 begin line.  Here is a trivial example of a block that keeps track of
4467 when the block update function was last run:
4469      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
4471      #+END:
4473 The corresponding block writer function could look like this:
4475      (defun org-dblock-write:block-update-time (params)
4476         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
4477           (insert "Last block update at: "
4478              (format-time-string fmt (current-time)))))
4480    If you want to make sure that all dynamic blocks are always
4481 up-to-date, you could add the function `org-update-all-dblocks' to a
4482 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
4483 written in a way that is does nothing in buffers that are not in
4484 Org-mode.
4486 \x1f
4487 File: org,  Node: History and Acknowledgments,  Next: Index,  Prev: Extensions and Hacking,  Up: Top
4489 Appendix B History and Acknowledgments
4490 **************************************
4492 The beginnings of Org-mode go back to 2003.  It was borne out of
4493 frustration over the user interface of the emacs outline-mode.  All I
4494 wanted was to make working with an outline tree possible without having
4495 to remember more than 10 commands just for hiding and unhiding parts of
4496 the outline tree, and to allow to restructure a tree easily.  Visibility
4497 cycling and structure editing were originally implemented in the package
4498 `outline-magic.el', but quickly moved to the more general `org.el'.
4499 TODO entries, basic time stamps, and table support were added next, and
4500 highlight the two main goals that Org-mode still has today:  To create
4501 a new, outline-based, plain text mode with innovative and intuitive
4502 editing features, and to incorporate project planning functionality
4503 directly into a notes file.
4505    Since the first release, hundreds of emails to me or on
4506 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
4507 feedback, new ideas, and sometimes even patches and add-on code.  Many
4508 thanks to everyone who has helped to improve this package.  I am trying
4509 to keep here a list of the people who had significant influence in
4510 shaping one or more aspects of Org-mode.  The list may not be complete,
4511 if I have forgotten someone, please accept my apologies and let me know.
4513    * Thomas Baumann contributed the code for links to the MH-E email
4514      system.
4516    * Alex Bochannek provided a patch for rounding time stamps.
4518    * Charles Cave's suggestion sparked the implementation of templates
4519      for Remember.
4521    * Pavel Chalmoviansky influenced the agenda treatment of items with
4522      specified time.
4524    * Gregory Chernov patched support for lisp forms into table
4525      calculations and improved XEmacs compatibility, in particular by
4526      porting `nouline.el' to XEmacs.
4528    * Sacha Chua suggested to copy some linking code from Planner.
4530    * Kees Dullemond inspired the use of narrowed tabled columns.
4532    * Christian Egli converted the documentation into TeXInfo format,
4533      patched CSS formatting into the HTML exporter, and inspired the
4534      agenda.
4536    * Nic Ferrier contributed mailcap and XOXO support.
4538    * Niels Giessen had the idea to automatically archive DONE trees.
4540    * Bastien Guerry provoded extensive feedback.
4542    * Kai Grossjohann pointed out key-binding conflicts caused by
4543      Org-mode.
4545    * Leon Liu asked for embedded LaTeX and tested it.
4547    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
4548      happy.
4550    * Todd Neal provided patches for links to Info files and elisp forms.
4552    * Tim O'Callaghan suggested in-file links, search options for general
4553      file links, and TAGS.
4555    * Oliver Oppitz suggested multi-state TODO items.
4557    * Scott Otterson sparked the introduction of descriptive text for
4558      links, among other things.
4560    * Pete Phillips helped the development of the TAGS feature.
4562    * T.V. Raman reported bugs and suggested improvements.
4564    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
4565      control.
4567    * Kevin Rogers contributed code to access VM files on remote hosts.
4569    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
4570      conflict with `allout.el'.
4572    * Philip Rooke created the Org-mode reference card and provided lots
4573      of feedback.
4575    * Christian Schlauer proposed angular brackets around links, among
4576      other things.
4578    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
4579      `organizer-mode.el'.
4581    * Daniel Sinder came up with the idea of internal archiving by
4582      locking subtrees.
4584    * David O'Toole wrote `org-publish.el' and drafted the manual
4585      chapter about publishing.
4587    * Ju"rgen Vollmer contributed code generating the table of contents
4588      in HTML output.
4590    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
4592    * David Wainberg suggested archiving, and improvements to the linking
4593      system.
4595    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
4596      development of Org-mode was fully independent, and both systems are
4597      really different beasts in their basic ideas and implementation
4598      details.  I later looked at John's code, however, and learned from
4599      his implementation of (i) links where the link itself is hidden
4600      and only a description is shown, and (ii) popping up a calendar to
4601      select a date.
4603    * Carsten Wimmer suggested some changes and helped fix a bug in
4604      linking to GNUS.
4606    * Roland Winkler requested additional keybindings to make Org-mode
4607      work on a tty.
4609    * Piotr Zielinski wrote `org-mouse.el' and showed how to follow
4610      links with mouse-1.
4612 \x1f
4613 File: org,  Node: Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
4615 Index
4616 *****
4618 \0\b[index\0\b]
4619 * Menu:
4621 * acknowledgments:                       History and Acknowledgments.
4622                                                               (line   6)
4623 * action, for publishing:                Publishing action.   (line   6)
4624 * activation:                            Activation.          (line   6)
4625 * active region <1>:                     HTML export.         (line  10)
4626 * active region <2>:                     ASCII export.        (line   9)
4627 * active region <3>:                     Built-in table editor.
4628                                                               (line 165)
4629 * active region:                         Structure editing.   (line  51)
4630 * agenda:                                Weekly/Daily agenda. (line   6)
4631 * agenda commands, custom:               Agenda dispatcher.   (line   6)
4632 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
4633 * agenda files, removing buffers:        Agenda commands.     (line 211)
4634 * agenda views:                          Agenda views.        (line   6)
4635 * agenda, for single file:               Timeline.            (line   6)
4636 * allout.el:                             Conflicts.           (line   6)
4637 * angular brackets, around links:        External links.      (line  38)
4638 * applescript, for calendar update:      iCalendar export.    (line  38)
4639 * archive locations:                     Moving subtrees.     (line  21)
4640 * archiving:                             Archiving.           (line   6)
4641 * ASCII export:                          ASCII export.        (line   6)
4642 * author:                                Feedback.            (line   6)
4643 * autoload:                              Activation.          (line   6)
4644 * BBDB links:                            External links.      (line   6)
4645 * bold text:                             Enhancing text.      (line  15)
4646 * bug reports:                           Feedback.            (line   6)
4647 * bugs:                                  Bugs.                (line   6)
4648 * calc package:                          Table calculations.  (line   6)
4649 * calc.el:                               Cooperation.         (line   6)
4650 * calculations, in tables <1>:           Table calculations.  (line   6)
4651 * calculations, in tables:               Built-in table editor.
4652                                                               (line 135)
4653 * calendar integration:                  Calendar/Diary integration.
4654                                                               (line   6)
4655 * calendar, for selecting date:          Creating timestamps. (line  71)
4656 * CamelCase link completion:             Completion.          (line   6)
4657 * CamelCase links:                       Internal links.      (line   6)
4658 * CamelCase links, completion of:        CamelCase links.     (line   6)
4659 * category:                              Categories.          (line   6)
4660 * cdlatex.el:                            Cooperation.         (line  29)
4661 * checkboxes:                            Checkboxes.          (line   6)
4662 * children, subtree visibility state:    Visibility cycling.  (line  10)
4663 * clean outline view:                    Clean view.          (line   6)
4664 * CLOCK keyword:                         Time stamps.         (line  61)
4665 * CLOSED keyword:                        Time stamps.         (line  55)
4666 * column formula:                        Column formulas.     (line   6)
4667 * commands, in agenda buffer:            Agenda commands.     (line   6)
4668 * comment lines:                         Comment lines.       (line   6)
4669 * completion, of CamelCase links <1>:    Completion.          (line   6)
4670 * completion, of CamelCase links:        CamelCase links.     (line   6)
4671 * completion, of dictionary words:       Completion.          (line   6)
4672 * completion, of file names:             Handling links.      (line  43)
4673 * completion, of links:                  Handling links.      (line  27)
4674 * completion, of option keywords <1>:    Completion.          (line   6)
4675 * completion, of option keywords:        Export options.      (line   6)
4676 * Completion, of option keywords:        Per file keywords.   (line  17)
4677 * completion, of tags <1>:               Completion.          (line   6)
4678 * completion, of tags:                   Setting tags.        (line  11)
4679 * completion, of TeX symbols:            Completion.          (line   6)
4680 * completion, of TODO keywords <1>:      Completion.          (line   6)
4681 * completion, of TODO keywords:          Workflow states.     (line  12)
4682 * constants, in calculations:            Formula syntax.      (line  26)
4683 * constants.el:                          Cooperation.         (line  14)
4684 * contents, global visibility state:     Visibility cycling.  (line  22)
4685 * copying, of subtrees:                  Structure editing.   (line   6)
4686 * creating timestamps:                   Creating timestamps. (line   6)
4687 * CUA.el:                                Conflicts.           (line  15)
4688 * custom agenda commands:                Agenda dispatcher.   (line   6)
4689 * custom search strings:                 Custom searches.     (line   6)
4690 * customization:                         Customization.       (line   6)
4691 * cutting, of subtrees:                  Structure editing.   (line   6)
4692 * cycling, of TODO states:               TODO basics.         (line  13)
4693 * cycling, visibility:                   Visibility cycling.  (line   6)
4694 * date stamps:                           Time stamps.         (line   6)
4695 * date, reading in minibuffer:           Creating timestamps. (line  71)
4696 * DEADLINE keyword:                      Time stamps.         (line  43)
4697 * deadlines:                             Time stamps.         (line   6)
4698 * demotion, of subtrees:                 Structure editing.   (line   6)
4699 * diary entries, creating from agenda:   Agenda commands.     (line 179)
4700 * diary integration:                     Calendar/Diary integration.
4701                                                               (line   6)
4702 * dictionary word completion:            Completion.          (line   6)
4703 * directories, for publishing:           Sources and destinations.
4704                                                               (line   6)
4705 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
4706 * document structure:                    Document structure.  (line   6)
4707 * DONE, final TODO keyword:              Per file keywords.   (line  20)
4708 * editing tables:                        Tables.              (line   6)
4709 * editing, of table formulas:            Editing/debugging formulas.
4710                                                               (line   6)
4711 * elisp links:                           External links.      (line   6)
4712 * emphasized text:                       Export options.      (line  25)
4713 * enhancing text:                        Enhancing text.      (line   6)
4714 * evaluate time range:                   Creating timestamps. (line  66)
4715 * exporting:                             Exporting.           (line   6)
4716 * exporting, not:                        Comment lines.       (line   6)
4717 * extended TODO keywords:                TODO extensions.     (line   6)
4718 * external archiving:                    Moving subtrees.     (line   6)
4719 * external links:                        External links.      (line   6)
4720 * external links, in HTML export:        HTML export.         (line  35)
4721 * FAQ:                                   Summary.             (line  41)
4722 * feedback:                              Feedback.            (line   6)
4723 * file links:                            External links.      (line   6)
4724 * file links, searching:                 Search options.      (line   6)
4725 * file name completion:                  Handling links.      (line  43)
4726 * files, adding to agenda list:          Agenda files.        (line  12)
4727 * files, selecting for publishing:       Selecting files.     (line   6)
4728 * fixed width:                           Enhancing text.      (line  25)
4729 * fixed-width sections:                  Export options.      (line  25)
4730 * folded, subtree visibility state:      Visibility cycling.  (line  10)
4731 * folding, sparse trees:                 Sparse trees.        (line   6)
4732 * following links:                       Handling links.      (line  58)
4733 * format specifier:                      Formula syntax.      (line  34)
4734 * format, of links:                      Link format.         (line   6)
4735 * formula editing:                       Editing/debugging formulas.
4736                                                               (line   6)
4737 * formula syntax:                        Formula syntax.      (line   6)
4738 * formula, for named table field:        Named-field formulas.
4739                                                               (line   6)
4740 * formula, for table column:             Column formulas.     (line   6)
4741 * formula, in tables:                    Built-in table editor.
4742                                                               (line 135)
4743 * global cycling:                        Visibility cycling.  (line  22)
4744 * global keybindings:                    Activation.          (line   6)
4745 * global TODO list:                      Global TODO list.    (line   6)
4746 * global visibility states:              Visibility cycling.  (line  22)
4747 * GNUS links:                            External links.      (line   6)
4748 * hand-formatted lists:                  Enhancing text.      (line  11)
4749 * headline levels:                       Export options.      (line  25)
4750 * headline levels, for exporting <1>:    HTML export.         (line  21)
4751 * headline levels, for exporting:        ASCII export.        (line  18)
4752 * headline navigation:                   Motion.              (line   6)
4753 * headline tagging:                      Tags.                (line   6)
4754 * headline, promotion and demotion:      Structure editing.   (line   6)
4755 * headlines:                             Headlines.           (line   6)
4756 * hide text:                             Visibility cycling.  (line   6)
4757 * hiding leading stars:                  Clean view.          (line   6)
4758 * history:                               History and Acknowledgments.
4759                                                               (line   6)
4760 * HTML export:                           HTML export.         (line   6)
4761 * hyperlinks:                            Hyperlinks.          (line   6)
4762 * iCalendar export:                      iCalendar export.    (line   6)
4763 * in-buffer settings:                    In-buffer settings.  (line   6)
4764 * index, of published pages:             Project page index.  (line   6)
4765 * Info links:                            External links.      (line   6)
4766 * inheritance, of tags:                  Tag inheritance.     (line   6)
4767 * inserting links:                       Handling links.      (line  27)
4768 * installation:                          Installation.        (line   6)
4769 * internal archiving:                    ARCHIVE tag.         (line   6)
4770 * internal links:                        Internal links.      (line   6)
4771 * internal links, in HTML export:        HTML export.         (line  35)
4772 * introduction:                          Introduction.        (line   6)
4773 * italic text:                           Enhancing text.      (line  15)
4774 * jumping, to headlines:                 Motion.              (line   6)
4775 * keybindings, global:                   Activation.          (line   6)
4776 * keyword options:                       Per file keywords.   (line   6)
4777 * LaTeX fragments:                       Export options.      (line  25)
4778 * LaTeX fragments, export:               Enhancing text.      (line  18)
4779 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
4780 * linebreak preservation:                Export options.      (line  25)
4781 * linebreak, forced:                     Enhancing text.      (line  32)
4782 * link completion:                       Handling links.      (line  27)
4783 * link format:                           Link format.         (line   6)
4784 * links, external:                       External links.      (line   6)
4785 * links, in HTML export:                 HTML export.         (line  35)
4786 * links, internal:                       Internal links.      (line   6)
4787 * links, publishing:                     Publishing links.    (line   6)
4788 * links, returning to:                   Handling links.      (line  84)
4789 * Lisp forms, as table formulas:         Lisp formulas.       (line   6)
4790 * lists, hand-formatted:                 Enhancing text.      (line  11)
4791 * lists, ordered:                        Plain lists.         (line   6)
4792 * lists, plain:                          Plain lists.         (line   6)
4793 * logging, of progress:                  Progress logging.    (line   6)
4794 * maintainer:                            Feedback.            (line   6)
4795 * mark ring:                             Handling links.      (line  80)
4796 * marking characters, tables:            Advanced features.   (line  34)
4797 * matching, of tags:                     Matching headline tags.
4798                                                               (line   6)
4799 * matching, tags:                        Tags.                (line   6)
4800 * MH-E links:                            External links.      (line   6)
4801 * minor mode for tables:                 orgtbl-mode.         (line   6)
4802 * mode, for calc:                        Formula syntax.      (line  34)
4803 * motion, between headlines:             Motion.              (line   6)
4804 * name, of column or field:              Formula syntax.      (line  26)
4805 * named field formula:                   Named-field formulas.
4806                                                               (line   6)
4807 * names as TODO keywords:                TODO types.          (line   6)
4808 * narrow columns in tables:              Narrow columns.      (line   6)
4809 * occur, command:                        Sparse trees.        (line   6)
4810 * option keyword completion:             Completion.          (line   6)
4811 * options, for customization:            Customization.       (line   6)
4812 * options, for export:                   Export options.      (line   6)
4813 * options, for publishing:               Publishing options.  (line   6)
4814 * ordered lists:                         Plain lists.         (line   6)
4815 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
4816 * org-blog.el:                           Extensions.          (line  25)
4817 * org-blogging.el:                       Extensions.          (line  29)
4818 * org-mode, turning on:                  Activation.          (line  22)
4819 * org-mouse.el:                          Extensions.          (line   8)
4820 * org-publish-project-alist:             Project alist.       (line   6)
4821 * org-publish.el:                        Extensions.          (line  14)
4822 * orgtbl-mode:                           orgtbl-mode.         (line   6)
4823 * outline tree:                          Headlines.           (line   6)
4824 * outline-mode:                          Outlines.            (line   6)
4825 * outlines:                              Outlines.            (line   6)
4826 * overview, global visibility state:     Visibility cycling.  (line  22)
4827 * packages, interaction with other:      Interaction.         (line   6)
4828 * pasting, of subtrees:                  Structure editing.   (line   6)
4829 * per file keywords:                     Per file keywords.   (line   6)
4830 * plain lists:                           Plain lists.         (line   6)
4831 * plain text external links:             External links.      (line  38)
4832 * printing sparse trees:                 Sparse trees.        (line  39)
4833 * priorities:                            Priorities.          (line   6)
4834 * priorities, of agenda items:           Sorting of agenda items.
4835                                                               (line   6)
4836 * progress logging:                      Progress logging.    (line   6)
4837 * projects, for publishing:              Project alist.       (line   6)
4838 * promotion, of subtrees:                Structure editing.   (line   6)
4839 * publishing:                            Publishing.          (line   6)
4840 * quoted HTML tags:                      Export options.      (line  25)
4841 * ranges, time:                          Time stamps.         (line   6)
4842 * recomputing table fields:              Column formulas.     (line  27)
4843 * region, active <1>:                    HTML export.         (line  10)
4844 * region, active <2>:                    ASCII export.        (line   9)
4845 * region, active <3>:                    Built-in table editor.
4846                                                               (line 165)
4847 * region, active:                        Structure editing.   (line  51)
4848 * remember.el <1>:                       Cooperation.         (line  33)
4849 * remember.el:                           Remember.            (line   6)
4850 * richer text:                           Enhancing text.      (line   6)
4851 * RMAIL links:                           External links.      (line   6)
4852 * SCHEDULED keyword:                     Time stamps.         (line  30)
4853 * scheduling:                            Time stamps.         (line   6)
4854 * search option in file links:           Search options.      (line   6)
4855 * section-numbers:                       Export options.      (line  25)
4856 * setting tags:                          Setting tags.        (line   6)
4857 * SHELL links:                           External links.      (line   6)
4858 * show all, command:                     Visibility cycling.  (line  31)
4859 * show all, global visibility state:     Visibility cycling.  (line  22)
4860 * show hidden text:                      Visibility cycling.  (line   6)
4861 * single file summary:                   Timeline.            (line   6)
4862 * sorting, of agenda items:              Sorting of agenda items.
4863                                                               (line   6)
4864 * sparse tree, for deadlines:            Creating timestamps. (line  41)
4865 * sparse tree, for TODO:                 TODO basics.         (line  26)
4866 * sparse tree, tag based:                Tags.                (line   6)
4867 * sparse trees:                          Sparse trees.        (line   6)
4868 * special keywords:                      In-buffer settings.  (line   6)
4869 * spreadsheet capabilities:              Table calculations.  (line   6)
4870 * storing links:                         Handling links.      (line   9)
4871 * structure editing:                     Structure editing.   (line   6)
4872 * structure of document:                 Document structure.  (line   6)
4873 * subtree cycling:                       Visibility cycling.  (line  10)
4874 * subtree visibility states:             Visibility cycling.  (line  10)
4875 * subtree, cut and paste:                Structure editing.   (line   6)
4876 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
4877 * subtrees, cut and paste:               Structure editing.   (line   6)
4878 * summary:                               Summary.             (line   6)
4879 * syntax, of formulas:                   Formula syntax.      (line   6)
4880 * table editor, builtin:                 Built-in table editor.
4881                                                               (line   6)
4882 * table editor, table.el:                table.el.            (line   6)
4883 * table of contents:                     Export options.      (line  25)
4884 * table.el <1>:                          Cooperation.         (line  34)
4885 * table.el:                              table.el.            (line   6)
4886 * tables <1>:                            Export options.      (line  25)
4887 * tables:                                Tables.              (line   6)
4888 * tables, export:                        Enhancing text.      (line  21)
4889 * tag completion:                        Completion.          (line   6)
4890 * tag searches:                          Tag searches.        (line   6)
4891 * tags:                                  Tags.                (line   6)
4892 * tags view:                             Matching headline tags.
4893                                                               (line   6)
4894 * templates, for remember:               Remember.            (line  23)
4895 * TeX interpretation:                    Embedded LaTeX.      (line   6)
4896 * TeX macros:                            Export options.      (line  25)
4897 * TeX macros, export:                    Enhancing text.      (line  18)
4898 * TeX symbol completion:                 Completion.          (line   6)
4899 * TeX-like syntax for sub- and superscripts: Export options.  (line  25)
4900 * thanks:                                History and Acknowledgments.
4901                                                               (line   6)
4902 * time stamps:                           Time stamps.         (line   6)
4903 * time, reading in minibuffer:           Creating timestamps. (line  71)
4904 * time-sorted view:                      Timeline.            (line   6)
4905 * timeline, single file:                 Timeline.            (line   6)
4906 * timerange:                             Time stamps.         (line  21)
4907 * timestamp:                             Time stamps.         (line  13)
4908 * timestamps, creating:                  Creating timestamps. (line   6)
4909 * TODO items:                            TODO items.          (line   6)
4910 * TODO keywords completion:              Completion.          (line   6)
4911 * TODO list, global:                     Global TODO list.    (line   6)
4912 * TODO types:                            TODO types.          (line   6)
4913 * TODO workflow:                         Workflow states.     (line   6)
4914 * transient-mark-mode <1>:               HTML export.         (line  10)
4915 * transient-mark-mode <2>:               ASCII export.        (line   9)
4916 * transient-mark-mode <3>:               Built-in table editor.
4917                                                               (line 165)
4918 * transient-mark-mode:                   Structure editing.   (line  51)
4919 * trees, sparse:                         Sparse trees.        (line   6)
4920 * trees, visibility:                     Visibility cycling.  (line   6)
4921 * tty keybindings:                       TTY keys.            (line   6)
4922 * types as TODO keywords:                TODO types.          (line   6)
4923 * underlined text:                       Enhancing text.      (line  15)
4924 * URL links:                             External links.      (line   6)
4925 * USENET links:                          External links.      (line   6)
4926 * variables, for customization:          Customization.       (line   6)
4927 * vectors, in table calculations:        Formula syntax.      (line  23)
4928 * visibility cycling:                    Visibility cycling.  (line   6)
4929 * visible text, printing:                Sparse trees.        (line  39)
4930 * VM links:                              External links.      (line   6)
4931 * WANDERLUST links:                      External links.      (line   6)
4932 * windmove.el:                           Conflicts.           (line  33)
4933 * workflow states as TODO keywords:      Workflow states.     (line   6)
4934 * XEmacs:                                Installation.        (line   6)
4935 * XOXO export:                           XOXO export.         (line   6)
4937 \x1f
4938 File: org,  Node: Key Index,  Prev: Index,  Up: Top
4940 3 Key Index
4941 ***********
4943 \0\b[index\0\b]
4944 * Menu:
4946 * ':                                     CDLaTeX mode.        (line  43)
4947 * +:                                     Agenda commands.     (line 126)
4948 * ,:                                     Agenda commands.     (line 118)
4949 * -:                                     Agenda commands.     (line 132)
4950 * .:                                     Agenda commands.     (line  94)
4951 * ::                                     Agenda commands.     (line 112)
4952 * <:                                     Creating timestamps. (line  78)
4953 * <left>:                                Agenda commands.     (line  91)
4954 * <RET> <1>:                             Agenda commands.     (line  41)
4955 * <RET> <2>:                             Creating timestamps. (line 103)
4956 * <RET>:                                 Built-in table editor.
4957                                                               (line  64)
4958 * <right>:                               Agenda commands.     (line  86)
4959 * <SPC>:                                 Agenda commands.     (line  28)
4960 * <TAB> <1>:                             CDLaTeX mode.        (line  23)
4961 * <TAB> <2>:                             Agenda commands.     (line  35)
4962 * <TAB> <3>:                             Built-in table editor.
4963                                                               (line  57)
4964 * <TAB> <4>:                             Plain lists.         (line  39)
4965 * <TAB>:                                 Visibility cycling.  (line  10)
4966 * > <1>:                                 Agenda commands.     (line 154)
4967 * >:                                     Creating timestamps. (line  79)
4968 * ^:                                     CDLaTeX mode.        (line  33)
4969 * _:                                     CDLaTeX mode.        (line  33)
4970 * `:                                     CDLaTeX mode.        (line  39)
4971 * a:                                     Agenda commands.     (line 115)
4972 * C:                                     Agenda commands.     (line 194)
4973 * c:                                     Agenda commands.     (line 172)
4974 * C-#:                                   Built-in table editor.
4975                                                               (line 155)
4976 * C-,:                                   Agenda files.        (line  18)
4977 * C-c !:                                 Creating timestamps. (line  21)
4978 * C-c $:                                 Moving subtrees.     (line  10)
4979 * C-c %:                                 Handling links.      (line  80)
4980 * C-c &:                                 Handling links.      (line  84)
4981 * C-c ' <1>:                             Editing/debugging formulas.
4982                                                               (line  20)
4983 * C-c ':                                 Built-in table editor.
4984                                                               (line 144)
4985 * C-c *:                                 Built-in table editor.
4986                                                               (line 148)
4987 * C-c +:                                 Built-in table editor.
4988                                                               (line 165)
4989 * C-c ,:                                 Priorities.          (line  18)
4990 * C-c -:                                 Built-in table editor.
4991                                                               (line  92)
4992 * C-c .:                                 Creating timestamps. (line  10)
4993 * C-c /:                                 Sparse trees.        (line  15)
4994 * C-c ::                                 Enhancing text.      (line  29)
4995 * C-c ;:                                 Comment lines.       (line  11)
4996 * C-c <:                                 Creating timestamps. (line  25)
4997 * C-c <TAB>:                             Built-in table editor.
4998                                                               (line 187)
4999 * C-c =:                                 Built-in table editor.
5000                                                               (line 135)
5001 * C-c >:                                 Creating timestamps. (line  29)
5002 * C-c ? <1>:                             Editing/debugging formulas.
5003                                                               (line  20)
5004 * C-c ?:                                 Built-in table editor.
5005                                                               (line 161)
5006 * C-c [:                                 Agenda files.        (line  12)
5007 * C-c \:                                 Tag searches.        (line   9)
5008 * C-c ]:                                 Agenda files.        (line  15)
5009 * C-c ^:                                 Built-in table editor.
5010                                                               (line  96)
5011 * C-c `:                                 Built-in table editor.
5012                                                               (line 181)
5013 * C-c a a:                               Weekly/Daily agenda. (line   9)
5014 * C-c a C:                               Agenda dispatcher.   (line  29)
5015 * C-c a M:                               Matching headline tags.
5016                                                               (line  15)
5017 * C-c a m:                               Matching headline tags.
5018                                                               (line  10)
5019 * C-c a M:                               Tag searches.        (line  14)
5020 * C-c a m:                               Tag searches.        (line  10)
5021 * C-c a T:                               Global TODO list.    (line  14)
5022 * C-c a t <1>:                           Global TODO list.    (line   9)
5023 * C-c a t:                               TODO basics.         (line  33)
5024 * C-c C-a:                               Visibility cycling.  (line  31)
5025 * C-c C-b:                               Motion.              (line  15)
5026 * C-c C-c <1>:                           The very busy C-c C-c key.
5027                                                               (line   6)
5028 * C-c C-c <2>:                           Processing LaTeX fragments.
5029                                                               (line  15)
5030 * C-c C-c <3>:                           Setting tags.        (line  10)
5031 * C-c C-c <4>:                           table.el.            (line   6)
5032 * C-c C-c <5>:                           Editing/debugging formulas.
5033                                                               (line  16)
5034 * C-c C-c <6>:                           Built-in table editor.
5035                                                               (line  54)
5036 * C-c C-c <7>:                           Checkboxes.          (line  22)
5037 * C-c C-c:                               Plain lists.         (line  76)
5038 * C-c C-d <1>:                           Agenda commands.     (line 139)
5039 * C-c C-d:                               Creating timestamps. (line  37)
5040 * C-c C-e:                               Exporting.           (line  19)
5041 * C-c C-e a:                             ASCII export.        (line   9)
5042 * C-c C-e b:                             HTML export.         (line  11)
5043 * C-c C-e c:                             iCalendar export.    (line  20)
5044 * C-c C-e h:                             HTML export.         (line  10)
5045 * C-c C-e I:                             iCalendar export.    (line  15)
5046 * C-c C-e i:                             iCalendar export.    (line  13)
5047 * C-c C-e t:                             Export options.      (line  13)
5048 * C-c C-e v <1>:                         XOXO export.         (line  11)
5049 * C-c C-e v:                             Sparse trees.        (line  39)
5050 * C-c C-e v a:                           ASCII export.        (line  13)
5051 * C-c C-e v b:                           HTML export.         (line  14)
5052 * C-c C-e v h:                           HTML export.         (line  14)
5053 * C-c C-e x:                             XOXO export.         (line  10)
5054 * C-c C-f:                               Motion.              (line  12)
5055 * C-c C-j:                               Motion.              (line  21)
5056 * C-c C-l:                               Handling links.      (line  27)
5057 * C-c C-n:                               Motion.              (line   8)
5058 * C-c C-o <1>:                           Creating timestamps. (line  33)
5059 * C-c C-o:                               Handling links.      (line  58)
5060 * C-c C-p:                               Motion.              (line   9)
5061 * C-c C-q <1>:                           Editing/debugging formulas.
5062                                                               (line  20)
5063 * C-c C-q:                               Built-in table editor.
5064                                                               (line 119)
5065 * C-c C-r:                               Timeline.            (line  13)
5066 * C-c C-s <1>:                           Agenda commands.     (line 136)
5067 * C-c C-s:                               Creating timestamps. (line  48)
5068 * C-c C-t <1>:                           Clocking work time.  (line  25)
5069 * C-c C-t:                               TODO basics.         (line  13)
5070 * C-c C-u:                               Motion.              (line  18)
5071 * C-c C-v:                               TODO basics.         (line  26)
5072 * C-c C-w:                               Creating timestamps. (line  41)
5073 * C-c C-x C-a:                           ARCHIVE tag.         (line  27)
5074 * C-c C-x C-b:                           Checkboxes.          (line  23)
5075 * C-c C-x C-c:                           Agenda commands.     (line 201)
5076 * C-c C-x C-d:                           Clocking work time.  (line  33)
5077 * C-c C-x C-i:                           Clocking work time.  (line  12)
5078 * C-c C-x C-k:                           Structure editing.   (line  36)
5079 * C-c C-x C-l:                           Processing LaTeX fragments.
5080                                                               (line   9)
5081 * C-c C-x C-o:                           Clocking work time.  (line  14)
5082 * C-c C-x C-r:                           Clocking work time.  (line  40)
5083 * C-c C-x C-u:                           Dynamic blocks.      (line  21)
5084 * C-c C-x C-w <1>:                       Built-in table editor.
5085                                                               (line 108)
5086 * C-c C-x C-w:                           Structure editing.   (line  36)
5087 * C-c C-x C-x:                           Clocking work time.  (line  29)
5088 * C-c C-x C-y <1>:                       Built-in table editor.
5089                                                               (line 112)
5090 * C-c C-x C-y:                           Structure editing.   (line  43)
5091 * C-c C-x M-w <1>:                       Built-in table editor.
5092                                                               (line 105)
5093 * C-c C-x M-w:                           Structure editing.   (line  40)
5094 * C-c C-y <1>:                           Clocking work time.  (line  20)
5095 * C-c C-y:                               Creating timestamps. (line  66)
5096 * C-c l:                                 Handling links.      (line   9)
5097 * C-c {:                                 CDLaTeX mode.        (line  21)
5098 * C-c |:                                 Built-in table editor.
5099                                                               (line  40)
5100 * C-c ~:                                 table.el.            (line  18)
5101 * C-u C-c $:                             Moving subtrees.     (line  12)
5102 * C-u C-c .:                             Creating timestamps. (line  16)
5103 * C-u C-c =:                             Built-in table editor.
5104                                                               (line 139)
5105 * C-u C-c C-l:                           Handling links.      (line  43)
5106 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  30)
5107 * C-u C-c C-x C-u <1>:                   Dynamic blocks.      (line  22)
5108 * C-u C-c C-x C-u:                       Clocking work time.  (line  67)
5109 * D:                                     Agenda commands.     (line  68)
5110 * d:                                     Agenda commands.     (line  65)
5111 * f:                                     Agenda commands.     (line  44)
5112 * g:                                     Agenda commands.     (line  72)
5113 * H:                                     Agenda commands.     (line 198)
5114 * i:                                     Agenda commands.     (line 179)
5115 * I:                                     Agenda commands.     (line 159)
5116 * l:                                     Agenda commands.     (line  51)
5117 * L:                                     Agenda commands.     (line  32)
5118 * M:                                     Agenda commands.     (line 185)
5119 * M-<down>:                              Built-in table editor.
5120                                                               (line  82)
5121 * M-<left> <1>:                          Built-in table editor.
5122                                                               (line  72)
5123 * M-<left>:                              Structure editing.   (line  18)
5124 * M-<RET> <1>:                           Plain lists.         (line  44)
5125 * M-<RET>:                               Structure editing.   (line   6)
5126 * M-<right> <1>:                         Built-in table editor.
5127                                                               (line  72)
5128 * M-<right>:                             Structure editing.   (line  21)
5129 * M-<TAB> <1>:                           Completion.          (line  10)
5130 * M-<TAB> <2>:                           Setting tags.        (line   6)
5131 * M-<TAB>:                               Per file keywords.   (line  17)
5132 * M-<up>:                                Built-in table editor.
5133                                                               (line  82)
5134 * M-S-<down> <1>:                        Built-in table editor.
5135                                                               (line  89)
5136 * M-S-<down> <2>:                        Plain lists.         (line  61)
5137 * M-S-<down>:                            Structure editing.   (line  33)
5138 * M-S-<left> <1>:                        Creating timestamps. (line 100)
5139 * M-S-<left> <2>:                        Built-in table editor.
5140                                                               (line  76)
5141 * M-S-<left> <3>:                        Plain lists.         (line  67)
5142 * M-S-<left>:                            Structure editing.   (line  24)
5143 * M-S-<RET> <1>:                         Checkboxes.          (line  37)
5144 * M-S-<RET> <2>:                         Plain lists.         (line  54)
5145 * M-S-<RET>:                             Structure editing.   (line  15)
5146 * M-S-<right> <1>:                       Creating timestamps. (line  97)
5147 * M-S-<right> <2>:                       Built-in table editor.
5148                                                               (line  79)
5149 * M-S-<right> <3>:                       Plain lists.         (line  67)
5150 * M-S-<right>:                           Structure editing.   (line  27)
5151 * M-S-<up> <1>:                          Built-in table editor.
5152                                                               (line  86)
5153 * M-S-<up> <2>:                          Plain lists.         (line  61)
5154 * M-S-<up>:                              Structure editing.   (line  30)
5155 * mouse-1 <1>:                           Agenda commands.     (line  35)
5156 * mouse-1 <2>:                           Creating timestamps. (line  82)
5157 * mouse-1:                               Handling links.      (line  72)
5158 * mouse-2 <1>:                           Agenda commands.     (line  35)
5159 * mouse-2:                               Handling links.      (line  72)
5160 * mouse-3 <1>:                           Agenda commands.     (line  28)
5161 * mouse-3:                               Handling links.      (line  77)
5162 * n:                                     Agenda commands.     (line  19)
5163 * O:                                     Agenda commands.     (line 161)
5164 * o:                                     Agenda commands.     (line  59)
5165 * P:                                     Agenda commands.     (line 123)
5166 * p:                                     Agenda commands.     (line  20)
5167 * q:                                     Agenda commands.     (line 208)
5168 * r <1>:                                 Agenda commands.     (line  76)
5169 * r:                                     Global TODO list.    (line  20)
5170 * S:                                     Agenda commands.     (line 189)
5171 * s:                                     Agenda commands.     (line  83)
5172 * S-<down> <1>:                          Agenda commands.     (line 132)
5173 * S-<down> <2>:                          Creating timestamps. (line  58)
5174 * S-<down> <3>:                          Priorities.          (line  25)
5175 * S-<down>:                              Plain lists.         (line  57)
5176 * S-<left> <1>:                          Agenda commands.     (line 150)
5177 * S-<left> <2>:                          Creating timestamps. (line  53)
5178 * S-<left>:                              TODO basics.         (line  20)
5179 * S-<RET>:                               Built-in table editor.
5180                                                               (line 170)
5181 * S-<right> <1>:                         Agenda commands.     (line 142)
5182 * S-<right> <2>:                         Creating timestamps. (line  53)
5183 * S-<right>:                             TODO basics.         (line  20)
5184 * S-<TAB> <1>:                           Built-in table editor.
5185                                                               (line  61)
5186 * S-<TAB>:                               Visibility cycling.  (line  22)
5187 * S-<up> <1>:                            Agenda commands.     (line 126)
5188 * S-<up> <2>:                            Creating timestamps. (line  58)
5189 * S-<up> <3>:                            Priorities.          (line  25)
5190 * S-<up>:                                Plain lists.         (line  57)
5191 * T:                                     Agenda commands.     (line 107)
5192 * t:                                     Agenda commands.     (line 103)
5193 * w:                                     Agenda commands.     (line  62)
5194 * x:                                     Agenda commands.     (line 211)
5195 * X:                                     Agenda commands.     (line 164)
5198 \x1f
5199 Tag Table:
5200 Node: Top\x7f959
5201 Node: Introduction\x7f9617
5202 Node: Summary\x7f10032
5203 Node: Installation\x7f12299
5204 Node: Activation\x7f13677
5205 Node: Feedback\x7f14926
5206 Node: Document structure\x7f15695
5207 Node: Outlines\x7f16521
5208 Node: Headlines\x7f17181
5209 Node: Visibility cycling\x7f17804
5210 Ref: Visibility cycling-Footnote-1\x7f19279
5211 Ref: Visibility cycling-Footnote-2\x7f19337
5212 Node: Motion\x7f19387
5213 Node: Structure editing\x7f20171
5214 Node: Archiving\x7f22280
5215 Node: ARCHIVE tag\x7f22838
5216 Node: Moving subtrees\x7f24513
5217 Node: Sparse trees\x7f25554
5218 Ref: Sparse trees-Footnote-1\x7f27533
5219 Ref: Sparse trees-Footnote-2\x7f27625
5220 Node: Plain lists\x7f27740
5221 Ref: Plain lists-Footnote-1\x7f31348
5222 Ref: Plain lists-Footnote-2\x7f31705
5223 Node: Checkboxes\x7f31887
5224 Node: Tables\x7f33524
5225 Node: Built-in table editor\x7f34072
5226 Node: Narrow columns\x7f41679
5227 Ref: Narrow columns-Footnote-1\x7f43618
5228 Node: Table calculations\x7f43664
5229 Node: Formula syntax\x7f44984
5230 Ref: Formula syntax-Footnote-1\x7f47889
5231 Node: Lisp formulas\x7f48189
5232 Node: Column formulas\x7f48978
5233 Node: Advanced features\x7f50740
5234 Node: Named-field formulas\x7f53994
5235 Node: Editing/debugging formulas\x7f54634
5236 Node: Appetizer\x7f56392
5237 Node: orgtbl-mode\x7f57495
5238 Node: table.el\x7f57986
5239 Node: Hyperlinks\x7f58963
5240 Node: Link format\x7f59668
5241 Node: Internal links\x7f60961
5242 Ref: Internal links-Footnote-1\x7f62950
5243 Node: Radio targets\x7f63082
5244 Node: CamelCase links\x7f63797
5245 Node: External links\x7f64295
5246 Node: Handling links\x7f66426
5247 Ref: Handling links-Footnote-1\x7f71012
5248 Node: Search options\x7f71249
5249 Ref: Search options-Footnote-1\x7f73023
5250 Node: Custom searches\x7f73104
5251 Node: Remember\x7f74152
5252 Node: TODO items\x7f77842
5253 Node: TODO basics\x7f78706
5254 Node: TODO extensions\x7f80233
5255 Node: Workflow states\x7f81028
5256 Node: TODO types\x7f81896
5257 Ref: TODO types-Footnote-1\x7f83554
5258 Node: Per file keywords\x7f83636
5259 Ref: Per file keywords-Footnote-1\x7f85090
5260 Node: Priorities\x7f85318
5261 Node: Timestamps\x7f86534
5262 Node: Time stamps\x7f86924
5263 Node: Creating timestamps\x7f90021
5264 Node: Progress logging\x7f93367
5265 Node: Closing items\x7f93897
5266 Node: Clocking work time\x7f94692
5267 Ref: Clocking work time-Footnote-1\x7f98128
5268 Node: Tags\x7f98254
5269 Node: Tag inheritance\x7f99016
5270 Node: Setting tags\x7f99953
5271 Ref: Setting tags-Footnote-1\x7f103083
5272 Ref: Setting tags-Footnote-2\x7f103195
5273 Node: Tag searches\x7f103275
5274 Node: Agenda views\x7f104484
5275 Node: Agenda files\x7f106028
5276 Ref: Agenda files-Footnote-1\x7f106988
5277 Ref: Agenda files-Footnote-2\x7f107137
5278 Node: Agenda dispatcher\x7f107329
5279 Node: Weekly/Daily agenda\x7f109445
5280 Node: Categories\x7f110580
5281 Node: Time-of-day specifications\x7f111228
5282 Node: Calendar/Diary integration\x7f113204
5283 Node: Sorting of agenda items\x7f114581
5284 Node: Global TODO list\x7f115413
5285 Node: Matching headline tags\x7f117464
5286 Node: Timeline\x7f118407
5287 Node: Agenda commands\x7f119280
5288 Node: Embedded LaTeX\x7f125124
5289 Ref: Embedded LaTeX-Footnote-1\x7f126216
5290 Node: Math symbols\x7f126406
5291 Node: Subscripts and Superscripts\x7f127171
5292 Node: LaTeX fragments\x7f128015
5293 Node: Processing LaTeX fragments\x7f130084
5294 Node: CDLaTeX mode\x7f131030
5295 Ref: CDLaTeX mode-Footnote-1\x7f133514
5296 Node: Exporting\x7f133662
5297 Node: ASCII export\x7f134976
5298 Node: HTML export\x7f136266
5299 Node: XOXO export\x7f139102
5300 Node: iCalendar export\x7f139541
5301 Node: Text interpretation\x7f141364
5302 Node: Comment lines\x7f141843
5303 Node: Enhancing text\x7f142314
5304 Node: Export options\x7f144006
5305 Node: Publishing\x7f145673
5306 Ref: Publishing-Footnote-1\x7f146469
5307 Node: Configuration\x7f146665
5308 Node: Project alist\x7f147383
5309 Node: Sources and destinations\x7f148449
5310 Node: Selecting files\x7f148996
5311 Node: Publishing action\x7f149744
5312 Node: Publishing options\x7f150859
5313 Node: Publishing links\x7f153011
5314 Node: Project page index\x7f154524
5315 Node: Sample configuration\x7f155302
5316 Node: Simple example\x7f155794
5317 Node: Complex example\x7f156467
5318 Node: Triggering publication\x7f158543
5319 Node: Miscellaneous\x7f159227
5320 Node: Completion\x7f159861
5321 Node: Customization\x7f160857
5322 Node: In-buffer settings\x7f161442
5323 Node: The very busy C-c C-c key\x7f164673
5324 Node: Clean view\x7f166310
5325 Node: TTY keys\x7f168887
5326 Node: Interaction\x7f170496
5327 Node: Cooperation\x7f170893
5328 Node: Conflicts\x7f172760
5329 Node: Bugs\x7f174352
5330 Node: Extensions and Hacking\x7f175975
5331 Node: Extensions\x7f176461
5332 Node: Dynamic blocks\x7f178031
5333 Node: History and Acknowledgments\x7f179951
5334 Node: Index\x7f184732
5335 Node: Key Index\x7f207718
5336 \x1f
5337 End Tag Table