Release 4.40
[org-mode.git] / org
blob2efd1c25e71eb377c1e982bf661809b93b7115dc
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.40).
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.40).
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 Org-mode
71 * Feedback::                    Bug reports, ideas, patches etc.
73 Document Structure
75 * Outlines::                    Org-mode is based on outline-mode
76 * Headlines::                   How to typeset org-tree headlines
77 * Visibility cycling::          Show and hide, much simplified
78 * Motion::                      Jumping to other headlines
79 * Structure editing::           Changing sequence and level of headlines
80 * Archiving::                   Move done task trees to a different place
81 * Sparse trees::                Matches embedded in context
82 * Plain lists::                 Editing hand-formatted lists
84 Archiving
86 * ARCHIVE tag::                 Marking a tree as inactive
87 * Moving subtrees::             Moving a tree to an archive file
89 Tables
91 * Built-in table editor::       Simple tables
92 * Narrow columns::              Stop wasting space in tables
93 * Table calculations::          Compute a field from other fields
94 * orgtbl-mode::                 The table editor as minor mode
95 * table.el::                    Complex tables
97 Calculations in tables
99 * Formula syntax::              How to write a formula
100 * Lisp formulas::               An alternative way to write formulas
101 * Column formulas::             Formulas valid for all fields in a column
102 * Advanced features::           Field names, parameters and automatic recalc
103 * Named-field formulas::        Formulas valid in single fields
104 * Editing/debugging formulas::  Changing a stored formula
105 * Appetizer::                   Taste the power of calc
107 Hyperlinks
109 * Link format::                 How links in Org-mode are formatted
110 * Internal links::              Links to other places in the current file
111 * External links::              URL-like links to the world
112 * Handling links::              Creating, inserting and following
113 * Search options::              Linking to a specific location
114 * Custom searches::             When the default search is not enough
115 * Remember::                    Org-trees store quick notes
117 Internal links
119 * Radio targets::               Make targets trigger links in plain text.
120 * CamelCase links::             Activating CamelCase words as links
122 TODO items
124 * TODO basics::                 Marking and displaying TODO entries
125 * TODO extensions::             Workflow and assignments
126 * Priorities::                  Some things are more important than others
128 Extended use of TODO keywords
130 * Workflow states::             From TODO to DONE in steps
131 * TODO types::                  I do this, Fred the rest
132 * Per file keywords::           Different files, different requirements
134 Timestamps
136 * Time stamps::                 Assigning a time to a tree entry
137 * Creating timestamps::         Commands which insert timestamps
138 * Progress logging::            Documenting when what work was done.
140 Progress Logging
142 * Closing items::               When was this entry marked DONE?
143 * Clocking work time::          When exactly did you work on this item?
145 Tags
147 * Tag inheritance::             Tags use the tree structure of the outline
148 * Setting tags::                How to assign tags to a headline
149 * Tag searches::                Searching for combinations of tags
151 Agenda Views
153 * Agenda files::                Files being searched for agenda information
154 * Agenda dispatcher::           Keyboard access to agenda views
155 * Weekly/Daily agenda::         The calendar page with current tasks
156 * Global TODO list::            All unfinished action items
157 * Matching headline tags::      Structured information with fine-tuned search
158 * Timeline::                    Time-sorted view for single file
159 * Agenda commands::             Remote editing of org trees
161 The weekly/daily agenda
163 * Categories::                  Not all tasks are equal
164 * Time-of-day specifications::  How the agenda knows the time
165 * Calendar/Diary integration::  Integrating Anniversaries and more
166 * Sorting of agenda items::     The order of things
168 Embedded LaTeX
170 * Math symbols::                TeX macros for symbols and Greek letters
171 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
172 * LaTeX fragments::             Complex formulas made easy
173 * Processing LaTeX fragments::  Previewing LaTeX processing
174 * CDLaTeX mode::                Speed up entering of formulas
176 Exporting
178 * ASCII export::                Exporting to plain ASCII
179 * HTML export::                 Exporting to HTML
180 * XOXO export::                 Exporting to XOXO
181 * iCalendar export::            Exporting in iCalendar format
182 * Text interpretation::         How the exporter looks at the file
184 Text interpretation by the exporter
186 * Comment lines::               Some lines will not be exported
187 * Enhancing text::              Subscripts, symbols and more
188 * Export options::              How to influence the export settings
190 Publishing
192 * Configuration::               Defining projects
193 * Sample configuration::        Example projects
194 * Triggering publication::      Publication commands
196 Configuration
198 * Project alist::               The central configuration variable
199 * Sources and destinations::    From here to there
200 * Selecting files::             What files are part of the project?
201 * Publishing action::           Setting the function doing the publishing
202 * Publishing options::          Tweaking HTML export
203 * Publishing links::            Which links keep working after publishing?
204 * Project page index::          Publishing a list of project files
206 Sample configuration
208 * Simple example::              One-component publishing
209 * Complex example::             A multi-component publishing example
211 Miscellaneous
213 * Completion::                  M-TAB knows what you need
214 * Customization::               Adapting Org-mode to your taste
215 * In-buffer settings::          Overview of the #+KEYWORDS
216 * The very busy C-c C-c key::   When in doubt, press C-c C-c
217 * Clean view::                  Getting rid of leading stars in the outline
218 * TTY keys::                    Using Org-mode on a tty
219 * Interaction::                 Other Emacs packages
220 * Bugs::                        Things which do not work perfectly
222 Interaction with other packages
224 * Cooperation::                 Packages Org-mode cooperates with
225 * Conflicts::                   Packages that lead to conflicts
227 Extensions, Hooks and Hacking
229 * Extensions::                  Existing 3rd-part extensions
230 * Dynamic blocks::              Automatically filled blocks
232 \x1f
233 File: org,  Node: Introduction,  Next: Document structure,  Prev: Top,  Up: Top
235 1 Introduction
236 **************
238 * Menu:
240 * Summary::                     Brief summary of what Org-mode does
241 * Installation::                How to install Org-mode
242 * Feedback::                    Bug reports, ideas, patches etc.
244 \x1f
245 File: org,  Node: Summary,  Next: Installation,  Prev: Introduction,  Up: Introduction
247 1.1 Summary
248 ===========
250 Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
251 project planning with a fast and effective plain-text system.
253    Org-mode develops organizational tasks around NOTES files that
254 contain information about projects as plain text.  Org-mode is
255 implemented on top of outline-mode, which makes it possible to keep the
256 content of large files well structured.  Visibility cycling and
257 structure editing help to work with the tree.  Tables are easily
258 created with a built-in table editor.  Org-mode supports ToDo items,
259 deadlines, time stamps, and scheduling.  It dynamically compiles
260 entries into an agenda that utilizes and smoothly integrates much of
261 the Emacs calendar and diary.  Plain text URL-like links connect to
262 websites, emails, Usenet messages, BBDB entries, and any files related
263 to the projects.  For printing and sharing of notes, an Org-mode file
264 can be exported as a structured ASCII file, as HTML, or (todo and
265 agenda items only) as an iCalendar file.  It can also serve as a
266 publishing tool for a set of linked webpages.
268    Org-mode keeps simple things simple.  When first fired up, it should
269 feel like a straightforward, easy to use outliner.  Complexity is not
270 imposed, but a large amount of functionality is available when you need
271 it.  Org-mode can be used on different levels and in different ways, for
272 example:
274      * as an outline extension with visibility cycling and structure editing
275      * as an ASCII system and table editor for taking structured notes
276      * as an ASCII table editor with spreadsheet-like capabilities
277      * as a TODO list editor
278      * as a full agenda and planner with deadlines and work scheduling
279      * as a simple hypertext system, with HTML export
280      * as a publishing tool to create a set of interlinked webpages
282    The Org-mode table editor can be integrated into any major mode by
283 activating the minor Orgtbl-mode.
285    There is a website for Org-mode which provides links to the newest
286 version of Org-mode, as well as additional information, frequently asked
287 questions (FAQ), links to tutorials etc.  This page is located at
288 `http://www.astro.uva.nl/~dominik/Tools/org/'.
290 \x1f
291 File: org,  Node: Installation,  Next: Feedback,  Prev: Summary,  Up: Introduction
293 1.2 Installation and Activation
294 ===============================
296 If Org-mode is part of the Emacs distribution or an XEmacs package, you
297 only need to copy the following lines to your `.emacs' file.  The last
298 two lines define _global_ keys for the commands `org-store-link' and
299 `org-agenda' - please choose suitable keys yourself.
301      ;; The following lines are always needed.  Choose your own keys.
302      (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
303      (define-key global-map "\C-cl" 'org-store-link)
304      (define-key global-map "\C-ca" 'org-agenda)
306    Furthermore, you must activate `font-lock-mode' in org-mode buffers,
307 because significant functionality depends on font-locking being active.
308 You can do this with either one of the following two lines:
309      (global-font-lock-mode 1)                     ; for all buffers
310      (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only
312    If you have downloaded Org-mode from the Web, you must take
313 additional action:  Byte-compile `org.el' and `org-publish.el' and put
314 them together with `org-install.el' on your load path.  Then add to
315 `.emacs':
317      ;; This line only if org-mode is not part of the X/Emacs distribution.
318      (require 'org-install)
320    If you use Org-mode with XEmacs, you also need to install the file
321 `noutline.el' from the `xemacs' subdirectory of the Org-mode
322 distribution.
324    With this setup, all files with extension `.org' will be put into
325 Org-mode.  As an alternative, make the first line of a file look like
326 this:
328      MY PROJECTS    -*- mode: org; -*-
330 which will select Org-mode for this buffer no matter what the file's
331 name is.  See also the variable `org-insert-mode-line-in-empty-file'.
333 \x1f
334 File: org,  Node: Feedback,  Prev: Installation,  Up: Introduction
336 1.3 Feedback
337 ============
339 If you find problems with Org-mode, or if you have questions, remarks,
340 or ideas about it, please contact the maintainer Carsten Dominik at
341 <dominik@science.uva.nl>.
343    For bug reports, please provide as much information as possible,
344 including the version information of Emacs (`C-h v emacs-version
345 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
346 Org-mode related setup in `.emacs'.  If an error occurs, a traceback
347 can be very useful.  Often a small example file helps, along with clear
348 information about:
350   1. What exactly did you do?
352   2. What did you expect to happen?
354   3. What happened instead?
355         Thank you for helping to improve this mode.
357 \x1f
358 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
360 2 Document Structure
361 ********************
363 Org-mode is based on outline mode and provides flexible commands to
364 edit the structure of the document.
366 * Menu:
368 * Outlines::                    Org-mode is based on outline-mode
369 * Headlines::                   How to typeset org-tree headlines
370 * Visibility cycling::          Show and hide, much simplified
371 * Motion::                      Jumping to other headlines
372 * Structure editing::           Changing sequence and level of headlines
373 * Archiving::                   Move done task trees to a different place
374 * Sparse trees::                Matches embedded in context
375 * Plain lists::                 Editing hand-formatted lists
377 \x1f
378 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
380 2.1 Outlines
381 ============
383 Org-mode is implemented on top of outline-mode.  Outlines allow to
384 organize a document in a hierarchical structure, which (at least for
385 me) is the best representation of notes and thoughts.  Overview over
386 this structure is achieved by folding (hiding) large parts of the
387 document to show only the general document structure and the parts
388 currently being worked on.  Org-mode greatly simplifies the use of
389 outlines by compressing the entire show/hide functionality into a
390 single command `org-cycle', which is bound to the <TAB> key.
392 \x1f
393 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
395 2.2 Headlines
396 =============
398 Headlines define the structure of an outline tree.  The headlines in
399 Org-mode start with one or more stars, on the left margin.  For example:
401      * Top level headline
402      ** Second level
403      *** 3rd level
404          some text
405      *** 3rd level
406          more text
407      * Another top level headline
409 Some people find the many stars too noisy and would prefer an outline
410 that has whitespace followed by a single star as headline starters.
411 *Note Clean view:: describes a setup to realize this.
413 \x1f
414 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
416 2.3 Visibility cycling
417 ======================
419 Outlines make it possible to hide parts of the text in the buffer.
420 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
421 the visibility in the buffer.
423 `<TAB>'
424      _Subtree cycling_: Rotate current subtree between the states
426           ,-> FOLDED -> CHILDREN -> SUBTREE --.
427           '-----------------------------------'
429      The cursor must be on a headline for this to work(1).  When the
430      cursor is at the beginning of the buffer and the first line is not
431      a headline, then <TAB> actually runs global cycling (see
432      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
433      global cycling is invoked.
435 `S-<TAB>'
436 `C-u <TAB>'
437      _Global cycling_: Rotate the entire buffer between the states
439           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
440           '--------------------------------------'
442      Note that inside tables, `S-<TAB>' jumps to the previous field.
444 `C-c C-a'
445      Show all.
447    When Emacs first visits an Org-mode file, the global state is set to
448 OVERVIEW, i.e. only the top level headlines are visible.  This can be
449 configured through the variable `org-startup-folded', or on a per-file
450 basis by adding one of the following lines anywhere in the buffer:
452      #+STARTUP: overview
453      #+STARTUP: content
454      #+STARTUP: showall
456    ---------- Footnotes ----------
458    (1) see, however, the option `org-cycle-emulate-tab'.
460    (2) see the option `org-cycle-global-at-bob'.
462 \x1f
463 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
465 2.4 Motion
466 ==========
468 The following commands jump to other headlines in the buffer.
470 `C-c C-n'
471      Next heading.  
473 `C-c C-p'
474      Previous heading.  
476 `C-c C-f'
477      Next heading same level.  
479 `C-c C-b'
480      Previous heading same level.  
482 `C-c C-u'
483      Backward to higher level heading.  
485 `C-c C-j'
486      Jump to a different place without changing the current outline
487      visibility.  Shows the document structure in a temporary buffer,
488      where you can use visibility cycling (<TAB>) to find your
489      destination.  After pressing <RET>, the cursor moves to the
490      selected location in the original buffer, and the headings
491      hierarchy above it is made visible.
493 \x1f
494 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
496 2.5 Structure editing
497 =====================
499 `M-<RET>'
500      Insert new heading with same level as current.  If the cursor is
501      in a plain list item, a new item is created (*note Plain lists::).
502      To force creation of a new headline, use a prefix arg, or first
503      press <RET> to get to the beginning of the next line.  When this
504      command is used in the middle of a line, the line is split and the
505      rest of the line becomes the new headline.  If the command is used
506      at the beginning of a headline, the new headline is created before
507      the current line.  If at the beginning of any other line, the
508      content of that line is made the new heading.  
510 `M-S-<RET>'
511      Insert new TODO entry with same level as current heading.  
513 `M-<left>'
514      Promote current heading by one level.  
516 `M-<right>'
517      Demote current heading by one level.  
519 `M-S-<left>'
520      Promote the current subtree by one level.  
522 `M-S-<right>'
523      Demote the current subtree by one level.  
525 `M-S-<up>'
526      Move subtree up (swap with previous subtree of same level).  
528 `M-S-<down>'
529      Move subtree down (swap with next subtree of same level).  
531 `C-c C-x C-w'
532 `C-c C-x C-k'
533      Kill subtree, i.e. remove it from buffer but save in kill ring.  
535 `C-c C-x M-w'
536      Copy subtree to kill ring.  
538 `C-c C-x C-y'
539      Yank subtree from kill ring.  This does modify the level of the
540      subtree to make sure the tree fits in nicely at the yank position.
541      The yank level can also be specified with a prefix arg, or by
542      yanking after a headline marker like `****'.
544    When there is an active region (transient-mark-mode), promotion and
545 demotion work on all headlines in the region.  To select a region of
546 headlines, it is best to place both point and mark at the beginning of a
547 line, mark at the beginning of the first headline, and point at the line
548 just after the last headline to change.  Note that when the cursor is
549 inside a table (*note Tables::), the Meta-Cursor keys have different
550 functionality.
552 \x1f
553 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
555 2.6 Archiving
556 =============
558 When a project represented by a (sub)tree is finished, you may want to
559 move the tree out of the way and to stop it from contributing to the
560 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
561 the ARCHIVE tag, or you can move an entire (sub)tree to a different
562 location.
564 * Menu:
566 * ARCHIVE tag::                 Marking a tree as inactive
567 * Moving subtrees::             Moving a tree to an archive file
569 \x1f
570 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
572 2.6.1 The ARCHIVE tag
573 ---------------------
575 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
576 its location in the outline tree, but behaves in the following way:
577    - It does not open when you attempt to do so with a visibility
578      cycling command (*note Visibility cycling::).  You can still open
579      it with a normal outline command like `show-all'.  Or you can
580      modify the option `org-cycle-open-archived-trees'.
582    - During sparse tree construction (*note Sparse trees::), matches in
583      archived subtrees are not exposed, unless you configure the option
584      `org-sparse-tree-open-archived-trees'.
586    - During agenda view construction (*note Agenda views::), the
587      content of archived trees is ignored unless you configure the
588      option `org-agenda-skip-archived-trees'.
590    - Archived trees are not exported (*note Exporting::), only the
591      headline is.  Configure the details using the variable
592      `org-export-with-archived-trees'.
594    The following commands allow to set or clear the ARCHIVE tag:
596 `C-c C-x C-a'
597      Toggle the ARCHIVE tag for the current headline.  When the tag is
598      set, the headline changes to a shadowish face, and the subtree
599      below it is hidden.  
601 `C-u C-c C-x C-a'
602      Check if any direct children of the current headline should be
603      archived.  To do this, each subtree is checked for open TODO
604      entries.  If none are found, the command offers to set the ARCHIVE
605      tag for the child.  If the cursor is _not_ on a headline when this
606      command is invoked, the level 1 trees will be checked.
608 \x1f
609 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
611 2.6.2 Moving subtrees
612 ---------------------
614 Once an entire project is finished, you may want to move it to a
615 different location, either in the current file, or even in a different
616 file, the archive file.
618 `C-c $'
619      Archive the subtree starting at the cursor position to the location
620      given by `org-archive-location'.  
622 `C-u C-c $'
623      Check if any direct children of the current headline could be
624      moved to the archive.  To do this, each subtree is checked for
625      open TODO entries.  If none are found, the command offers to move
626      it to the archive location.  If the cursor is _not_ on a headline
627      when this command is invoked, the level 1 trees will be checked.
629    The default archive location is a file in the same directory as the
630 current file, with the name derived by appending `_archive' to the
631 current file name.  For information and examples on how to change this,
632 see the documentation string of the variable `org-archive-location'.
634 \x1f
635 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
637 2.7 Sparse trees
638 ================
640 An important feature of Org-mode is the ability to construct _sparse
641 trees_ for selected information in an outline tree.  A sparse tree
642 means that the entire document is folded as much as possible, but the
643 selected information is made visible along with the headline structure
644 above it(1).  Just try it out and you will see immediately how it works.
646    Org-mode contains several commands creating such trees.  The most
647 basic one is `org-occur':
649 `C-c /'
650      Occur.  Prompts for a regexp and shows a sparse tree with all
651      matches.  If the match is in a headline, the headline is made
652      visible.  If the match is in the body of an entry, headline and
653      body are made visible.  In order to provide minimal context, also
654      the full hierarchy of headlines above the match is shown, as well
655      as the headline following the match.  Each match is also
656      highlighted; the highlights disappear when the buffer is changed
657      with an editing command.
658    For frequently used sparse trees of specific search strings, you can
659 use the variable `org-agenda-custom-commands' to define fast keyboard
660 access to specific sparse trees.  These commands will then be
661 accessible through the agenda dispatcher (*note Agenda dispatcher::).
662 For example:
664      (setq org-agenda-custom-commands
665            '(("f" occur-tree "FIXME")))
667 will define the key `C-c a f' as a shortcut for creating a sparse tree
668 matching the string `FIXME'.
670    Other commands use sparse trees as well.  For example `C-c C-v'
671 creates a sparse TODO tree (*note TODO basics::).
673    To print a sparse tree, you can use the Emacs command
674 `ps-print-buffer-with-faces' which does not print invisible parts of
675 the document (2).  Or you can use the command `C-c C-x v' to export
676 only the visible part of the document and print the resulting file.
678    ---------- Footnotes ----------
680    (1) See also the variables `org-show-hierarchy-above' and
681 `org-show-following-heading'.
683    (2) This does not work under XEmacs, because XEmacs uses selective
684 display for outlining, not text properties.
686 \x1f
687 File: org,  Node: Plain lists,  Prev: Sparse trees,  Up: Document structure
689 2.8 Plain lists
690 ===============
692 Headlines define both the structure of the Org-mode file, and also lists
693 (for example, TODO items (*note TODO items::) should be created using
694 headline levels).  When taking notes, however, the plain text is
695 sometimes easier to read with hand-formatted lists.  Org-mode supports
696 editing such lists, and the HTML exporter (*note Exporting::) does
697 parse and format them.
699    Org-mode knows ordered and unordered lists.  Unordered list items
700 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
701 with `1.' or `1)'.  Items belonging to the same list must have the same
702 indentation on the first line.  In particular, if an ordered list
703 reaches number `10.', then the 2-digit numbers must be written
704 left-aligned with the other numbers in the list.  Indentation also
705 determines the end of a list item.  It ends before the next line that
706 is indented like the bullet/number, or less.  For example:
708      ** Lord of the Rings
709      My favorite scenes are (in this order)
710      1. Eowyns fight with the witch king
711         + this was already my favorite scene in the book
712         + I really like Miranda Otto.
713      2. The attack of the Rohirrim
714      3. Peter Jackson being shot by Legolas
715          - on DVD only
716         He makes a really funny face when it happens.
717      But in the end, not individual scenes matter but the film as a whole.
719    Org-mode supports these lists by tuning filling and wrapping commands
720 to deal with them correctly.
722    Every item in a plain list can be made a checkbox by starting it with
723 the string `[ ]'.  The checkbox status can conveniently be toggled with
724 `C-c C-c'.
726      * Stupid mistakes when distributing a new version
727        - [ ] update also Emacs CVS
728        - [X] forget to update index.html on the website
729        - [X] leaving a `(debug)' form in the code
731    The following commands act on items when the cursor is in the first
732 line of an item (the line with the bullet or number).
734 `<TAB>'
735      Items can be folded just like headline levels if you set the
736      variable `org-cycle-include-plain-lists'.  The level of an item is
737      then given by the indentation of the bullet/number.  Items are
738      always subordinate to real headlines, however; the hierarchies
739      remain completely separated.  
741 `M-<RET>'
742      Insert new item at current level.  With prefix arg, force a new
743      heading (*note Structure editing::).  If this command is used in
744      the middle of a line, the line is _split_ and the rest of the line
745      becomes the new item.  If this command is executed in the
746      _whitespace before a bullet or number_, the new item is created
747      _before_ the current item.  If the command is executed in the
748      white space before the text that is part of an item but does not
749      contain the bullet, a bullet is added to the current line.  
751 `M-S-<RET>'
752      Insert a new item with a checkbox.  
754 `S-<up>'
755 `S-<down>'
756      Jump to the previous/next item in the current list.  
758 `M-S-<up>'
759 `M-S-<down>'
760      Move the item including subitems up/down (swap with previous/next
761      item of same indentation).  If the list is ordered, renumbering is
762      automatic.  
764 `M-S-<left>'
765 `M-S-<right>'
766      Decrease/increase the indentation of the item, including subitems.
767      Initially, the item tree is selected based on current indentation.
768      When these commands are executed several times in direct
769      succession, the initially selected region is used, even if the new
770      indentation would imply a different hierarchy.  To use the new
771      hierarchy, break the command chain with a cursor motion or so.  
773 `C-c C-c'
774      If there is a checkbox in the item line, toggle the state of the
775      checkbox.  Otherwise, if this is an ordered list, renumber the
776      ordered list at the cursor.
778    ---------- Footnotes ----------
780    (1) When using `*' as a bullet, lines must be indented or they will
781 be seen as top-level headlines.  Also, when you are hiding leading
782 stars to get a clean outline view, plain list items starting with a
783 star are visually indistinguishable from true headlines.  In short:
784 even though `*' is supported, it may be better not to use it for plain
785 list items
787 \x1f
788 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
790 3 Tables
791 ********
793 Org-mode has a very fast and intuitive table editor built-in.
794 Spreadsheet-like calculations are supported in connection with the
795 Emacs `calc' package.
797 * Menu:
799 * Built-in table editor::       Simple tables
800 * Narrow columns::              Stop wasting space in tables
801 * Table calculations::          Compute a field from other fields
802 * orgtbl-mode::                 The table editor as minor mode
803 * table.el::                    Complex tables
805 \x1f
806 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
808 3.1 The built-in table editor
809 =============================
811 Org-mode makes it easy to format tables in plain ASCII.  Any line with
812 `|' as the first non-white character is considered part of a table.
813 `|' is also the column separator.  A table might look like this:
815      | Name  | Phone | Age |
816      |-------+-------+-----|
817      | Peter |  1234 |  17 |
818      | Anna  |  4321 |  25 |
820    A table is re-aligned automatically each time you press <TAB> or
821 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
822 field (<RET> to the next row) and creates new table rows at the end of
823 the table or before horizontal lines.  The indentation of the table is
824 set by the first line.  Any line starting with `|-' is considered as a
825 horizontal separator line and will be expanded on the next re-align to
826 span the whole table width.  So, to create the above table, you would
827 only type
829      |Name|Phone|Age
830      |-
832 and then press <TAB> to align the table and start filling in fields.
834    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
835 and all character keys in a special way, so that inserting and deleting
836 avoids shifting other fields.  Also, when typing _immediately after the
837 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
838 the field is automatically made blank.  If this behavior is too
839 unpredictable for you, configure the variables
840 `org-enable-table-editor' and `org-table-auto-blank-field'.
842 Creation and conversion
843 .......................
845 `C-c |'
846      Convert the active region to table. If every line contains at
847      least one TAB character, the function assumes that the material is
848      tab separated.  If not, lines are split at whitespace into fields.
849      You can use a prefix argument to indicate the minimum number of
850      consecutive spaces required to identify a field separator
851      (default: just one).
852      If there is no active region, this command creates an empty
853      Org-mode table.  But it's easier just to start typing, like
854      `|Name|Phone|Age <RET> |- <TAB>'.
856 Re-aligning and field motion
857 ............................
859 `C-c C-c'
860      Re-align the table without moving the cursor.
862 `<TAB>'
863      Re-align the table, move to the next field.  Creates a new row if
864      necessary.
866 `S-<TAB>'
867      Re-align, move to previous field.
869 `<RET>'
870      Re-align the table and move down to next row.  Creates a new row if
871      necessary.  At the beginning or end of a line, <RET> still does
872      NEWLINE, so it can be used to split a table.
874 Column and row editing
875 ......................
877 `M-<left>'
878 `M-<right>'
879      Move the current column left/right.
881 `M-S-<left>'
882      Kill the current column.
884 `M-S-<right>'
885      Insert a new column to the left of the cursor position.
887 `M-<up>'
888 `M-<down>'
889      Move the current row up/down.
891 `M-S-<up>'
892      Kill the current row or horizontal line.
894 `M-S-<down>'
895      Insert a new row above (with arg: below) the current row.
897 `C-c -'
898      Insert a horizontal line below current row. With prefix arg, the
899      line is created above the current line.
901 `C-c ^'
902      Sort the table lines in the region.  Point and mark must be in the
903      first and last line to be included, and must be in the column that
904      should be used for sorting.  The command prompts for numerical
905      versus alphanumerical sorting.
907 Regions
908 .......
910 `C-c C-x M-w'
911      Copy a rectangular region from a table to a special clipboard.
912      Point and mark determine edge fields of the rectangle.  The
913      process ignores horizontal separator lines.  
915 `C-c C-x C-w'
916      Copy a rectangular region from a table to a special clipboard, and
917      blank all fields in the rectangle.  So this is the "cut" operation.  
919 `C-c C-x C-y'
920      Paste a rectangular region into a table.  The upper right corner
921      ends up in the current field.  All involved fields will be
922      overwritten.  If the rectangle does not fit into the present table,
923      the table is enlarged as needed.  The process ignores horizontal
924      separator lines.  
926 `C-c C-q'
927      Wrap several fields in a column like a paragraph.  If there is an
928      active region, and both point and mark are in the same column, the
929      text in the column is wrapped to minimum width for the given
930      number of lines.  A prefix ARG may be used to change the number of
931      desired lines.  If there is no region, the current field is split
932      at the cursor position and the text fragment to the right of the
933      cursor is prepended to the field one line down. If there is no
934      region, but you specify a prefix ARG, the current field is made
935      blank, and the content is appended to the field above.
937 Calculations
938 ............
940 `C-c ='
941      Install a new formula for the current column and replace current
942      field with the result of the formula.
944 `C-u C-c ='
945      Install a new formula for the current field, which must be a named
946      field.  Evaluate the formula and replace the field content with the
947      result.
949 `C-c ''
950      Edit all formulas associated with the current table in a separate
951      buffer.
953 `C-c *'
954      Recalculate the current row by applying the stored formulas from
955      left to right.  When called with a `C-u' prefix, recalculate the
956      entire table, starting with the first non-header line (i.e. below
957      the first horizontal separator line).  For details, see *Note
958      Table calculations::.
960 `C-#'
961      Rotate the calculation mark in first column through the states `',
962      `#', `*', `!', `$'.  For the meaning of these marks see *Note
963      Advanced features::.  When there is an active region, change all
964      marks in the region.
966 `C-c ?'
967      Which table column is the cursor in?  Displays number >0 in echo
968      area.
970 `C-c +'
971      Sum the numbers in the current column, or in the rectangle defined
972      by the active region.  The result is shown in the echo area and can
973      be inserted with `C-y'.
975 `S-<RET>'
976      When current field is empty, copy from first non-empty field above.
977      When not empty, copy current field down to next row and move cursor
978      along with it.  Depending on the variable
979      `org-table-copy-increment', integer field values will be
980      incremented during copy.  This key is also used by CUA-mode (*note
981      Cooperation::).
983 Miscellaneous
984 .............
986 `C-c `'
987      Edit the current field in a separate window.  This is useful for
988      fields that are not fully visible (*note Narrow columns::).  When
989      called with a `C-u' prefix, just make the full field visible, so
990      that it can be edited in place.
992 `C-c <TAB>'
993      This is an alias for `C-u C-c `' to make the current field fully
994      visible.
996 `M-x org-table-import'
997      Import a file as a table.  The table should be TAB- or whitespace
998      separated.  Useful, for example, to import an Excel table or data
999      from a database, because these programs generally can write
1000      TAB-separated text files.  This command works by inserting the
1001      file into the buffer and then converting the region to a table.
1002      Any prefix argument is passed on to the converter, which uses it
1003      to determine the separator.
1005 `M-x org-table-export'
1006      Export the table as a TAB-separated file.  Useful for data
1007      exchange with, for example, Excel or database programs.
1010    If you don't like the automatic table editor because it gets in your
1011 way on lines which you would like to start with `|', you can turn it
1012 off with
1014      (setq org-enable-table-editor nil)
1016 Then the only table command that still works is `C-c C-c' to do a
1017 manual re-align.
1019 \x1f
1020 File: org,  Node: Narrow columns,  Next: Table calculations,  Prev: Built-in table editor,  Up: Tables
1022 3.2 Narrow columns
1023 ==================
1025 The width of columns is automatically determined by the table editor.
1026 Sometimes a single field or a few fields need to carry more text,
1027 leading to inconveniently wide columns.  To limit(1) the width of a
1028 column, one field anywhere in the column may contain just the string
1029 `<N>' where `N' is an integer specifying the width of the column in
1030 characters.  The next re-align will then set the width of this column
1031 to no more than this value.
1033      |---+------------------------------|               |---+--------|
1034      |   |                              |               |   | <6>    |
1035      | 1 | one                          |               | 1 | one    |
1036      | 2 | two                          |     ----\     | 2 | two    |
1037      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1038      | 4 | four                         |               | 4 | four   |
1039      |---+------------------------------|               |---+--------|
1041 Fields that are wider become clipped and end in the string `=>'.  Note
1042 that the full text is still in the buffer, it is only invisible.  To
1043 see the full text, hold the mouse over the field - a tooltip window
1044 will show the full content.  To edit such a field, use the command `C-c
1045 `' (that is `C-c' followed by the backquote).  This will open a new
1046 window with the full field.  Edit it and finish with `C-c C-c'.
1048    When visiting a file containing a table with narrowed columns, the
1049 necessary character hiding has not yet happened, and the table needs to
1050 be aligned before it looks nice.  Setting the option
1051 `org-startup-align-all-tables' will realign all tables in a file upon
1052 visiting, but also slow down startup.  You can also set this option on
1053 a per-file basis with:
1055      #+STARTUP: align
1056      #+STARTUP: noalign
1058    ---------- Footnotes ----------
1060    (1) This feature does not work on XEmacs.
1062 \x1f
1063 File: org,  Node: Table calculations,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1065 3.3 Calculations in tables
1066 ==========================
1068 The table editor makes use of the Emacs `calc' package to implement
1069 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1070 derive fields from other fields.  Org-mode has two levels of complexity
1071 for table calculations.  On the basic level, tables do only horizontal
1072 computations, so a field can be computed from other fields _in the same
1073 row_, and Org-mode assumes that there is only one formula for each
1074 column.  This is very efficient to work with and enough for many tasks.
1075 On the complex level, columns and individual fields can be named for
1076 easier referencing in formulas, individual named fields can have their
1077 own formula associated with them, and recalculation can be automated.
1079 * Menu:
1081 * Formula syntax::              How to write a formula
1082 * Lisp formulas::               An alternative way to write formulas
1083 * Column formulas::             Formulas valid for all fields in a column
1084 * Advanced features::           Field names, parameters and automatic recalc
1085 * Named-field formulas::        Formulas valid in single fields
1086 * Editing/debugging formulas::  Changing a stored formula
1087 * Appetizer::                   Taste the power of calc
1089 \x1f
1090 File: org,  Node: Formula syntax,  Next: Lisp formulas,  Prev: Table calculations,  Up: Table calculations
1092 3.3.1 Formula syntax
1093 --------------------
1095 A formula can be any algebraic expression understood by the Emacs
1096 `calc' package.  Note that `calc' has the slightly non-standard
1097 convention that `/' has lower precedence than `*', so that `a/b*c' is
1098 interpreted as `a/(b*c)'.  Before evaluation by `calc-eval' (*note
1099 calc-eval: (calc)Calling Calc from Your Programs.), variable
1100 substitution takes place:
1102        $        refers to the current field
1103        $3       refers to the field in column 3 of the current row
1104        $3..$7   a vector of the fields in columns 3-7 of current row
1105        $P1..$P3 vector of column range, using column names
1106        &2       second data field above the current, in same column
1107        &5-2     vector from fifth to second field above current
1108        &III-II  vector of fields between 2nd and 3rd hline above
1109        &III     vector of fields between third hline above and current field
1110        $name    a named field, parameter or constant
1112    The range vectors can be directly fed into the calc vector functions
1113 like `vmean' and `vsum'.
1115    `$name' is interpreted as the name of a column, parameter or
1116 constant.  Constants are defined globally through the variable
1117 `org-table-formula-constants'.  If you have the `constants.el' package,
1118 it will also be used to resolve constants, including natural constants
1119 like `$h' for Planck's constant, and units like `$km' for kilometers.
1120 Column names and parameters can be specified in special table lines.
1121 These are described below, see *Note Advanced features::.
1123    A formula can contain an optional mode string after a semicolon.
1124 This string consists of flags to influence calc's modes(1) during
1125 execution, e.g.  `p20' to switch the internal precision to 20 digits,
1126 `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
1127 or fixed display format, respectively, and `D', `R', `F', and `S' to
1128 turn on degrees, radians, fraction and symbolic modes, respectively.
1129 In addition, you may provide a `printf' format specifier to reformat
1130 the final result.  A few examples:
1132      $1+$2                Sum of first and second field
1133      $1+$2;%.2f           Same, format result to two decimals
1134      exp($2)+exp($1)      Math functions can be used
1135      $;%.1f               Reformat current cell to 1 decimal
1136      ($3-32)*5/9          Degrees F -> C conversion
1137      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1138      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1139      sin($1);Dp3%.1e      Same, but use printf specifier for display
1140      vmean($2..$7)        Compute column range mean, using vector function
1141      vsum(&III)           Sum numbers from 3rd hline above, up to here
1142      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1144    ---------- Footnotes ----------
1146    (1) By default, Org-mode uses the standard calc modes (precision 12,
1147 angular units degrees, fraction and symbolic modes off).  The display
1148 format, however, has been changed to `(float 5)' to keep tables compact.
1149 The default settings can be configured using the variable
1150 `org-calc-default-modes'.
1152 \x1f
1153 File: org,  Node: Lisp formulas,  Next: Column formulas,  Prev: Formula syntax,  Up: Table calculations
1155 3.3.2 Emacs Lisp forms as formulas
1156 ----------------------------------
1158 It is also possible to write a formula in Emacs lisp; this can be useful
1159 for string manipulation and control structures.  If a formula starts
1160 with a single quote followed by an opening parenthesis, then it is
1161 evaluated as a lisp form.  The evaluation should return either a string
1162 or a number.  Just as with `calc' formulas, you can provide a format
1163 specifier after a semicolon.  A few examples:
1165      swap the first two characters of the content of column 1
1166      '(concat (substring "$1" 1 2) (substring "$1" 0 1) (substring "$1" 2))
1167      Add columns 1 and 2, equivalent to the calc's `$1+$2'
1168      '(+ $1 $2)
1170 \x1f
1171 File: org,  Node: Column formulas,  Next: Advanced features,  Prev: Lisp formulas,  Up: Table calculations
1173 3.3.3 Column formulas
1174 ---------------------
1176 To apply a formula to a field, type it directly into the field,
1177 preceded by an equal sign, like `=$1+$2'.  When you press <TAB> or
1178 <RET> or `C-c C-c' with the cursor still in the field, the formula will
1179 be stored as the formula for the current column, evaluated and the
1180 current field replaced with the result.  If the field contains only
1181 `=', the previously stored formula for this column is used.
1183    For each column, Org-mode will remember the most recently used
1184 formula.  The information is stored in a special line starting with
1185 `#+TBLFM' directly below the table.  When adding/deleting/moving
1186 columns with the appropriate commands, the stored equations will be
1187 modified accordingly.  When a column used in a calculation is removed,
1188 references to this column become invalid and will cause an error upon
1189 applying the equation.
1191    Instead of typing an equation into the field, you may also use the
1192 command `C-c ='.  It prompts for a formula (with default taken from the
1193 `#+TBLFM:' line) and applies it to the current field.  A numerical
1194 prefix (e.g. `C-5 C-c =') will apply it to that many consecutive fields
1195 in the current column.
1197    To recompute all the fields in a line, use the command `C-c *'.  It
1198 re-applies all stored equations to the current row, from left to right.
1199 With a `C-u' prefix, this will be done to every line in the table, so
1200 use this command it you want to make sure the entire table is
1201 up-to-date. `C-u C-c C-c' is another way to update the entire table.
1202 Global updating does not touch the line(s) above the first horizontal
1203 separator line, assuming that this is the table header.
1205 \x1f
1206 File: org,  Node: Advanced features,  Next: Named-field formulas,  Prev: Column formulas,  Up: Table calculations
1208 3.3.4 Advanced features
1209 -----------------------
1211 If you want the recalculation of fields to happen automatically, or if
1212 you want to be able to assign a formula to an individual field (instead
1213 of an entire column) you need to reserve the first column of the table
1214 for special marking characters.  Here is an example of a table that
1215 collects exam results of students and makes use of these features:
1217      |---+---------+--------+--------+--------+-------+------|
1218      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1219      |---+---------+--------+--------+--------+-------+------|
1220      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1221      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1222      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1223      |---+---------+--------+--------+--------+-------+------|
1224      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1225      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1226      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1227      |---+---------+--------+--------+--------+-------+------|
1228      |   | Average |        |        |        |  29.7 |      |
1229      | ^ |         |        |        |        |    at |      |
1230      | $ | max=50  |        |        |        |       |      |
1231      |---+---------+--------+--------+--------+-------+------|
1232      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
1234 Important: Please note that for these special tables, recalculating the
1235 table with `C-u C-c *' will only affect rows that are marked `#' or
1236 `*', and named fields.  The column formulas are not applied in rows
1237 with empty first field.
1239    The marking characters have the following meaning:
1241      The fields in this line define names for the columns, so that you
1242      may refer to a column as `$Tot' instead of `$6'.
1245      This row defines names for the fields _above_ the row.  With such
1246      a definition, any formula in the table may use `$m1' to refer to
1247      the value `10'.  Also, named fields can have their own formula
1248      associated with them.
1251      Similar to `^', but defines names for the fields in the row
1252      _below_.
1255      Fields in this row can define _parameters_ for formulas.  For
1256      example, if a field in a `$' row contains `max=50', then formulas
1257      in this table can refer to the value 50 using `$max'.  Parameters
1258      work exactly like constants, only that they can be defined on a
1259      per-table basis.  Changing a parameter and then recalculating the
1260      table can be useful.
1263      Fields in this row are automatically recalculated when pressing
1264      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1265      selected for a global recalculation with `C-u C-c *'.  Unmarked
1266      lines will be left alone by this command.
1269      Selects this line for global recalculation with `C-u C-c *', but
1270      not for automatic recalculation.  Use this when automatic
1271      recalculation slows down editing too much.
1274      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1275      All lines that should be recalculated should be marked with `#' or
1276      `*'.
1278 \x1f
1279 File: org,  Node: Named-field formulas,  Next: Editing/debugging formulas,  Prev: Advanced features,  Up: Table calculations
1281 3.3.5 Named-field formulas
1282 --------------------------
1284 A named field can have its own formula associated with it.  In the
1285 example above, this is used for the `at' field that contains the
1286 average result of the students.  To enter a formula for a named field,
1287 just type it into the buffer, preceded by `:='.  Or use `C-u C-c ='.
1288 This equation will be stored below the table like `$name=...'.  Any
1289 recalculation in the table (even if only requested for the current
1290 line) will also update all named field formulas.
1292 \x1f
1293 File: org,  Node: Editing/debugging formulas,  Next: Appetizer,  Prev: Named-field formulas,  Up: Table calculations
1295 3.3.6 Editing and debugging formulas
1296 ------------------------------------
1298 To edit a column or field formula, use the commands `C-c =' and `C-u
1299 C-c =', respectively.  The currently active expression is then
1300 presented as default in the minibuffer, where it may be edited.
1302    Note that making a table field blank does not remove the formula
1303 associated with the field - during the next recalculation the field
1304 will be filled again.  To remove a formula from a field, you have to
1305 give an empty reply when prompted for the formula, or to edit the
1306 `#+TBLFM' line.
1308    You may edit the `#+TBLFM' directly and re-apply the changed
1309 equations with `C-c C-c' in that line, or with the normal recalculation
1310 commands in the table.
1312    In particular for large tables with many formulas, it is convenient
1313 to use the command `C-c '' to edit the formulas of the current table in
1314 a separate buffer.  That buffer will show the formulas one per line,
1315 and you are free to edit, add and remove formulas.  Press `C-c ?' on a
1316 `$...'  expression to get information about its interpretation.
1317 Exiting the buffer with `C-c C-c' only stores the modified formulas
1318 below the table.  Exiting with `C-u C-c C-c' also applies them to the
1319 entire table.  `C-c C-q' exits without installing the changes.
1321    When the evaluation of a formula leads to an error, the field content
1322 becomes the string `#ERROR'.  If you would like see what is going on
1323 during variable substitution and calculation in order to find a bug,
1324 turn on formula debugging in the menu and repeat the calculation, for
1325 example by pressing `C-c = <RET>' in a field.  Detailed information
1326 will be displayed.
1328 \x1f
1329 File: org,  Node: Appetizer,  Prev: Editing/debugging formulas,  Up: Table calculations
1331 3.3.7 Appetizer
1332 ---------------
1334 Finally, just to whet your appetite on what can be done with the
1335 fantastic `calc' package, here is a table that computes the Taylor
1336 series for a couple of functions (homework: try that with Excel :-)
1338      |---+-------------+---+-----+--------------------------------------|
1339      |   | Func        | n | x   | Result                               |
1340      |---+-------------+---+-----+--------------------------------------|
1341      | # | exp(x)      | 1 | x   | 1 + x                                |
1342      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1343      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1344      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1345      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1346      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1347      |---+-------------+---+-----+--------------------------------------|
1348      #+TBLFM: $5=taylor($2,$4,$3);n3
1350 \x1f
1351 File: org,  Node: orgtbl-mode,  Next: table.el,  Prev: Table calculations,  Up: Tables
1353 3.4 The Orgtbl minor mode
1354 =========================
1356 If you like the intuitive way the Org-mode table editor works, you
1357 might also want to use it in other modes like text-mode or mail-mode.
1358 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1359 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1360 in mail mode, use
1362      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1364 \x1f
1365 File: org,  Node: table.el,  Prev: orgtbl-mode,  Up: Tables
1367 3.5 The `table.el' package
1368 ==========================
1370 Complex ASCII tables with automatic line wrapping, column- and
1371 row-spanning, and alignment can be created using the Emacs table
1372 package by Takaaki Ota (`http://sourceforge.net/projects/table', and
1373 also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in such a
1374 table, Org-mode will call `table-recognize-table' and move the cursor
1375 into the table.  Inside a table, the keymap of Org-mode is inactive.
1376 In order to execute Org-mode-related commands, leave the table.
1378 `C-c C-c'
1379      Recognize `table.el' table.  Works when the cursor is in a
1380      table.el table.
1382 `C-c ~'
1383      Insert a table.el table.  If there is already a table at point,
1384      this command converts it between the table.el format and the
1385      Org-mode format.  See the documentation string of the command
1386      `org-convert-table' for the restrictions under which this is
1387      possible.
1389 \x1f
1390 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1392 4 Hyperlinks
1393 ************
1395 Just like HTML, Org-mode provides links inside a file, and external
1396 links to other files, Usenet articles, emails, and much more.
1398 * Menu:
1400 * Link format::                 How links in Org-mode are formatted
1401 * Internal links::              Links to other places in the current file
1402 * External links::              URL-like links to the world
1403 * Handling links::              Creating, inserting and following
1404 * Search options::              Linking to a specific location
1405 * Custom searches::             When the default search is not enough
1406 * Remember::                    Org-trees store quick notes
1408 \x1f
1409 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1411 4.1 Link format
1412 ===============
1414 Org-mode will recognize plain URL-like links and activate them as
1415 clickable links.  The general link format, however, looks like this:
1417      [[link][description]]       or alternatively           [[link]]
1419    Once a link in the buffer is complete (all brackets present),
1420 Org-mode will change the display so that `description' is displayed
1421 instead of `[[link][description]]' and `link' is displayed instead of
1422 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1423 default is an underlined face.  You can directly edit the visible part
1424 of a link.  Note that this can be either the `link' part (if there is
1425 no description) or the `description' part.  To edit also the invisible
1426 `link' part, use `C-c C-l' with the cursor on the link.
1428    If you place the cursor at the beginning or just behind the end of
1429 the displayed text and press <BACKSPACE>, you will remove the
1430 (invisible) bracket at that location.  This makes the link incomplete
1431 and the internals are again displayed as plain text.  Inserting the
1432 missing bracket hides the link internals again.  To show the internal
1433 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1434 links'.
1436 \x1f
1437 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
1439 4.2 Internal links
1440 ==================
1442 If the link does not look like a URL, it is considered to be internal in
1443 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
1444 my target]]' lead to a text search in the current file.  The link can
1445 be followed with `C-c C-o' when the cursor is on the link, or with a
1446 mouse click (*note Handling links::).  The preferred match for such a
1447 link is a dedicated target: the same string in double angular brackets.
1448 Targets may be located anywhere; often it is convenient to put them
1449 into a comment line. For example
1451      # <<My Target>>
1453 In HTML export (*note HTML export::), such targets will become named
1454 anchors for direct access through `http' links(1).
1456    If no dedicated target exists, Org-mode will search for the words in
1457 the link.  In the above example the search would be for `my target'.
1458 Links starting with a star like `*My Target' restrict the search to
1459 headlines.  When searching, Org-mode will first try an exact match, but
1460 then move on to more and more lenient searches.  For example, the link
1461 `[[*My Targets]]' will find any of the following:
1463      ** My targets
1464      ** TODO my targets are bright
1465      ** my 20 targets are
1467    To insert a link targeting a headline, in-buffer completion can be
1468 used.  Just type a star followed by a few optional letters into the
1469 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
1470 offered as completions.  *Note Handling links::, for more commands
1471 creating links.
1473    Following a link pushes a mark onto Org-mode's own mark ring.  You
1474 can return to the previous position with `C-c &'.  Using this command
1475 several times in direct succession goes back to positions recorded
1476 earlier.
1478 * Menu:
1480 * Radio targets::               Make targets trigger links in plain text.
1481 * CamelCase links::             Activating CamelCase words as links
1483    ---------- Footnotes ----------
1485    (1) Note that text before the first headline will never be exported,
1486 so the first such target must be after the first headline.
1488 \x1f
1489 File: org,  Node: Radio targets,  Next: CamelCase links,  Prev: Internal links,  Up: Internal links
1491 4.2.1 Radio targets
1492 -------------------
1494 You can configure Org-mode to link any occurrences of certain target
1495 names in normal text.  So without explicitly creating a link, the text
1496 connects to the target radioing its position.  Radio targets are
1497 enclosed by triple angular brackets.  For example, a target `<<<My
1498 Target>>>' causes each occurrence of `my target' in normal text to
1499 become activated as a link.  The Org-mode file is scanned automatically
1500 for radio targets only when the file is first loaded into Emacs.  To
1501 update the target list during editing, press `C-c C-c' with the cursor
1502 on or at a target.
1504 \x1f
1505 File: org,  Node: CamelCase links,  Prev: Radio targets,  Up: Internal links
1507 4.2.2 CamelCase words as links
1508 ------------------------------
1510 Org-mode also supports CamelCase words as links.  This feature is not
1511 turned on by default because of the inconsistencies this system suffers
1512 from.  To activate CamelCase words as links, you need to customize the
1513 option `org-activate-links'.  A CamelCase word then leads to a text
1514 search such that `CamelCaseLink' is equivalent to `[[camel case link]]'.
1516 \x1f
1517 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
1519 4.3 External links
1520 ==================
1522 Org-mode supports links to files, websites, Usenet and email messages,
1523 and BBDB database entries.  External links are URL-like locators.  They
1524 start with a short identifying string followed by a colon.  There can be
1525 no space after the colon.  The following list shows examples for each
1526 link type.
1528      http://www.astro.uva.nl/~dominik          on the web
1529      file:/home/dominik/images/jupiter.jpg     file, absolute path
1530      file:papers/last.pdf                      file, relative path
1531      news:comp.emacs                           Usenet link
1532      mailto:adent@galaxy.net                   Mail link
1533      vm:folder                                 VM folder link
1534      vm:folder#id                              VM message link
1535      vm://myself@some.where.org/folder#id      VM on remote machine
1536      wl:folder                                 WANDERLUST folder link
1537      wl:folder#id                              WANDERLUST message link
1538      mhe:folder                                MH-E folder link
1539      mhe:folder#id                             MH-E message link
1540      rmail:folder                              RMAIL folder link
1541      rmail:folder#id                           RMAIL message link
1542      gnus:group                                GNUS group link
1543      gnus:group#id                             GNUS article link
1544      bbdb:Richard Stallman                     BBDB link
1545      shell:ls *.org                            A shell command
1546      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
1548    A link should be enclosed in double brackets and may contain a
1549 descriptive text to be displayed instead of the url (*note Link
1550 format::), for example:
1552      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
1554    Org-mode also finds external links in the normal text and activates
1555 them as links.  If spaces must be part of the link (for example in
1556 `bbdb:Richard Stallman'), or you need to remove ambiguities about the
1557 end of the link, enclose them in angular brackets.
1559 \x1f
1560 File: org,  Node: Handling links,  Next: Search options,  Prev: External links,  Up: Hyperlinks
1562 4.4 Handling links
1563 ==================
1565 Org-mode provides methods to create a link in the correct syntax, to
1566 insert it into an org-mode file, and to follow the link.
1568 `C-c l'
1569      Store a link to the current location.  This is a _global_ command
1570      which can be used in any buffer to create a link.  The link will be
1571      stored for later insertion into an Org-mode buffer (see below).
1572      For Org-mode files, if there is a `<<target>>' at the cursor, the
1573      link points to the target.  Otherwise it points to the current
1574      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
1575      the link will indicate the current article/entry.  For W3 and W3M
1576      buffers, the link goes to the current URL.  For any other files,
1577      the link will point to the file, with a search string (*note
1578      Search options::) pointing to the contents of the current line.
1579      If there is an active region, the selected words will form the
1580      basis of the search string.  If the automatically created link is
1581      not working correctly or accurately enough, you can write custom
1582      functions to select the search string and to do the search for
1583      particular file types - see *Note Custom searches::.  The key
1584      binding `C-c l' is only a suggestion - see *Note Installation::.
1586 `C-c C-l'
1587      Insert a link.  This prompts for a link to be inserted into the
1588      buffer.  You can just type a link, using text for an internal
1589      link, or one of the link type prefixes mentioned in the examples
1590      above.  Through completion, all links stored during the current
1591      session can be accessed(1).  The link will be inserted into the
1592      buffer, along with a descriptive text.  Note that you don't have
1593      to use this command to insert a link.  Links in Org-mode are plain
1594      text, and you can type or paste them straight into the buffer.  By
1595      using this command, the links are automatically enclosed in double
1596      brackets, and you will be asked for the optional descriptive text.
1597      If the link is a `file:' link and the linked file is located in
1598      the same directory as the current file or a subdirectory of it, the
1599      path of the file will be inserted relative to the current
1600      directory.
1602 `C-u C-c C-l'
1603      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
1604      file will be inserted and you may use file name completion to
1605      select the name of the file.  The path to the file is inserted
1606      relative to the directory of the current org file, if the linked
1607      file is in the current directory or in a subdirectory of it, or if
1608      the path is written relative to the current directory using `../'.
1609      Otherwise an absolute path is used, if possible with `~/' for
1610      your home directory.  You can force an absolute path with two
1611      `C-u' prefixes.
1613 `C-c C-l with cursor on existing link'
1614      When the cursor is on an existing link, `C-c C-l' allows you to
1615      edit the link and description parts of the link.
1617 `C-c C-o'
1618      Open link at point.  This will launch a web browser for URLs (using
1619      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
1620      the corresponding links, and execute the command in a shell link.
1621      When the cursor is on an internal link, this commands runs the
1622      corresponding search.  When the cursor is on a TAG list in a
1623      headline, it creates the corresponding TAGS view.  If the cursor
1624      is on a time stamp, it compiles the agenda for that date.
1625      Furthermore, it will visit text and remote files in `file:' links
1626      with Emacs and select a suitable application for local non-text
1627      files.  Classification of files is based on file extension only.
1628      See option `org-file-apps'.  If you want to override the default
1629      application and visit the file with Emacs, use a `C-u' prefix.
1631 `mouse-2'
1632 `mouse-1'
1633      On links, `mouse-2' will open the link just as `C-c C-o' would.
1634      Under Emacs 22, also `mouse-1' will follow a link.
1636 `mouse-3'
1637      Like `mouse-2', but force file links to be opened with Emacs.
1639 `C-c %'
1640      Push the current position onto the mark ring, to be able to return
1641      easily. Commands following an internal link do this automatically.
1643 `C-c &'
1644      Jump back to a recorded position.  A position is recorded by the
1645      commands following internal links, and by `C-c %'.  Using this
1646      command several times in direct succession moves through a ring of
1647      previously recorded positions.
1649    ---------- Footnotes ----------
1651    (1) After insertion of a stored link, the link will be removed from
1652 the list of stored links.  To keep it in the list later use, use a
1653 triple `C-u' prefix to `C-c C-l', or configure the option
1654 `org-keep-stored-link-after-insertion'.
1656 \x1f
1657 File: org,  Node: Search options,  Next: Custom searches,  Prev: Handling links,  Up: Hyperlinks
1659 4.5 Search options in file links
1660 ================================
1662 File links can contain additional information to make Emacs jump to a
1663 particular location in the file when following a link.  This can be a
1664 line number or a search option after a double(1) colon. For example,
1665 when the command `C-c l' creates a link (*note Handling links::) to a
1666 file, it encodes the words in the current line as a search string that
1667 can be used to find this line back later when following the link with
1668 `C-c C-o'.
1670    Here is the syntax of the different ways to attach a search to a file
1671 link, together with an explanation:
1673      [[file:~/code/main.c::255]]
1674      [[file:~/xx.org::My Target]]
1675      [[file:~/xx.org::*My Target]]
1676      [[file:~/xx.org::/regexp/]]
1678 `255'
1679      Jump to line 255.
1681 `My Target'
1682      Search for a link target `<<My Target>>', or do a text search for
1683      `my target', similar to the search in internal links, see *Note
1684      Internal links::.  In HTML export (*note HTML export::), such a
1685      file link will become an HTML reference to the corresponding named
1686      anchor in the linked file.
1688 `*My Target'
1689      In an Org-mode file, restrict search to headlines.
1691 `/regexp/'
1692      Do a regular expression search for `regexp'.  This uses the Emacs
1693      command `occur' to list all matches in a separate window.  If the
1694      target file is in Org-mode, `org-occur' is used to create a sparse
1695      tree with the matches.
1697    As a degenerate case, a file link with an empty file name can be used
1698 to search the current file.  For example, `<file:::find me>' does a
1699 search for `find me' in the current file, just as `[[find me]]' would.
1701    ---------- Footnotes ----------
1703    (1) For backward compatibility, line numbers can also follow a
1704 single colon.
1706 \x1f
1707 File: org,  Node: Custom searches,  Next: Remember,  Prev: Search options,  Up: Hyperlinks
1709 4.6 Custom Searches
1710 ===================
1712 The default mechanism for creating search strings and for doing the
1713 actual search related to a file link may not work correctly in all
1714 cases.  For example, BibTeX database files have many entries like
1715 `year="1993"' which would not result in good search strings, because
1716 the only unique identification for a BibTeX entry is the citation key.
1718    If you come across such a problem, you can write custom functions to
1719 set the right search string for a particular file type, and to do the
1720 search for the string in the file.  Using `add-hook', these functions
1721 need to be added to the hook variables
1722 `org-create-file-search-functions' and
1723 `org-execute-file-search-functions'.  See the docstring for these
1724 variables for more information.  Org-mode actually uses this mechanism
1725 for BibTeX database files, and you can use the corresponding code as an
1726 implementation example.  Search for `BibTeX links' in the source file.
1728 \x1f
1729 File: org,  Node: Remember,  Prev: Custom searches,  Up: Hyperlinks
1731 4.7 Remember
1732 ============
1734 Another way to create org entries with links to other files is through
1735 the _Remember_ package by John Wiegley.  _Remember_ lets you store
1736 quick notes with little interruption of your work flow.  See
1737 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
1738 information.  The notes produced by _Remember_ can be stored in
1739 different ways, and Org-mode files are a good target.  Org-mode allows
1740 you to file away notes either to a default file, or directly to the
1741 correct location in your Org-mode outline tree.  The following
1742 customization will tell _Remember_ to use org files as target, and to
1743 create annotations compatible with Org-mode links.
1745      (setq org-directory "~/path/to/my/orgfiles/")
1746      (setq org-default-notes-file "~/.notes")
1747      (setq remember-annotation-functions '(org-remember-annotation))
1748      (setq remember-handler-functions '(org-remember-handler))
1749      (add-hook 'remember-mode-hook 'org-remember-apply-template)
1751    In combination with Org-mode, you can use templates to generate
1752 different types of remember notes.  For example, if you would like to
1753 use one template to create general TODO entries, and another one for
1754 journal entries, you could use:
1756      (setq org-remember-templates
1757            '((?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org")
1758              (?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")))
1760 In these entries, the character specifies how to select the template,
1761 the first string specifies the template, and the (optional) second
1762 string specifies a default file (overruling `org-default-notes-file')
1763 as a target for this note.
1765    When you call `M-x remember' to remember something, org will prompt
1766 for a key to select the template and then prepare the buffer like
1767      * TODO
1768        <file:link to where you called remember>
1772      * [2006-03-21 Tue 15:37]
1774        <file:link to where you called remember>
1776 See the variable `org-remember-templates' for more details.
1778    When you are finished composing a note with remember, you have to
1779 press `C-c C-c' to file the note away.  The handler first prompts for a
1780 target file - if you press <RET>, the value of `org-default-notes-file'
1781 is used.  Then the command offers the headings tree of the selected
1782 file.  You can either immediately press <RET> to get the note appended
1783 to the file.  Or you can use vertical cursor motion (<up> and <down>)
1784 and visibility cycling (<TAB>) to find a better place.  Pressing <RET>
1785 or <left> or <right> leads to the following result.
1787 Cursor         Key     Note gets inserted
1788 position               
1789 buffer-start   <RET>   as level 2 heading at end of file
1790 on headline    <RET>   as sublevel of the heading at cursor
1791                <left>  as same level, before current heading
1792                <right> as same level, after current heading
1793 not on         <RET>   at cursor position, level taken from context.
1794 headline                      Or use prefix arg to specify level
1795                        manually.
1797    So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
1798 append it to the default file.  Even shorter would be `C-u C-c C-c',
1799 which does the same without even showing the tree.  But with little
1800 extra effort, you can push it directly to the correct location.
1802    Before inserting the text into a tree, the function ensures that the
1803 text has a headline, i.e. a first line that starts with a `*'.  If not,
1804 a headline is constructed from the current date and some additional
1805 data.  If the variable `org-adapt-indentation' is non-nil, the entire
1806 text is also indented so that it starts in the same column as the
1807 headline (after the asterisks).
1809 \x1f
1810 File: org,  Node: TODO items,  Next: Timestamps,  Prev: Hyperlinks,  Up: Top
1812 5 TODO items
1813 ************
1815 Org-mode does not maintain TODO lists as a separate document.  TODO
1816 items are an integral part of the notes file, because TODO items
1817 usually come up while taking notes!  With Org-mode, you simply mark any
1818 entry in a tree as being a TODO item.  In this way, the information is
1819 not duplicated, and the entire context from which the item emerged is
1820 always present when you check.
1822    Of course, this technique causes TODO items to be scattered
1823 throughout your file.  Org-mode provides methods to give you an
1824 overview over all things you have to do.
1826 * Menu:
1828 * TODO basics::                 Marking and displaying TODO entries
1829 * TODO extensions::             Workflow and assignments
1830 * Priorities::                  Some things are more important than others
1832 \x1f
1833 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
1835 5.1 Basic TODO functionality
1836 ============================
1838 Any headline can become a TODO item by starting it with the word TODO,
1839 for example:
1841      *** TODO Write letter to Sam Fortune
1843 The most important commands to work with TODO entries are:
1845 `C-c C-t'
1846      Rotate the TODO state of the current item between
1848           ,-> (unmarked) -> TODO -> DONE --.
1849           '--------------------------------'
1851      The same rotation can also be done "remotely" from the timeline and
1852      agenda buffers with the `t' command key (*note Agenda commands::).  
1854 `S-<right>'
1855 `S-<left>'
1856      Select the following/preceding TODO state, similar to cycling.
1857      Mostly useful if more than two TODO states are possible (*note
1858      TODO extensions::).  
1860 `C-c C-v'
1861      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
1862      the entire buffer, but shows all TODO items and the headings
1863      hierarchy above them.  With prefix arg, show also the DONE
1864      entries.  With numerical prefix N, show the tree for the Nth
1865      keyword in the variable `org-todo-keywords'.  
1867 `C-c a t'
1868      Show the global TODO list.  This collects the TODO items from all
1869      agenda files (*note Agenda views::) into a single buffer.  The
1870      buffer is in `agenda-mode', so there are commands to examine and
1871      manipulate the TODO entries directly from that buffer (*note
1872      Agenda commands::).  *Note Global TODO list::, for more
1873      information.
1875 \x1f
1876 File: org,  Node: TODO extensions,  Next: Priorities,  Prev: TODO basics,  Up: TODO items
1878 5.2 Extended use of TODO keywords
1879 =================================
1881 The default implementation of TODO entries is just two states: TODO and
1882 DONE.  You can, however, use the TODO feature for more complicated
1883 things by configuring the variables `org-todo-keywords' and
1884 `org-todo-interpretation'.  Using special setup, you can even use TODO
1885 keywords in different ways in different org files.
1887    Note that tags are another way to classify headlines in general and
1888 TODO items in particular (*note Tags::).
1890 * Menu:
1892 * Workflow states::             From TODO to DONE in steps
1893 * TODO types::                  I do this, Fred the rest
1894 * Per file keywords::           Different files, different requirements
1896 \x1f
1897 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
1899 5.2.1 TODO keywords as workflow states
1900 --------------------------------------
1902 You can use TODO keywords to indicate different states in the process
1903 of working on an item, for example:
1905      (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
1906            org-todo-interpretation 'sequence)
1908    Changing these variables only becomes effective in a new Emacs
1909 session.  With this setup, the command `C-c C-t' will cycle an entry
1910 from TODO to FEEDBACK, then to VERIFY, and finally to DONE.  You may
1911 also use a prefix argument to quickly select a specific state.  For
1912 example `C-3 C-c C-t' will change the state immediately to VERIFY.  If
1913 you define many keywords, you can use in-buffer completion (see *Note
1914 Completion::) to insert these words into the buffer.
1916 \x1f
1917 File: org,  Node: TODO types,  Next: Per file keywords,  Prev: Workflow states,  Up: TODO extensions
1919 5.2.2 TODO keywords as types
1920 ----------------------------
1922 The second possibility is to use TODO keywords to indicate different
1923 types of action items.  For example, you might want to indicate that
1924 items are for "work" or "home".  If you are into David Allen's _Getting
1925 Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
1926 `MAYBE'.  Or, when you work with several people on a single project,
1927 you might want to assign action items directly to persons, by using
1928 their names as TODO keywords.  This would be set up like this:
1930      (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
1931            org-todo-interpretation 'type)
1933    In this case, different keywords do not indicate a sequence, but
1934 rather different types.  So it is normally not useful to change from
1935 one type to another.  Therefore, in this case the behavior of the
1936 command `C-c C-t' is changed slightly(1).  When used several times in
1937 succession, it will still cycle through all names.  But when you return
1938 to the item after some time and execute `C-c C-t' again, it will switch
1939 from each name directly to DONE.  Use prefix arguments or completion to
1940 quickly select a specific name.  You can also review the items of a
1941 specific TODO type in a sparse tree by using a numeric prefix to `C-c
1942 C-v'.  For example, to see all things Lucy has to do, you would use
1943 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
1944 single buffer, you would use the prefix arg as well when creating the
1945 global todo list: `C-3 C-c t'.
1947    ---------- Footnotes ----------
1949    (1) This is also true for the `t' command in the timeline and agenda
1950 buffers.
1952 \x1f
1953 File: org,  Node: Per file keywords,  Prev: TODO types,  Up: TODO extensions
1955 5.2.3 Setting up TODO keywords for individual files
1956 ---------------------------------------------------
1958 It can be very useful to use different aspects of the TODO mechanism in
1959 different files, which is not possible with the global settings
1960 described above.  For file-local settings, you need to add special
1961 lines to the file which set the keywords and interpretation for that
1962 file only.  For example, to set one of the two examples discussed
1963 above, you need one of the following lines, starting in column zero
1964 anywhere in the file:
1966      #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
1967      #+TYP_TODO: Fred Sara Lucy Mike DONE
1969 To make sure you are using the correct keyword, type `#+' into the
1970 buffer and then use `M-<TAB>' completion.
1972    Remember that the last keyword must always mean that the item is DONE
1973 (although you may use a different word).  Also note that in each file,
1974 only one of the two aspects of TODO keywords can be used.  After
1975 changing one of these lines, use `C-c C-c' with the cursor still in the
1976 line to make the changes known to Org-mode(1).
1978    If you want to use very many keywords, for example when working with
1979 a large group of people, you may split the names over several lines:
1981      #+TYP_TODO: Fred Sara Lucy Mike
1982      #+TYP_TODO: Luis George Jules Jessica
1983      #+TYP_TODO: Kim Arnold Peter
1984      #+TYP_TODO: DONE
1986    ---------- Footnotes ----------
1988    (1) Org-mode parses these lines only when Org-mode is activated
1989 after visiting a file.  `C-c C-c' with the cursor in a line starting
1990 with `#+' is simply restarting Org-mode, making sure that these changes
1991 will be respected.
1993 \x1f
1994 File: org,  Node: Priorities,  Prev: TODO extensions,  Up: TODO items
1996 5.3 Priorities
1997 ==============
1999 If you use Org-mode extensively to organize your work, you may end up
2000 with a number of TODO entries so large that you'd like to prioritize
2001 them.  This can be done by placing a _priority cookie_ into the
2002 headline, like this
2004      *** TODO [#A] Write letter to Sam Fortune
2006 With its standard setup, Org-mode supports priorities `A', `B', and
2007 `C'.  `A' is the highest priority.  An entry without a cookie is
2008 treated as priority `B'.  Priorities make a difference only in the
2009 agenda (*note Weekly/Daily agenda::).
2011 `C-c ,'
2012      Set the priority of the current headline.  The command prompts for
2013      a priority character `A', `B' or `C'.  When you press <SPC>
2014      instead, the priority cookie is removed from the headline.  The
2015      priorities can also be changed "remotely" from the timeline and
2016      agenda buffer with the `,' command (*note Agenda commands::).
2018 `S-<up>'
2019 `S-<down>'
2020      Increase/decrease priority of current headline.  Note that these
2021      keys are also used to modify time stamps (*note Creating
2022      timestamps::).  Furthermore, these keys are also used by CUA-mode
2023      (*note Conflicts::).
2025 \x1f
2026 File: org,  Node: Timestamps,  Next: Tags,  Prev: TODO items,  Up: Top
2028 6 Timestamps
2029 ************
2031 Items can be labeled with timestamps to make them useful for project
2032 planning.
2034 * Menu:
2036 * Time stamps::                 Assigning a time to a tree entry
2037 * Creating timestamps::         Commands which insert timestamps
2038 * Progress logging::            Documenting when what work was done.
2040 \x1f
2041 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Timestamps,  Up: Timestamps
2043 6.1 Time stamps, deadlines and scheduling
2044 =========================================
2046 A time stamp is a specification of a date (possibly with time) in a
2047 special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue 09:39>'.
2048 A time stamp can appear anywhere in the headline or body of an org-tree
2049 entry.  Its presence allows entries to be shown on specific dates in
2050 the agenda (*note Weekly/Daily agenda::).  We distinguish:
2052 PLAIN TIME STAMP
2053      A simple time stamp just assigns a date/time to an item.  This is
2054      just like writing down an appointment in a paper agenda, or like
2055      writing down an event in a diary, when you want to take note of
2056      when something happened.  In the timeline and agenda displays, the
2057      headline of an entry associated with a plain time stamp will be
2058      shown exactly on that date.
2060 TIME STAMP RANGE
2061      Two time stamps connected by `--' denote a time range.  The
2062      headline will be shown on the first and last day of the range, and
2063      on any dates that are displayed and fall in the range.  Here is an
2064      example:
2066           ** Meeting in Amsterdam
2067              <2004-08-23 Mon>--<2004-08-26 Thu>
2069 TIME STAMP WITH SCHEDULED KEYWORD
2070      If a time stamp is preceded by the word `SCHEDULED:', it means you
2071      are planning to start working on that task on the given date. So
2072      this is not about recording an event, but about planning your
2073      work.  The headline will be listed under the given date.  In
2074      addition, a reminder that the scheduled date has passed will be
2075      present in the compilation for _today_, until the entry is marked
2076      DONE.  I.e., the task will automatically be forwarded until
2077      completed.
2079           *** TODO Call Trillian for a date on New Years Eve.
2080               SCHEDULED: <2004-12-25 Sat>
2082 TIME STAMP WITH DEADLINE KEYWORD
2083      If a time stamp is preceded by the word `DEADLINE:', the task
2084      (most likely a TODO item) is supposed to be finished on that date,
2085      and it will be listed then.  In addition, the compilation for
2086      _today_ will carry a warning about the approaching or missed
2087      deadline, starting `org-deadline-warning-days' before the due
2088      date, and continuing until the entry is marked DONE.  An example:
2090           *** TODO write article about the Earth for the Guide
2091               The editor in charge is <bbdb:Ford Prefect>
2092               DEADLINE: <2004-02-29 Sun>
2094 TIME STAMP WITH CLOSED KEYWORD
2095      When `org-log-done' is non-nil, Org-mode will automatically insert
2096      a special time stamp each time a TODO entry is marked done (*note
2097      Progress logging::).  This time stamp is enclosed in square
2098      brackets instead of angular brackets.
2100 TIME RANGE WITH CLOCK KEYWORD
2101      When using the clock to time the work that is being done on
2102      specific items, time ranges preceded by the CLOCK keyword are
2103      inserted automatically into the file.  The time stamps are
2104      enclosed in square brackets instead of angular brackets.  *Note
2105      Clocking work time::.
2107 \x1f
2108 File: org,  Node: Creating timestamps,  Next: Progress logging,  Prev: Time stamps,  Up: Timestamps
2110 6.2 Creating timestamps
2111 =======================
2113 For Org-mode to recognize time stamps, they need to be in the specific
2114 format.  All commands listed below produce time stamps in the correct
2115 format.
2117 `C-c .'
2118      Prompt for a date and insert a corresponding time stamp.  When the
2119      cursor is at a previously used time stamp, it is updated to NOW.
2120      When this command is used twice in succession, a time range is
2121      inserted.
2123 `C-u C-c .'
2124      Like `C-c .', but use the alternative format which contains date
2125      and time.  The default time can be rounded to multiples of 5
2126      minutes, see the option `org-time-stamp-rounding-minutes'.
2128 `C-c !'
2129      Like `C-c .', but insert an inactive time stamp not triggering the
2130      agenda.
2132 `C-c <'
2133      Insert a time stamp corresponding to the cursor date in the
2134      Calendar.
2136 `C-c >'
2137      Access the Emacs calendar for the current date.  If there is a
2138      timestamp in the current line, goto the corresponding date instead.
2140 `C-c C-o'
2141      Access the agenda for the date given by the time stamp at point
2142      (*note Weekly/Daily agenda::).
2144 `C-c C-d'
2145      Insert `DEADLINE' keyword along with a stamp.  The insertion will
2146      happen in the line directly following the headline.
2148 `C-c C-w'
2149      Create a sparse tree with all deadlines that are either past-due,
2150      or which will become due within `org-deadline-warning-days'.  With
2151      `C-u' prefix, show all deadlines in the file.  With a numeric
2152      prefix, check that many days.  For example, `C-1 C-c C-w' shows
2153      all deadlines due tomorrow.
2155 `C-c C-s'
2156      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
2157      happen in the line directly following the headline.  Any CLOSED
2158      timestamp will be removed.
2160 `S-<left>'
2161 `S-<right>'
2162      Change date at cursor by one day.  These key bindings conflict with
2163      CUA-mode (*note Conflicts::).
2165 `S-<up>'
2166 `S-<down>'
2167      Change the item under the cursor in a timestamp.  The cursor can
2168      be on a year, month, day, hour or minute.  Note that if the cursor
2169      is not at a time stamp, these same keys modify the priority of an
2170      item.  (*note Priorities::). The key bindings also conflict with
2171      CUA-mode (*note Conflicts::).
2173 `C-c C-y'
2174      Evaluate a time range by computing the difference between start and
2175      end.  With prefix arg, insert result after the time range (in a
2176      table: into the following column).
2178    When Org-mode prompts for a date/time, the function reading your
2179 input will replace anything you choose not to specify with the current
2180 date and time.  For details, see the documentation string of
2181 `org-read-date'.  Also, a calender will pop up to allow selecting a
2182 date.  The calendar can be fully controlled from the minibuffer, and a
2183 date can be selected with the following commands:
2186      Scroll calendar backwards by one month.  
2189      Scroll calendar forwards by one month.  
2191 `mouse-1'
2192      Select date by clicking on it.  
2194 `S-<right>'
2195      One day forward.  
2197 `S-<left>'
2198      One day back.  
2200 `S-<down>'
2201      One week forward.  
2203 `S-<up>'
2204      One week back.  
2206 `M-S-<right>'
2207      One month forward.  
2209 `M-S-<left>'
2210      One month back.  
2212 `<RET>'
2213      Choose date in calendar (only if nothing typed into minibuffer).
2215 \x1f
2216 File: org,  Node: Progress logging,  Prev: Creating timestamps,  Up: Timestamps
2218 6.3 Progress Logging
2219 ====================
2221 Org-mode can automatically record a time stamp when you mark a TODO item
2222 as DONE.  You can also measure precisely the time you spent on specific
2223 items in a project by starting and stopping a clock when you start and
2224 stop working on an aspect of a project.
2226 * Menu:
2228 * Closing items::               When was this entry marked DONE?
2229 * Clocking work time::          When exactly did you work on this item?
2231 \x1f
2232 File: org,  Node: Closing items,  Next: Clocking work time,  Prev: Progress logging,  Up: Progress logging
2234 6.3.1 Closing items
2235 -------------------
2237 If you want to keep track of _when_ a certain TODO item was finished,
2238 turn on logging with
2240      (setq org-log-done t)
2242 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2243 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2244 [timestamp]' will be inserted just after the headline.  If you turn the
2245 entry back into a TODO item again through further state cycling, that
2246 line will be removed again.  In the timeline (*note Timeline::) and in
2247 the agenda (*note Weekly/Daily agenda::), you can then use the `l' key
2248 to display the TODO items closed on each day, giving you an overview of
2249 what has been done on a day.
2251 \x1f
2252 File: org,  Node: Clocking work time,  Prev: Closing items,  Up: Progress logging
2254 6.3.2 Clocking work time
2255 ------------------------
2257 Org-mode allows you to clock the time you spent on specific tasks in a
2258 project.  When you start working on an item, you can start the clock.
2259 When you stop working on that task, or when you mark the task done, the
2260 clock is stopped and the corresponding time interval is recorded.  It
2261 also computes the total time spent on each subtree of a project.
2263 `C-c C-x C-i'
2264      Start the clock on the current item (clock-in).  This inserts the
2265      CLOCK keyword together with a timestamp.  
2267 `C-c C-x C-o'
2268      Stop the clock (clock-out).  The inserts another timestamp at the
2269      same location where the clock was last started.  It also directly
2270      computes the resulting time in inserts it after the time range as
2271      `=> HH:MM'.  
2273 `C-c C-t'
2274      Changing the TODO state of an item to DONE automatically stops the
2275      clock if it is running in this same item.  
2277 `C-c C-x C-x'
2278      Cancel the current clock.  This is useful if a clock was started by
2279      mistake, or if you ended up working on something else.  
2281 `C-c C-x C-d'
2282      Display time summaries for each subtree in the current buffer.
2283      This puts overlays at the end of each headline, showing the total
2284      time recorded under that heading, including the time of any
2285      subheadings. You can use visibility cycling to study the tree, but
2286      the overlays disappear automatically when the buffer is changed.  
2288 `C-c C-x C-r'
2289      Insert a dynamic block containing a clock report as an org-mode
2290      table into the current file.
2291           #+BEGIN: clocktable :maxlevel 2 :emphasize nil
2293           #+END: clocktable
2294      If such a block already exists, its content is replaced by the new
2295      table.  The `BEGIN' line can specify options:
2296           :maxlevels   Maximum level depth to which times are listed in the table.
2297           :emphasize   When `t', emphasize level one and level two items
2299    The `l' key may be used in the timeline (*note Timeline::) and in
2300 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
2301 worked on or closed during a day.
2303 \x1f
2304 File: org,  Node: Tags,  Next: Agenda views,  Prev: Timestamps,  Up: Top
2306 7 Tags
2307 ******
2309 If you wish to implement a system of labels and contexts for
2310 cross-correlating information, an excellent way is to assign tags to
2311 headlines.  Org-mode has extensive support for using tags.
2313    Every headline can contain a list of tags, at the end of the
2314 headline.  Tags are normal words containing letters, numbers, `_', and
2315 `@'.  Tags must be preceded and followed by a single colon; like
2316 `:WORK:'.  Several tags can be specified like `:WORK:URGENT:'.
2318 * Menu:
2320 * Tag inheritance::             Tags use the tree structure of the outline
2321 * Setting tags::                How to assign tags to a headline
2322 * Tag searches::                Searching for combinations of tags
2324 \x1f
2325 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2327 7.1 Tag inheritance
2328 ===================
2330 Tags make use of the hierarchical structure of outline trees.  If a
2331 heading has a certain tag, all subheadings will inherit the tag as
2332 well.  For example, in the list
2334      * Meeting with the French group      :WORK:
2335      ** Summary by Frank                  :BOSS:NOTES:
2336      *** TODO Prepare slides for him      :ACTION:
2338 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
2339 `:ACTION:'.  When executing tag searches and Org-mode finds that a
2340 certain headline matches the search criterion, it will not check any
2341 sublevel headline, assuming that these likely also match, and that the
2342 list of matches can become very long.  This may not be what you want,
2343 however, and you can influence inheritance and searching using the
2344 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2346 \x1f
2347 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2349 7.2 Setting tags
2350 ================
2352 Tags can simply be typed into the buffer at the end of a headline.
2353 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2354 special command for inserting tags:
2356 `C-c C-c'
2357      Enter new tags for the current headline.  Org-mode will either
2358      offer completion or a special single-key interface for setting
2359      tags, see below.  After pressing <RET>, the tags will be inserted
2360      and aligned to `org-tags-column'.  When called with a `C-u'
2361      prefix, all tags in the current buffer will be aligned to that
2362      column, just to make things look nice.  TAGS are automatically
2363      realigned after promotion, demotion, and TODO state changes (*note
2364      TODO basics::).
2366    Org will support tag insertion based on a _list of tags_.  By
2367 default this list is constructed dynamically, containing all tags
2368 currently used in the buffer.  You may also globally specify a hard list
2369 of tags with the variable `org-tag-alist'.  Finally you can set the
2370 allowed tags for a given file with lines like
2372      #+TAGS: @WORK @HOME @TENNISCLUB
2373      #+TAGS: Laptop Car PC Sailboat
2375    The default support method is minibuffer completion.  However,
2376 Org-mode also implements a much better method: _fast tag selection_.
2377 This method allows to select and deselect tags with a single key per
2378 tag.  To function efficiently, you should assign unique keys to all
2379 tags.  This can be done globally with
2381      (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
2383 or on a per-file basis with
2385      #+TAGS: @WORK(w)  @HOME(h)  @TENNISCLUB(t)  Laptop(l)  PC(p)
2387 You can also group together tags that are mutually exclusive.  With
2388 curly braces(1)
2390      #+TAGS: { @WORK(w)  @HOME(h)  @TENNISCLUB(t) }  Laptop(l)  PC(p)
2392 you indicate that at most one of `@WORK', `@HOME', and `@SAILBOAT'
2393 should be selected.
2395 Don't forget to press `C-c C-c' with the cursor in one of these lines
2396 to activate any changes.
2398    If at least one tag has a selection key, pressing `C-c C-c' will
2399 automatically present you with a special interface, listing inherited
2400 tags, the tags of the current headline, and a list of all legal tags
2401 with corresponding keys(2).  Pressing keys for the tags will add or
2402 remove them from the list of tags in the current line.  Selecting a tag
2403 in a group of mutually exclusive tags will turn off any other tags from
2404 that group.  <SPC> clears all tags for this line, `RET' accepts the
2405 modified set, and `C-g' aborts without installing changes.  This method
2406 lets you assign tags to a headline with very few keys.  With the above
2407 setup, you could clear the current tags and set `@HOME', `Laptop' and
2408 `PC' tags with just the following keys: `C-c C-c <SPC> h l p <RET>'.
2409 Switching from `@HOME' to `@WORK' would be done with `C-c C-c w <RET>'.
2411    What if you have globally defined your preferred set of tags using
2412 the variable `org-tag-alist', but would like to use a dynamic tag list
2413 in a specific file?  Just add an empty TAGS option line to that file:
2415      #+TAGS:
2417    ---------- Footnotes ----------
2419    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
2420 respectively.  Several groups are allowed.
2422    (2) Keys will automatically assigned to tags which have no
2423 configured keys.
2425 \x1f
2426 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
2428 7.3 Tag searches
2429 ================
2431 Once a tags system has been set up, it can be used to collect related
2432 information into special lists.
2434 `C-c \'
2435      Create a sparse tree with all headlines matching a tags search.  
2437 `C-c a m'
2438      Create a global list of tag matches from all agenda files.  *Note
2439      Matching headline tags::.  
2441 `C-c a M'
2442      Create a global list of tag matches from all agenda files, but
2443      check only TODO items and force checking subitems (see variable
2444      `org-tags-match-list-sublevels').
2446    A tags search string can use Boolean operators `&' for AND and `|'
2447 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
2448 not implemented.  A tag may also be preceded by `-', to select against
2449 it, and `+' is syntactic sugar for positive selection.  The AND
2450 operator `&' is optional when `+' or `-' is present.  For example,
2451 `+WORK-BOSS' would select all headlines that are tagged `:WORK:', but
2452 discard those also tagged `:BOSS:'.  The search string `WORK|LAPTOP'
2453 selects all lines tagged `:WORK:' or `:LAPTOP:'.  The string
2454 `WORK|LAPTOP&NIGHT' requires that the `:LAPTOP:' lines are also tagged
2455 `NIGHT'.
2457 \x1f
2458 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Tags,  Up: Top
2460 8 Agenda Views
2461 **************
2463 Due to the way Org-mode works, TODO items, time-stamped items, and
2464 tagged headlines can be scattered throughout a file or even a number of
2465 files.  To get an overview over open action items, or over events that
2466 are important for a particular date, this information must be collected,
2467 sorted and displayed in an organized way.
2469    Org-mode can select items based on various criteria, and display them
2470 in a separate buffer.  Three different views are provided:
2472    * an _agenda_ that is like a calendar and shows information for
2473      specific dates
2475    * a _TODO list_ that covers all unfinished action items, and
2477    * a _tags view_ that shows information based on the tags associated
2478      with headlines in the outline tree.
2480 The extracted information is displayed in a special _agenda buffer_.
2481 This buffer is read-only, but provides commands to visit the
2482 corresponding locations in the original Org-mode files, and even to
2483 edit these files remotely.
2485 * Menu:
2487 * Agenda files::                Files being searched for agenda information
2488 * Agenda dispatcher::           Keyboard access to agenda views
2489 * Weekly/Daily agenda::         The calendar page with current tasks
2490 * Global TODO list::            All unfinished action items
2491 * Matching headline tags::      Structured information with fine-tuned search
2492 * Timeline::                    Time-sorted view for single file
2493 * Agenda commands::             Remote editing of org trees
2495 \x1f
2496 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
2498 8.1 Agenda files
2499 ================
2501 The information to be shown is collected from all _agenda files_, the
2502 files listed in the variable `org-agenda-files'(1).  Thus even if you
2503 only work with a single Org-mode file, this file should be put into
2504 that list(2).  You can customize `org-agenda-files', but the easiest
2505 way to maintain it is through the following commands
2507 `C-c ['
2508      Add current file to the list of agenda files.  The file is added to
2509      the front of the list.  If it was already in the list, it is moved
2510      to the front.  With prefix arg, file is added/moved to the end.  
2512 `C-c ]'
2513      Remove current file from the list of agenda files.  
2515 `C-,'
2516      Cycle through agenda file list, visiting one file after the other.
2518 The Org menu contains the current list of files and can be used to
2519 visit any of them.
2521    ---------- Footnotes ----------
2523    (1) If the value of that variable is not a list, but a single file
2524 name, then the list of agenda files will be maintained in that external
2525 file.
2527    (2) When using the dispatcher pressing `1' before selecting a
2528 command will actually limit the command to the current file, and ignore
2529 `org-agenda-files' until the next dispatcher command.
2531 \x1f
2532 File: org,  Node: Agenda dispatcher,  Next: Weekly/Daily agenda,  Prev: Agenda files,  Up: Agenda views
2534 8.2 The agenda dispatcher
2535 =========================
2537 The views are created through a dispatcher that should be bound to a
2538 global key, for example `C-c a' (*note Installation::).  In the
2539 following we will assume that `C-c a' is indeed how the dispatcher is
2540 accessed and list keyboard access to commands accordingly.  After
2541 pressing `C-c a', an additional letter is required to execute a
2542 command.  The dispatcher offers the following default commands:
2544      Create the calendar-like agenda (*note Weekly/Daily agenda::).
2546 `t / T'
2547      Create a list of all TODO items (*note Global TODO list::).
2549 `m / M'
2550      Create a list of headlines matching a TAGS expression (*note
2551      Matching headline tags::).
2553    You can also define custom commands that will be accessible through
2554 the dispatcher, just like the default commands.  Custom commands are
2555 global searches for tags and specific TODO keywords, or a variety of
2556 sparse tree creating commands (*note Sparse trees::).  As sparse trees
2557 are only defined for a single org-mode file, these latter commands act
2558 on the current buffer instead of the list of agenda files.
2560    Custom commands are configured in the variable
2561 `org-agenda-custom-commands'.  You can customize this variable, for
2562 example by pressing `C-c a C'.  You can also directly set it with Emacs
2563 Lisp in `.emacs'.  For example:
2565      (setq org-agenda-custom-commands
2566            '(("w" todo "WAITING")
2567              ("u" tags "+BOSS-URGENT")
2568              ("U" tags-tree "+BOSS-URGENT")
2569              ("f" occur-tree "\\<FIXME\\>")))
2571 will define `C-c a w' as a global search for TODO entries with
2572 `WAITING' as the TODO keyword, `C-c a u' as a global tags search for
2573 headlines marked `:BOSS:' but not `:URGENT:', `C-c a U' to do the same
2574 search but only in the current buffer and display the result as a
2575 sparse tree, and `C-c a f' to create a sparse tree with all entries
2576 containing the word `FIXME'.  For more information, look at the
2577 documentation string of the variable `org-agenda-custom-commands'.
2579 \x1f
2580 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Agenda dispatcher,  Up: Agenda views
2582 8.3 The weekly/daily agenda
2583 ===========================
2585 The purpose of the weekly/daily _agenda_ is to act like a page of a
2586 paper agenda, showing all the tasks for the current week or day.
2588 `C-c a a'
2589      Compile an agenda for the current week from a list of org files.
2590      The agenda shows the entries for each day.  With a `C-u' prefix (or
2591      when the variable `org-agenda-include-all-todo' is `t'), all
2592      unfinished TODO items (including those without a date) are also
2593      listed at the beginning of the buffer, before the first date.
2595    Remote editing from the agenda buffer means, for example, that you
2596 can change the dates of deadlines and appointments from the agenda
2597 buffer.  The commands available in the Agenda buffer are listed in
2598 *Note Agenda commands::.
2600 * Menu:
2602 * Categories::                  Not all tasks are equal
2603 * Time-of-day specifications::  How the agenda knows the time
2604 * Calendar/Diary integration::  Integrating Anniversaries and more
2605 * Sorting of agenda items::     The order of things
2607 \x1f
2608 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Weekly/Daily agenda,  Up: Weekly/Daily agenda
2610 8.3.1 Categories
2611 ----------------
2613 In the agenda buffer, each entry is preceded by a _category_, which is
2614 derived from the file name.  The category can also be set with a
2615 special line anywhere in the buffer, looking like this:
2617      #+CATEGORY: Thesis
2619    If there are several such lines in a file, each specifies the
2620 category for the text below it (but the first category also applies to
2621 any text before the first CATEGORY line).  The display in the agenda
2622 buffer looks best if the category is not longer than 10 characters.
2624 \x1f
2625 File: org,  Node: Time-of-day specifications,  Next: Calendar/Diary integration,  Prev: Categories,  Up: Weekly/Daily agenda
2627 8.3.2 Time-of-Day Specifications
2628 --------------------------------
2630 Org-mode checks each agenda item for a time-of-day specification.  The
2631 time can be part of the time stamp that triggered inclusion into the
2632 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
2633 specified with two time stamps, like
2634 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
2636    In the headline of the entry itself, a time(range) may also appear as
2637 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
2638 Emacs diary (*note Calendar/Diary integration::), time specifications
2639 in diary entries are recognized as well.
2641    For agenda display, Org-mode extracts the time and displays it in a
2642 standard 24 hour format as part of the prefix.  The example times in
2643 the previous paragraphs would end up in the agenda like this:
2645          8:30-13:00 Arthur Dent lies in front of the bulldozer
2646         12:45...... Ford Prefect arrives and takes Arthur to the pub
2647         19:00...... The Vogon reads his poem
2648         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
2650    If the agenda is in single-day mode, or for the display of today, the
2651 timed entries are embedded in a time grid, like
2653          8:00...... ------------------
2654          8:30-13:00 Arthur Dent lies in front of the bulldozer
2655         10:00...... ------------------
2656         12:00...... ------------------
2657         12:45...... Ford Prefect arrives and takes Arthur to the pub
2658         14:00...... ------------------
2659         16:00...... ------------------
2660         18:00...... ------------------
2661         19:00...... The Vogon reads his poem
2662         20:00...... ------------------
2663         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
2665    The time grid can be turned on and off with the variable
2666 `org-agenda-use-time-grid', and can be configured with
2667 `org-agenda-time-grid'.
2669 \x1f
2670 File: org,  Node: Calendar/Diary integration,  Next: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Weekly/Daily agenda
2672 8.3.3 Calendar/Diary integration
2673 --------------------------------
2675 Emacs contains the calendar and diary by Edward M. Reingold.  The
2676 calendar displays a three-month calendar with holidays from different
2677 countries and cultures.  The diary allows you to keep track of
2678 anniversaries, lunar phases, sunrise/set, recurrent appointments
2679 (weekly, monthly) and more.  In this way, it is quite complementary to
2680 Org-mode.  It can be very useful to combine output from Org-mode with
2681 the diary.
2683    In order to include entries from the Emacs diary into Org-mode's
2684 agenda, you only need to customize the variable
2686      (setq org-agenda-include-diary t)
2688 After that, everything will happen automatically.  All diary entries
2689 including holidays, anniversaries etc will be included in the agenda
2690 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
2691 the agenda buffer to jump to the diary file in order to edit existing
2692 diary entries.  The `i' command to insert new entries for the current
2693 date works in the agenda buffer, as well as the commands `S', `M', and
2694 `C' to display Sunrise/Sunset times, show lunar phases and to convert
2695 to other calendars, respectively.  `c' can be used to switch back and
2696 forth between calendar and agenda.
2698 \x1f
2699 File: org,  Node: Sorting of agenda items,  Prev: Calendar/Diary integration,  Up: Weekly/Daily agenda
2701 8.3.4 Sorting of agenda items
2702 -----------------------------
2704 The entries for each day are sorted.  The default order is to first
2705 collect all items containing an explicit time-of-day specification.
2706 These entries will be shown at the beginning of the list, as a
2707 _schedule_ for the day.  After that, items remain grouped in
2708 categories, in the sequence given by `org-agenda-files'.  Within each
2709 category, items are sorted by priority (*note Priorities::).
2711    The priority is a numerical quantity composed of the base priority
2712 (2000 for priority `A', 1000 for `B', and 0 for `C'), plus additional
2713 increments for overdue scheduled or deadline items.
2715    Sorting can be customized using the variable
2716 `org-agenda-sorting-strategy'.
2718 \x1f
2719 File: org,  Node: Global TODO list,  Next: Matching headline tags,  Prev: Weekly/Daily agenda,  Up: Agenda views
2721 8.4 The global TODO list
2722 ========================
2724 The global TODO list contains all unfinished TODO items, formatted and
2725 collected into a single place.
2727 `C-c a t'
2728      Show the global TODO list.  This collects the TODO items from all
2729      agenda files (*note Agenda views::) into a single buffer.  The
2730      buffer is in `agenda-mode', so there are commands to examine and
2731      manipulate the TODO entries directly from that buffer (*note
2732      Agenda commands::).  
2734 `C-c a T'
2735      Like the above, but allows selection of a specific TODO keyword.
2736      You can also do this by specifying a prefix argument to `C-c a t'.
2737      With a `C-u' prefix you are prompted for a keyword.  With a
2738      numeric prefix, the Nth keyword in `org-todo-keywords' is selected.  The
2739      `r' key in the agenda buffer regenerates it, and you can give a
2740      prefix argument to this command to change the selected TODO
2741      keyword, for example `3 r'.  If you often need a search for a
2742      specific keyword, define a custom command for it (*note Agenda
2743      dispatcher::).
2745    Remote editing of TODO items means that you can change the state of a
2746 TODO entry with a single key press.  The commands available in the TODO
2747 list are described in *Note Agenda commands::.
2749 \x1f
2750 File: org,  Node: Matching headline tags,  Next: Timeline,  Prev: Global TODO list,  Up: Agenda views
2752 8.5 Matching headline tags
2753 ==========================
2755 If headlines in the agenda files are marked with _tags_ (*note Tags::),
2756 you can select headlines based on the tags that apply to them and
2757 collect them into an agenda buffer.
2759 `C-c a m'
2760      Produce a list of all headlines that match a given set of tags.
2761      The command prompts for a selection criterion, which is a boolean
2762      logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
2763      `WORK|HOME' (*note Tags::).  If you often need a specific search,
2764      define a custom command for it (*note Agenda dispatcher::).  
2766 `C-c a M'
2767      Like `C-c a m', but only select headlines that are also TODO items
2768      and force checking subitems (see variable
2769      `org-tags-match-list-sublevels'.
2771    The commands available in the tags list are described in *Note
2772 Agenda commands::.
2774 \x1f
2775 File: org,  Node: Timeline,  Next: Agenda commands,  Prev: Matching headline tags,  Up: Agenda views
2777 8.6 Timeline for a single file
2778 ==============================
2780 The timeline is not really an agenda view, because it only summarizes
2781 items from a single Org-mode file.  But it also uses the agenda buffer
2782 and provides similar commands, so we discuss it here.  The timeline
2783 shows all time-stamped items in a single Org-mode file (or the selected
2784 part of it), in a _time-sorted view_.  The main purpose of this command
2785 is to give an overview over events in a project.
2787 `C-c C-r'
2788      Show a time-sorted view of the org file, with all time-stamped
2789      items.  When called with a `C-u' prefix, all unfinished TODO
2790      entries (scheduled or not) are also listed under the current date.
2792 The commands available in the timeline buffer are listed in *Note
2793 Agenda commands::.
2795 \x1f
2796 File: org,  Node: Agenda commands,  Prev: Timeline,  Up: Agenda views
2798 8.7 Commands in the agenda buffer
2799 =================================
2801 Entries in the agenda buffer are linked back to the org file or diary
2802 file where they originate.  You are not allowed to edit the agenda
2803 buffer itself, but commands are provided to show and jump to the
2804 original entry location, and to edit the org-files "remotely" from the
2805 agenda buffer.  In this way, all information is stored only once,
2806 removing the risk that your agenda and note files may diverge.
2808    Some commands can be executed with mouse clicks on agenda lines.  For
2809 the other commands, the cursor needs to be in the desired line.
2811 Motion
2812 ......
2815      Next line (same as <up>).  
2818      Previous line (same as <down>).
2820 View/GoTo org file
2821 ..................
2823 `mouse-3'
2824 `<SPC>'
2825      Display the original location of the item in another window.
2828      Display original location and recenter that window.
2830 `mouse-2'
2831 `mouse-1'
2832 `<TAB>'
2833      Go to the original location of the item in another window.  Under
2834      Emacs 22, `mouse-1' will also works for this.
2836 `<RET>'
2837      Go to the original location of the item and delete other windows.
2840      Toggle Follow mode.  In Follow mode, as you move the cursor through
2841      the agenda buffer, the other window always shows the corresponding
2842      location in the org file.  The initial setting for this mode in new
2843      agenda buffers can be set with the variable
2844      `org-agenda-start-with-follow-mode'.
2847      Toggle Logbook mode.  In Logbook mode, entries that where marked
2848      DONE while logging was on (variable `org-log-done') are shown in
2849      the agenda, as are entries that have been clocked on that day.
2851 Change display
2852 ..............
2855      Delete other windows.
2858      Switch to weekly view (7 days displayed together).
2861      Switch to daily view (just one day displayed).
2864      Toggle the inclusion of diary entries.  See *Note Calendar/Diary
2865      integration::.
2868      Toggle the time grid on and off.  See also the variables
2869      `org-agenda-use-time-grid' and `org-agenda-time-grid'.
2872      Recreate the agenda buffer, for example to reflect the changes
2873      after modification of the time stamps of items with S-<left> and
2874      S-<right>.  When the buffer is the global todo list, a prefix
2875      argument is interpreted to create a selective list for a specific
2876      TODO keyword.
2878 `<right>'
2879      Display the following `org-agenda-ndays' days.  For example, if
2880      the display covers a week, switch to the following week.  With
2881      prefix arg, go forward that many times `org-agenda-ndays' days.
2883 `<left>'
2884      Display the previous dates.
2887      Goto today.
2889 Remote editing
2890 ..............
2892 `0-9'
2893      Digit argument.
2896      Change the TODO state of the item, both in the agenda and in the
2897      original org file.
2900      Show all tags associated with the current item.  Because of
2901      inheritance, this may be more than the tags listed in the line
2902      itself.
2905      Set tags for the current headline.
2908      Toggle the ARCHIVE tag for the current headline.
2911      Set the priority for the current item.  Org-mode prompts for the
2912      priority character. If you reply with <SPC>, the priority cookie
2913      is removed from the entry.
2916      Display weighted priority of current item.
2919 `S-<up>'
2920      Increase the priority of the current item.  The priority is
2921      changed in the original buffer, but the agenda is not resorted.
2922      Use the `r' key for this.
2925 `S-<down>'
2926      Decrease the priority of the current item.
2928 `C-c C-s'
2929      Schedule this item
2931 `C-c C-d'
2932      Set a deadline for this item.
2934 `S-<right>'
2935      Change the time stamp associated with the current line by one day
2936      into the future.  With prefix argument, change it by that many
2937      days.  For example, `3 6 5 S-<right>' will change it by a year.
2938      The stamp is changed in the original org file, but the change is
2939      not directly reflected in the agenda buffer.  Use the `r' key to
2940      update the buffer.
2942 `S-<left>'
2943      Change the time stamp associated with the current line by one day
2944      into the past.
2947      Change the time stamp associated with the current line to today.
2948      The key `>' has been chosen, because it is the same as `S-.' on my
2949      keyboard.
2952      Start the clock on the current item.  If a clock is running
2953      already, it is stopped first.  
2956      Stop the previously started clock.  
2959      Cancel the currently running clock.
2961 Calendar commands
2962 .................
2965      Open the Emacs calendar and move to the date at the agenda cursor.
2968      When in the calendar, compute and show the Org-mode agenda for the
2969      date at the cursor.
2972      Insert a new entry into the diary.  Prompts for the type of entry
2973      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
2974      new entry in the diary, just as `i d' etc. would do in the
2975      calendar.  The date is taken from the cursor position.
2978      Show the phases of the moon for the three months around current
2979      date.
2982      Show sunrise and sunset times.  The geographical location must be
2983      set with calendar variables, see documentation of the Emacs
2984      calendar.
2987      Convert the date at cursor into many other cultural and historic
2988      calendars.
2991      Show holidays for three month around the cursor date.
2993 `C-c C-x C-c'
2994      Export a single iCalendar file containing entries from all agenda
2995      files.
2997 Quit and Exit
2998 .............
3001      Quit agenda, remove the agenda buffer.
3004      Exit agenda, remove the agenda buffer and all buffers loaded by
3005      Emacs for the compilation of the agenda.  Buffers created by the
3006      user to visit org files will not be removed.
3009 \x1f
3010 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
3012 9 Embedded LaTeX
3013 ****************
3015 Plain ASCII is normally sufficient for almost all note taking.  One
3016 exception, however, are scientific notes which need to be able to
3017 contain mathematical symbols and the occasional formula.  LaTeX(1) is
3018 widely used to typeset scientific documents. Org-mode supports
3019 embedding LaTeX code into its files, because many academics are used to
3020 read LaTeX source code, and because it can be readily processed into
3021 images for HTML production.
3023    It is not necessary to mark LaTeX macros and code in any special way.
3024 If you observe a few conventions, Org-mode knows how to find it and what
3025 to do with it.
3027 * Menu:
3029 * Math symbols::                TeX macros for symbols and Greek letters
3030 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
3031 * LaTeX fragments::             Complex formulas made easy
3032 * Processing LaTeX fragments::  Previewing LaTeX processing
3033 * CDLaTeX mode::                Speed up entering of formulas
3035    ---------- Footnotes ----------
3037    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
3038 Many of the features described here as "LaTeX" are really from TeX, but
3039 for simplicity I am blurring this distinction.
3041 \x1f
3042 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
3044 9.1 Math symbols
3045 ================
3047 You can use LaTeX macros to insert special symbols like `\alpha' to
3048 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
3049 for these macros is available, just type `\' and maybe a few letters,
3050 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
3051 Org-mode allows these macros to be present without surrounding math
3052 delimiters, for example:
3054      Angles are written as Greek letters \alpha, \beta and \gamma.
3056    During HTML export (*note HTML export::), these symbols are
3057 translated into the proper syntax for HTML, for the above examples this
3058 is `&alpha;' and `&rarr;', respectively.
3060 \x1f
3061 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
3063 9.2 Subscripts and Superscripts
3064 ===============================
3066 Just like in LaTeX, `^' and `_' are used to indicate super- and
3067 subscripts.  Again, these can be used without embedding them in
3068 math-mode delimiters.  To increase the readability of ASCII text, it is
3069 not necessary (but OK) to surround multi-character sub- and superscripts
3070 with curly braces.  For example
3072      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
3073      the sun is R_{sun} = 6.96 x 10^8 m.
3075    To avoid interpretation as raised or lowered text, you can quote `^'
3076 and `_' with a backslash: `\_' and `\^'.
3078    During HTML export (*note HTML export::), subscript and superscripts
3079 are surrounded with `<sub>' and `<sup>' tags, respectively.
3081 \x1f
3082 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
3084 9.3 LaTeX fragments
3085 ===================
3087 With symbols, sub- and superscripts, HTML is pretty much at its end when
3088 it comes to representing mathematical formulas.  More complex
3089 expressions need a dedicated formula processor.  To this end, Org-mode
3090 can contain arbitrary LaTeX fragments.  It provides commands to preview
3091 the typeset result of these fragments, and upon export to HTML, all
3092 fragments will be converted to images and inlined into the HTML
3093 document.  For this to work you need to be on a system with a working
3094 LaTeX installation.  You also need the `dvipng' program, available at
3095 `http://sourceforge.net/projects/dvipng/'.
3097    LaTeX fragments don't need any special marking at all.  The following
3098 snippets will be identified as LaTeX source code:
3099    * Environments of any kind.  The only requirement is that the
3100      `\begin' statement appears on a new line, preceded by only
3101      whitespace.
3103    * Text within the usual LaTeX math delimiters.  To avoid conflicts
3104      with currency specifications, single `$' characters are only
3105      recognized as math delimiters if the enclosed text contains at
3106      most two line breaks, is directly attached to the `$' characters
3107      with no whitespace in between, and if the closing `$' is followed
3108      by whitespace or punctuation.  For the other delimiters, there is
3109      no such restriction, so when in doubt, use `\(...\)' as inline
3110      math delimiters.
3112 For example:
3114      \begin{equation}                          % arbitrary environments,
3115      x=\sqrt{b}                                % even tables, figures
3116      \end{equation}                            % etc
3118      If $a^2=b$ and \( b=2 \), then the solution must be
3119      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
3121 If you need any of the delimiter ASCII sequences for other purposes, you
3122 can configure the option `org-format-latex-options' to deselect the
3123 ones you do not wish to have interpreted by the LaTeX converter.
3125 \x1f
3126 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
3128 9.4 Processing LaTeX fragments
3129 ==============================
3131 LaTeX fragments can be processed to produce a preview images of the
3132 typeset expressions:
3134 `C-c C-x C-l'
3135      Produce a preview image of the LaTeX fragment at point and overlay
3136      it over the source code.  If there is no fragment at point,
3137      process all fragments in the current entry (between two
3138      headlines).  When called with a prefix argument, process the
3139      entire subtree.  When called with two prefix arguments, or when
3140      the cursor is before the first headline, process the entire buffer.  
3142 `C-c C-c'
3143      Remove the overlay preview images.
3145    During HTML export (*note HTML export::), all LaTeX fragments are
3146 converted into images and inlined into the document if the following
3147 setting is active:
3149      (setq org-export-with-LaTeX-fragments t)
3151 \x1f
3152 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
3154 9.5 Using CDLaTeX to enter math
3155 ===============================
3157 CDLaTeX-mode is a minor mode that is normally used in combination with a
3158 major LaTeX mode like AUCTeX in order to speed-up insertion of
3159 environments and math templates.  Inside Org-mode, you can make use of
3160 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
3161 and `texmathp.el' (the latter comes also with AUCTeX) from
3162 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
3163 cdlatex-mode itself under Org-mode, but use the light version
3164 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
3165 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
3166 with
3168      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
3170    When this mode is enabled, the following features are present (for
3171 more details see the documentation of cdlatex-mode):
3172    * Environment templates can be inserted with `C-c {'.
3174    * The <TAB> key will do template expansion if the cursor is inside a
3175      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
3176      `\frac{}{}' and position the cursor correctly inside the first
3177      brace.  Another <TAB> will get you into the second brace.  Even
3178      outside fragments, <TAB> will expand environment abbreviations at
3179      the beginning of a line.  For example, if you write `equ' at the
3180      beginning of a line and press <TAB>, this abbreviation will be
3181      expanded to an `equation' environment.  To get a list of all
3182      abbreviations, type `M-x cdlatex-command-help'.
3184    * Pressing `_' and `^' inside a LaTeX fragment will insert these
3185      characters together with a pair of braces.  If you use <TAB> to
3186      move out of the braces, and if the braces surround only a single
3187      character or macro, they are removed again (depending on the
3188      variable `cdlatex-simplify-sub-super-scripts').
3190    * Pressing the backquote ``' followed by a character inserts math
3191      macros, also outside LaTeX fragments.  If you wait more than 1.5
3192      seconds after the backquote, a help window will pop up.
3194    * Pressing the normal quote `'' followed by another character
3195      modifies the symbol before point with an accent or a font.  If you
3196      wait more than 1.5 seconds after the backquote, a help window will
3197      pop up.  Character modification will work only inside LaTeX
3198      fragments, outside the quote is normal.
3200    ---------- Footnotes ----------
3202    (1) Org-mode has a method to test if the cursor is inside such a
3203 fragment, see the documentation of the function
3204 `org-inside-LaTeX-fragment-p'.
3206 \x1f
3207 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
3209 10 Exporting
3210 ************
3212 Org-mode documents can be exported into a variety of other formats.  For
3213 printing and sharing of notes, ASCII export produces a readable and
3214 simple version of an Org-mode file.  HTML export allows you to publish a
3215 notes file on the web, while the XOXO format provides a solid base for
3216 exchange with a broad range of other applications.  To incorporate
3217 entries with associated times like deadlines or appointments into a
3218 desktop calendar program like iCal, Org-mode can also produce extracts
3219 in the iCalendar format.  Currently Org-mode only supports export, not
3220 import of these different formats.
3222    When exporting, Org-mode uses special conventions to enrich the
3223 output produced.  *Note Text interpretation::, for more details.
3225 * Menu:
3227 * ASCII export::                Exporting to plain ASCII
3228 * HTML export::                 Exporting to HTML
3229 * XOXO export::                 Exporting to XOXO
3230 * iCalendar export::            Exporting in iCalendar format
3231 * Text interpretation::         How the exporter looks at the file
3233 \x1f
3234 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
3236 10.1 ASCII export
3237 =================
3239 ASCII export produces a simple and very readable version of an Org-mode
3240 file.
3242 `C-c C-x a'
3243      Export as ASCII file.  If there is an active region, only the
3244      region will be exported.  For an org file `myfile.org', the ASCII
3245      file will be `myfile.txt'.  The file will be overwritten without
3246      warning.  
3248 `C-c C-x v a'
3249      Export only the visible part of the document.
3251    In the exported version, the first 3 outline levels will become
3252 headlines, defining a general document structure.  Additional levels
3253 will be exported as itemized lists.  If you want that transition to
3254 occur at a different level, specify it with a prefix argument.  For
3255 example,
3257      C-1 C-c C-x a
3259 creates only top level headlines and does the rest as items.  When
3260 headlines are converted to items, the indentation of the text following
3261 the headline is changed to fit nicely under the item.  This is done with
3262 the assumption that the first bodyline indicates the base indentation of
3263 the body text.  Any indentation larger than this is adjusted to preserve
3264 the layout relative to the first line.  Should there be lines with less
3265 indentation than the first, these are left alone.
3267 \x1f
3268 File: org,  Node: HTML export,  Next: XOXO export,  Prev: ASCII export,  Up: Exporting
3270 10.2 HTML export
3271 ================
3273 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
3274 HTML formatting, in ways similar to John Grubers _markdown_ language,
3275 but with additional support for tables.
3277 `C-c C-x h'
3278      Export as HTML file `myfile.html'.  
3280 `C-c C-x b'
3281      Export as HTML file and open it with a browser.  
3283 `C-c C-x v h'
3285 `C-c C-x v b'
3286      Export only the visible part of the document.
3288    In the exported version, the first 3 outline levels will become
3289 headlines, defining a general document structure.  Additional levels
3290 will be exported as itemized lists.  If you want that transition to
3291 occur at a different level, specify it with a prefix argument.  For
3292 example,
3294      C-2 C-c C-x b
3296 creates two levels of headings and does the rest as items.
3298    If you want to include HTML tags which should be interpreted as such,
3299 mark them with `@' as in `@<b>bold text@</b>'.  Plain `<' and `>' are
3300 always transformed to `&lt;' and `&gt;' in HTML export.
3302    Internal links (*note Internal links::) will continue to work in HTML
3303 files only if they match a dedicated `<<target>>'.  Automatic links
3304 created by radio targets (*note Radio targets::) will also work in the
3305 HTML file.  Links to external files will still work if the HTML file is
3306 in the same directory as the Org-mode file.  Links to other `.org'
3307 files will be translated into HTML links under the assumption that an
3308 HTML version also exists of the linked file.  For information related to
3309 linking files while publishing them to a publishing directory see *Note
3310 Publishing links::.
3312    You can also give style information for the exported file.  The HTML
3313 exporter assigns the following CSS classes to appropriate parts of the
3314 document - your style specifications may change these:
3315      .todo           TODO keywords
3316      .done           the DONE keyword
3317      .timestamp      time stamp
3318      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
3319      .tag            tag in a headline
3320      .target         target for links
3322    The default style specification can be configured through the option
3323 `org-export-html-style'.  If you want to use a file-local style, you
3324 may use file variables, best wrapped into a COMMENT section at the end
3325 of the outline tree.  For example:
3327      * COMMENT HTML style specifications
3329      # Local Variables:
3330      # org-export-html-style: "   <style type=\"text/css\">
3331      #       p {font-weight: normal; color: gray; }
3332      #       h1 {color: black; }
3333      #   </style>"
3334      # End:
3336    Remember to execute `M-x normal-mode' after changing this to make
3337 the new style visible to Emacs.  This command restarts org-mode for the
3338 current buffer and forces Emacs to re-evaluate the local variables
3339 section in the buffer.
3341 \x1f
3342 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: HTML export,  Up: Exporting
3344 10.3 XOXO export
3345 ================
3347 Org-mode contains an exporter that produces XOXO-style output.
3348 Currently, this exporter only handles the general outline structure and
3349 does not interpret any additional Org-mode features.
3351 `C-c C-x C-x'
3352      Export as XOXO file `myfile.html'.  
3354 `C-c C-x v x'
3355      Export only the visible part of the document.
3357 \x1f
3358 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
3360 10.4 iCalendar export
3361 =====================
3363 Some people like to use Org-mode for keeping track of projects, but
3364 still prefer a standard calendar application for anniversaries and
3365 appointments.  In this case it can be useful to have deadlines and
3366 other time-stamped items in Org-mode files show up in the calendar
3367 application.  Org-mode can export calendar information in the standard
3368 iCalendar format.
3370 `C-c C-x i'
3371      Create iCalendar entries for the current file and store them in
3372      the same directory, using a file extension `.ics'.  
3374 `C-c C-x C-i'
3375      Like `C-c C-x i', but do this for all files in `org-agenda-files'.
3376      For each of these files, a separate iCalendar file will be
3377      written.  
3379 `C-c C-x c'
3380      Create a single large iCalendar file from all files in
3381      `org-agenda-files' and write it to the file given by
3382      `org-combined-agenda-icalendar-file'.
3384    How this calendar is best read and updated, depends on the
3385 application you are using.  For example, when using iCal under Apple
3386 MacOS X, you could create a new calendar `OrgMode' (the default name
3387 for the calendar created by `C-c C-x c', see the variables
3388 `org-icalendar-combined-name' and
3389 `org-combined-agenda-icalendar-file').  Then set Org-mode to overwrite
3390 the corresponding file `~/Library/Calendars/OrgMode.ics'.  You may even
3391 use AppleScript to make iCal re-read the calendar files each time a new
3392 version of `OrgMode.ics' is produced.  Here is the setup needed for
3393 this:
3395      (setq org-combined-agenda-icalendar-file
3396          "~/Library/Calendars/OrgMode.ics")
3397      (add-hook 'org-after-save-iCalendar-file-hook
3398       (lambda ()
3399        (shell-command
3400         "osascript -e 'tell application \"iCal\" to reload calendars'")))
3402 \x1f
3403 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
3405 10.5 Text interpretation by the exporter
3406 ========================================
3408 The exporter backends interpret additional structure in the Org-mode
3409 file in order to produce better output.
3411 * Menu:
3413 * Comment lines::               Some lines will not be exported
3414 * Enhancing text::              Subscripts, symbols and more
3415 * Export options::              How to influence the export settings
3417 \x1f
3418 File: org,  Node: Comment lines,  Next: Enhancing text,  Prev: Text interpretation,  Up: Text interpretation
3420 10.5.1 Comment lines
3421 --------------------
3423 Lines starting with `#' in column zero are treated as comments and will
3424 never be exported.  Also entire subtrees starting with the word
3425 `COMMENT' will never be exported.  Finally, any text before the first
3426 headline will not be exported either.
3428 `C-c ;'
3429      Toggle the COMMENT keyword at the beginning of an entry.
3431 \x1f
3432 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Comment lines,  Up: Text interpretation
3434 10.5.2 Enhancing text for export
3435 --------------------------------
3437 Some of the export backends of Org-mode allow for sophisticated text
3438 formatting, this is true in particular for the HTML backend.  Org-mode
3439 has a number of typing conventions that allow to produce a richly
3440 formatted output.
3442    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
3443      enumerator will be recognized and transformed if the backend
3444      supports lists.  See *Note Plain lists::.
3446    * You can make words *bold*, /italic/, _underlined_, `=code=', and
3447      `+strikethrough+'.
3449    * Many TeX macros and entire LaTeX fragments are converted into HTML
3450      entities or images (*note Embedded LaTeX::).
3452    * Tables are transformed into native tables under the exporter, if
3453      the export backend supports this. Data fields before the first
3454      horizontal separator line will be formatted as table header fields.
3456    * If a headline starts with the word `QUOTE', the text below the
3457      headline will be typeset as fixed-width, to allow quoting of
3458      computer codes etc.  Lines starting with `:' are also typeset in
3459      fixed-width font.
3460     `C-c :'
3461           Toggle fixed-width for entry (QUOTE) or region, see below.
3463    * A double backslash _at the end of a line_ enforces a line break at
3464      this position.
3466    If these conversions conflict with your habits of typing ASCII text,
3467 they can all be turned off with corresponding variables (see the
3468 customization group `org-export-general', and the following section
3469 which explains how to set export options with special lines in a buffer.
3471 \x1f
3472 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
3474 10.5.3 Export options
3475 ---------------------
3477 The exporter recognizes special lines in the buffer which provide
3478 additional information.  These lines may be put anywhere in the file.
3479 The whole set of lines can be inserted into the buffer with `C-c C-x
3480 t'.  For individual lines, a good way to make sure the keyword is
3481 correct is to type `#+' and then use `M-<TAB>' completion (*note
3482 Completion::).
3484 `C-c C-x t'
3485      Insert template with export options, see example below.
3487      #+TITLE:     the title to be shown (default is the buffer name)
3488      #+AUTHOR:    the author (default taken from `user-full-name')
3489      #+EMAIL:     his/her email address (default from `user-mail-address')
3490      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
3491      #+TEXT:      Some descriptive text to be inserted at the beginning.
3492      #+TEXT:      Several lines may be given.
3493      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t
3495 The OPTIONS line is a compact form to specify export settings.  Here
3496 you can: 
3497      H:      set the number of headline levels for export
3498      num:    turn on/off section-numbers
3499      toc:    turn on/off table of contents
3500      \n:     turn on/off linebreak-preservation
3501      @:      turn on/off quoted HTML tags
3502      ::      turn on/off fixed-width sections
3503      |:      turn on/off tables
3504      ^:      turn on/off TeX-like syntax for sub- and superscripts.
3505      *:      turn on/off emphasized text (bold, italic, underlined)
3506      TeX:    turn on/off simple TeX macros in plain text
3507      LaTeX:  turn on/off LaTeX fragments
3509 \x1f
3510 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
3512 11 Publishing
3513 *************
3515 Org-mode includes(1) a publishing management system that allows you to
3516 configure automatic HTML conversion of _projects_ composed of
3517 interlinked org files.  This system is called _org-publish_.  You can
3518 also configure org-publish to automatically upload your exported HTML
3519 pages and related attachments, such as images and source code files, to
3520 a web server.  Org-publish turns org-mode into a web-site authoring
3521 tool.
3523    Org-publish has been contributed to Org-mode by David O'Toole.
3525 * Menu:
3527 * Configuration::               Defining projects
3528 * Sample configuration::        Example projects
3529 * Triggering publication::      Publication commands
3531    ---------- Footnotes ----------
3533    (1) `org-publish.el' is not yet part of emacs, so if you are using
3534 `org.el' as it comes with Emacs, you need to download this file
3535 separately.  Also make sure org.el is at least version 4.27.
3537 \x1f
3538 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
3540 11.1 Configuration
3541 ==================
3543 Publishing needs significant configuration to specify files, destination
3544 and many other properties of a project.
3546 * Menu:
3548 * Project alist::               The central configuration variable
3549 * Sources and destinations::    From here to there
3550 * Selecting files::             What files are part of the project?
3551 * Publishing action::           Setting the function doing the publishing
3552 * Publishing options::          Tweaking HTML export
3553 * Publishing links::            Which links keep working after publishing?
3554 * Project page index::          Publishing a list of project files
3556 \x1f
3557 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
3559 11.1.1 The variable `org-publish-project-alist'
3560 -----------------------------------------------
3562 Org-publish is configured almost entirely through setting the value of
3563 one variable, called `org-publish-project-alist'.  Each element of the
3564 list configures one project, and may be in one of the two following
3565 forms:
3567      ("project-name"  :property value :property value ...)
3569      or
3571      ("project-name"  :components ("project-name" "project-name" ...))
3573    In both cases, projects are configured by specifying property values.
3574 A project defines the set of files that will be published, as well as
3575 the publishing configuration to use when publishing those files.  When
3576 a project takes the second form listed above, the individual members of
3577 the "components" property are taken to be components of the project,
3578 which group together files requiring different publishing options. When
3579 you publish such a "meta-project" all the components will also publish.
3581 \x1f
3582 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
3584 11.1.2 Sources and destinations for files
3585 -----------------------------------------
3587 Most properties are optional, but some should always be set. In
3588 particular, org-publish needs to know where to look for source files,
3589 and where to put published files.
3591 `:base-directory'      Directory containing publishing source files
3592 `:publishing-directory'Directory (possibly remote) where output files
3593                        will be published.
3595 \x1f
3596 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
3598 11.1.3 Selecting files
3599 ----------------------
3601 By default, all files with extension `.org' in the base directory are
3602 considered part of the project.  This can be modified by setting the
3603 properties
3604 `:base-extension'  Extension (without the dot!) of source files.  This
3605                    actually is a regular expression.
3606 `:exclude'         Regular expression to match file names that should
3607                    not be published, even though they have been selected
3608                    on the basis of their extension.
3609 `:include'         List of files to be included regardless of
3610                    `:base-extension' and `:exclude'.
3612 \x1f
3613 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
3615 11.1.4 Publishing Action
3616 ------------------------
3618 Publishing means that a file is copied to the destination directory and
3619 possibly transformed in the process.  The default transformation is to
3620 export Org-mode files as HTML files, and this is done by the function
3621 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
3622 export::).  Other files like images only need to be copied to the
3623 publishing destination.  For non-Org-mode files, you need to specify
3624 the publishing function.
3626 `:publishing-function' Function executing the publication of a file.
3628    The function must accept two arguments: a property list containing at
3629 least a `:publishing-directory' property, and the name of the file to
3630 be published.  It should take the specified file, make the necessary
3631 transformation (if any) and place the result into the destination
3632 folder.  You can write your own publishing function, but `org-publish'
3633 provides one for attachments (files that only need to be copied):
3634 `org-publish-attachment'.
3636 \x1f
3637 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
3639 11.1.5 Options for the HTML exporter
3640 ------------------------------------
3642 The property list can be used to set many export options for the HTML
3643 exporter.  In most cases, these properties correspond to user variables
3644 in Org-mode.  The table below lists these properties along with the
3645 variable they belong to.  See the documentation string for the
3646 respective variable for details.
3648 `:language'            `org-export-default-language'
3649 `:headline-levels'     `org-export-headline-levels'
3650 `:section-numbers'     `org-export-with-section-numbers'
3651 `:table-of-contents'   `org-export-with-toc'
3652 `:archived-trees'      `org-export-with-archived-trees'
3653 `:emphasize'           `org-export-with-emphasize'
3654 `:sub-superscript'     `org-export-with-sub-superscripts'
3655 `:TeX-macros'          `org-export-with-TeX-macros'
3656 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
3657 `:fixed-width'         `org-export-with-fixed-width'
3658 `:timestamps'          `org-export-with-timestamps'
3659  .                     
3660 `:tags'                `org-export-with-tags'
3661  .                     
3662 `:tables'              `org-export-with-tables'
3663 `:table-auto-headline' `org-export-highlight-first-table-line'
3664 `:style'               `org-export-html-style'
3665 `:convert-org-links'   `org-export-html-link-org-files-as-html'
3666 `:inline-images'       `org-export-html-inline-images'
3667 `:expand-quoted-html'  `org-export-html-expand'
3668 `:timestamp'           `org-export-html-with-timestamp'
3669 `:publishing-directory'`org-export-publishing-directory'
3670 `:preamble'            `org-export-html-preamble'
3671 `:postamble'           `org-export-html-postamble'
3672 `:auto-preamble'       `org-export-html-auto-preamble'
3673 `:auto-postamble'      `org-export-html-auto-postamble'
3674 `:author'              `user-full-name'
3675 `:email'               `user-mail-address'
3677    When a property is given a value in org-publish-project-alist, its
3678 setting overrides the value of the corresponding user variable (if any)
3679 during publishing.  options set within a file (*note Export options::),
3680 however, override everything.
3682 \x1f
3683 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
3685 11.1.6 Links between published files
3686 ------------------------------------
3688 To create a link from one Org-mode file to another, you would use
3689 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
3690 (*note Hyperlinks::).  Upon publishing this link becomes a link to
3691 `foo.html'.  In this way, you can interlink the pages of your "org web"
3692 project and the links will work as expected when you publish them to
3693 HTML.
3695    You may also link to related files, such as images. Provided you are
3696 careful with relative pathnames, and provided you have also configured
3697 org-publish to upload the related files, these links will work too.
3698 *Note Complex example:: for an example of this usage.
3700    Sometime an Org-mode file to be published may contain links that are
3701 only valid in your production environment, but not in the publishing
3702 location.  In this case, use the property
3704 `:link-validation-function'   Function to validate links
3706 to define a function for checking link validity.  This function must
3707 accept two arguments, the file name and a directory relative to which
3708 the file name is interpreted in the production environment.  If this
3709 function returns `nil', then the HTML generator will only insert a
3710 description into the HTML file, but no link.  One option for this
3711 function is `org-publish-validate-link' which checks if the given file
3712 is part of any project in `org-publish-project-alist'.
3714 \x1f
3715 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
3717 11.1.7 Project page index
3718 -------------------------
3720 The following properties may be used to control publishing of an index
3721 of files or summary page for a given project.
3723 `:auto-index'      When non-nil, publish an index during
3724                    org-publish-current-project or org-publish-all.
3725 `:index-filename'  Filename for output of index. Defaults to `index.org'
3726                    (which becomes `index.html').
3727 `:index-title'     Title of index page. Defaults to name of file.
3728 `:index-function'  Plugin function to use for generation of index.
3729                    Defaults to `org-publish-org-index', which generates
3730                    a plain list of links to all files in the project.
3732 \x1f
3733 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
3735 11.2 Sample configuration
3736 =========================
3738 Below we provide two example configurations.  The first one is a simple
3739 project publishing only a set of Org-mode files.  The second example is
3740 more complex, with a multi-component project.
3742 * Menu:
3744 * Simple example::              One-component publishing
3745 * Complex example::             A multi-component publishing example
3747 \x1f
3748 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
3750 11.2.1 Example: simple publishing configuration
3751 -----------------------------------------------
3753 This example publishes a set of Org-mode files to the `public_html'
3754 directory on the local machine.
3756      (setq org-publish-project-alist
3757            '(("org"
3758               :base-directory "~/org/"
3759               :publishing-directory "~/public_html"
3760               :section-numbers nil
3761               :table-of-contents nil
3762               :style "<link rel=stylesheet
3763                      href=\"../other/mystyle.css\"
3764                      type=\"text/css\">")))
3766 \x1f
3767 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
3769 11.2.2 Example: complex publishing configuration
3770 ------------------------------------------------
3772 This more complicated example publishes an entire website, including
3773 org files converted to HTML, image files, emacs lisp source code, and
3774 stylesheets. The publishing-directory is remote and private files are
3775 excluded.
3777    To ensure that links are preserved, care should be taken to replicate
3778 your directory structure on the web server, and to use relative file
3779 paths. For example, if your org files are kept in `~/org' and your
3780 publishable images in `~/images', you'd link to an image with
3781      file:../images/myimage.png
3782    On the web server, the relative path to the image should be the
3783 same. You can accomplish this by setting up an "images" folder in the
3784 right place on the webserver, and publishing images to it.
3786      (setq org-publish-project-alist
3787            '(("orgfiles"
3788                :base-directory "~/org/"
3789                :base-extension "org"
3790                :publishing-directory "/ssh:user@host:~/html/notebook/"
3791                :publishing-function org-publish-org-to-html
3792                :exclude "PrivatePage.org"   ;; regexp
3793                :headline-levels 3
3794                :section-numbers nil
3795                :table-of-contents nil
3796                :style "<link rel=stylesheet
3797                        href=\"../other/mystyle.css\" type=\"text/css\">"
3798                :auto-preamble t
3799                :auto-postamble nil)
3801               ("images"
3802                :base-directory "~/images/"
3803                :base-extension "jpg\\|gif\\|png"
3804                :publishing-directory "/ssh:user@host:~/html/images/"
3805                :publishing-function org-publish-attachment)
3807               ("other"
3808                :base-directory "~/other/"
3809                :base-extension "css\\|el"
3810                :publishing-directory "/ssh:user@host:~/html/other/"
3811                :publishing-function org-publish-attachment)
3812               ("website" :components ("orgfiles" "images" "other"))))
3814 \x1f
3815 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
3817 11.3 Triggering publication
3818 ===========================
3820 Once org-publish is properly configured, you can publish with the
3821 following functions:
3823 `C-c C-e c'
3824      Prompts for a specific project to publish.
3826 `C-c C-e p'
3827      Publishes the project the current file is part of.
3829 `C-c C-e f'
3830      Publishes only the current file.
3832 `C-c C-e a'
3833      Publish all projects.
3835    Org uses timestamps to track when a file has changed. The above
3836 functions normally only publish changed files. You can override this and
3837 force publishing of all files by giving a prefix argument.
3839 \x1f
3840 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
3842 12 Miscellaneous
3843 ****************
3845 * Menu:
3847 * Completion::                  M-TAB knows what you need
3848 * Customization::               Adapting Org-mode to your taste
3849 * In-buffer settings::          Overview of the #+KEYWORDS
3850 * The very busy C-c C-c key::   When in doubt, press C-c C-c
3851 * Clean view::                  Getting rid of leading stars in the outline
3852 * TTY keys::                    Using Org-mode on a tty
3853 * Interaction::                 Other Emacs packages
3854 * Bugs::                        Things which do not work perfectly
3856 \x1f
3857 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
3859 12.1 Completion
3860 ===============
3862 Org-mode supports in-buffer completion.  This type of completion does
3863 not make use of the minibuffer.  You simply type a few letters into the
3864 buffer and use the key to complete text right there.
3866 `M-<TAB>'
3867      Complete word at point
3868         * At the beginning of a headline, complete TODO keywords.
3870         * After `\', complete TeX symbols supported by the exporter.
3872         * After `*', complete CamelCase versions of all headlines in the
3873           buffer.
3875         * After `:', complete tags used elsewhere in the buffer.
3877         * After `#+', complete the special keywords like `TYP_TODO' or
3878           `OPTIONS' which set file-specific options for Org-mode.  When
3879           the option keyword is already complete, pressing `M-<TAB>'
3880           again will insert example settings for this keyword.
3882         * Elsewhere, complete dictionary words using ispell.
3884 \x1f
3885 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
3887 12.2 Customization
3888 ==================
3890 There are more than 100 variables that can be used to customize
3891 Org-mode.  For the sake of compactness of the manual, we are not
3892 describing the variables here.  A structured overview of customization
3893 variables is available with `M-x org-customize'.  Or select `Browse Org
3894 Group' from the `Org->Customization' menu.  Many settings can also be
3895 activated on a per-file basis, by putting special lines into the buffer
3896 (*note In-buffer settings::).
3898 \x1f
3899 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
3901 12.3 Summary of in-buffer settings
3902 ==================================
3904 Org-mode uses special lines in the buffer to define settings on a
3905 per-file basis.  These lines start with a `#+' followed by a keyword, a
3906 colon, and then individual words defining a setting.  Several setting
3907 words can be in the same line, but you can also have multiple lines for
3908 the keyword.  While these settings are described throughout the manual,
3909 here is a summary.  After changing any of those lines in the buffer,
3910 press `C-c C-c' with the cursor still in the line to activate the
3911 changes immediately.  Otherwise they become effective only when the
3912 file is visited again in a new Emacs session.
3914 `#+STARTUP:'
3915      This line sets options to be used at startup of org-mode, when an
3916      Org-mode file is being visited.  The first set of options deals
3917      with the initial visibility of the outline tree.  The
3918      corresponding variable for global default settings is
3919      `org-startup-folded', with a default value `t', which means
3920      `overview'.
3921           overview   top-level headlines only
3922           content    all headlines
3923           showall    no folding at all, show everything
3924      Then there are options for aligning tables upon visiting a file.
3925      This is useful in files containing narrowed table columns.  The
3926      corresponding variable is `org-startup-align-all-tables', with a
3927      default value `nil'.
3928           align      align all tables
3929           noalign    don't align tables on startup
3930      Logging when a TODO item is marked DONE (variable `org-log-done')
3931      can be configured using these options.
3932           logging    record a timestamp when an item is marked DONE
3933           nologging  don't record when items are marked DONE
3934      Here are the options for hiding leading stars in outline headings.
3935      The corresponding variables are `org-hide-leading-stars' and
3936      `org-odd-levels-only', both with a default setting `nil' (meaning
3937      `showstars' and `oddeven').
3938           hidestars  make all but one of the stars starting a headline invisible.
3939           showstars  show all stars starting a headline
3940           odd        allow only odd outline levels (1,3,...)
3941           oddeven    allow all outline levels
3943 `#+SEQ_TODO:   #+TYP_TODO:'
3944      These lines set the TODO keywords and their interpretation in the
3945      current file.  The corresponding variables are `org-todo-keywords'
3946      and `org-todo-interpretation'.
3948 `#+TAGS:  TAG1(c1) TAG2(c2)'
3949      These lines (several such lines are allowed) specify the legal
3950      tags in this file, and (potentially) the corresponding _fast tag
3951      selection_ keys.  The corresponding variable is `org-tag-alist'.
3953 `#+CATEGORY:'
3954      This line sets the category for the agenda file.  The category
3955      applies for all subsequent lines until the next `#+CATEGORY' line,
3956      or the end of the file.
3958 `#+TBLFM:'
3959      This line contains the formulas for the table directly above the
3960      line.
3962 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
3963      These lines provide settings for exporting files.  For more
3964      details see *Note Export options::.
3966 \x1f
3967 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
3969 12.4 The very busy C-c C-c key
3970 ==============================
3972 The key `C-c C-c' has many purposes in org-mode, which are all
3973 mentioned scattered throughout this manual.  One specific function of
3974 this key is to add _tags_ to a headline (*note Tags::).  In many other
3975 circumstances it means something like _Hey Org-mode, look here and
3976 update according to what you see here_.  Here is a summary of what this
3977 means in different contexts.
3979    - If there are highlights in the buffer from the creation of a sparse
3980      tree, or from clock display, remove these highlights.
3982    - If the cursor is in one of the special `#+KEYWORD' lines, this
3983      triggers scanning the buffer for these lines and updating the
3984      information.
3986    - If the cursor is inside a table, realign the table.  This command
3987      works even if the automatic table editor has been turned off.
3989    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
3990      entire table.
3992    - If the cursor is inside a table created by the `table.el' package,
3993      activate that table.
3995    - If the current buffer is a remember buffer, close note and file it.
3996      with a prefix argument, file it without further interaction to the
3997      default location.
3999    - If the cursor is on a `<<<target>>>', update radio targets and
4000      corresponding links in this buffer.
4002    - If the cursor is in a plain list item with a checkbox, toggle the
4003      status of the checkbox.
4005    - If the cursor is on a numbered item in a plain list, renumber the
4006      ordered list.
4008 \x1f
4009 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
4011 12.5 A cleaner outline view
4012 ===========================
4014 Some people find it noisy and distracting that the Org-mode headlines
4015 are starting with a potentially large number of stars.  For example the
4016 tree from *Note Headlines:::
4018      * Top level headline
4019      ** Second level
4020      *** 3rd level
4021          some text
4022      *** 3rd level
4023          more text
4024      * Another top level headline
4026 Unfortunately this is deeply ingrained into the code of Org-mode and
4027 cannot be easily changed.  You can, however, modify the display in such
4028 a way that all leading stars become invisible and the outline more easy
4029 to read.  To do this, customize the variable `org-hide-leading-stars'
4030 like this:
4032      (setq org-hide-leading-stars t)
4034 or change this on a per-file basis with one of the lines (anywhere in
4035 the buffer)
4037      #+STARTUP: showstars
4038      #+STARTUP: hidestars
4040 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
4041 modifications.
4043    With stars hidden, the tree becomes:
4045      * Top level headline
4046       * Second level
4047        * 3rd level
4048          some text
4049        * 3rd level
4050          more text
4051      * Another top level headline
4053 Note that the leading stars are not truly replaced by whitespace, they
4054 are only fontified with the face `org-hide' that uses the background
4055 color as font color.  If are are not using either white or black
4056 background, you may have to customize this face to get the wanted
4057 effect.  Another possibility is to set this font such that the extra
4058 stars are almost invisible, for example using the color `grey90' on a
4059 white background.
4061    Things become cleaner still if you skip all the even levels and use
4062 only odd levels 1, 3, 5..., effectively adding two stars to go from one
4063 outline level to the next:
4065      * Top level headline
4066        * Second level
4067          * 3rd level
4068            some text
4069          * 3rd level
4070            more text
4071      * Another top level headline
4073 In order to make the structure editing and export commands handle this
4074 convention correctly, use
4076      (setq org-odd-levels-only t)
4078 or set this on a per-file basis with one of the following lines (don't
4079 forget to press `C-c C-c' with the cursor in the startup line to
4080 activate changes immediately).
4082      #+STARTUP: odd
4083      #+STARTUP: oddeven
4085    You can convert an Org-mode file from single-star-per-level to the
4086 double-star-per-level convention with `M-x org-convert-to-odd-levels
4087 RET' in that file.  The reverse operation is `M-x
4088 org-convert-to-oddeven-levels'.
4090 \x1f
4091 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
4093 12.6 Using org-mode on a tty
4094 ============================
4096 Org-mode uses a number of keys that are not accessible on a tty.  This
4097 applies to most special keys like cursor keys, <TAB> and <RET>, when
4098 these are combined with modifier keys like <Meta> and/or <Shift>.
4099 Org-mode uses these bindings because it needs to provide keys for a
4100 large number of commands, and because these keys appeared particularly
4101 easy to remember.  In order to still be able to access the core
4102 functionality of Org-mode on a tty, alternative bindings are provided.
4103 Here is a complete list of these bindings, which are obviously more
4104 cumbersome to use.  Note that sometimes a work-around can be better.
4105 For example changing a time stamp is really only fun with `S-<cursor>'
4106 keys.  On a tty you would rather use `C-c .'  to re-insert the
4107 timestamp.
4109 Default     Alternative 1  Alternative 2
4110 `S-<TAB>'   `C-u <TAB>'    
4111 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
4112 `M-S-<left>'`C-c C-x L'    
4113 `M-<right>' `C-c C-x r'    `<Esc>
4114                            <right>'
4115 `M-S-<right>'`C-c C-x R'    
4116 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
4117 `M-S-<up>'  `C-c C-x U'    
4118 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
4119 `M-S-<down>'`C-c C-x D'    
4120 `S-<RET>'   `C-c C-x c'    
4121 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
4122 `M-S-<RET>' `C-c C-x M'    
4123 `S-<left>'  `C-c C-x       
4124             <left>'        
4125 `S-<right>' `C-c C-x       
4126             <right>'       
4127 `S-<up>'    `C-c C-x       
4128             <up>'          
4129 `S-<down>'  `C-c C-x       
4130             <down>'        
4132 \x1f
4133 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
4135 12.7 Interaction with other packages
4136 ====================================
4138 Org-mode lives in the world of GNU Emacs and interacts in various ways
4139 with other code out there.
4141 * Menu:
4143 * Cooperation::                 Packages Org-mode cooperates with
4144 * Conflicts::                   Packages that lead to conflicts
4146 \x1f
4147 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
4149 12.7.1 Packages that Org-mode cooperates with
4150 ---------------------------------------------
4152 `calc.el' by Dave Gillespie
4153      Org-mode uses the calc package for implementing spreadsheet
4154      functionality in its tables (*note Table calculations::).
4155      Org-modes checks for the availability of calc by looking for the
4156      function `calc-eval' which should be autoloaded in your setup if
4157      calc has been installed properly.  As of Emacs 22, calc is part of
4158      the Emacs distribution.  Another possibility for interaction
4159      between the two packages is using calc for embedded calculations.
4160      *Note Embedded Mode: (calc)Embedded Mode.  
4162 `constants.el' by Carsten Dominik
4163      In a table formula (*note Table calculations::), it is possible to
4164      use names for natural constants or units.  Instead of defining
4165      your own constants in the variable `org-table-formula-constants',
4166      install the `constants' package which defines a large number of
4167      constants and units, and lets you use unit prefixes like `M' for
4168      `Mega' etc.  You will need version 2.0 of this package, available
4169      at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
4170      the function `constants-get', which has to be autoloaded in your
4171      setup.  See the installation instructions in the file
4172      `constants.el'.
4174 `cdlatex.el' by Carsten Dominik
4175      Org-mode can make use of the cdlatex package to efficiently enter
4176      LaTeX fragments into Org-mode files.  `cdlatex.el' is not part of
4177      Emacs, find it on the web.
4179 `remember.el' by John Wiegley
4180      Org mode cooperates with remember, see *Note Remember::.
4181      `Remember.el' is not part of Emacs, find it on the web.  
4183 `table.el' by Takaaki Ota
4184      Org mode cooperates with table.el, see *Note table.el::.
4185      `table.el' is part of Emacs 22.
4187 \x1f
4188 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
4190 12.7.2 Packages that lead to conflicts with Org-mode
4191 ----------------------------------------------------
4193 `allout.el' by Ken Manheimer
4194      Startup of Org-mode may fail with the error message
4195      `(wrong-type-argument keymapp nil)' when there is an outdated
4196      version `allout.el' on the load path, for example the version
4197      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
4198      will disappear.  If for some reason you cannot do this, make sure
4199      that org.el is loaded _before_ `allout.el', for example by putting
4200      `(require 'org)' early enough into your `.emacs' file.
4202 `CUA.el' by Kim. F. Storm
4203      Keybindings in Org-mode conflict with the `S-<cursor>' keys used
4204      by CUA-mode (as well as pc-select-mode and s-region-mode) to
4205      select and extend the region.  If you want to use one of these
4206      packages along with Org-mode, configure the variable
4207      `org-CUA-compatible'.  When set, Org-mode will move the following
4208      keybindings in org-mode files, and in the agenda buffer (but not
4209      during date selection).
4211           S-UP    -> M-p             S-DOWN  -> M-n
4212           S-LEFT  -> M--             S-RIGHT -> M-+
4213           S-RET   -> C-S-RET
4215      Yes, these are unfortunately more difficult to remember.  If you
4216      want to have other replacement keys, look at the variable
4217      `org-disputed-keys'.
4219 `windmove.el' by Hovav Shacham
4220      Also this package uses the `S-<cursor>' keys, so everything written
4221      in the paragraph above about CUA mode also applies here.
4223 \x1f
4224 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
4226 12.8 Bugs
4227 =========
4229 Here is a list of things that should work differently, but which I have
4230 found too hard to fix.
4232    * If a table field starts with a link, and if the corresponding table
4233      column is narrowed (*note Narrow columns::) to a width too small to
4234      display the link, the field would look entirely empty even though
4235      it is not.  To prevent this, Org-mode throws an error.  The
4236      work-around is to make the column wide enough to fit the link, or
4237      to add some text (at least 2 characters) before the link in the
4238      same field.
4240    * Narrowing table columns does not work on XEmacs, because the
4241      `format' function does not transport text properties.
4243    * Text in an entry protected with the `QUOTE' keyword should not
4244      autowrap.
4246    * When the application called by `C-c C-o' to open a file link fails
4247      (for example because the application does not exist or refuses to
4248      open the file), it does so silently.  No error message is
4249      displayed.
4251    * The remote-editing commands in the agenda buffer cannot be undone
4252      with `undo' called from within the agenda buffer.  But you can go
4253      to the corresponding buffer (using <TAB> or <RET> and execute
4254      `undo' there.
4256    * Recalculating a table line applies the formulas from left to right.
4257      If a formula uses _calculated_ fields further down the row,
4258      multiple recalculation may be needed to get all fields consistent.
4260    * A single letter cannot be made bold, for example `*a*'.
4262    * The exporters work well, but could be made more efficient.
4264 \x1f
4265 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
4267 Appendix A Extensions, Hooks and Hacking
4268 ****************************************
4270 This appendix lists extensions for Org-mode written by other authors.
4271 It also covers some aspects where users can easily extend the
4272 functionality of Org-mode.
4274 * Menu:
4276 * Extensions::                  Existing 3rd-part extensions
4277 * Dynamic blocks::              Automatically filled blocks
4279 \x1f
4280 File: org,  Node: Extensions,  Next: Dynamic blocks,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
4282 A.1 Third-party extensions for Org-mode
4283 =======================================
4285 The following extensions for Org-mode have been written by other people:
4287 `org-mouse.el' by Piotr Zielinski
4288      This package implements extended mouse functionality for Org-mode.
4289      It allows you to cycle visibility and to edit the document
4290      structure with the mouse.  Best of all, it provides a
4291      context-sensitive menu on <mouse-3> that changes depending on the
4292      context of a mouse-click.  `org-mouse.el' is freely available at
4293      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
4295 `org-publish.el' by David O'Toole
4296      This package provides facilities for publishing related sets of
4297      Org-mode files together with linked files like images as a
4298      webpages.  It is highly configurable and can be used for other
4299      publishing purposes as well.  As of Org-mode version 4.30,
4300      `org-publish.el' is part of the Org-mode distribution.  It is not
4301      yet part of Emacs, however, a delay caused by the preparations for
4302      the 22.1 release.  In the mean time, `org-publish.el' can be
4303      downloaded from David's site:
4304      `http://dto.freeshell.org/e/org-publish.el'.  
4306 `org-blog.el' by David O'Toole
4307      A blogging plug-in for `org-publish.el'.
4308      `http://dto.freeshell.org/notebook/OrgMode.html'.  
4310 `org-blogging.el' by  Bastien Guerry
4311      Publish Org-mode files as blogs.
4312      `http://www.cognition.ens.fr/~guerry/org-blogging.html'.
4314 \x1f
4315 File: org,  Node: Dynamic blocks,  Prev: Extensions,  Up: Extensions and Hacking
4317 A.2 Dynamic blocks
4318 ==================
4320 Org-mode documents can contain _dynamic blocks_.  These are specially
4321 marked regions that are updates by some user-written function.  A good
4322 example for such a block is the clock table inserted by the command
4323 `C-c C-x C-r' (*note Clocking work time::).
4325    Dynamic block are enclosed by a BEGIN-END structure that assigns a
4326 name to the block and can also specify parameters for the function
4327 producing the content of the block.
4329      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 .....
4331      #+END:
4333    Dynamic blocks are updated with the following commands
4335 `C-c C-x C-u'
4336      Update dynamic block at point.  
4338 `C-u C-c C-x C-u'
4339      Update all dynamic blocks in the current file.
4341    Updating a dynamic block means to remove all the text between BEGIN
4342 and END, parse the BEGIN line for parameters and then call the specific
4343 writer function for this block to insert the new content.  For a block
4344 with name `myblock', the writer function is `org-dblock-write:myblock'
4345 with as only parameter a property list with the parameters given in the
4346 begin line.  Here is a trivial example of a block that keeps track of
4347 when the block update function was last run:
4349      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
4351      #+END:
4353 The corresponding block writer function could look like this:
4355      (defun org-dblock-write:date-and-time (params)
4356         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
4357           (insert "Last block update at: "
4358              (format-time-string fmt (current-time)))))
4360    If you want to make sure that all dynamic blocks are always
4361 up-to-date, you could add the function `org-update-all-dblocks' to a
4362 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
4363 written in a way that is does nothing in buffers that are not in
4364 Org-mode.
4366 \x1f
4367 File: org,  Node: History and Acknowledgments,  Next: Index,  Prev: Extensions and Hacking,  Up: Top
4369 Appendix B History and Acknowledgments
4370 **************************************
4372 The beginnings of Org-mode go back to 2003.  It was borne out of
4373 frustration over the user interface of the emacs outline-mode.  All I
4374 wanted was to make working with an outline tree possible without having
4375 to remember more than 10 commands just for hiding and unhiding parts of
4376 the outline tree, and to allow to restructure a tree easily.  Visibility
4377 cycling and structure editing were originally implemented in the package
4378 `outline-magic.el', but quickly moved to the more general `org.el'.
4379 TODO entries, basic time stamps, and table support were added next, and
4380 highlight the two main goals that Org-mode still has today:  To create
4381 a new, outline-based, plain text mode with innovative and intuitive
4382 editing features, and to incorporate project planning functionality
4383 directly into a notes file.
4385    Since the first release, hundreds of emails to me or on
4386 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
4387 feedback, new ideas, and sometimes even patches and add-on code.  Many
4388 thanks to everyone who has helped to improve this package.  I am trying
4389 to keep here a list of the people who had significant influence in
4390 shaping one or more aspects of Org-mode.  The list may not be complete,
4391 if I have forgotten someone, please accept my apologies and let me know.
4393    * Thomas Baumann contributed the code for links to the MH-E email
4394      system.
4396    * Alex Bochannek provided a patch for rounding time stamps.
4398    * Charles Cave's suggestion sparked the implementation of templates
4399      for Remember.
4401    * Pavel Chalmoviansky influenced the agenda treatment of items with
4402      specified time.
4404    * Gregory Chernov patched support for lisp forms into table
4405      calculations and improved XEmacs compatibility, in particular by
4406      porting `nouline.el' to XEmacs.
4408    * Sacha Chua suggested to copy some linking code from Planner.
4410    * Kees Dullemond inspired the use of narrowed tabled columns.
4412    * Christian Egli converted the documentation into TeXInfo format,
4413      patched CSS formatting into the HTML exporter, and inspired the
4414      agenda.
4416    * Nic Ferrier contributed mailcap and XOXO support.
4418    * Niels Giessen had the idea to automatically archive DONE trees.
4420    * Bastien Guerry provoded extensive feedback.
4422    * Kai Grossjohann pointed out key-binding conflicts caused by
4423      Org-mode.
4425    * Leon Liu asked for embedded LaTeX and tested it.
4427    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
4428      happy.
4430    * Todd Neal provided patches for links to Info files and elisp forms.
4432    * Tim O'Callaghan suggested in-file links, search options for general
4433      file links, and TAGS.
4435    * Oliver Oppitz suggested multi-state TODO items.
4437    * Scott Otterson sparked the introduction of descriptive text for
4438      links, among other things.
4440    * Pete Phillips helped the development of the TAGS feature.
4442    * T.V. Raman reported bugs and suggested improvements.
4444    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
4445      control.
4447    * Kevin Rogers contributed code to access VM files on remote hosts.
4449    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
4450      conflict with `allout.el'.
4452    * Philip Rooke created the Org-mode reference card and provided lots
4453      of feedback.
4455    * Christian Schlauer proposed angular brackets around links, among
4456      other things.
4458    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
4459      `organizer-mode.el'.
4461    * Daniel Sinder came up with the idea of internal archiving by
4462      locking subtrees.
4464    * David O'Toole wrote `org-publish.el' and drafted the manual
4465      chapter about publishing.
4467    * Ju"rgen Vollmer contributed code generating the table of contents
4468      in HTML output.
4470    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
4472    * David Wainberg suggested archiving, and improvements to the linking
4473      system.
4475    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
4476      development of Org-mode was fully independent, and both systems are
4477      really different beasts in their basic ideas and implementation
4478      details.  I later looked at John's code, however, and learned from
4479      his implementation of (i) links where the link itself is hidden
4480      and only a description is shown, and (ii) popping up a calendar to
4481      select a date.
4483    * Carsten Wimmer suggested some changes and helped fix a bug in
4484      linking to GNUS.
4486    * Roland Winkler requested additional keybindings to make Org-mode
4487      work on a tty.
4489    * Piotr Zielinski wrote `org-mouse.el' and showed how to follow
4490      links with mouse-1.
4492 \x1f
4493 File: org,  Node: Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
4495 Index
4496 *****
4498 \0\b[index\0\b]
4499 * Menu:
4501 * acknowledgments:                       History and Acknowledgments.
4502                                                               (line   6)
4503 * action, for publishing:                Publishing action.   (line   6)
4504 * active region <1>:                     HTML export.         (line  10)
4505 * active region <2>:                     ASCII export.        (line   9)
4506 * active region <3>:                     Built-in table editor.
4507                                                               (line 165)
4508 * active region:                         Structure editing.   (line  51)
4509 * agenda:                                Weekly/Daily agenda. (line   6)
4510 * agenda commands, custom:               Agenda dispatcher.   (line   6)
4511 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
4512 * agenda files, removing buffers:        Agenda commands.     (line 208)
4513 * agenda views:                          Agenda views.        (line   6)
4514 * agenda, for single file:               Timeline.            (line   6)
4515 * allout.el:                             Conflicts.           (line   6)
4516 * angular brackets, around links:        External links.      (line  38)
4517 * applescript, for calendar update:      iCalendar export.    (line  38)
4518 * archive locations:                     Moving subtrees.     (line  21)
4519 * archiving:                             Archiving.           (line   6)
4520 * ASCII export:                          ASCII export.        (line   6)
4521 * author:                                Feedback.            (line   6)
4522 * autoload:                              Installation.        (line   6)
4523 * BBDB links:                            External links.      (line   6)
4524 * bold text:                             Enhancing text.      (line  15)
4525 * bug reports:                           Feedback.            (line   6)
4526 * bugs:                                  Bugs.                (line   6)
4527 * calc package:                          Table calculations.  (line   6)
4528 * calc.el:                               Cooperation.         (line   6)
4529 * calculations, in tables <1>:           Table calculations.  (line   6)
4530 * calculations, in tables:               Built-in table editor.
4531                                                               (line 135)
4532 * calendar integration:                  Calendar/Diary integration.
4533                                                               (line   6)
4534 * calendar, for selecting date:          Creating timestamps. (line  71)
4535 * CamelCase link completion:             Completion.          (line   6)
4536 * CamelCase links:                       Internal links.      (line   6)
4537 * CamelCase links, completion of:        CamelCase links.     (line   6)
4538 * category:                              Categories.          (line   6)
4539 * cdlatex.el:                            Cooperation.         (line  29)
4540 * checkboxes:                            Plain lists.         (line  36)
4541 * children, subtree visibility state:    Visibility cycling.  (line  10)
4542 * clean outline view:                    Clean view.          (line   6)
4543 * CLOCK keyword:                         Time stamps.         (line  61)
4544 * CLOSED keyword:                        Time stamps.         (line  55)
4545 * column formula:                        Column formulas.     (line   6)
4546 * commands, in agenda buffer:            Agenda commands.     (line   6)
4547 * comment lines:                         Comment lines.       (line   6)
4548 * completion, of CamelCase links <1>:    Completion.          (line   6)
4549 * completion, of CamelCase links:        CamelCase links.     (line   6)
4550 * completion, of dictionary words:       Completion.          (line   6)
4551 * completion, of file names:             Handling links.      (line  43)
4552 * completion, of links:                  Handling links.      (line  27)
4553 * completion, of option keywords <1>:    Completion.          (line   6)
4554 * completion, of option keywords:        Export options.      (line   6)
4555 * Completion, of option keywords:        Per file keywords.   (line  17)
4556 * completion, of tags <1>:               Completion.          (line   6)
4557 * completion, of tags:                   Setting tags.        (line  11)
4558 * completion, of TeX symbols:            Completion.          (line   6)
4559 * completion, of TODO keywords <1>:      Completion.          (line   6)
4560 * completion, of TODO keywords:          Workflow states.     (line  12)
4561 * constants, in calculations:            Formula syntax.      (line  26)
4562 * constants.el:                          Cooperation.         (line  14)
4563 * contents, global visibility state:     Visibility cycling.  (line  22)
4564 * copying, of subtrees:                  Structure editing.   (line   6)
4565 * creating timestamps:                   Creating timestamps. (line   6)
4566 * CUA.el:                                Conflicts.           (line  15)
4567 * custom agenda commands:                Agenda dispatcher.   (line   6)
4568 * custom search strings:                 Custom searches.     (line   6)
4569 * customization:                         Customization.       (line   6)
4570 * cutting, of subtrees:                  Structure editing.   (line   6)
4571 * cycling, of TODO states:               TODO basics.         (line  13)
4572 * cycling, visibility:                   Visibility cycling.  (line   6)
4573 * date stamps:                           Time stamps.         (line   6)
4574 * date, reading in minibuffer:           Creating timestamps. (line  71)
4575 * DEADLINE keyword:                      Time stamps.         (line  43)
4576 * deadlines:                             Time stamps.         (line   6)
4577 * demotion, of subtrees:                 Structure editing.   (line   6)
4578 * diary entries, creating from agenda:   Agenda commands.     (line 176)
4579 * diary integration:                     Calendar/Diary integration.
4580                                                               (line   6)
4581 * dictionary word completion:            Completion.          (line   6)
4582 * directories, for publishing:           Sources and destinations.
4583                                                               (line   6)
4584 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
4585 * document structure:                    Document structure.  (line   6)
4586 * DONE, final TODO keyword:              Per file keywords.   (line  20)
4587 * editing tables:                        Tables.              (line   6)
4588 * editing, of table formulas:            Editing/debugging formulas.
4589                                                               (line   6)
4590 * elisp links:                           External links.      (line   6)
4591 * emphasized text:                       Export options.      (line  25)
4592 * enhancing text:                        Enhancing text.      (line   6)
4593 * evaluate time range:                   Creating timestamps. (line  66)
4594 * exporting:                             Exporting.           (line   6)
4595 * exporting, not:                        Comment lines.       (line   6)
4596 * extended TODO keywords:                TODO extensions.     (line   6)
4597 * external archiving:                    Moving subtrees.     (line   6)
4598 * external links:                        External links.      (line   6)
4599 * external links, in HTML export:        HTML export.         (line  35)
4600 * FAQ:                                   Summary.             (line  41)
4601 * feedback:                              Feedback.            (line   6)
4602 * file links:                            External links.      (line   6)
4603 * file links, searching:                 Search options.      (line   6)
4604 * file name completion:                  Handling links.      (line  43)
4605 * files, adding to agenda list:          Agenda files.        (line  12)
4606 * files, selecting for publishing:       Selecting files.     (line   6)
4607 * fixed width:                           Enhancing text.      (line  25)
4608 * fixed-width sections:                  Export options.      (line  25)
4609 * folded, subtree visibility state:      Visibility cycling.  (line  10)
4610 * folding, sparse trees:                 Sparse trees.        (line   6)
4611 * following links:                       Handling links.      (line  58)
4612 * format specifier:                      Formula syntax.      (line  34)
4613 * format, of links:                      Link format.         (line   6)
4614 * formula editing:                       Editing/debugging formulas.
4615                                                               (line   6)
4616 * formula syntax:                        Formula syntax.      (line   6)
4617 * formula, for named table field:        Named-field formulas.
4618                                                               (line   6)
4619 * formula, for table column:             Column formulas.     (line   6)
4620 * formula, in tables:                    Built-in table editor.
4621                                                               (line 135)
4622 * global cycling:                        Visibility cycling.  (line  22)
4623 * global keybindings:                    Installation.        (line   6)
4624 * global TODO list:                      Global TODO list.    (line   6)
4625 * global visibility states:              Visibility cycling.  (line  22)
4626 * GNUS links:                            External links.      (line   6)
4627 * hand-formatted lists:                  Enhancing text.      (line  11)
4628 * headline levels:                       Export options.      (line  25)
4629 * headline levels, for exporting <1>:    HTML export.         (line  21)
4630 * headline levels, for exporting:        ASCII export.        (line  18)
4631 * headline navigation:                   Motion.              (line   6)
4632 * headline tagging:                      Tags.                (line   6)
4633 * headline, promotion and demotion:      Structure editing.   (line   6)
4634 * headlines:                             Headlines.           (line   6)
4635 * hide text:                             Visibility cycling.  (line   6)
4636 * hiding leading stars:                  Clean view.          (line   6)
4637 * history:                               History and Acknowledgments.
4638                                                               (line   6)
4639 * HTML export:                           HTML export.         (line   6)
4640 * hyperlinks:                            Hyperlinks.          (line   6)
4641 * iCalendar export:                      iCalendar export.    (line   6)
4642 * in-buffer settings:                    In-buffer settings.  (line   6)
4643 * index, of published pages:             Project page index.  (line   6)
4644 * Info links:                            External links.      (line   6)
4645 * inheritance, of tags:                  Tag inheritance.     (line   6)
4646 * inserting links:                       Handling links.      (line  27)
4647 * installation:                          Installation.        (line   6)
4648 * internal archiving:                    ARCHIVE tag.         (line   6)
4649 * internal links:                        Internal links.      (line   6)
4650 * internal links, in HTML export:        HTML export.         (line  35)
4651 * introduction:                          Introduction.        (line   6)
4652 * italic text:                           Enhancing text.      (line  15)
4653 * jumping, to headlines:                 Motion.              (line   6)
4654 * keybindings, global:                   Installation.        (line   6)
4655 * keyword options:                       Per file keywords.   (line   6)
4656 * LaTeX fragments:                       Export options.      (line  25)
4657 * LaTeX fragments, export:               Enhancing text.      (line  18)
4658 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
4659 * linebreak preservation:                Export options.      (line  25)
4660 * linebreak, forced:                     Enhancing text.      (line  32)
4661 * link completion:                       Handling links.      (line  27)
4662 * link format:                           Link format.         (line   6)
4663 * links, external:                       External links.      (line   6)
4664 * links, in HTML export:                 HTML export.         (line  35)
4665 * links, internal:                       Internal links.      (line   6)
4666 * links, publishing:                     Publishing links.    (line   6)
4667 * links, returning to:                   Handling links.      (line  84)
4668 * Lisp forms, as table formulas:         Lisp formulas.       (line   6)
4669 * lists, hand-formatted:                 Enhancing text.      (line  11)
4670 * lists, ordered:                        Plain lists.         (line   6)
4671 * lists, plain:                          Plain lists.         (line   6)
4672 * logging, of progress:                  Progress logging.    (line   6)
4673 * maintainer:                            Feedback.            (line   6)
4674 * mark ring:                             Handling links.      (line  80)
4675 * marking characters, tables:            Advanced features.   (line  34)
4676 * matching, of tags:                     Matching headline tags.
4677                                                               (line   6)
4678 * matching, tags:                        Tags.                (line   6)
4679 * MH-E links:                            External links.      (line   6)
4680 * minor mode for tables:                 orgtbl-mode.         (line   6)
4681 * mode, for calc:                        Formula syntax.      (line  34)
4682 * motion, between headlines:             Motion.              (line   6)
4683 * name, of column or field:              Formula syntax.      (line  26)
4684 * named field formula:                   Named-field formulas.
4685                                                               (line   6)
4686 * names as TODO keywords:                TODO types.          (line   6)
4687 * narrow columns in tables:              Narrow columns.      (line   6)
4688 * occur, command:                        Sparse trees.        (line   6)
4689 * option keyword completion:             Completion.          (line   6)
4690 * options, for customization:            Customization.       (line   6)
4691 * options, for export:                   Export options.      (line   6)
4692 * options, for publishing:               Publishing options.  (line   6)
4693 * ordered lists:                         Plain lists.         (line   6)
4694 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
4695 * org-blog.el:                           Extensions.          (line  25)
4696 * org-blogging.el:                       Extensions.          (line  29)
4697 * org-mode, turning on:                  Installation.        (line  34)
4698 * org-mouse.el:                          Extensions.          (line   8)
4699 * org-publish-project-alist:             Project alist.       (line   6)
4700 * org-publish.el:                        Extensions.          (line  14)
4701 * orgtbl-mode:                           orgtbl-mode.         (line   6)
4702 * outline tree:                          Headlines.           (line   6)
4703 * outline-mode:                          Outlines.            (line   6)
4704 * outlines:                              Outlines.            (line   6)
4705 * overview, global visibility state:     Visibility cycling.  (line  22)
4706 * packages, interaction with other:      Interaction.         (line   6)
4707 * pasting, of subtrees:                  Structure editing.   (line   6)
4708 * per file keywords:                     Per file keywords.   (line   6)
4709 * plain lists:                           Plain lists.         (line   6)
4710 * plain text external links:             External links.      (line  38)
4711 * printing sparse trees:                 Sparse trees.        (line  39)
4712 * priorities:                            Priorities.          (line   6)
4713 * priorities, of agenda items:           Sorting of agenda items.
4714                                                               (line   6)
4715 * progress logging:                      Progress logging.    (line   6)
4716 * projects, for publishing:              Project alist.       (line   6)
4717 * promotion, of subtrees:                Structure editing.   (line   6)
4718 * publishing:                            Publishing.          (line   6)
4719 * quoted HTML tags:                      Export options.      (line  25)
4720 * ranges, time:                          Time stamps.         (line   6)
4721 * recomputing table fields:              Column formulas.     (line  27)
4722 * region, active <1>:                    HTML export.         (line  10)
4723 * region, active <2>:                    ASCII export.        (line   9)
4724 * region, active <3>:                    Built-in table editor.
4725                                                               (line 165)
4726 * region, active:                        Structure editing.   (line  51)
4727 * remember.el <1>:                       Cooperation.         (line  34)
4728 * remember.el:                           Remember.            (line   6)
4729 * richer text:                           Enhancing text.      (line   6)
4730 * RMAIL links:                           External links.      (line   6)
4731 * SCHEDULED keyword:                     Time stamps.         (line  30)
4732 * scheduling:                            Time stamps.         (line   6)
4733 * search option in file links:           Search options.      (line   6)
4734 * section-numbers:                       Export options.      (line  25)
4735 * setting tags:                          Setting tags.        (line   6)
4736 * SHELL links:                           External links.      (line   6)
4737 * show all, command:                     Visibility cycling.  (line  31)
4738 * show all, global visibility state:     Visibility cycling.  (line  22)
4739 * show hidden text:                      Visibility cycling.  (line   6)
4740 * single file summary:                   Timeline.            (line   6)
4741 * sorting, of agenda items:              Sorting of agenda items.
4742                                                               (line   6)
4743 * sparse tree, for deadlines:            Creating timestamps. (line  41)
4744 * sparse tree, for TODO:                 TODO basics.         (line  26)
4745 * sparse tree, tag based:                Tags.                (line   6)
4746 * sparse trees:                          Sparse trees.        (line   6)
4747 * special keywords:                      In-buffer settings.  (line   6)
4748 * spreadsheet capabilities:              Table calculations.  (line   6)
4749 * storing links:                         Handling links.      (line   9)
4750 * structure editing:                     Structure editing.   (line   6)
4751 * structure of document:                 Document structure.  (line   6)
4752 * subtree cycling:                       Visibility cycling.  (line  10)
4753 * subtree visibility states:             Visibility cycling.  (line  10)
4754 * subtree, cut and paste:                Structure editing.   (line   6)
4755 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
4756 * subtrees, cut and paste:               Structure editing.   (line   6)
4757 * summary:                               Summary.             (line   6)
4758 * syntax, of formulas:                   Formula syntax.      (line   6)
4759 * table editor, builtin:                 Built-in table editor.
4760                                                               (line   6)
4761 * table editor, table.el:                table.el.            (line   6)
4762 * table of contents:                     Export options.      (line  25)
4763 * table.el <1>:                          Cooperation.         (line  35)
4764 * table.el:                              table.el.            (line   6)
4765 * tables <1>:                            Export options.      (line  25)
4766 * tables:                                Tables.              (line   6)
4767 * tables, export:                        Enhancing text.      (line  21)
4768 * tag completion:                        Completion.          (line   6)
4769 * tag searches:                          Tag searches.        (line   6)
4770 * tags:                                  Tags.                (line   6)
4771 * tags view:                             Matching headline tags.
4772                                                               (line   6)
4773 * templates, for remember:               Remember.            (line  23)
4774 * TeX interpretation:                    Embedded LaTeX.      (line   6)
4775 * TeX macros:                            Export options.      (line  25)
4776 * TeX macros, export:                    Enhancing text.      (line  18)
4777 * TeX symbol completion:                 Completion.          (line   6)
4778 * TeX-like syntax for sub- and superscripts: Export options.  (line  25)
4779 * thanks:                                History and Acknowledgments.
4780                                                               (line   6)
4781 * time stamps:                           Time stamps.         (line   6)
4782 * time, reading in minibuffer:           Creating timestamps. (line  71)
4783 * time-sorted view:                      Timeline.            (line   6)
4784 * timeline, single file:                 Timeline.            (line   6)
4785 * timerange:                             Time stamps.         (line  21)
4786 * timestamp:                             Time stamps.         (line  13)
4787 * timestamps, creating:                  Creating timestamps. (line   6)
4788 * TODO items:                            TODO items.          (line   6)
4789 * TODO keywords completion:              Completion.          (line   6)
4790 * TODO list, global:                     Global TODO list.    (line   6)
4791 * TODO types:                            TODO types.          (line   6)
4792 * TODO workflow:                         Workflow states.     (line   6)
4793 * transient-mark-mode <1>:               HTML export.         (line  10)
4794 * transient-mark-mode <2>:               ASCII export.        (line   9)
4795 * transient-mark-mode <3>:               Built-in table editor.
4796                                                               (line 165)
4797 * transient-mark-mode:                   Structure editing.   (line  51)
4798 * trees, sparse:                         Sparse trees.        (line   6)
4799 * trees, visibility:                     Visibility cycling.  (line   6)
4800 * tty keybindings:                       TTY keys.            (line   6)
4801 * types as TODO keywords:                TODO types.          (line   6)
4802 * underlined text:                       Enhancing text.      (line  15)
4803 * URL links:                             External links.      (line   6)
4804 * USENET links:                          External links.      (line   6)
4805 * variables, for customization:          Customization.       (line   6)
4806 * vectors, in table calculations:        Formula syntax.      (line  23)
4807 * visibility cycling:                    Visibility cycling.  (line   6)
4808 * visible text, printing:                Sparse trees.        (line  39)
4809 * VM links:                              External links.      (line   6)
4810 * WANDERLUST links:                      External links.      (line   6)
4811 * windmove.el:                           Conflicts.           (line  33)
4812 * workflow states as TODO keywords:      Workflow states.     (line   6)
4813 * XOXO export:                           XOXO export.         (line   6)
4815 \x1f
4816 File: org,  Node: Key Index,  Prev: Index,  Up: Top
4818 3 Key Index
4819 ***********
4821 \0\b[index\0\b]
4822 * Menu:
4824 * ':                                     CDLaTeX mode.        (line  43)
4825 * +:                                     Agenda commands.     (line 123)
4826 * ,:                                     Agenda commands.     (line 115)
4827 * -:                                     Agenda commands.     (line 129)
4828 * .:                                     Agenda commands.     (line  91)
4829 * ::                                     Agenda commands.     (line 109)
4830 * <:                                     Creating timestamps. (line  78)
4831 * <left>:                                Agenda commands.     (line  88)
4832 * <RET> <1>:                             Agenda commands.     (line  41)
4833 * <RET> <2>:                             Creating timestamps. (line 103)
4834 * <RET>:                                 Built-in table editor.
4835                                                               (line  64)
4836 * <right>:                               Agenda commands.     (line  83)
4837 * <SPC>:                                 Agenda commands.     (line  28)
4838 * <TAB> <1>:                             CDLaTeX mode.        (line  23)
4839 * <TAB> <2>:                             Agenda commands.     (line  35)
4840 * <TAB> <3>:                             Built-in table editor.
4841                                                               (line  57)
4842 * <TAB> <4>:                             Plain lists.         (line  48)
4843 * <TAB>:                                 Visibility cycling.  (line  10)
4844 * > <1>:                                 Agenda commands.     (line 151)
4845 * >:                                     Creating timestamps. (line  79)
4846 * ^:                                     CDLaTeX mode.        (line  33)
4847 * _:                                     CDLaTeX mode.        (line  33)
4848 * `:                                     CDLaTeX mode.        (line  39)
4849 * a:                                     Agenda commands.     (line 112)
4850 * C:                                     Agenda commands.     (line 191)
4851 * c:                                     Agenda commands.     (line 169)
4852 * C-#:                                   Built-in table editor.
4853                                                               (line 155)
4854 * C-,:                                   Agenda files.        (line  18)
4855 * C-c !:                                 Creating timestamps. (line  21)
4856 * C-c $:                                 Moving subtrees.     (line  10)
4857 * C-c %:                                 Handling links.      (line  80)
4858 * C-c &:                                 Handling links.      (line  84)
4859 * C-c ' <1>:                             Editing/debugging formulas.
4860                                                               (line  20)
4861 * C-c ':                                 Built-in table editor.
4862                                                               (line 144)
4863 * C-c *:                                 Built-in table editor.
4864                                                               (line 148)
4865 * C-c +:                                 Built-in table editor.
4866                                                               (line 165)
4867 * C-c ,:                                 Priorities.          (line  18)
4868 * C-c -:                                 Built-in table editor.
4869                                                               (line  92)
4870 * C-c .:                                 Creating timestamps. (line  10)
4871 * C-c /:                                 Sparse trees.        (line  15)
4872 * C-c ::                                 Enhancing text.      (line  29)
4873 * C-c ;:                                 Comment lines.       (line  11)
4874 * C-c <:                                 Creating timestamps. (line  25)
4875 * C-c <TAB>:                             Built-in table editor.
4876                                                               (line 187)
4877 * C-c =:                                 Built-in table editor.
4878                                                               (line 135)
4879 * C-c >:                                 Creating timestamps. (line  29)
4880 * C-c ? <1>:                             Editing/debugging formulas.
4881                                                               (line  20)
4882 * C-c ?:                                 Built-in table editor.
4883                                                               (line 161)
4884 * C-c [:                                 Agenda files.        (line  12)
4885 * C-c \:                                 Tag searches.        (line   9)
4886 * C-c ]:                                 Agenda files.        (line  15)
4887 * C-c ^:                                 Built-in table editor.
4888                                                               (line  96)
4889 * C-c `:                                 Built-in table editor.
4890                                                               (line 181)
4891 * C-c a a:                               Weekly/Daily agenda. (line   9)
4892 * C-c a C:                               Agenda dispatcher.   (line  29)
4893 * C-c a M:                               Matching headline tags.
4894                                                               (line  15)
4895 * C-c a m:                               Matching headline tags.
4896                                                               (line  10)
4897 * C-c a M:                               Tag searches.        (line  14)
4898 * C-c a m:                               Tag searches.        (line  10)
4899 * C-c a T:                               Global TODO list.    (line  14)
4900 * C-c a t <1>:                           Global TODO list.    (line   9)
4901 * C-c a t:                               TODO basics.         (line  33)
4902 * C-c C-a:                               Visibility cycling.  (line  31)
4903 * C-c C-b:                               Motion.              (line  15)
4904 * C-c C-c <1>:                           The very busy C-c C-c key.
4905                                                               (line   6)
4906 * C-c C-c <2>:                           Processing LaTeX fragments.
4907                                                               (line  15)
4908 * C-c C-c <3>:                           Setting tags.        (line  10)
4909 * C-c C-c <4>:                           table.el.            (line   6)
4910 * C-c C-c <5>:                           Editing/debugging formulas.
4911                                                               (line  16)
4912 * C-c C-c <6>:                           Built-in table editor.
4913                                                               (line  54)
4914 * C-c C-c:                               Plain lists.         (line  85)
4915 * C-c C-d <1>:                           Agenda commands.     (line 136)
4916 * C-c C-d:                               Creating timestamps. (line  37)
4917 * C-c C-f:                               Motion.              (line  12)
4918 * C-c C-j:                               Motion.              (line  21)
4919 * C-c C-l:                               Handling links.      (line  27)
4920 * C-c C-n:                               Motion.              (line   8)
4921 * C-c C-o <1>:                           Creating timestamps. (line  33)
4922 * C-c C-o:                               Handling links.      (line  58)
4923 * C-c C-p:                               Motion.              (line   9)
4924 * C-c C-q <1>:                           Editing/debugging formulas.
4925                                                               (line  20)
4926 * C-c C-q:                               Built-in table editor.
4927                                                               (line 119)
4928 * C-c C-r:                               Timeline.            (line  13)
4929 * C-c C-s <1>:                           Agenda commands.     (line 133)
4930 * C-c C-s:                               Creating timestamps. (line  48)
4931 * C-c C-t <1>:                           Clocking work time.  (line  20)
4932 * C-c C-t:                               TODO basics.         (line  13)
4933 * C-c C-u:                               Motion.              (line  18)
4934 * C-c C-v:                               TODO basics.         (line  26)
4935 * C-c C-w:                               Creating timestamps. (line  41)
4936 * C-c C-x a:                             ASCII export.        (line   9)
4937 * C-c C-x b:                             HTML export.         (line  11)
4938 * C-c C-x c:                             iCalendar export.    (line  20)
4939 * C-c C-x C-a:                           ARCHIVE tag.         (line  27)
4940 * C-c C-x C-c:                           Agenda commands.     (line 198)
4941 * C-c C-x C-d:                           Clocking work time.  (line  28)
4942 * C-c C-x C-i <1>:                       iCalendar export.    (line  15)
4943 * C-c C-x C-i:                           Clocking work time.  (line  12)
4944 * C-c C-x C-k:                           Structure editing.   (line  36)
4945 * C-c C-x C-l:                           Processing LaTeX fragments.
4946                                                               (line   9)
4947 * C-c C-x C-o:                           Clocking work time.  (line  14)
4948 * C-c C-x C-r:                           Clocking work time.  (line  35)
4949 * C-c C-x C-u:                           Dynamic blocks.      (line  21)
4950 * C-c C-x C-w <1>:                       Built-in table editor.
4951                                                               (line 108)
4952 * C-c C-x C-w:                           Structure editing.   (line  36)
4953 * C-c C-x C-x <1>:                       XOXO export.         (line  10)
4954 * C-c C-x C-x:                           Clocking work time.  (line  24)
4955 * C-c C-x C-y <1>:                       Built-in table editor.
4956                                                               (line 112)
4957 * C-c C-x C-y:                           Structure editing.   (line  43)
4958 * C-c C-x h:                             HTML export.         (line  10)
4959 * C-c C-x i:                             iCalendar export.    (line  13)
4960 * C-c C-x M-w <1>:                       Built-in table editor.
4961                                                               (line 105)
4962 * C-c C-x M-w:                           Structure editing.   (line  40)
4963 * C-c C-x t:                             Export options.      (line  13)
4964 * C-c C-x v <1>:                         XOXO export.         (line  11)
4965 * C-c C-x v:                             Sparse trees.        (line  39)
4966 * C-c C-x v a:                           ASCII export.        (line  13)
4967 * C-c C-x v b:                           HTML export.         (line  14)
4968 * C-c C-x v h:                           HTML export.         (line  14)
4969 * C-c C-y:                               Creating timestamps. (line  66)
4970 * C-c l:                                 Handling links.      (line   9)
4971 * C-c {:                                 CDLaTeX mode.        (line  21)
4972 * C-c |:                                 Built-in table editor.
4973                                                               (line  40)
4974 * C-c ~:                                 table.el.            (line  18)
4975 * C-u C-c $:                             Moving subtrees.     (line  12)
4976 * C-u C-c .:                             Creating timestamps. (line  16)
4977 * C-u C-c =:                             Built-in table editor.
4978                                                               (line 139)
4979 * C-u C-c C-l:                           Handling links.      (line  43)
4980 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  30)
4981 * C-u C-c C-x C-u:                       Dynamic blocks.      (line  22)
4982 * D:                                     Agenda commands.     (line  68)
4983 * d:                                     Agenda commands.     (line  65)
4984 * f:                                     Agenda commands.     (line  44)
4985 * g:                                     Agenda commands.     (line  72)
4986 * H:                                     Agenda commands.     (line 195)
4987 * i:                                     Agenda commands.     (line 176)
4988 * I:                                     Agenda commands.     (line 156)
4989 * l:                                     Agenda commands.     (line  51)
4990 * L:                                     Agenda commands.     (line  32)
4991 * M:                                     Agenda commands.     (line 182)
4992 * M-<down>:                              Built-in table editor.
4993                                                               (line  82)
4994 * M-<left> <1>:                          Built-in table editor.
4995                                                               (line  72)
4996 * M-<left>:                              Structure editing.   (line  18)
4997 * M-<RET> <1>:                           Plain lists.         (line  53)
4998 * M-<RET>:                               Structure editing.   (line   6)
4999 * M-<right> <1>:                         Built-in table editor.
5000                                                               (line  72)
5001 * M-<right>:                             Structure editing.   (line  21)
5002 * M-<TAB> <1>:                           Completion.          (line  10)
5003 * M-<TAB> <2>:                           Setting tags.        (line   6)
5004 * M-<TAB>:                               Per file keywords.   (line  17)
5005 * M-<up>:                                Built-in table editor.
5006                                                               (line  82)
5007 * M-S-<down> <1>:                        Built-in table editor.
5008                                                               (line  89)
5009 * M-S-<down> <2>:                        Plain lists.         (line  70)
5010 * M-S-<down>:                            Structure editing.   (line  33)
5011 * M-S-<left> <1>:                        Creating timestamps. (line 100)
5012 * M-S-<left> <2>:                        Built-in table editor.
5013                                                               (line  76)
5014 * M-S-<left> <3>:                        Plain lists.         (line  76)
5015 * M-S-<left>:                            Structure editing.   (line  24)
5016 * M-S-<RET> <1>:                         Plain lists.         (line  63)
5017 * M-S-<RET>:                             Structure editing.   (line  15)
5018 * M-S-<right> <1>:                       Creating timestamps. (line  97)
5019 * M-S-<right> <2>:                       Built-in table editor.
5020                                                               (line  79)
5021 * M-S-<right> <3>:                       Plain lists.         (line  76)
5022 * M-S-<right>:                           Structure editing.   (line  27)
5023 * M-S-<up> <1>:                          Built-in table editor.
5024                                                               (line  86)
5025 * M-S-<up> <2>:                          Plain lists.         (line  70)
5026 * M-S-<up>:                              Structure editing.   (line  30)
5027 * mouse-1 <1>:                           Agenda commands.     (line  35)
5028 * mouse-1 <2>:                           Creating timestamps. (line  82)
5029 * mouse-1:                               Handling links.      (line  72)
5030 * mouse-2 <1>:                           Agenda commands.     (line  35)
5031 * mouse-2:                               Handling links.      (line  72)
5032 * mouse-3 <1>:                           Agenda commands.     (line  28)
5033 * mouse-3:                               Handling links.      (line  77)
5034 * n:                                     Agenda commands.     (line  19)
5035 * O:                                     Agenda commands.     (line 158)
5036 * o:                                     Agenda commands.     (line  59)
5037 * P:                                     Agenda commands.     (line 120)
5038 * p:                                     Agenda commands.     (line  20)
5039 * q:                                     Agenda commands.     (line 205)
5040 * r <1>:                                 Agenda commands.     (line  76)
5041 * r:                                     Global TODO list.    (line  20)
5042 * S:                                     Agenda commands.     (line 186)
5043 * S-<down> <1>:                          Agenda commands.     (line 129)
5044 * S-<down> <2>:                          Creating timestamps. (line  58)
5045 * S-<down> <3>:                          Priorities.          (line  25)
5046 * S-<down>:                              Plain lists.         (line  66)
5047 * S-<left> <1>:                          Agenda commands.     (line 147)
5048 * S-<left> <2>:                          Creating timestamps. (line  53)
5049 * S-<left>:                              TODO basics.         (line  20)
5050 * S-<RET>:                               Built-in table editor.
5051                                                               (line 170)
5052 * S-<right> <1>:                         Agenda commands.     (line 139)
5053 * S-<right> <2>:                         Creating timestamps. (line  53)
5054 * S-<right>:                             TODO basics.         (line  20)
5055 * S-<TAB> <1>:                           Built-in table editor.
5056                                                               (line  61)
5057 * S-<TAB>:                               Visibility cycling.  (line  22)
5058 * S-<up> <1>:                            Agenda commands.     (line 123)
5059 * S-<up> <2>:                            Creating timestamps. (line  58)
5060 * S-<up> <3>:                            Priorities.          (line  25)
5061 * S-<up>:                                Plain lists.         (line  66)
5062 * T:                                     Agenda commands.     (line 104)
5063 * t:                                     Agenda commands.     (line 100)
5064 * w:                                     Agenda commands.     (line  62)
5065 * x:                                     Agenda commands.     (line 208)
5066 * X:                                     Agenda commands.     (line 161)
5069 \x1f
5070 Tag Table:
5071 Node: Top\x7f959
5072 Node: Introduction\x7f9455
5073 Node: Summary\x7f9768
5074 Node: Installation\x7f12035
5075 Node: Feedback\x7f13824
5076 Node: Document structure\x7f14595
5077 Node: Outlines\x7f15361
5078 Node: Headlines\x7f16021
5079 Node: Visibility cycling\x7f16644
5080 Ref: Visibility cycling-Footnote-1\x7f18119
5081 Ref: Visibility cycling-Footnote-2\x7f18177
5082 Node: Motion\x7f18227
5083 Node: Structure editing\x7f19011
5084 Node: Archiving\x7f21120
5085 Node: ARCHIVE tag\x7f21678
5086 Node: Moving subtrees\x7f23353
5087 Node: Sparse trees\x7f24394
5088 Ref: Sparse trees-Footnote-1\x7f26373
5089 Ref: Sparse trees-Footnote-2\x7f26465
5090 Node: Plain lists\x7f26580
5091 Ref: Plain lists-Footnote-1\x7f30478
5092 Node: Tables\x7f30835
5093 Node: Built-in table editor\x7f31383
5094 Node: Narrow columns\x7f38990
5095 Ref: Narrow columns-Footnote-1\x7f40929
5096 Node: Table calculations\x7f40975
5097 Node: Formula syntax\x7f42295
5098 Ref: Formula syntax-Footnote-1\x7f45200
5099 Node: Lisp formulas\x7f45500
5100 Node: Column formulas\x7f46289
5101 Node: Advanced features\x7f48051
5102 Node: Named-field formulas\x7f51305
5103 Node: Editing/debugging formulas\x7f51945
5104 Node: Appetizer\x7f53703
5105 Node: orgtbl-mode\x7f54806
5106 Node: table.el\x7f55297
5107 Node: Hyperlinks\x7f56274
5108 Node: Link format\x7f56979
5109 Node: Internal links\x7f58272
5110 Ref: Internal links-Footnote-1\x7f60261
5111 Node: Radio targets\x7f60393
5112 Node: CamelCase links\x7f61108
5113 Node: External links\x7f61606
5114 Node: Handling links\x7f63737
5115 Ref: Handling links-Footnote-1\x7f68323
5116 Node: Search options\x7f68560
5117 Ref: Search options-Footnote-1\x7f70334
5118 Node: Custom searches\x7f70415
5119 Node: Remember\x7f71463
5120 Node: TODO items\x7f75153
5121 Node: TODO basics\x7f76017
5122 Node: TODO extensions\x7f77544
5123 Node: Workflow states\x7f78339
5124 Node: TODO types\x7f79207
5125 Ref: TODO types-Footnote-1\x7f80865
5126 Node: Per file keywords\x7f80947
5127 Ref: Per file keywords-Footnote-1\x7f82401
5128 Node: Priorities\x7f82629
5129 Node: Timestamps\x7f83845
5130 Node: Time stamps\x7f84235
5131 Node: Creating timestamps\x7f87332
5132 Node: Progress logging\x7f90678
5133 Node: Closing items\x7f91208
5134 Node: Clocking work time\x7f92003
5135 Node: Tags\x7f94172
5136 Node: Tag inheritance\x7f94934
5137 Node: Setting tags\x7f95871
5138 Ref: Setting tags-Footnote-1\x7f99001
5139 Ref: Setting tags-Footnote-2\x7f99113
5140 Node: Tag searches\x7f99193
5141 Node: Agenda views\x7f100402
5142 Node: Agenda files\x7f101946
5143 Ref: Agenda files-Footnote-1\x7f102906
5144 Ref: Agenda files-Footnote-2\x7f103055
5145 Node: Agenda dispatcher\x7f103247
5146 Node: Weekly/Daily agenda\x7f105363
5147 Node: Categories\x7f106498
5148 Node: Time-of-day specifications\x7f107146
5149 Node: Calendar/Diary integration\x7f109122
5150 Node: Sorting of agenda items\x7f110499
5151 Node: Global TODO list\x7f111331
5152 Node: Matching headline tags\x7f112692
5153 Node: Timeline\x7f113635
5154 Node: Agenda commands\x7f114508
5155 Node: Embedded LaTeX\x7f120286
5156 Ref: Embedded LaTeX-Footnote-1\x7f121378
5157 Node: Math symbols\x7f121568
5158 Node: Subscripts and Superscripts\x7f122333
5159 Node: LaTeX fragments\x7f123177
5160 Node: Processing LaTeX fragments\x7f125246
5161 Node: CDLaTeX mode\x7f126192
5162 Ref: CDLaTeX mode-Footnote-1\x7f128676
5163 Node: Exporting\x7f128824
5164 Node: ASCII export\x7f129961
5165 Node: HTML export\x7f131251
5166 Node: XOXO export\x7f134087
5167 Node: iCalendar export\x7f134528
5168 Node: Text interpretation\x7f136353
5169 Node: Comment lines\x7f136832
5170 Node: Enhancing text\x7f137303
5171 Node: Export options\x7f138995
5172 Node: Publishing\x7f140662
5173 Ref: Publishing-Footnote-1\x7f141458
5174 Node: Configuration\x7f141654
5175 Node: Project alist\x7f142372
5176 Node: Sources and destinations\x7f143438
5177 Node: Selecting files\x7f143985
5178 Node: Publishing action\x7f144733
5179 Node: Publishing options\x7f145848
5180 Node: Publishing links\x7f148000
5181 Node: Project page index\x7f149513
5182 Node: Sample configuration\x7f150291
5183 Node: Simple example\x7f150783
5184 Node: Complex example\x7f151456
5185 Node: Triggering publication\x7f153532
5186 Node: Miscellaneous\x7f154188
5187 Node: Completion\x7f154822
5188 Node: Customization\x7f155818
5189 Node: In-buffer settings\x7f156403
5190 Node: The very busy C-c C-c key\x7f159634
5191 Node: Clean view\x7f161271
5192 Node: TTY keys\x7f163848
5193 Node: Interaction\x7f165457
5194 Node: Cooperation\x7f165854
5195 Node: Conflicts\x7f167756
5196 Node: Bugs\x7f169348
5197 Node: Extensions and Hacking\x7f170971
5198 Node: Extensions\x7f171457
5199 Node: Dynamic blocks\x7f173027
5200 Node: History and Acknowledgments\x7f174945
5201 Node: Index\x7f179726
5202 Node: Key Index\x7f202566
5203 \x1f
5204 End Tag Table