Release 5.13g
[org-mode/org-mode-NeilSmithlineMods.git] / org
blob12ce3b940d60dee63d12751c0e7418a9fa41370d
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 5.13e).
10    Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
12      Permission is granted to copy, distribute and/or modify this
13      document under the terms of the GNU Free Documentation License,
14      Version 1.1 or any later version published by the Free Software
15      Foundation; with no Invariant Sections, with the Front-Cover texts
16      being "A GNU Manual," and with the Back-Cover Texts as in (a)
17      below.  A copy of the license is included in the section entitled
18      "GNU Free Documentation License."
20      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
21      modify this GNU Manual, like GNU software.  Copies published by
22      the Free Software Foundation raise funds for GNU development."
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 5.13e).
32    Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
34      Permission is granted to copy, distribute and/or modify this
35      document under the terms of the GNU Free Documentation License,
36      Version 1.1 or any later version published by the Free Software
37      Foundation; with no Invariant Sections, with the Front-Cover texts
38      being "A GNU Manual," and with the Back-Cover Texts as in (a)
39      below.  A copy of the license is included in the section entitled
40      "GNU Free Documentation License."
42      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
43      modify this GNU Manual, like GNU software.  Copies published by
44      the Free Software Foundation raise funds for GNU development."
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 * Tags::                        Tagging headlines and matching sets of tags
54 * Properties and columns::      Storing information about an entry
55 * Timestamps::                  Assign date and time to items
56 * Remember::                    Quickly adding nodes to the outline tree
57 * Agenda views::                Collecting information into views
58 * Embedded LaTeX::              LaTeX fragments and formulas
59 * Exporting::                   Sharing and publishing of notes
60 * Publishing::                  Create a web site of linked Org-mode files
61 * Miscellaneous::               All the rest which did not fit elsewhere
62 * Extensions and Hacking::      It is possible to write add-on code
63 * History and Acknowledgments::  How Org-mode came into being
64 * Index::                       The fast road to specific information
65 * Key Index::                   Key bindings and where they are described
67  --- The Detailed Node Listing ---
69 Introduction
71 * Summary::                     Brief summary of what Org-mode does
72 * Installation::                How to install a downloaded version of Org-mode
73 * Activation::                  How to activate Org-mode for certain buffers.
74 * Feedback::                    Bug reports, ideas, patches etc.
76 Document Structure
78 * Outlines::                    Org-mode is based on outline-mode
79 * Headlines::                   How to typeset org-tree headlines
80 * Visibility cycling::          Show and hide, much simplified
81 * Motion::                      Jumping to other headlines
82 * Structure editing::           Changing sequence and level of headlines
83 * Archiving::                   Move done task trees to a different place
84 * Sparse trees::                Matches embedded in context
85 * Plain lists::                 Additional structure within an entry
86 * Drawers::                     Tucking stuff away
87 * orgstruct-mode::              Structure editing outside Org-mode
89 Archiving
91 * ARCHIVE tag::                 Marking a tree as inactive
92 * Moving subtrees::             Moving a tree to an archive file
94 Tables
96 * Built-in table editor::       Simple tables
97 * Narrow columns::              Stop wasting space in tables
98 * Column groups::               Grouping to trigger vertical lines
99 * orgtbl-mode::                 The table editor as minor mode
100 * The spreadsheet::             The table editor has spreadsheet capabilities.
102 The spreadsheet
104 * References::                  How to refer to another field or range
105 * Formula syntax for Calc::     Using Calc to compute stuff
106 * Formula syntax for Lisp::     Writing formulas in Emacs Lisp
107 * Field formulas::              Formulas valid for a single field
108 * Column formulas::             Formulas valid for an entire column
109 * Editing and debugging formulas::  Fixing formulas
110 * Updating the table::          Recomputing all dependent fields
111 * Advanced features::           Field names, parameters and automatic recalc
113 Hyperlinks
115 * Link format::                 How links in Org-mode are formatted
116 * Internal links::              Links to other places in the current file
117 * External links::              URL-like links to the world
118 * Handling links::              Creating, inserting and following
119 * Using links outside Org-mode::  Linking from my C source code?
120 * Link abbreviations::          Shortcuts for writing complex links
121 * Search options::              Linking to a specific location
122 * Custom searches::             When the default search is not enough
124 Internal links
126 * Radio targets::               Make targets trigger links in plain text.
128 TODO items
130 * TODO basics::                 Marking and displaying TODO entries
131 * TODO extensions::             Workflow and assignments
132 * Progress logging::            Dates and notes for progress
133 * Priorities::                  Some things are more important than others
134 * Breaking down tasks::         Splitting a task into manageable pieces
135 * Checkboxes::                  Tick-off lists
137 Extended use of TODO keywords
139 * Workflow states::             From TODO to DONE in steps
140 * TODO types::                  I do this, Fred the rest
141 * Multiple sets in one file::   Mixing it all, and still finding your way
142 * Fast access to TODO states::  Single letter selection of a state
143 * Per file keywords::           Different files, different requirements
144 * Faces for TODO keywords::     Highlighting states
146 Progress Logging
148 * Closing items::               When was this entry marked DONE?
149 * Tracking TODO state changes::  When did the status change?
151 Tags
153 * Tag inheritance::             Tags use the tree structure of the outline
154 * Setting tags::                How to assign tags to a headline
155 * Tag searches::                Searching for combinations of tags
157 Properties and Columns
159 * Property syntax::             How properties are spelled out
160 * Special properties::          Access to other Org-mode features
161 * Property searches::           Matching property values
162 * Column view::                 Tabular viewing and editing
163 * Property API::                Properties for Lisp programmers
165 Column View
167 * Defining columns::            The COLUMNS format property
168 * Using column view::           How to create and use column view
169 * Capturing Column View::       A dynamic block for column view
171 Defining Columns
173 * Scope of column definitions::  Where defined, where valid?
174 * Column attributes::           Appearance and content of a column
176 Timestamps
178 * Time stamps::                 Assigning a time to a tree entry
179 * Creating timestamps::         Commands which insert timestamps
180 * Deadlines and scheduling::    Planning your work
181 * Clocking work time::
183 Creating timestamps
185 * The date/time prompt::        How org-mode helps you entering date and time
186 * Custom time format::          Making dates look differently
188 Deadlines and Scheduling
190 * Inserting deadline/schedule::  Planning items
191 * Repeated tasks::              Items that show up again and again
193 Remember
195 * Setting up remember::         Some code for .emacs to get things going
196 * Remember templates::          Define the outline of different note types
197 * Storing notes::               Directly get the note to where it belongs
199 Agenda Views
201 * Agenda files::                Files being searched for agenda information
202 * Agenda dispatcher::           Keyboard access to agenda views
203 * Built-in agenda views::       What is available out of the box?
204 * Presentation and sorting::    How agenda items are prepared for display
205 * Agenda commands::             Remote editing of org trees
206 * Custom agenda views::         Defining special searches and views
208 The built-in agenda views
210 * Weekly/Daily agenda::         The calendar page with current tasks
211 * Global TODO list::            All unfinished action items
212 * Matching tags and properties::  Structured information with fine-tuned search
213 * Timeline::                    Time-sorted view for single file
214 * Stuck projects::              Find projects you need to review
216 Presentation and sorting
218 * Categories::                  Not all tasks are equal
219 * Time-of-day specifications::  How the agenda knows the time
220 * Sorting of agenda items::     The order of things
222 Custom agenda views
224 * Storing searches::            Type once, use often
225 * Block agenda::                All the stuff you need in a single buffer
226 * Setting Options::             Changing the rules
227 * Exporting Agenda Views::      Writing agendas to files.
228 * Extracting Agenda Information for other programs::
230 Embedded LaTeX
232 * Math symbols::                TeX macros for symbols and Greek letters
233 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
234 * LaTeX fragments::             Complex formulas made easy
235 * Processing LaTeX fragments::  Previewing LaTeX processing
236 * CDLaTeX mode::                Speed up entering of formulas
238 Exporting
240 * ASCII export::                Exporting to plain ASCII
241 * HTML export::                 Exporting to HTML
242 * LaTeX export::                Exporting to LaTeX
243 * XOXO export::                 Exporting to XOXO
244 * iCalendar export::            Exporting in iCalendar format
245 * Text interpretation::         How the exporter looks at the file
247 HTML export
249 * HTML Export commands::        How to invoke LaTeX export
250 * Quoting HTML tags::           Using direct HTML in Org-mode
251 * Links::                       Transformation of links for HTML
252 * Images::                      How to include images
253 * CSS support::                 Changing the appearence of the output
255 LaTeX export
257 * LaTeX export commands::       How to invoke LaTeX export
258 * Quoting LaTeX code::          Incorporating literal LaTeX code
260 Text interpretation by the exporter
262 * Comment lines::               Some lines will not be exported
263 * Initial text::                Text before the first headline
264 * Footnotes::                   Numbers like [1]
265 * Enhancing text::              Subscripts, symbols and more
266 * Export options::              How to influence the export settings
268 Publishing
270 * Configuration::               Defining projects
271 * Sample configuration::        Example projects
272 * Triggering publication::      Publication commands
274 Configuration
276 * Project alist::               The central configuration variable
277 * Sources and destinations::    From here to there
278 * Selecting files::             What files are part of the project?
279 * Publishing action::           Setting the function doing the publishing
280 * Publishing options::          Tweaking HTML export
281 * Publishing links::            Which links keep working after publishing?
282 * Project page index::          Publishing a list of project files
284 Sample configuration
286 * Simple example::              One-component publishing
287 * Complex example::             A multi-component publishing example
289 Miscellaneous
291 * Completion::                  M-TAB knows what you need
292 * Customization::               Adapting Org-mode to your taste
293 * In-buffer settings::          Overview of the #+KEYWORDS
294 * The very busy C-c C-c key::   When in doubt, press C-c C-c
295 * Clean view::                  Getting rid of leading stars in the outline
296 * TTY keys::                    Using Org-mode on a tty
297 * Interaction::                 Other Emacs packages
298 * Bugs::                        Things which do not work perfectly
300 Interaction with other packages
302 * Cooperation::                 Packages Org-mode cooperates with
303 * Conflicts::                   Packages that lead to conflicts
305 Extensions, Hooks and Hacking
307 * Extensions::                  Existing 3rd-part extensions
308 * Adding hyperlink types::      New custom link types
309 * Tables in arbitrary syntax::  Orgtbl for LaTeX and other programs
310 * Dynamic blocks::              Automatically filled blocks
311 * Special agenda views::        Customized views
312 * Using the property API::      Writing programs that use entry properties
314 Tables in arbitrary syntax
316 * Radio tables::                Sending and receiving
317 * A LaTeX example::             Step by step, almost a tutorial
318 * Translator functions::        Copy and modify
320 \x1f
321 File: org,  Node: Introduction,  Next: Document structure,  Prev: Top,  Up: Top
323 1 Introduction
324 **************
326 * Menu:
328 * Summary::                     Brief summary of what Org-mode does
329 * Installation::                How to install a downloaded version of Org-mode
330 * Activation::                  How to activate Org-mode for certain buffers.
331 * Feedback::                    Bug reports, ideas, patches etc.
333 \x1f
334 File: org,  Node: Summary,  Next: Installation,  Prev: Introduction,  Up: Introduction
336 1.1 Summary
337 ===========
339 Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
340 project planning with a fast and effective plain-text system.
342    Org-mode develops organizational tasks around NOTES files that
343 contain lists or information about projects as plain text.  Org-mode is
344 implemented on top of outline-mode, which makes it possible to keep the
345 content of large files well structured.  Visibility cycling and
346 structure editing help to work with the tree.  Tables are easily created
347 with a built-in table editor.  Org-mode supports TODO items, deadlines,
348 time stamps, and scheduling.  It dynamically compiles entries into an
349 agenda that utilizes and smoothly integrates much of the Emacs calendar
350 and diary.  Plain text URL-like links connect to websites, emails,
351 Usenet messages, BBDB entries, and any files related to the projects.
352 For printing and sharing of notes, an Org-mode file can be exported as a
353 structured ASCII file, as HTML, or (todo and agenda items only) as an
354 iCalendar file.  It can also serve as a publishing tool for a set of
355 linked webpages.
357    An important design aspect that distinguishes Org-mode from for
358 example Planner/Muse is that it encourages to store every piece of
359 information only once.  In Planner, you have project pages, day pages
360 and possibly other files, duplicating some information such as tasks.
361 In Org-mode, you only have notes files.  In your notes you mark entries
362 as tasks, label them with tags and timestamps.  All necessary lists
363 like a schedule for the day, the agenda for a meeting, tasks lists
364 selected by tags etc are created dynamically when you need them.
366    Org-mode keeps simple things simple.  When first fired up, it should
367 feel like a straightforward, easy to use outliner.  Complexity is not
368 imposed, but a large amount of functionality is available when you need
369 it.  Org-mode is a toolbox and can be used in different ways, for
370 example as:
372      * outline extension with visibility cycling and structure editing
373      * ASCII system and table editor for taking structured notes
374      * ASCII table editor with spreadsheet-like capabilities
375      * TODO list editor
376      * full agenda and planner with deadlines and work scheduling
377      * environment to implement David Allen's GTD system
378      * a basic database application
379      * simple hypertext system, with HTML export
380      * publishing tool to create a set of interlinked webpages
382    Org-mode's automatic, context sensitive table editor with spreadsheet
383 capabilities can be integrated into any major mode by activating the
384 minor Orgtbl-mode.  Using a translation step, it can be used to maintain
385 tables in arbitrary file types, for example in LaTeX.  The structure
386 editing and list creation capabilities can be used outside Org-mode with
387 the minor Orgstruct-mode.
389    There is a website for Org-mode which provides links to the newest
390 version of Org-mode, as well as additional information, frequently asked
391 questions (FAQ), links to tutorials etc.  This page is located at
392 `http://orgmode.org'.
394 \x1f
395 File: org,  Node: Installation,  Next: Activation,  Prev: Summary,  Up: Introduction
397 1.2 Installation
398 ================
400 Important: If Org-mode is part of the Emacs distribution or an XEmacs
401 package, please skip this section and go directly to *Note Activation::.
403    If you have downloaded Org-mode from the Web, you must take the
404 following steps to install it: Go into the Org-mode distribution
405 directory and edit the top section of the file `Makefile'.  You must
406 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
407 and the paths to the directories where local Lisp and Info files are
408 kept.  If you don't have access to the system-wide directories, create
409 your own two directories for these files, enter them into the Makefile,
410 and make sure Emacs finds the Lisp files by adding the following line
411 to `.emacs':
413      (setq load-path (cons "~/path/to/lispdir" load-path))
415    XEmacs users now need to install the file `noutline.el' from the
416 `xemacs' subdirectory of the Org-mode distribution.  Use the command:
418      make install-noutline
420 Now byte-compile and install the Lisp files with the shell commands:
422      make
423      make install
425 If you want to install the info documentation, use this command:
427      make install-info
429 Then add to `.emacs':
431      ;; This line only if org-mode is not part of the X/Emacs distribution.
432      (require 'org-install)
434 \x1f
435 File: org,  Node: Activation,  Next: Feedback,  Prev: Installation,  Up: Introduction
437 1.3 Activation
438 ==============
440 Add the following lines to your `.emacs' file.  The last two lines
441 define _global_ keys for the commands `org-store-link' and `org-agenda'
442 - please choose suitable keys yourself.
444      ;; The following lines are always needed.  Choose your own keys.
445      (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
446      (global-set-key "\C-cl" 'org-store-link)
447      (global-set-key "\C-ca" 'org-agenda)
449    Furthermore, you must activate `font-lock-mode' in org-mode buffers,
450 because significant functionality depends on font-locking being active.
451 You can do this with either one of the following two lines (XEmacs
452 user must use the second option):
453      (global-font-lock-mode 1)                     ; for all buffers
454      (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only
456    With this setup, all files with extension `.org' will be put into
457 Org-mode.  As an alternative, make the first line of a file look like
458 this:
460      MY PROJECTS    -*- mode: org; -*-
462 which will select Org-mode for this buffer no matter what the file's
463 name is.  See also the variable `org-insert-mode-line-in-empty-file'.
465 \x1f
466 File: org,  Node: Feedback,  Prev: Activation,  Up: Introduction
468 1.4 Feedback
469 ============
471 If you find problems with Org-mode, or if you have questions, remarks,
472 or ideas about it, please contact the maintainer Carsten Dominik at
473 <carsten at orgmode dot org>.
475    For bug reports, please provide as much information as possible,
476 including the version information of Emacs (`C-h v emacs-version
477 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
478 Org-mode related setup in `.emacs'.  If an error occurs, a backtrace
479 can be very useful (see below on how to create one).  Often a small
480 example file helps, along with clear information about:
482   1. What exactly did you do?
484   2. What did you expect to happen?
486   3. What happened instead?
487         Thank you for helping to improve this mode.
489 How to create a useful backtrace
490 ................................
492 If working with Org-mode produces an error with a message you don't
493 understand, you may have hit a bug.  The best way to report this is by
494 providing, in addition to what was mentioned above, a _Backtrace_.
495 This is information from the built-in debugger about where and how the
496 error occurred.  Here is how to produce a useful backtrace:
498   1. Start a fresh Emacs or XEmacs, and make sure that it will load the
499      original Lisp code in `org.el' instead of the compiled version in
500      `org.elc'.  The backtrace contains much more information if it is
501      produced with uncompiled code.  To do this, either rename `org.elc'
502      to something else before starting Emacs, or ask Emacs explicitly
503      to load `org.el' by using the command line
504           emacs -l /path/to/org.el
506   2. Go to the `Options' menu and select `Enter Debugger on Error'
507      (XEmacs has this option in the `Troubleshooting' sub-menu).
509   3. Do whatever you have to do to hit the error.  Don't forget to
510      document the steps you take.
512   4. When you hit the error, a `*Backtrace*' buffer will appear on the
513      screen.  Save this buffer to a file (for example using `C-x C-w')
514      and attach it to your bug report.
516 \x1f
517 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
519 2 Document Structure
520 ********************
522 Org-mode is based on outline mode and provides flexible commands to
523 edit the structure of the document.
525 * Menu:
527 * Outlines::                    Org-mode is based on outline-mode
528 * Headlines::                   How to typeset org-tree headlines
529 * Visibility cycling::          Show and hide, much simplified
530 * Motion::                      Jumping to other headlines
531 * Structure editing::           Changing sequence and level of headlines
532 * Archiving::                   Move done task trees to a different place
533 * Sparse trees::                Matches embedded in context
534 * Plain lists::                 Additional structure within an entry
535 * Drawers::                     Tucking stuff away
536 * orgstruct-mode::              Structure editing outside Org-mode
538 \x1f
539 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
541 2.1 Outlines
542 ============
544 Org-mode is implemented on top of outline-mode.  Outlines allow a
545 document to be organized in a hierarchical structure, which (at least
546 for me) is the best representation of notes and thoughts.  An overview
547 of this structure is achieved by folding (hiding) large parts of the
548 document to show only the general document structure and the parts
549 currently being worked on.  Org-mode greatly simplifies the use of
550 outlines by compressing the entire show/hide functionality into a single
551 command `org-cycle', which is bound to the <TAB> key.
553 \x1f
554 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
556 2.2 Headlines
557 =============
559 Headlines define the structure of an outline tree.  The headlines in
560 Org-mode start with one or more stars, on the left margin(1).  For
561 example:
563      * Top level headline
564      ** Second level
565      *** 3rd level
566          some text
567      *** 3rd level
568          more text
570      * Another top level headline
572 Some people find the many stars too noisy and would prefer an outline
573 that has whitespace followed by a single star as headline starters.
574 *Note Clean view:: describes a setup to realize this.
576    An empty line after the end of a subtree is considered part of it and
577 will be hidden when the subtree is folded.  However, if you leave at
578 least two empty lines, one empty line will remain visible after folding
579 the subtree, in order to structure the collapsed view.  See the
580 variable `org-cycle-separator-lines' to modify this behavior.
582    ---------- Footnotes ----------
584    (1) See the variable `org-special-ctrl-a/e' to configure special
585 behavior of `C-a' and `C-e' in headlines.
587 \x1f
588 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
590 2.3 Visibility cycling
591 ======================
593 Outlines make it possible to hide parts of the text in the buffer.
594 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
595 the visibility in the buffer.
597 `<TAB>'
598      _Subtree cycling_: Rotate current subtree among the states
600           ,-> FOLDED -> CHILDREN -> SUBTREE --.
601           '-----------------------------------'
603      The cursor must be on a headline for this to work(1).  When the
604      cursor is at the beginning of the buffer and the first line is not
605      a headline, then <TAB> actually runs global cycling (see
606      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
607      global cycling is invoked.
609 `S-<TAB>'
610 `C-u <TAB>'
611      _Global cycling_: Rotate the entire buffer among the states
613           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
614           '--------------------------------------'
616      When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
617      view up to headlines of level N will be shown.  Note that inside
618      tables, `S-<TAB>' jumps to the previous field.
620 `C-c C-a'
621      Show all.  
623 `C-c C-r'
624      Reveal context around point, showing the current entry, the
625      following heading and the hierarchy above.  Useful for working
626      near a location exposed by a sparse tree command (*note Sparse
627      trees::) or an agenda command (*note Agenda commands::).  With
628      prefix arg show, on each level, all sibling headings.  
630 `C-c C-x b'
631      Show the current subtree in an indirect buffer(3).  With numerical
632      prefix ARG, go up to this level and then take that tree.  If ARG is
633      negative, go up that many levels.  With `C-u' prefix, do not remove
634      the previously used indirect buffer.
636    When Emacs first visits an Org-mode file, the global state is set to
637 OVERVIEW, i.e. only the top level headlines are visible.  This can be
638 configured through the variable `org-startup-folded', or on a per-file
639 basis by adding one of the following lines anywhere in the buffer:
641      #+STARTUP: overview
642      #+STARTUP: content
643      #+STARTUP: showall
645    ---------- Footnotes ----------
647    (1) see, however, the option `org-cycle-emulate-tab'.
649    (2) see the option `org-cycle-global-at-bob'.
651    (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
652 Buffers.)  will contain the entire buffer, but will be narrowed to the
653 current tree.  Editing the indirect buffer will also change the
654 original buffer, but without affecting visibility in that buffer.
656 \x1f
657 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
659 2.4 Motion
660 ==========
662 The following commands jump to other headlines in the buffer.
664 `C-c C-n'
665      Next heading.  
667 `C-c C-p'
668      Previous heading.  
670 `C-c C-f'
671      Next heading same level.  
673 `C-c C-b'
674      Previous heading same level.  
676 `C-c C-u'
677      Backward to higher level heading.  
679 `C-c C-j'
680      Jump to a different place without changing the current outline
681      visibility.  Shows the document structure in a temporary buffer,
682      where you can use the following keys to find your destination:
683           <TAB>         Cycle visibility.
684           <down> / <up>   Next/previous visible headline.
685           n / p        Next/previous visible headline.
686           f / b        Next/previous headline same level.
687           u            One level up.
688           0-9          Digit argument.
689           <RET>         Select this location.
691 \x1f
692 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
694 2.5 Structure editing
695 =====================
697 `M-<RET>'
698      Insert new heading with same level as current.  If the cursor is
699      in a plain list item, a new item is created (*note Plain lists::).
700      To force creation of a new headline, use a prefix arg, or first
701      press <RET> to get to the beginning of the next line.  When this
702      command is used in the middle of a line, the line is split and the
703      rest of the line becomes the new headline.  If the command is used
704      at the beginning of a headline, the new headline is created before
705      the current line.  If at the beginning of any other line, the
706      content of that line is made the new heading.  If the command is
707      used at the end of a folded subtree (i.e. behind the ellipses at
708      the end of a headline), then a headline like the current one will
709      be inserted after the end of the subtree.  
711 `C-<RET>'
712      Insert a new heading after the current subtree, same level as the
713      current headline.  This command works from anywhere in the entry.  
715 `M-S-<RET>'
716      Insert new TODO entry with same level as current heading.  
718 `M-<left>'
719      Promote current heading by one level.  
721 `M-<right>'
722      Demote current heading by one level.  
724 `M-S-<left>'
725      Promote the current subtree by one level.  
727 `M-S-<right>'
728      Demote the current subtree by one level.  
730 `M-S-<up>'
731      Move subtree up (swap with previous subtree of same level).  
733 `M-S-<down>'
734      Move subtree down (swap with next subtree of same level).  
736 `C-c C-x C-w'
737 `C-c C-x C-k'
738      Kill subtree, i.e. remove it from buffer but save in kill ring.
739      With prefix arg, kill N sequential subtrees.  
741 `C-c C-x M-w'
742      Copy subtree to kill ring.  With prefix arg, copy N sequential
743      subtrees.  
745 `C-c C-x C-y'
746      Yank subtree from kill ring.  This does modify the level of the
747      subtree to make sure the tree fits in nicely at the yank position.
748      The yank level can also be specified with a prefix arg, or by
749      yanking after a headline marker like `****'.  
751 `C-c ^'
752      Sort same-level entries.  When there is an active region, all
753      entries in the region will be sorted.  Otherwise the children of
754      the current headline are sorted.  The command prompts for the
755      sorting method, which can be alphabetically, numerically, by time
756      (using the first time stamp in each entry), by priority, and each
757      of these in reverse order.  You can also supply your own function
758      to extract the sorting key.  With a `C-u' prefix, sorting will be
759      case-sensitive.  With two `C-u C-u' prefixes, duplicate entries
760      will also be removed.
762    When there is an active region (transient-mark-mode), promotion and
763 demotion work on all headlines in the region.  To select a region of
764 headlines, it is best to place both point and mark at the beginning of a
765 line, mark at the beginning of the first headline, and point at the line
766 just after the last headline to change.  Note that when the cursor is
767 inside a table (*note Tables::), the Meta-Cursor keys have different
768 functionality.
770 \x1f
771 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
773 2.6 Archiving
774 =============
776 When a project represented by a (sub)tree is finished, you may want to
777 move the tree out of the way and to stop it from contributing to the
778 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
779 the ARCHIVE tag, or you can move an entire (sub)tree to a different
780 location.
782 * Menu:
784 * ARCHIVE tag::                 Marking a tree as inactive
785 * Moving subtrees::             Moving a tree to an archive file
787 \x1f
788 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
790 2.6.1 The ARCHIVE tag
791 ---------------------
793 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
794 its location in the outline tree, but behaves in the following way:
795    - It does not open when you attempt to do so with a visibility
796      cycling command (*note Visibility cycling::).  You can force
797      cycling archived subtrees with `C-<TAB>', or by setting the option
798      `org-cycle-open-archived-trees'.  Also normal outline commands like
799      `show-all' will open archived subtrees.
801    - During sparse tree construction (*note Sparse trees::), matches in
802      archived subtrees are not exposed, unless you configure the option
803      `org-sparse-tree-open-archived-trees'.
805    - During agenda view construction (*note Agenda views::), the
806      content of archived trees is ignored unless you configure the
807      option `org-agenda-skip-archived-trees'.
809    - Archived trees are not exported (*note Exporting::), only the
810      headline is.  Configure the details using the variable
811      `org-export-with-archived-trees'.
813    The following commands help managing the ARCHIVE tag:
815 `C-c C-x C-a'
816      Toggle the ARCHIVE tag for the current headline.  When the tag is
817      set, the headline changes to a shadowish face, and the subtree
818      below it is hidden.  
820 `C-u C-c C-x C-a'
821      Check if any direct children of the current headline should be
822      archived.  To do this, each subtree is checked for open TODO
823      entries.  If none are found, the command offers to set the ARCHIVE
824      tag for the child.  If the cursor is _not_ on a headline when this
825      command is invoked, the level 1 trees will be checked.  
827 `C-TAB'
828      Cycle a tree even if it is tagged with ARCHIVE.
830 \x1f
831 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
833 2.6.2 Moving subtrees
834 ---------------------
836 Once an entire project is finished, you may want to move it to a
837 different location, either in the current file, or even in a different
838 file, the archive file.
840 `C-c C-x C-s'
841      Archive the subtree starting at the cursor position to the location
842      given by `org-archive-location'.  Context information that could be
843      lost like the file name, the category, inherited tags, and the todo
844      state will be store as properties in the entry.  
846 `C-u C-c C-x C-s'
847      Check if any direct children of the current headline could be
848      moved to the archive.  To do this, each subtree is checked for
849      open TODO entries.  If none are found, the command offers to move
850      it to the archive location.  If the cursor is _not_ on a headline
851      when this command is invoked, the level 1 trees will be checked.
853    The default archive location is a file in the same directory as the
854 current file, with the name derived by appending `_archive' to the
855 current file name.  For information and examples on how to change this,
856 see the documentation string of the variable `org-archive-location'.
857 There is also an in-buffer option for setting this variable, for
858 example(1):
860      #+ARCHIVE: %s_done::
862 If you would like to have a special ARCHIVE location for a single entry
863 or a (sub)tree, give the entry an `:ARCHIVE:' property with the
864 location as the value (*note Properties and columns::).
866    ---------- Footnotes ----------
868    (1) If there are several such lines in the buffer, each will be
869 valid for the entries below it.  The first will also apply to any text
870 before it.  This method is only kept for backward compatibility.  The
871 preferred methods for setting multiple archive locations is using a
872 property.
874 \x1f
875 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
877 2.7 Sparse trees
878 ================
880 An important feature of Org-mode is the ability to construct _sparse
881 trees_ for selected information in an outline tree.  A sparse tree
882 means that the entire document is folded as much as possible, but the
883 selected information is made visible along with the headline structure
884 above it(1).  Just try it out and you will see immediately how it works.
886    Org-mode contains several commands creating such trees, all these
887 commands can be accessed through a dispatcher:
889 `C-c /'
890      This prompts for an extra key to select a sparse-tree creating
891      command.  
893 `C-c / r'
894      Occur.  Prompts for a regexp and shows a sparse tree with all
895      matches.  If the match is in a headline, the headline is made
896      visible.  If the match is in the body of an entry, headline and
897      body are made visible.  In order to provide minimal context, also
898      the full hierarchy of headlines above the match is shown, as well
899      as the headline following the match.  Each match is also
900      highlighted; the highlights disappear when the buffer is changed
901      by an editing command, or by pressing `C-c C-c'.  When called with
902      a `C-u' prefix argument, previous highlights are kept, so several
903      calls to this command can be stacked.
904    For frequently used sparse trees of specific search strings, you can
905 use the variable `org-agenda-custom-commands' to define fast keyboard
906 access to specific sparse trees.  These commands will then be
907 accessible through the agenda dispatcher (*note Agenda dispatcher::).
908 For example:
910      (setq org-agenda-custom-commands
911            '(("f" occur-tree "FIXME")))
913 will define the key `C-c a f' as a shortcut for creating a sparse tree
914 matching the string `FIXME'.
916    The other sparse tree commands select headings based on TODO
917 keywords, tags, or properties and will be discussed later in this
918 manual.
920    To print a sparse tree, you can use the Emacs command
921 `ps-print-buffer-with-faces' which does not print invisible parts of
922 the document (2).  Or you can use the command `C-c C-e v' to export
923 only the visible part of the document and print the resulting file.
925    ---------- Footnotes ----------
927    (1) See also the variables `org-show-hierarchy-above',
928 `org-show-following-heading', and `org-show-siblings' for detailed
929 control on how much context is shown around each match.
931    (2) This does not work under XEmacs, because XEmacs uses selective
932 display for outlining, not text properties.
934 \x1f
935 File: org,  Node: Plain lists,  Next: Drawers,  Prev: Sparse trees,  Up: Document structure
937 2.8 Plain lists
938 ===============
940 Within an entry of the outline tree, hand-formatted lists can provide
941 additional structure.  They also provide a way to create lists of
942 checkboxes (*note Checkboxes::).  Org-mode supports editing such lists,
943 and the HTML exporter (*note Exporting::) does parse and format them.
945    Org-mode knows ordered and unordered lists.  Unordered list items
946 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
947 with `1.' or `1)'.  Items belonging to the same list must have the same
948 indentation on the first line.  In particular, if an ordered list
949 reaches number `10.', then the 2-digit numbers must be written
950 left-aligned with the other numbers in the list.  Indentation also
951 determines the end of a list item.  It ends before the next line that
952 is indented like the bullet/number, or less.  Empty lines are part of
953 the previous item, so you can have several paragraphs in one item.  If
954 you would like an empty line to terminate all currently open plain
955 lists, configure the variable `org-empty-line-terminates-plain-lists'.
956 Here is an example:
958      ** Lord of the Rings
959         My favorite scenes are (in this order)
960         1. The attack of the Rohirrim
961         2. Eowyns fight with the witch king
962            + this was already my favorite scene in the book
963            + I really like Miranda Otto.
964         3. Peter Jackson being shot by Legolas
965             - on DVD only
966            He makes a really funny face when it happens.
967         But in the end, not individual scenes matter but the film as a whole.
969    Org-mode supports these lists by tuning filling and wrapping
970 commands to deal with them correctly(2).
972    The following commands act on items when the cursor is in the first
973 line of an item (the line with the bullet or number).
975 `<TAB>'
976      Items can be folded just like headline levels if you set the
977      variable `org-cycle-include-plain-lists'.  The level of an item is
978      then given by the indentation of the bullet/number.  Items are
979      always subordinate to real headlines, however; the hierarchies
980      remain completely separated.
982      If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
983      the indentation of the curent line in a heuristic way.  
985 `M-<RET>'
986      Insert new item at current level.  With prefix arg, force a new
987      heading (*note Structure editing::).  If this command is used in
988      the middle of a line, the line is _split_ and the rest of the line
989      becomes the new item.  If this command is executed in the
990      _whitespace before a bullet or number_, the new item is created
991      _before_ the current item.  If the command is executed in the
992      white space before the text that is part of an item but does not
993      contain the bullet, a bullet is added to the current line.  
995 `M-S-<RET>'
996      Insert a new item with a checkbox (*note Checkboxes::).  
998 `S-<up>'
999 `S-<down>'
1000      Jump to the previous/next item in the current list.  
1002 `M-S-<up>'
1003 `M-S-<down>'
1004      Move the item including subitems up/down (swap with previous/next
1005      item of same indentation).  If the list is ordered, renumbering is
1006      automatic.  
1008 `M-S-<left>'
1009 `M-S-<right>'
1010      Decrease/increase the indentation of the item, including subitems.
1011      Initially, the item tree is selected based on current indentation.
1012      When these commands are executed several times in direct
1013      succession, the initially selected region is used, even if the new
1014      indentation would imply a different hierarchy.  To use the new
1015      hierarchy, break the command chain with a cursor motion or so.  
1017 `C-c C-c'
1018      If there is a checkbox (*note Checkboxes::) in the item line,
1019      toggle the state of the checkbox.  If not, make this command makes
1020      sure that all the items on this list level use the same bullet.
1021      Furthermore, if this is an ordered list, make sure the numbering
1022      is ok.  
1024 `C-c -'
1025      Cycle the entire list level through the different itemize/enumerate
1026      bullets (`-', `+', `*', `1.', `1)').  With prefix arg, select the
1027      nth bullet from this list.
1029    ---------- Footnotes ----------
1031    (1) When using `*' as a bullet, lines must be indented or they will
1032 be seen as top-level headlines.  Also, when you are hiding leading
1033 stars to get a clean outline view, plain list items starting with a
1034 star are visually indistinguishable from true headlines.  In short:
1035 even though `*' is supported, it may be better not to use it for plain
1036 list items.
1038    (2) Org-mode only changes the filling settings for Emacs.  For
1039 XEmacs, you should use Kyle E. Jones' `filladapt.el'.  To turn this on,
1040 put into `.emacs': `(require 'filladapt)'
1042 \x1f
1043 File: org,  Node: Drawers,  Next: orgstruct-mode,  Prev: Plain lists,  Up: Document structure
1045 2.9 Drawers
1046 ===========
1048 Sometimes you want to keep information associated with an entry, but you
1049 normally don't want to see it.  For this, Org-mode has _drawers_.
1050 Drawers need to be configured with the variable `org-drawers'(1), and
1051 look like this:
1053      ** This is a headline
1054         Still outside the drawer
1055         :DRAWERNAME:
1056            This is inside the drawer.
1057         :END:
1058         After the drawer.
1060    Visibility cycling (*note Visibility cycling::) on the headline will
1061 hide and show the entry, but keep the drawer collapsed to a single line.
1062 In order to look inside the drawer, you need to move the cursor to the
1063 drawer line and press <TAB> there.  Org-mode uses a drawer for storing
1064 properties (*note Properties and columns::).
1066    ---------- Footnotes ----------
1068    (1) You can define drawers on a per-file basis with a line like
1069 `#+DRAWERS: HIDDEN PROPPERTIES STATE'
1071 \x1f
1072 File: org,  Node: orgstruct-mode,  Prev: Drawers,  Up: Document structure
1074 2.10 The Orgstruct minor mode
1075 =============================
1077 If you like the intuitive way the Org-mode structure editing and list
1078 formatting works, you might want to use these commands in other modes
1079 like text-mode or mail-mode as well.  The minor mode Orgstruct-mode
1080 makes this possible.  You can always toggle the mode with `M-x
1081 orgstruct-mode'.  To turn it on by default, for example in mail mode,
1084      (add-hook 'mail-mode-hook 'turn-on-orgstruct)
1086    When this mode is active and the cursor is on a line that looks to
1087 Org-mode like a headline of the first line of a list item, most
1088 structure editing commands will work, even if the same keys normally
1089 have different functionality in the major mode you are using.  If the
1090 cursor is not in one of those special lines, Orgstruct-mode lurks
1091 silently in the shadow.
1093 \x1f
1094 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
1096 3 Tables
1097 ********
1099 Org-mode has a very fast and intuitive table editor built-in.
1100 Spreadsheet-like calculations are supported in connection with the
1101 Emacs `calc' package.
1103 * Menu:
1105 * Built-in table editor::       Simple tables
1106 * Narrow columns::              Stop wasting space in tables
1107 * Column groups::               Grouping to trigger vertical lines
1108 * orgtbl-mode::                 The table editor as minor mode
1109 * The spreadsheet::             The table editor has spreadsheet capabilities.
1111 \x1f
1112 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
1114 3.1 The built-in table editor
1115 =============================
1117 Org-mode makes it easy to format tables in plain ASCII.  Any line with
1118 `|' as the first non-whitespace character is considered part of a
1119 table.  `|' is also the column separator.  A table might look like this:
1121      | Name  | Phone | Age |
1122      |-------+-------+-----|
1123      | Peter |  1234 |  17 |
1124      | Anna  |  4321 |  25 |
1126    A table is re-aligned automatically each time you press <TAB> or
1127 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
1128 field (<RET> to the next row) and creates new table rows at the end of
1129 the table or before horizontal lines.  The indentation of the table is
1130 set by the first line.  Any line starting with `|-' is considered as a
1131 horizontal separator line and will be expanded on the next re-align to
1132 span the whole table width.  So, to create the above table, you would
1133 only type
1135      |Name|Phone|Age|
1136      |-
1138 and then press <TAB> to align the table and start filling in fields.
1140    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
1141 and all character keys in a special way, so that inserting and deleting
1142 avoids shifting other fields.  Also, when typing _immediately after the
1143 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
1144 the field is automatically made blank.  If this behavior is too
1145 unpredictable for you, configure the variables
1146 `org-enable-table-editor' and `org-table-auto-blank-field'.
1148 Creation and conversion
1149 .......................
1151 `C-c |'
1152      Convert the active region to table. If every line contains at
1153      least one TAB character, the function assumes that the material is
1154      tab separated.  If every line contains a comma, comma-separated
1155      values (CSV) are assumed.  If not, lines are split at whitespace
1156      into fields.  You can use a prefix argument to force a specific
1157      separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
1158      argument N indicates that at least N consequtive spaces, or
1159      alternatively a TAB will be the separator.
1160      If there is no active region, this command creates an empty
1161      Org-mode table.  But it's easier just to start typing, like
1162      `|Name|Phone|Age <RET> |- <TAB>'.
1164 Re-aligning and field motion
1165 ............................
1167 `C-c C-c'
1168      Re-align the table without moving the cursor.  
1170 `<TAB>'
1171      Re-align the table, move to the next field.  Creates a new row if
1172      necessary.  
1174 `S-<TAB>'
1175      Re-align, move to previous field.  
1177 `<RET>'
1178      Re-align the table and move down to next row.  Creates a new row if
1179      necessary.  At the beginning or end of a line, <RET> still does
1180      NEWLINE, so it can be used to split a table.
1182 Column and row editing
1183 ......................
1185 `M-<left>'
1186 `M-<right>'
1187      Move the current column left/right.  
1189 `M-S-<left>'
1190      Kill the current column.  
1192 `M-S-<right>'
1193      Insert a new column to the left of the cursor position.  
1195 `M-<up>'
1196 `M-<down>'
1197      Move the current row up/down.  
1199 `M-S-<up>'
1200      Kill the current row or horizontal line.  
1202 `M-S-<down>'
1203      Insert a new row above (with arg: below) the current row.  
1205 `C-c -'
1206      Insert a horizontal line below current row. With prefix arg, the
1207      line is created above the current line.  
1209 `C-c ^'
1210      Sort the table lines in the region.  The position of point
1211      indicates the column to be used for sorting, and the range of
1212      lines is the range between the nearest horizontal separator lines,
1213      or the entire table.  If point is before the first column, you
1214      will be prompted for the sorting column.  If there is an active
1215      region, the mark specifies the first line and the sorting column,
1216      while point should be in the last line to be included into the
1217      sorting.  The command prompts for the sorting type
1218      (alphabetically, numerically, or by time).  When called with a
1219      prefix argument, alphabetic sorting will be case-sensitive.
1221 Regions
1222 .......
1224 `C-c C-x M-w'
1225      Copy a rectangular region from a table to a special clipboard.
1226      Point and mark determine edge fields of the rectangle.  The
1227      process ignores horizontal separator lines.  
1229 `C-c C-x C-w'
1230      Copy a rectangular region from a table to a special clipboard, and
1231      blank all fields in the rectangle.  So this is the "cut" operation.  
1233 `C-c C-x C-y'
1234      Paste a rectangular region into a table.  The upper right corner
1235      ends up in the current field.  All involved fields will be
1236      overwritten.  If the rectangle does not fit into the present table,
1237      the table is enlarged as needed.  The process ignores horizontal
1238      separator lines.  
1240 `C-c C-q'
1241      Wrap several fields in a column like a paragraph.  If there is an
1242      active region, and both point and mark are in the same column, the
1243      text in the column is wrapped to minimum width for the given
1244      number of lines.  A prefix ARG may be used to change the number of
1245      desired lines.  If there is no region, the current field is split
1246      at the cursor position and the text fragment to the right of the
1247      cursor is prepended to the field one line down. If there is no
1248      region, but you specify a prefix ARG, the current field is made
1249      blank, and the content is appended to the field above.
1251 Calculations
1252 ............
1254 `C-c +'
1255      Sum the numbers in the current column, or in the rectangle defined
1256      by the active region.  The result is shown in the echo area and can
1257      be inserted with `C-y'.  
1259 `S-<RET>'
1260      When current field is empty, copy from first non-empty field above.
1261      When not empty, copy current field down to next row and move cursor
1262      along with it.  Depending on the variable
1263      `org-table-copy-increment', integer field values will be
1264      incremented during copy.  This key is also used by CUA-mode (*note
1265      Cooperation::).
1267 Miscellaneous
1268 .............
1270 `C-c `'
1271      Edit the current field in a separate window.  This is useful for
1272      fields that are not fully visible (*note Narrow columns::).  When
1273      called with a `C-u' prefix, just make the full field visible, so
1274      that it can be edited in place.  
1276 `C-c <TAB>'
1277      This is an alias for `C-u C-c `' to make the current field fully
1278      visible.
1280 `M-x org-table-import'
1281      Import a file as a table.  The table should be TAB- or whitespace
1282      separated.  Useful, for example, to import an Excel table or data
1283      from a database, because these programs generally can write
1284      TAB-separated text files.  This command works by inserting the
1285      file into the buffer and then converting the region to a table.
1286      Any prefix argument is passed on to the converter, which uses it
1287      to determine the separator.
1289 `C-c |'
1290      Tables can also be imported by pasting tabular text into the
1291      org-mode buffer, selecting the pasted text with `C-x C-x' and then
1292      using the `C-c |' command (see above under Creation and conversion.
1294 `M-x org-table-export'
1295      Export the table as a TAB-separated file.  Useful for data
1296      exchange with, for example, Excel or database programs.
1298    If you don't like the automatic table editor because it gets in your
1299 way on lines which you would like to start with `|', you can turn it
1300 off with
1302      (setq org-enable-table-editor nil)
1304 Then the only table command that still works is `C-c C-c' to do a
1305 manual re-align.
1307 \x1f
1308 File: org,  Node: Narrow columns,  Next: Column groups,  Prev: Built-in table editor,  Up: Tables
1310 3.2 Narrow columns
1311 ==================
1313 The width of columns is automatically determined by the table editor.
1314 Sometimes a single field or a few fields need to carry more text,
1315 leading to inconveniently wide columns.  To limit(1) the width of a
1316 column, one field anywhere in the column may contain just the string
1317 `<N>' where `N' is an integer specifying the width of the column in
1318 characters.  The next re-align will then set the width of this column
1319 to no more than this value.
1321      |---+------------------------------|               |---+--------|
1322      |   |                              |               |   | <6>    |
1323      | 1 | one                          |               | 1 | one    |
1324      | 2 | two                          |     ----\     | 2 | two    |
1325      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1326      | 4 | four                         |               | 4 | four   |
1327      |---+------------------------------|               |---+--------|
1329 Fields that are wider become clipped and end in the string `=>'.  Note
1330 that the full text is still in the buffer, it is only invisible.  To
1331 see the full text, hold the mouse over the field - a tool-tip window
1332 will show the full content.  To edit such a field, use the command `C-c
1333 `' (that is `C-c' followed by the backquote).  This will open a new
1334 window with the full field.  Edit it and finish with `C-c C-c'.
1336    When visiting a file containing a table with narrowed columns, the
1337 necessary character hiding has not yet happened, and the table needs to
1338 be aligned before it looks nice.  Setting the option
1339 `org-startup-align-all-tables' will realign all tables in a file upon
1340 visiting, but also slow down startup.  You can also set this option on
1341 a per-file basis with:
1343      #+STARTUP: align
1344      #+STARTUP: noalign
1346    ---------- Footnotes ----------
1348    (1) This feature does not work on XEmacs.
1350 \x1f
1351 File: org,  Node: Column groups,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1353 3.3 Column groups
1354 =================
1356 When Org-mode exports tables, it does so by default without vertical
1357 lines because that is visually more satisfying in general.  Occasionally
1358 however, vertical lines can be useful to structure a table into groups
1359 of columns, much like horizontal lines can do for groups of rows.  In
1360 order to specify column groups, you can use a special row where the
1361 first field contains only `/'.  The further fields can either contain
1362 `<' to indicate that this column should start a group, `>' to indicate
1363 the end of a column, or `<>' to make a column a group of its own.
1364 Boundaries between colum groups will upon export be marked with
1365 vertical lines.  Here is an example:
1367      |   |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1368      |---+----+-----+-----+-----+---------+------------|
1369      | / | <> |   < |     |   > |       < |          > |
1370      | # |  1 |   1 |   1 |   1 |       1 |          1 |
1371      | # |  2 |   4 |   8 |  16 |  1.4142 |     1.1892 |
1372      | # |  3 |   9 |  27 |  81 |  1.7321 |     1.3161 |
1373      |---+----+-----+-----+-----+---------+------------|
1374      #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
1376    It is also sufficient to just insert the colum group starters after
1377 every vertical line you'd like to have:
1379      |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1380      |----+-----+-----+-----+---------+------------|
1381      | /  | <   |     |     | <       |            |
1383 \x1f
1384 File: org,  Node: orgtbl-mode,  Next: The spreadsheet,  Prev: Column groups,  Up: Tables
1386 3.4 The Orgtbl minor mode
1387 =========================
1389 If you like the intuitive way the Org-mode table editor works, you
1390 might also want to use it in other modes like text-mode or mail-mode.
1391 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1392 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1393 in mail mode, use
1395      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1397    Furthermore, with some special setup, it is possible to maintain
1398 tables in arbitrary syntax with Orgtbl-mode.  For example, it is
1399 possible to construct LaTeX tables with the underlying ease and power of
1400 Orgtbl-mode, including spreadsheet capabilities.  For details, see
1401 *Note Tables in arbitrary syntax::.
1403 \x1f
1404 File: org,  Node: The spreadsheet,  Prev: orgtbl-mode,  Up: Tables
1406 3.5 The spreadsheet
1407 ===================
1409 The table editor makes use of the Emacs `calc' package to implement
1410 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1411 derive fields from other fields.  While fully featured, Org-mode's
1412 implementation is not identical to other spreadsheets.  For example,
1413 Org-mode knows the concept of a _column formula_ that will be applied
1414 to all non-header fields in a column without having to copy the formula
1415 to each relevant field.
1417 * Menu:
1419 * References::                  How to refer to another field or range
1420 * Formula syntax for Calc::     Using Calc to compute stuff
1421 * Formula syntax for Lisp::     Writing formulas in Emacs Lisp
1422 * Field formulas::              Formulas valid for a single field
1423 * Column formulas::             Formulas valid for an entire column
1424 * Editing and debugging formulas::  Fixing formulas
1425 * Updating the table::          Recomputing all dependent fields
1426 * Advanced features::           Field names, parameters and automatic recalc
1428 \x1f
1429 File: org,  Node: References,  Next: Formula syntax for Calc,  Prev: The spreadsheet,  Up: The spreadsheet
1431 3.5.1 References
1432 ----------------
1434 To compute fields in the table from other fields, formulas must
1435 reference other fields or ranges.  In Org-mode, fields can be referenced
1436 by name, by absolute coordinates, and by relative coordinates.  To find
1437 out what the coordinates of a field are, press `C-c ?' in that field,
1438 or press `C-c }' to toggle the display of a grid.
1440 Field references
1441 ................
1443 Formulas can reference the value of another field in two ways.  Like in
1444 any other spreadsheet, you may reference fields with a letter/number
1445 combination like `B3', meaning the 2nd field in the 3rd row.
1447 Org-mode also uses another, more general operator that looks like this:
1448      @row$column
1450 Column references can be absolute like `1', `2',...`N', or relative to
1451 the current column like `+1' or `-2'.
1453    The row specification only counts data lines and ignores horizontal
1454 separator lines (hlines).  You can use absolute row numbers `1'...`N',
1455 and row numbers relative to the current row like `+3' or `-1'.  Or
1456 specify the row relative to one of the hlines: `I' refers to the first
1457 hline, `II' to the second etc.  `-I' refers to the first such line
1458 above the current line, `+I' to the first such line below the current
1459 line.  You can also write `III+2' which is the second data line after
1460 the third hline in the table.  Relative row numbers like `-3' will not
1461 cross hlines if the current line is too close to the hline.  Instead,
1462 the value directly at the hline is used.
1464    `0' refers to the current row and column.  Also, if you omit either
1465 the column or the row part of the reference, the current row/column is
1466 implied.
1468    Org-mode's references with _unsigned_ numbers are fixed references
1469 in the sense that if you use the same reference in the formula for two
1470 different fields, the same field will be referenced each time.
1471 Org-mode's references with _signed_ numbers are floating references
1472 because the same reference operator can reference different fields
1473 depending on the field being calculated by the formula.
1475    Here are a few examples:
1477      @2$3      2nd row, 3rd column
1478      C2        same as previous
1479      $5        column 5 in the current row
1480      E&        same as previous
1481      @2        current column, row 2
1482      @-1$-3    the field one row up, three columns to the left
1483      @-I$2     field just under hline above current row, column 2
1485 Range references
1486 ................
1488 You may reference a rectangular range of fields by specifying two field
1489 references connected by two dots `..'.  If both fields are in the
1490 current row, you may simply use `$2..$7', but if at least one field is
1491 in a different row, you need to use the general `@row$column' format at
1492 least for the first field (i.e the reference must start with `@' in
1493 order to be interpreted correctly).  Examples:
1495      $1..$3        First three fields in the current row.
1496      $P..$Q        Range, using column names (see under Advanced)
1497      @2$1..@4$3    6 fields between these two fields.
1498      A2..C4        Same as above.
1499      @-1$-2..@-1   3 numbers from the column to the left, 2 up to current row
1501 Range references return a vector of values that can be fed into Calc
1502 vector functions.  Empty fields in ranges are normally suppressed, so
1503 that the vector contains only the non-empty fields (but see the `E'
1504 mode switch below).  If there are no non-empty fields, `[0]' is
1505 returned to avoid syntax errors in formulas.
1507 Named references
1508 ................
1510 `$name' is interpreted as the name of a column, parameter or constant.
1511 Constants are defined globally through the variable
1512 `org-table-formula-constants', and locally (for the file) through a
1513 line like
1515      #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
1517 Also properties (*note Properties and columns::) can be used as
1518 constants in table formulas: For a property `:XYZ:' use the name
1519 `$PROP_XYZ', and the property will be searched in the current outline
1520 entry and in the hierarchy above it.  If you have the `constants.el'
1521 package, it will also be used to resolve constants, including natural
1522 constants like `$h' for Planck's constant, and units like `$km' for
1523 kilometers(1).  Column names and parameters can be specified in special
1524 table lines.  These are described below, see *Note Advanced features::.
1525 All names must start with a letter, and further consist of letters and
1526 numbers.
1528    ---------- Footnotes ----------
1530    (1) `Constant.el' can supply the values of constants in two
1531 different unit systems, `SI' and `cgs'.  Which one is used depends on
1532 the value of the variable `constants-unit-system'.  You can use the
1533 `#+STARTUP' options `constSI' and `constcgs' to set this value for the
1534 current buffer.
1536 \x1f
1537 File: org,  Node: Formula syntax for Calc,  Next: Formula syntax for Lisp,  Prev: References,  Up: The spreadsheet
1539 3.5.2 Formula syntax for Calc
1540 -----------------------------
1542 A formula can be any algebraic expression understood by the Emacs
1543 `Calc' package.  Note that `calc' has the non-standard convention that
1544 `/' has lower precedence than `*', so that `a/b*c' is interpreted as
1545 `a/(b*c)'.  Before evaluation by `calc-eval' (*note calc-eval:
1546 (calc)Calling Calc from Your Programs.), variable substitution takes
1547 place according to the rules described above.  The range vectors can be
1548 directly fed into the calc vector functions like `vmean' and `vsum'.
1550    A formula can contain an optional mode string after a semicolon.
1551 This string consists of flags to influence Calc and other modes during
1552 execution.  By default, Org-mode uses the standard calc modes (precision
1553 12, angular units degrees, fraction and symbolic modes off.  The display
1554 format, however, has been changed to `(float 5)' to keep tables
1555 compact.  The default settings can be configured using the variable
1556 `org-calc-default-modes'.
1558      p20           switch the internal precision to 20 digits
1559      n3 s3 e2 f4   normal, scientific, engineering, or fixed display format
1560      D R           angle modes: degrees, radians
1561      F S           fraction and symbolic modes
1562      N             interpret all fields as numbers, use 0 for non-numbers
1563      T             force text interpretation
1564      E             keep empty fields in ranges
1566 In addition, you may provide a `printf' format specifier to reformat
1567 the final result.  A few examples:
1569      $1+$2                Sum of first and second field
1570      $1+$2;%.2f           Same, format result to two decimals
1571      exp($2)+exp($1)      Math functions can be used
1572      $0;%.1f              Reformat current cell to 1 decimal
1573      ($3-32)*5/9          Degrees F -> C conversion
1574      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1575      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1576      sin($1);Dp3%.1e      Same, but use printf specifier for display
1577      vmean($2..$7)        Compute column range mean, using vector function
1578      vmean($2..$7);EN     Same, but treat empty fields as 0
1579      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1581    Calc also contains a complete set of logical operations.  For example
1583      if($1<20,teen,string(""))  "teen" if age $1 less than 20, else empty
1585 \x1f
1586 File: org,  Node: Formula syntax for Lisp,  Next: Field formulas,  Prev: Formula syntax for Calc,  Up: The spreadsheet
1588 3.5.3 Emacs Lisp forms as formulas
1589 ----------------------------------
1591 It is also possible to write a formula in Emacs Lisp; this can be useful
1592 for string manipulation and control structures, if the Calc's
1593 functionality is not enough.  If a formula starts with a single quote
1594 followed by an opening parenthesis, then it is evaluated as a lisp form.
1595 The evaluation should return either a string or a number.  Just as with
1596 `calc' formulas, you can specify modes and a printf format after a
1597 semicolon.  With Emacs Lisp forms, you need to be concious about the way
1598 field references are interpolated into the form.  By default, a
1599 reference will be interpolated as a Lisp string (in double quotes)
1600 containing the field.  If you provide the `N' mode switch, all
1601 referenced elements will be numbers (non-number fields will be zero) and
1602 interpolated as Lisp numbers, without quotes.  If you provide the `L'
1603 flag, all fields will be interpolated literally, without quotes.  I.e.,
1604 if you want a reference to be interpreted as a string by the Lisp form,
1605 enclode the reference operator itself in double quotes, like `"$3"'.
1606 Ranges are inserted as space-separated fields, so you can embed them in
1607 list or vector syntax.  A few examples, note how the `N' mode is used
1608 when we do computations in lisp.
1610      Swap the first two characters of the content of column 1
1611        '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
1612      Add columns 1 and 2, equivalent to the Calc's `$1+$2'
1613        '(+ $1 $2);N
1614      Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
1615        '(apply '+ '($1..$4));N
1617 \x1f
1618 File: org,  Node: Field formulas,  Next: Column formulas,  Prev: Formula syntax for Lisp,  Up: The spreadsheet
1620 3.5.4 Field formulas
1621 --------------------
1623 To assign a formula to a particular field, type it directly into the
1624 field, preceded by `:=', for example `:=$1+$2'.  When you press <TAB>
1625 or <RET> or `C-c C-c' with the cursor still in the field, the formula
1626 will be stored as the formula for this field, evaluated, and the
1627 current field replaced with the result.
1629    Formulas are stored in a special line starting with `#+TBLFM:'
1630 directly below the table.  If you typed the equation in the 4th field of
1631 the 3rd data line in the table, the formula will look like
1632 `@3$4=$1+$2'.  When inserting/deleting/swapping column and rows with
1633 the appropriate commands, absolute references (but not relative ones)
1634 in stored formulas are modified in order to still reference the same
1635 field.  Of cause this is not true if you edit the table structure with
1636 normal editing commands - then you must fix the equations yourself.
1638    Instead of typing an equation into the field, you may also use the
1639 following command
1641 `C-u C-c ='
1642      Install a new formula for the current field.  The command prompts
1643      for a formula, with default taken from the `#+TBLFM:' line, applies
1644      it to the current field and stores it.
1646 \x1f
1647 File: org,  Node: Column formulas,  Next: Editing and debugging formulas,  Prev: Field formulas,  Up: The spreadsheet
1649 3.5.5 Column formulas
1650 ---------------------
1652 Often in a table, the same formula should be used for all fields in a
1653 particular column.  Instead of having to copy the formula to all fields
1654 in that column, org-mode allows to assign a single formula to an entire
1655 column.  If the table contains horizontal separator hlines, everything
1656 before the first such line is considered part of the table _header_ and
1657 will not be modified by column formulas.
1659    To assign a formula to a column, type it directly into any field in
1660 the column, preceded by an equal sign, like `=$1+$2'.  When you press
1661 <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
1662 formula will be stored as the formula for the current column, evaluated
1663 and the current field replaced with the result.  If the field contains
1664 only `=', the previously stored formula for this column is used.  For
1665 each column, Org-mode will only remember the most recently used
1666 formula.  In the `TBLFM:' line, column formulas will look like
1667 `$4=$1+$2'.
1669    Instead of typing an equation into the field, you may also use the
1670 following command:
1672 `C-c ='
1673      Install a new formula for the current column and replace current
1674      field with the result of the formula.  The command prompts for a
1675      formula, with default taken from the `#+TBLFM' line, applies it to
1676      the current field and stores it.  With a numerical prefix (e.g.
1677      `C-5 C-c =') will apply it to that many consecutive fields in the
1678      current column.
1680 \x1f
1681 File: org,  Node: Editing and debugging formulas,  Next: Updating the table,  Prev: Column formulas,  Up: The spreadsheet
1683 3.5.6 Editing and Debugging formulas
1684 ------------------------------------
1686 You can edit individual formulas in the minibuffer or directly in the
1687 field.  Org-mode can also prepare a special buffer with all active
1688 formulas of a table.  When offering a formula for editing, Org-mode
1689 converts references to the standard format (like `B3' or `D&') if
1690 possible.  If you prefer to only work with the internal format (like
1691 `@3$2' or `$4'), configure the variable
1692 `org-table-use-standard-references'.
1694 `C-c ='
1695 `C-u C-c ='
1696      Edit the formula associated with the current column/field in the
1697      minibuffer.  See *Note Column formulas:: and *Note Field
1698      formulas::.  
1700 `C-u C-u C-c ='
1701      Re-insert the active formula (either a field formula, or a column
1702      formula) into the current field, so that you can edit it directly
1703      in the field.  The advantage over editing in the minibuffer is
1704      that you can use the command `C-c ?'.  
1706 `C-c ?'
1707      While editing a formula in a table field, highlight the field(s)
1708      referenced by the reference at the cursor position in the formula.  
1710 `C-c }'
1711      Toggle the display of row and column numbers for a table, using
1712      overlays.  These are updated each time the table is aligned, you
1713      can force it with `C-c C-c'.  
1715 `C-c {'
1716      Toggle the formula debugger on and off.  See below.  
1718 `C-c ''
1719      Edit all formulas for the current table in a special buffer, where
1720      the formulas will be displayed one per line.  If the current field
1721      has an active formula, the cursor in the formula editor will mark
1722      it.  While inside the special buffer, Org-mode will automatically
1723      highlight any field or range reference at the cursor position.
1724      You may edit, remove and add formulas, and use the following
1725      commands:
1726     `C-c C-c'
1727     `C-x C-s'
1728           Exit the formula editor and store the modified formulas.
1729           With `C-u' prefix, also apply the new formulas to the entire
1730           table.  
1732     `C-c C-q'
1733           Exit the formula editor without installing changes.  
1735     `C-c C-r'
1736           Toggle all references in the formula editor between standard
1737           (like `B3') and internal (like `@3$2').  
1739     `<TAB>'
1740           Pretty-print or indent lisp formula at point.  When in a line
1741           containing a lisp formula, format the formula according to
1742           Emacs Lisp rules.  Another <TAB> collapses the formula back
1743           again.  In the open formula, <TAB> re-indents just like in
1744           Emacs-lisp-mode.  
1746     `M-<TAB>'
1747           Complete Lisp symbols, just like in Emacs-lisp-mode.  
1749     `S-<up>/<down>/<left>/<right>'
1750           Shift the reference at point.  For example, if the reference
1751           is `B3' and you press `S-<right>', it will become `C3'.  This
1752           also works for relative references, and for hline references.  
1754     `M-S-<up>/<down>'
1755           Move the test line for column formulas in the Org-mode buffer
1756           up and down.  
1758     `M-<up>/<down>'
1759           Scroll the window displaying the table.  
1761     `C-c }'
1762           Turn the coordinate grid in the table on and off.
1764    Making a table field blank does not remove the formula associated
1765 with the field, because that is stored in a different line (the `TBLFM'
1766 line) - during the next recalculation the field will be filled again.
1767 To remove a formula from a field, you have to give an empty reply when
1768 prompted for the formula, or to edit the `#+TBLFM' line.
1770    You may edit the `#+TBLFM' directly and re-apply the changed
1771 equations with `C-c C-c' in that line, or with the normal recalculation
1772 commands in the table.
1774 Debugging formulas
1775 ..................
1777 When the evaluation of a formula leads to an error, the field content
1778 becomes the string `#ERROR'.  If you would like see what is going on
1779 during variable substitution and calculation in order to find a bug,
1780 turn on formula debugging in the `Tbl' menu and repeat the calculation,
1781 for example by pressing `C-u C-u C-c = <RET>' in a field.  Detailed
1782 information will be displayed.
1784 \x1f
1785 File: org,  Node: Updating the table,  Next: Advanced features,  Prev: Editing and debugging formulas,  Up: The spreadsheet
1787 3.5.7 Updating the Table
1788 ------------------------
1790 Recalculation of a table is normally not automatic, but needs to be
1791 triggered by a command.  See *Note Advanced features:: for a way to make
1792 recalculation at least semi-automatically.
1794    In order to recalculate a line of a table or the entire table, use
1795 the following commands:
1797 `C-c *'
1798      Recalculate the current row by first applying the stored column
1799      formulas from left to right, and all field formulas in the current
1800      row.  
1802 `C-u C-c *'
1803 `C-u C-c C-c'
1804      Recompute the entire table, line by line.  Any lines before the
1805      first hline are left alone, assuming that these are part of the
1806      table header.  
1808 `C-u C-u C-c *'
1809 `C-u C-u C-c C-c'
1810      Iterate the table by recomputing it until no further changes occur.
1811      This may be necessary if some computed fields use the value of
1812      other fields that are computed later in the calculation sequence.
1814 \x1f
1815 File: org,  Node: Advanced features,  Prev: Updating the table,  Up: The spreadsheet
1817 3.5.8 Advanced features
1818 -----------------------
1820 If you want the recalculation of fields to happen automatically, or if
1821 you want to be able to assign names to fields and columns, you need to
1822 reserve the first column of the table for special marking characters.
1823 `C-#'
1824      Rotate the calculation mark in first column through the states `',
1825      `#', `*', `!', `$'.  The meaning of these characters is discussed
1826      below.  When there is an active region, change all marks in the
1827      region.
1829    Here is an example of a table that collects exam results of students
1830 and makes use of these features:
1832      |---+---------+--------+--------+--------+-------+------|
1833      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1834      |---+---------+--------+--------+--------+-------+------|
1835      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1836      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1837      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1838      |---+---------+--------+--------+--------+-------+------|
1839      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1840      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1841      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1842      |---+---------+--------+--------+--------+-------+------|
1843      |   | Average |        |        |        |  29.7 |      |
1844      | ^ |         |        |        |        |    at |      |
1845      | $ | max=50  |        |        |        |       |      |
1846      |---+---------+--------+--------+--------+-------+------|
1847      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
1849 Important: Please note that for these special tables, recalculating the
1850 table with `C-u C-c *' will only affect rows that are marked `#' or
1851 `*', and fields that have a formula assigned to the field itself.  The
1852 column formulas are not applied in rows with empty first field.
1854    The marking characters have the following meaning:
1856      The fields in this line define names for the columns, so that you
1857      may refer to a column as `$Tot' instead of `$6'.
1860      This row defines names for the fields _above_ the row.  With such
1861      a definition, any formula in the table may use `$m1' to refer to
1862      the value `10'.  Also, if you assign a formula to a names field, it
1863      will be stored as `$name=...'.
1866      Similar to `^', but defines names for the fields in the row
1867      _below_.
1870      Fields in this row can define _parameters_ for formulas.  For
1871      example, if a field in a `$' row contains `max=50', then formulas
1872      in this table can refer to the value 50 using `$max'.  Parameters
1873      work exactly like constants, only that they can be defined on a
1874      per-table basis.
1877      Fields in this row are automatically recalculated when pressing
1878      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1879      selected for a global recalculation with `C-u C-c *'.  Unmarked
1880      lines will be left alone by this command.
1883      Selects this line for global recalculation with `C-u C-c *', but
1884      not for automatic recalculation.  Use this when automatic
1885      recalculation slows down editing too much.
1888      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1889      All lines that should be recalculated should be marked with `#' or
1890      `*'.
1893      Do not export this line.  Useful for lines that contain the
1894      narrowing `<N>' markers.
1896    Finally, just to whet your appetite on what can be done with the
1897 fantastic `calc' package, here is a table that computes the Taylor
1898 series of degree `n' at location `x' for a couple of functions
1899 (homework: try that with Excel :-)
1901      |---+-------------+---+-----+--------------------------------------|
1902      |   | Func        | n | x   | Result                               |
1903      |---+-------------+---+-----+--------------------------------------|
1904      | # | exp(x)      | 1 | x   | 1 + x                                |
1905      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1906      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1907      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1908      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1909      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1910      |---+-------------+---+-----+--------------------------------------|
1911      #+TBLFM: $5=taylor($2,$4,$3);n3
1913 \x1f
1914 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1916 4 Hyperlinks
1917 ************
1919 Just like HTML, Org-mode provides links inside a file, and external
1920 links to other files, Usenet articles, emails, and much more.
1922 * Menu:
1924 * Link format::                 How links in Org-mode are formatted
1925 * Internal links::              Links to other places in the current file
1926 * External links::              URL-like links to the world
1927 * Handling links::              Creating, inserting and following
1928 * Using links outside Org-mode::  Linking from my C source code?
1929 * Link abbreviations::          Shortcuts for writing complex links
1930 * Search options::              Linking to a specific location
1931 * Custom searches::             When the default search is not enough
1933 \x1f
1934 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1936 4.1 Link format
1937 ===============
1939 Org-mode will recognize plain URL-like links and activate them as
1940 clickable links.  The general link format, however, looks like this:
1942      [[link][description]]       or alternatively           [[link]]
1944    Once a link in the buffer is complete (all brackets present),
1945 Org-mode will change the display so that `description' is displayed
1946 instead of `[[link][description]]' and `link' is displayed instead of
1947 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1948 default is an underlined face.  You can directly edit the visible part
1949 of a link.  Note that this can be either the `link' part (if there is
1950 no description) or the `description' part.  To edit also the invisible
1951 `link' part, use `C-c C-l' with the cursor on the link.
1953    If you place the cursor at the beginning or just behind the end of
1954 the displayed text and press <BACKSPACE>, you will remove the
1955 (invisible) bracket at that location.  This makes the link incomplete
1956 and the internals are again displayed as plain text.  Inserting the
1957 missing bracket hides the link internals again.  To show the internal
1958 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1959 links'.
1961 \x1f
1962 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
1964 4.2 Internal links
1965 ==================
1967 If the link does not look like a URL, it is considered to be internal in
1968 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
1969 my target]]' lead to a text search in the current file.  The link can
1970 be followed with `C-c C-o' when the cursor is on the link, or with a
1971 mouse click (*note Handling links::).  The preferred match for such a
1972 link is a dedicated target: the same string in double angular brackets.
1973 Targets may be located anywhere; sometimes it is convenient to put
1974 them into a comment line. For example
1976      # <<My Target>>
1978 In HTML export (*note HTML export::), such targets will become named
1979 anchors for direct access through `http' links(1).
1981    If no dedicated target exists, Org-mode will search for the words in
1982 the link.  In the above example the search would be for `my target'.
1983 Links starting with a star like `*My Target' restrict the search to
1984 headlines.  When searching, Org-mode will first try an exact match, but
1985 then move on to more and more lenient searches.  For example, the link
1986 `[[*My Targets]]' will find any of the following:
1988      ** My targets
1989      ** TODO my targets are bright
1990      ** my 20 targets are
1992    To insert a link targeting a headline, in-buffer completion can be
1993 used.  Just type a star followed by a few optional letters into the
1994 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
1995 offered as completions.  *Note Handling links::, for more commands
1996 creating links.
1998    Following a link pushes a mark onto Org-mode's own mark ring.  You
1999 can return to the previous position with `C-c &'.  Using this command
2000 several times in direct succession goes back to positions recorded
2001 earlier.
2003 * Menu:
2005 * Radio targets::               Make targets trigger links in plain text.
2007    ---------- Footnotes ----------
2009    (1) Note that text before the first headline is usually not
2010 exported, so the first such target should be after the first headline.
2012 \x1f
2013 File: org,  Node: Radio targets,  Prev: Internal links,  Up: Internal links
2015 4.2.1 Radio targets
2016 -------------------
2018 Org-mode can automatically turn any occurrences of certain target names
2019 in normal text into a link.  So without explicitly creating a link, the
2020 text connects to the target radioing its position.  Radio targets are
2021 enclosed by triple angular brackets.  For example, a target `<<<My
2022 Target>>>' causes each occurrence of `my target' in normal text to
2023 become activated as a link.  The Org-mode file is scanned automatically
2024 for radio targets only when the file is first loaded into Emacs.  To
2025 update the target list during editing, press `C-c C-c' with the cursor
2026 on or at a target.
2028 \x1f
2029 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
2031 4.3 External links
2032 ==================
2034 Org-mode supports links to files, websites, Usenet and email messages,
2035 and BBDB database entries.  External links are URL-like locators.  They
2036 start with a short identifying string followed by a colon.  There can be
2037 no space after the colon.  The following list shows examples for each
2038 link type.
2040      http://www.astro.uva.nl/~dominik          on the web
2041      file:/home/dominik/images/jupiter.jpg     file, absolute path
2042      file:papers/last.pdf                      file, relative path
2043      news:comp.emacs                           Usenet link
2044      mailto:adent@galaxy.net                   Mail link
2045      vm:folder                                 VM folder link
2046      vm:folder#id                              VM message link
2047      vm://myself@some.where.org/folder#id      VM on remote machine
2048      wl:folder                                 WANDERLUST folder link
2049      wl:folder#id                              WANDERLUST message link
2050      mhe:folder                                MH-E folder link
2051      mhe:folder#id                             MH-E message link
2052      rmail:folder                              RMAIL folder link
2053      rmail:folder#id                           RMAIL message link
2054      gnus:group                                GNUS group link
2055      gnus:group#id                             GNUS article link
2056      bbdb:Richard Stallman                     BBDB link
2057      shell:ls *.org                            A shell command
2058      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
2060    A link should be enclosed in double brackets and may contain a
2061 descriptive text to be displayed instead of the url (*note Link
2062 format::), for example:
2064      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
2066 If the description is a file name or URL that points to an image, HTML
2067 export (*note HTML export::) will inline the image as a clickable
2068 button.  If there is no description at all and the link points to an
2069 image, that image will be inlined into the exported HTML file.
2071    Org-mode also finds external links in the normal text and activates
2072 them as links.  If spaces must be part of the link (for example in
2073 `bbdb:Richard Stallman'), or if you need to remove ambiguities about
2074 the end of the link, enclose them in angular brackets.
2076 \x1f
2077 File: org,  Node: Handling links,  Next: Using links outside Org-mode,  Prev: External links,  Up: Hyperlinks
2079 4.4 Handling links
2080 ==================
2082 Org-mode provides methods to create a link in the correct syntax, to
2083 insert it into an org-mode file, and to follow the link.
2085 `C-c l'
2086      Store a link to the current location.  This is a _global_ command
2087      which can be used in any buffer to create a link.  The link will be
2088      stored for later insertion into an Org-mode buffer (see below).
2089      For Org-mode files, if there is a `<<target>>' at the cursor, the
2090      link points to the target.  Otherwise it points to the current
2091      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
2092      the link will indicate the current article/entry.  For W3 and W3M
2093      buffers, the link goes to the current URL.  For any other files,
2094      the link will point to the file, with a search string (*note
2095      Search options::) pointing to the contents of the current line.
2096      If there is an active region, the selected words will form the
2097      basis of the search string.  If the automatically created link is
2098      not working correctly or accurately enough, you can write custom
2099      functions to select the search string and to do the search for
2100      particular file types - see *Note Custom searches::.  The key
2101      binding `C-c l' is only a suggestion - see *Note Installation::.  
2103 `C-c C-l'
2104      Insert a link.  This prompts for a link to be inserted into the
2105      buffer.  You can just type a link, using text for an internal
2106      link, or one of the link type prefixes mentioned in the examples
2107      above.  All links stored during the current session are part of
2108      the history for this prompt, so you can access them with <up> and
2109      <down> (or `M-p/n').  Completion, on the other hand, will help you
2110      to insert valid link prefixes like `http:' or `ftp:', including
2111      the prefixes defined through link abbreviations (*note Link
2112      abbreviations::).  The link will be inserted into the buffer(1),
2113      along with a descriptive text.  If some text was selected when
2114      this command is called, the selected text becomes the default
2115      description.
2116      Note that you don't have to use this command to insert a link.
2117      Links in Org-mode are plain text, and you can type or paste them
2118      straight into the buffer.  By using this command, the links are
2119      automatically enclosed in double brackets, and you will be asked
2120      for the optional descriptive text.  
2122 `C-u C-c C-l'
2123      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
2124      file will be inserted and you may use file name completion to
2125      select the name of the file.  The path to the file is inserted
2126      relative to the directory of the current org file, if the linked
2127      file is in the current directory or in a subdirectory of it, or if
2128      the path is written relative to the current directory using `../'.
2129      Otherwise an absolute path is used, if possible with `~/' for
2130      your home directory.  You can force an absolute path with two
2131      `C-u' prefixes.
2133 `C-c C-l (with cursor on existing link)'
2134      When the cursor is on an existing link, `C-c C-l' allows you to
2135      edit the link and description parts of the link.  
2137 `C-c C-o'
2138      Open link at point.  This will launch a web browser for URLs (using
2139      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
2140      the corresponding links, and execute the command in a shell link.
2141      When the cursor is on an internal link, this commands runs the
2142      corresponding search.  When the cursor is on a TAG list in a
2143      headline, it creates the corresponding TAGS view.  If the cursor
2144      is on a time stamp, it compiles the agenda for that date.
2145      Furthermore, it will visit text and remote files in `file:' links
2146      with Emacs and select a suitable application for local non-text
2147      files.  Classification of files is based on file extension only.
2148      See option `org-file-apps'.  If you want to override the default
2149      application and visit the file with Emacs, use a `C-u' prefix.  
2151 `mouse-2'
2152 `mouse-1'
2153      On links, `mouse-2' will open the link just as `C-c C-o' would.
2154      Under Emacs 22, also `mouse-1' will follow a link.  
2156 `mouse-3'
2157      Like `mouse-2', but force file links to be opened with Emacs, and
2158      internal links to be displayed in another window(2).  
2160 `C-c %'
2161      Push the current position onto the mark ring, to be able to return
2162      easily. Commands following an internal link do this automatically.  
2164 `C-c &'
2165      Jump back to a recorded position.  A position is recorded by the
2166      commands following internal links, and by `C-c %'.  Using this
2167      command several times in direct succession moves through a ring of
2168      previously recorded positions.  
2170 `C-c C-x C-n'
2171 `C-c C-x C-p'
2172      Move forward/backward to the next link in the buffer.  At the
2173      limit of the buffer, the search fails once, and then wraps around.
2174      The key bindings for this are really too long, you might want to
2175      bind this also to `C-n' and `C-p'
2176           (add-hook 'org-load-hook
2177             (lambda ()
2178               (define-key 'org-mode-map "\C-n" 'org-next-link)
2179               (define-key 'org-mode-map "\C-p" 'org-previous-link)))
2181    ---------- Footnotes ----------
2183    (1) After insertion of a stored link, the link will be removed from
2184 the list of stored links.  To keep it in the list later use, use a
2185 triple `C-u' prefix to `C-c C-l', or configure the option
2186 `org-keep-stored-link-after-insertion'.
2188    (2) See the variable `org-display-internal-link-with-indirect-buffer'
2190 \x1f
2191 File: org,  Node: Using links outside Org-mode,  Next: Link abbreviations,  Prev: Handling links,  Up: Hyperlinks
2193 4.5 Using links outside Org-mode
2194 ================================
2196 You can insert and follow links that have Org-mode syntax not only in
2197 Org-mode, but in any Emacs buffer.  For this, you should create two
2198 global commands, like this (please select suitable global keys
2199 yourself):
2201      (global-set-key "\C-c L" 'org-insert-link-global)
2202      (global-set-key "\C-c o" 'org-open-at-point-global)
2204 \x1f
2205 File: org,  Node: Link abbreviations,  Next: Search options,  Prev: Using links outside Org-mode,  Up: Hyperlinks
2207 4.6 Link abbreviations
2208 ======================
2210 Long URLs can be cumbersome to type, and often many similar links are
2211 needed in a document.  For this you can use link abbreviations.  An
2212 abbreviated link looks like this
2214      [[linkword:tag][description]]
2216 where the tag is optional.  Such abbreviations are resolved according to
2217 the information in the variable `org-link-abbrev-alist' that relates
2218 the linkwords to replacement text.  Here is an example:
2220      (setq org-link-abbrev-alist
2221        '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
2222          ("google"   . "http://www.google.com/search?q=")
2223          ("ads"      . "http://adsabs.harvard.edu/cgi-bin/
2224                         nph-abs_connect?author=%s&db_key=AST")))
2226    If the replacement text contains the string `%s', it will be
2227 replaced with the tag.  Otherwise the tag will be appended to the string
2228 in order to create the link.  You may also specify a function that will
2229 be called with the tag as the only argument to create the link.
2231    With the above setting, you could link to a specific bug with
2232 `[[bugzilla:129]]', search the web for `OrgMode' with
2233 `[[google:OrgMode]]' and find out what the Org-mode author is doing
2234 besides Emacs hacking with `[[ads:Dominik,C]]'.
2236    If you need special abbreviations just for a single Org-mode buffer,
2237 you can define them in the file with
2239      #+LINK: bugzilla  http://10.1.2.9/bugzilla/show_bug.cgi?id=
2240      #+LINK: google    http://www.google.com/search?q=%s
2242 In-buffer completion *note Completion:: can be used after `[' to
2243 complete link abbreviations.
2245 \x1f
2246 File: org,  Node: Search options,  Next: Custom searches,  Prev: Link abbreviations,  Up: Hyperlinks
2248 4.7 Search options in file links
2249 ================================
2251 File links can contain additional information to make Emacs jump to a
2252 particular location in the file when following a link.  This can be a
2253 line number or a search option after a double(1) colon. For example,
2254 when the command `C-c l' creates a link (*note Handling links::) to a
2255 file, it encodes the words in the current line as a search string that
2256 can be used to find this line back later when following the link with
2257 `C-c C-o'.
2259    Here is the syntax of the different ways to attach a search to a file
2260 link, together with an explanation:
2262      [[file:~/code/main.c::255]]
2263      [[file:~/xx.org::My Target]]
2264      [[file:~/xx.org::*My Target]]
2265      [[file:~/xx.org::/regexp/]]
2267 `255'
2268      Jump to line 255.
2270 `My Target'
2271      Search for a link target `<<My Target>>', or do a text search for
2272      `my target', similar to the search in internal links, see *Note
2273      Internal links::.  In HTML export (*note HTML export::), such a
2274      file link will become an HTML reference to the corresponding named
2275      anchor in the linked file.
2277 `*My Target'
2278      In an Org-mode file, restrict search to headlines.
2280 `/regexp/'
2281      Do a regular expression search for `regexp'.  This uses the Emacs
2282      command `occur' to list all matches in a separate window.  If the
2283      target file is in Org-mode, `org-occur' is used to create a sparse
2284      tree with the matches.
2286    As a degenerate case, a file link with an empty file name can be used
2287 to search the current file.  For example, `[[file:::find me]]' does a
2288 search for `find me' in the current file, just as `[[find me]]' would.
2290    ---------- Footnotes ----------
2292    (1) For backward compatibility, line numbers can also follow a
2293 single colon.
2295 \x1f
2296 File: org,  Node: Custom searches,  Prev: Search options,  Up: Hyperlinks
2298 4.8 Custom Searches
2299 ===================
2301 The default mechanism for creating search strings and for doing the
2302 actual search related to a file link may not work correctly in all
2303 cases.  For example, BibTeX database files have many entries like
2304 `year="1993"' which would not result in good search strings, because
2305 the only unique identification for a BibTeX entry is the citation key.
2307    If you come across such a problem, you can write custom functions to
2308 set the right search string for a particular file type, and to do the
2309 search for the string in the file.  Using `add-hook', these functions
2310 need to be added to the hook variables
2311 `org-create-file-search-functions' and
2312 `org-execute-file-search-functions'.  See the docstring for these
2313 variables for more information.  Org-mode actually uses this mechanism
2314 for BibTeX database files, and you can use the corresponding code as an
2315 implementation example.  Search for `BibTeX links' in the source file.
2317 \x1f
2318 File: org,  Node: TODO items,  Next: Tags,  Prev: Hyperlinks,  Up: Top
2320 5 TODO items
2321 ************
2323 Org-mode does not maintain TODO lists as a separate document.  TODO
2324 items are an integral part of the notes file, because TODO items
2325 usually come up while taking notes!  With Org-mode, you simply mark any
2326 entry in a tree as being a TODO item.  In this way, the information is
2327 not duplicated, and the entire context from which the item emerged is
2328 always present when you check.
2330    Of course, this technique causes TODO items to be scattered
2331 throughout your file.  Org-mode provides methods to give you an
2332 overview over all things you have to do.
2334 * Menu:
2336 * TODO basics::                 Marking and displaying TODO entries
2337 * TODO extensions::             Workflow and assignments
2338 * Progress logging::            Dates and notes for progress
2339 * Priorities::                  Some things are more important than others
2340 * Breaking down tasks::         Splitting a task into manageable pieces
2341 * Checkboxes::                  Tick-off lists
2343 \x1f
2344 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
2346 5.1 Basic TODO functionality
2347 ============================
2349 Any headline can become a TODO item by starting it with the word TODO,
2350 for example:
2352      *** TODO Write letter to Sam Fortune
2354 The most important commands to work with TODO entries are:
2356 `C-c C-t'
2357      Rotate the TODO state of the current item among
2359           ,-> (unmarked) -> TODO -> DONE --.
2360           '--------------------------------'
2362      The same rotation can also be done "remotely" from the timeline and
2363      agenda buffers with the `t' command key (*note Agenda commands::).
2365 `C-u C-c C-t'
2366      Select a specific keyword using completion of (if it has been set
2367      up) the fast selection interface.
2369 `S-<right>'
2370 `S-<left>'
2371      Select the following/preceding TODO state, similar to cycling.
2372      Mostly useful if more than two TODO states are possible (*note
2373      TODO extensions::).  
2375 `C-c C-c'
2376      Use the fast tag interface to quickly and directly select a
2377      specific TODO state.  For this you need to assign keys to TODO
2378      state, like this:
2379           #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
2380      See *Note Per file keywords:: and *Note Setting tags:: for more
2381      information.  
2383 `C-c C-v'
2384 `C-c / t'
2385      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
2386      the entire buffer, but shows all TODO items and the headings
2387      hierarchy above them.  With prefix arg, search for a specific
2388      TODO.  You will be prompted for the keyword, and you can also give
2389      a list of keywords like `kwd1|kwd2|...'.  With numerical prefix N,
2390      show the tree for the Nth keyword in the variable
2391      `org-todo-keywords'.  With two prefix args, find all TODO and DONE
2392      entries.  
2394 `C-c a t'
2395      Show the global TODO list.  This collects the TODO items from all
2396      agenda files (*note Agenda views::) into a single buffer.  The
2397      buffer is in `agenda-mode', so there are commands to examine and
2398      manipulate the TODO entries directly from that buffer (*note
2399      Agenda commands::).  *Note Global TODO list::, for more
2400      information.  
2402 `S-M-<RET>'
2403      Insert a new TODO entry below the current one.
2405 \x1f
2406 File: org,  Node: TODO extensions,  Next: Progress logging,  Prev: TODO basics,  Up: TODO items
2408 5.2 Extended use of TODO keywords
2409 =================================
2411 The default implementation of TODO entries is just two states: TODO and
2412 DONE.  You can use the TODO feature for more complicated things by
2413 configuring the variable `org-todo-keywords'.  With special setup, the
2414 TODO keyword system can work differently in different files.
2416    Note that tags are another way to classify headlines in general and
2417 TODO items in particular (*note Tags::).
2419 * Menu:
2421 * Workflow states::             From TODO to DONE in steps
2422 * TODO types::                  I do this, Fred the rest
2423 * Multiple sets in one file::   Mixing it all, and still finding your way
2424 * Fast access to TODO states::  Single letter selection of a state
2425 * Per file keywords::           Different files, different requirements
2426 * Faces for TODO keywords::     Highlighting states
2428 \x1f
2429 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
2431 5.2.1 TODO keywords as workflow states
2432 --------------------------------------
2434 You can use TODO keywords to indicate different _sequential_ states in
2435 the process of working on an item, for example(1):
2437      (setq org-todo-keywords
2438        '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
2440    The vertical bar separates the TODO keywords (states that _need
2441 action_) from the DONE states (which need _no further action_.  If you
2442 don't provide the separator bar, the last state is used as the DONE
2443 state.  With this setup, the command `C-c C-t' will cycle an entry from
2444 TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
2445 You may also use a prefix argument to quickly select a specific state.
2446 For example `C-3 C-c C-t' will change the state immediately to VERIFY.
2447 If you define many keywords, you can use in-buffer completion (see
2448 *Note Completion::) to insert these words into the buffer.  Changing a
2449 todo state can be logged with a timestamp, see *Note Tracking TODO
2450 state changes:: for more information.
2452    ---------- Footnotes ----------
2454    (1) Changing this variable only becomes effective after restarting
2455 Org-mode in a buffer.
2457 \x1f
2458 File: org,  Node: TODO types,  Next: Multiple sets in one file,  Prev: Workflow states,  Up: TODO extensions
2460 5.2.2 TODO keywords as types
2461 ----------------------------
2463 The second possibility is to use TODO keywords to indicate different
2464 _types_ of action items.  For example, you might want to indicate that
2465 items are for "work" or "home".  Or, when you work with several people
2466 on a single project, you might want to assign action items directly to
2467 persons, by using their names as TODO keywords.  This would be set up
2468 like this:
2470      (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
2472    In this case, different keywords do not indicate a sequence, but
2473 rather different types.  So the normal work flow would be to assign a
2474 task to a person, and later to mark it DONE.  Org-mode supports this
2475 style by adapting the workings of the command `C-c C-t'(1).  When used
2476 several times in succession, it will still cycle through all names, in
2477 order to first select the right type for a task.  But when you return
2478 to the item after some time and execute `C-c C-t' again, it will switch
2479 from any name directly to DONE.  Use prefix arguments or completion to
2480 quickly select a specific name.  You can also review the items of a
2481 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2482 C-v'.  For example, to see all things Lucy has to do, you would use
2483 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
2484 single buffer, you would use the prefix arg as well when creating the
2485 global todo list: `C-3 C-c t'.
2487    ---------- Footnotes ----------
2489    (1) This is also true for the `t' command in the timeline and agenda
2490 buffers.
2492 \x1f
2493 File: org,  Node: Multiple sets in one file,  Next: Fast access to TODO states,  Prev: TODO types,  Up: TODO extensions
2495 5.2.3 Multiple keyword sets in one file
2496 ---------------------------------------
2498 Sometimes you may want to use different sets of TODO keywords in
2499 parallel.  For example, you may want to have the basic `TODO'/`DONE',
2500 but also a workflow for bug fixing, and a separate state indicating
2501 that an item has been canceled (so it is not DONE, but also does not
2502 require action).  Your setup would then look like this:
2504      (setq org-todo-keywords
2505            '((sequence "TODO" "|" "DONE")
2506              (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
2507              (sequence "|" "CANCELED")))
2509    The keywords should all be different, this helps Org-mode to keep
2510 track of which subsequence should be used for a given entry.  In this
2511 setup, `C-c C-t' only operates within a subsequence, so it switches from
2512 `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
2513 `REPORT'.  Therefore you need a mechanism to initially select the
2514 correct sequence.  Besides the obvious ways like typing a keyword or
2515 using completion, you may also apply the following commands:
2517 `C-S-<right>'
2518 `C-S-<left>'
2519      These keys jump from one TODO subset to the next.  In the above
2520      example, `C-S-<right>' would jump from `TODO' or `DONE' to
2521      `REPORT', and any of the words in the second row to `CANCELED'.  
2523 `S-<right>'
2524 `S-<left>'
2525      `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
2526      from all sets, so for example `S-<<right>>' would switch from
2527      `DONE' to `REPORT' in the example above.
2529 \x1f
2530 File: org,  Node: Fast access to TODO states,  Next: Per file keywords,  Prev: Multiple sets in one file,  Up: TODO extensions
2532 5.2.4 Fast access to TODO states
2533 --------------------------------
2535 If you would like to quickly change an entry to an arbitrary TODO state
2536 instead of cycling through the states, you can set up keys for
2537 single-letter access to the states.  This is done by adding the section
2538 key after each keyword, in parenthesis.  For example:
2540      (setq org-todo-keywords
2541            '((sequence "TODO(t)" "|" "DONE(d)")
2542              (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
2543              (sequence "|" "CANCELED(c)")))
2545    If you then press `C-u C-c C-t' followed by the selection key, the
2546 entry will be switched to this state.  <SPC> can be used to remove any
2547 TODO keyword from an entry.  Should you like this way of selecting TODO
2548 states a lot, you might want to set the variable
2549 `org-use-fast-todo-selection' to `t' and make this behavior the
2550 default.  Check also the variable
2551 `org-fast-tag-selection-include-todo', it allows to change the TODO
2552 state through the tags interface (*note Setting tags::).
2554 \x1f
2555 File: org,  Node: Per file keywords,  Next: Faces for TODO keywords,  Prev: Fast access to TODO states,  Up: TODO extensions
2557 5.2.5 Setting up keywords for individual files
2558 ----------------------------------------------
2560 It can be very useful to use different aspects of the TODO mechanism in
2561 different files.  For file-local settings, you need to add special lines
2562 to the file which set the keywords and interpretation for that file
2563 only.  For example, to set one of the two examples discussed above, you
2564 need one of the following lines, starting in column zero anywhere in the
2565 file:
2567      #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
2568    or
2569      #+TYP_TODO: Fred Sara Lucy Mike | DONE
2571    A setup for using several sets in parallel would be:
2573      #+SEQ_TODO: TODO | DONE
2574      #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
2575      #+SEQ_TODO: | CANCELED
2577 To make sure you are using the correct keyword, type `#+' into the
2578 buffer and then use `M-<TAB>' completion.
2580    Remember that the keywords after the vertical bar (or the last
2581 keyword if no bar is there) must always mean that the item is DONE
2582 (although you may use a different word).  After changing one of these
2583 lines, use `C-c C-c' with the cursor still in the line to make the
2584 changes known to Org-mode(1).
2586    ---------- Footnotes ----------
2588    (1) Org-mode parses these lines only when Org-mode is activated
2589 after visiting a file.  `C-c C-c' with the cursor in a line starting
2590 with `#+' is simply restarting Org-mode for the current buffer.
2592 \x1f
2593 File: org,  Node: Faces for TODO keywords,  Prev: Per file keywords,  Up: TODO extensions
2595 5.2.6 Faces for TODO keywords
2596 -----------------------------
2598 Org-mode highlights TODO keywords with special faces: `org-todo' for
2599 keywords indicating that an item still has to be acted upon, and
2600 `org-done' for keywords indicating that an item is finished.  If you
2601 are using more than 2 different states, you might want to use special
2602 faces for some of them.  This can be done using the variable
2603 `org-todo-keyword-faces'.  For example:
2605      (setq org-todo-keyword-faces
2606            '(("TODO"      . org-warning)
2607              ("DEFERRED"  . shadow)
2608              ("CANCELED"  . (:foreground "blue" :weight bold))))
2610 \x1f
2611 File: org,  Node: Progress logging,  Next: Priorities,  Prev: TODO extensions,  Up: TODO items
2613 5.3 Progress Logging
2614 ====================
2616 Org-mode can automatically record a time stamp and even a note when you
2617 mark a TODO item as DONE, or even each time you change the state of a
2618 TODO item.
2620 * Menu:
2622 * Closing items::               When was this entry marked DONE?
2623 * Tracking TODO state changes::  When did the status change?
2625 \x1f
2626 File: org,  Node: Closing items,  Next: Tracking TODO state changes,  Prev: Progress logging,  Up: Progress logging
2628 5.3.1 Closing items
2629 -------------------
2631 If you want to keep track of _when_ a certain TODO item was finished,
2632 turn on logging with(1)
2634      (setq org-log-done t)
2636 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2637 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2638 [timestamp]' will be inserted just after the headline.  If you turn the
2639 entry back into a TODO item through further state cycling, that line
2640 will be removed again.  In the timeline (*note Timeline::) and in the
2641 agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
2642 display the TODO items closed on each day, giving you an overview of
2643 what has been done on a day.  If you want to record a note along with
2644 the timestamp, use(2)
2646      (setq org-log-done '(done))
2648    ---------- Footnotes ----------
2650    (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
2651 You may also set this for the scope of a subtree by adding a `LOGGING'
2652 property with one or more of the logging keywords in the value.
2654    (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
2656 \x1f
2657 File: org,  Node: Tracking TODO state changes,  Prev: Closing items,  Up: Progress logging
2659 5.3.2 Tracking TODO state changes
2660 ---------------------------------
2662 When TODO keywords are used as workflow states (*note Workflow
2663 states::), you might want to keep track of when a state change occurred
2664 and record a note about this change.  With the setting(1)
2666      (setq org-log-done '(state))
2668 each state change will prompt you for a note that will be attached to
2669 the current headline.  If you press `C-c C-c' without typing anything
2670 into the note buffer, only the time of the state change will be noted.
2671 Very likely you do not want this verbose tracking all the time, so it
2672 is probably better to configure this behavior with in-buffer options.
2673 For example, if you are tracking purchases, put these into a separate
2674 file that contains:
2676      #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
2677      #+STARTUP: lognotestate
2679    If you only need to take a note for some of the states, mark those
2680 states with an additional `@', like this:
2682      #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
2683      #+STARTUP: lognotestate
2685    ---------- Footnotes ----------
2687    (1) The corresponding in-buffer setting is: `#+STARTUP:
2688 lognotestate'.
2690 \x1f
2691 File: org,  Node: Priorities,  Next: Breaking down tasks,  Prev: Progress logging,  Up: TODO items
2693 5.4 Priorities
2694 ==============
2696 If you use Org-mode extensively to organize your work, you may end up
2697 with a number of TODO entries so large that you'd like to prioritize
2698 them.  This can be done by placing a _priority cookie_ into the
2699 headline, like this
2701      *** TODO [#A] Write letter to Sam Fortune
2703 With its standard setup, Org-mode supports priorities `A', `B', and
2704 `C'.  `A' is the highest priority.  An entry without a cookie is
2705 treated as priority `B'.  Priorities make a difference only in the
2706 agenda (*note Weekly/Daily agenda::).
2708 `C-c ,'
2709      Set the priority of the current headline.  The command prompts for
2710      a priority character `A', `B' or `C'.  When you press <SPC>
2711      instead, the priority cookie is removed from the headline.  The
2712      priorities can also be changed "remotely" from the timeline and
2713      agenda buffer with the `,' command (*note Agenda commands::).  
2715 `S-<up>'
2716 `S-<down>'
2717      Increase/decrease priority of current headline(1).  Note that these
2718      keys are also used to modify time stamps (*note Creating
2719      timestamps::).  Furthermore, these keys are also used by CUA-mode
2720      (*note Conflicts::).
2722    You can change the range of allowed priorities by setting the
2723 variables `org-highest-priority', `org-lowest-priority', and
2724 `org-default-priority'.  For an individual buffer, you may set these
2725 values (highest, lowest, default) like this (please make sure that the
2726 highest priority is earlier in the alphabet than the lowest priority):
2728      #+PRIORITIES: A C B
2730    ---------- Footnotes ----------
2732    (1) See also the option `org-priority-start-cycle-with-default''.
2734 \x1f
2735 File: org,  Node: Breaking down tasks,  Next: Checkboxes,  Prev: Priorities,  Up: TODO items
2737 5.5 Breaking tasks down into subtasks
2738 =====================================
2740 It is often advisable to break down large tasks into smaller, manageable
2741 subtasks.  You can do this by creating an outline tree below a TODO
2742 item, with detailed subtasks on the tree(1).  Another possibility is
2743 the use of checkboxes to identify (a hierarchy of) a large number of
2744 subtasks (*note Checkboxes::).
2746    ---------- Footnotes ----------
2748    (1) To keep subtasks out of the global TODO list, see the
2749 `org-agenda-todo-list-sublevels'.
2751 \x1f
2752 File: org,  Node: Checkboxes,  Prev: Breaking down tasks,  Up: TODO items
2754 5.6 Checkboxes
2755 ==============
2757 Every item in a plain list (*note Plain lists::) can be made a checkbox
2758 by starting it with the string `[ ]'.  This feature is similar to TODO
2759 items (*note TODO items::), but more lightweight.  Checkboxes are not
2760 included into the global TODO list, so they are often great to split a
2761 task into a number of simple steps.  Or you can use them in a shopping
2762 list.  To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
2763 `org-mouse.el'.  Here is an example of a checkbox list.
2765      * TODO Organize party [3/6]
2766        - call people [1/3]
2767          - [ ] Peter
2768          - [X] Sarah
2769          - [ ] Sam
2770        - [X] order food
2771        - [ ] think about what music to play
2772        - [X] talk to the neighbors
2774    The `[3/6]' and `[1/3]' in the first and second line are cookies
2775 indicating how many checkboxes are present in this entry, and how many
2776 of them have been checked off.  This can give you an idea on how many
2777 checkboxes remain, even without opening a folded entry.  The cookies
2778 can be placed into a headline or into (the first line of) a plain list
2779 item. Each cookie covers all checkboxes structurally below that
2780 headline/item.  You have to insert the cookie yourself by typing either
2781 `[/]' or `[%]'.  In the first case you get an `n out of m' result, in
2782 the second case you get information about the percentage of checkboxes
2783 checked (in the above example, this would be `[50%]' and `[33%],
2784 respectively').
2786 The following commands work with checkboxes:
2788 `C-c C-c'
2789      Toggle checkbox at point.  With prefix argument, set it to `[-]',
2790      which is considered to be an intermediate state.  
2792 `C-c C-x C-b'
2793      Toggle checkbox at point.
2794         - If there is an active region, toggle the first checkbox in
2795           the region and set all remaining boxes to the same status as
2796           the first.  If you want to toggle all boxes in the region
2797           independently, use a prefix argument.
2799         - If the cursor is in a headline, toggle checkboxes in the
2800           region between this headline and the next (so _not_ the
2801           entire subtree).
2803         - If there is no active region, just toggle the checkbox at
2804           point.
2805      
2806 `M-S-<RET>'
2807      Insert a new item with a checkbox.  This works only if the cursor
2808      is already in a plain list item (*note Plain lists::).  
2810 `C-c #'
2811      Update the checkbox statistics in the current outline entry.  When
2812      called with a `C-u' prefix, update the entire file.  Checkbox
2813      statistic cookies are updated automatically if you toggle
2814      checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'.  If
2815      you delete boxes or add/change them by hand, use this command to
2816      get things back into synch.  Or simply toggle any checkbox twice
2817      with `C-c C-c'.
2819 \x1f
2820 File: org,  Node: Tags,  Next: Properties and columns,  Prev: TODO items,  Up: Top
2822 6 Tags
2823 ******
2825 If you wish to implement a system of labels and contexts for
2826 cross-correlating information, an excellent way is to assign tags to
2827 headlines.  Org-mode has extensive support for using tags.
2829    Every headline can contain a list of tags, at the end of the
2830 headline.  Tags are normal words containing letters, numbers, `_', and
2831 `@'.  Tags must be preceded and followed by a single colon; like
2832 `:WORK:'.  Several tags can be specified like `:WORK:URGENT:'.
2834 * Menu:
2836 * Tag inheritance::             Tags use the tree structure of the outline
2837 * Setting tags::                How to assign tags to a headline
2838 * Tag searches::                Searching for combinations of tags
2840 \x1f
2841 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2843 6.1 Tag inheritance
2844 ===================
2846 Tags make use of the hierarchical structure of outline trees.  If a
2847 heading has a certain tag, all subheadings will inherit the tag as
2848 well.  For example, in the list
2850      * Meeting with the French group      :WORK:
2851      ** Summary by Frank                  :BOSS:NOTES:
2852      *** TODO Prepare slides for him      :ACTION:
2854 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
2855 `:ACTION:'.  When executing tag searches and Org-mode finds that a
2856 certain headline matches the search criterion, it will not check any
2857 sublevel headline, assuming that these likely also match, and that the
2858 list of matches can become very long.  This may not be what you want,
2859 however, and you can influence inheritance and searching using the
2860 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2862 \x1f
2863 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2865 6.2 Setting tags
2866 ================
2868 Tags can simply be typed into the buffer at the end of a headline.
2869 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2870 special command for inserting tags:
2872 `C-c C-c'
2873      Enter new tags for the current headline.  Org-mode will either
2874      offer completion or a special single-key interface for setting
2875      tags, see below.  After pressing <RET>, the tags will be inserted
2876      and aligned to `org-tags-column'.  When called with a `C-u'
2877      prefix, all tags in the current buffer will be aligned to that
2878      column, just to make things look nice.  TAGS are automatically
2879      realigned after promotion, demotion, and TODO state changes (*note
2880      TODO basics::).
2882    Org will support tag insertion based on a _list of tags_.  By
2883 default this list is constructed dynamically, containing all tags
2884 currently used in the buffer.  You may also globally specify a hard list
2885 of tags with the variable `org-tag-alist'.  Finally you can set the
2886 default tags for a given file with lines like
2888      #+TAGS: @WORK @HOME @TENNISCLUB
2889      #+TAGS: Laptop Car PC Sailboat
2891    If you have globally defined your preferred set of tags using the
2892 variable `org-tag-alist', but would like to use a dynamic tag list in a
2893 specific file: Just add an empty TAGS option line to that file:
2895      #+TAGS:
2897    The default support method for entering tags is minibuffer
2898 completion.  However, Org-mode also implements a much better method:
2899 _fast tag selection_.  This method allows to select and deselect tags
2900 with a single key per tag.  To function efficiently, you should assign
2901 unique keys to most tags.  This can be done globally with
2903      (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
2905 or on a per-file basis with
2907      #+TAGS: @WORK(w)  @HOME(h)  @TENNISCLUB(t)  Laptop(l)  PC(p)
2909 You can also group together tags that are mutually exclusive.  With
2910 curly braces(1)
2912      #+TAGS: { @WORK(w)  @HOME(h)  @TENNISCLUB(t) }  Laptop(l)  PC(p)
2914 you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
2915 should be selected.
2917 Don't forget to press `C-c C-c' with the cursor in one of these lines
2918 to activate any changes.
2920    If at least one tag has a selection key, pressing `C-c C-c' will
2921 automatically present you with a special interface, listing inherited
2922 tags, the tags of the current headline, and a list of all legal tags
2923 with corresponding keys(2).  In this interface, you can use the
2924 following keys:
2926 `a-z...'
2927      Pressing keys assigned to tags will add or remove them from the
2928      list of tags in the current line.  Selecting a tag in a group of
2929      mutually exclusive tags will turn off any other tags from that
2930      group.  
2932 `<TAB>'
2933      Enter a tag in the minibuffer, even if the tag is not in the
2934      predefined list.  You will be able to complete on all tags present
2935      in the buffer.  
2937 `<SPC>'
2938      Clear all tags for this line.  
2940 `<RET>'
2941      Accept the modified set.
2943 `C-g'
2944      Abort without installing changes.
2947      If `q' is not assigned to a tag, it aborts like `C-g'.
2950      Turn off groups of mutually exclusive tags.  Use this to (as an
2951      exception) assign several tags from such a group.
2953 `C-c'
2954      Toggle auto-exit after the next change (see below).  If you are
2955      using expert mode, the first `C-c' will display the selection
2956      window.
2958 This method lets you assign tags to a headline with very few keys.  With
2959 the above setup, you could clear the current tags and set `@HOME',
2960 `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
2961 p <RET>'.  Switching from `@HOME' to `@WORK' would be done with `C-c
2962 C-c w <RET>' or alternatively with `C-c C-c C-c w'.  Adding the
2963 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
2964 <RET> <RET>'.
2966    If you find that most of the time, you need only a single keypress to
2967 modify your list of tags, set the variable
2968 `org-fast-tag-selection-single-key'.  Then you no longer have to press
2969 <RET> to exit fast tag selection - it will immediately exit after the
2970 first change.  If you then occasionally need more keys, press `C-c' to
2971 turn off auto-exit for the current tag selection process (in effect:
2972 start selection with `C-c C-c C-c' instead of `C-c C-c').  If you set
2973 the variable to the value `expert', the special window is not even
2974 shown for single-key tag selection, it comes up only when you press an
2975 extra `C-c'.
2977    ---------- Footnotes ----------
2979    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
2980 respectively.  Several groups are allowed.
2982    (2) Keys will automatically be assigned to tags which have no
2983 configured keys.
2985 \x1f
2986 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
2988 6.3 Tag searches
2989 ================
2991 Once a tags system has been set up, it can be used to collect related
2992 information into special lists.
2994 `C-c \'
2995 `C-c / T'
2996      Create a sparse tree with all headlines matching a tags search.
2997      With a `C-u' prefix argument, ignore headlines that are not a TODO
2998      line.  
3000 `C-c a m'
3001      Create a global list of tag matches from all agenda files.  *Note
3002      Matching tags and properties::.  
3004 `C-c a M'
3005      Create a global list of tag matches from all agenda files, but
3006      check only TODO items and force checking subitems (see variable
3007      `org-tags-match-list-sublevels').
3009    A tags search string can use Boolean operators `&' for AND and `|'
3010 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
3011 not implemented.  A tag may also be preceded by `-', to select against
3012 it, and `+' is syntactic sugar for positive selection.  The AND
3013 operator `&' is optional when `+' or `-' is present.  Examples:
3015 `+WORK-BOSS'
3016      Select headlines tagged `:WORK:', but discard those also tagged
3017      `:BOSS:'.
3019 `WORK|LAPTOP'
3020      Selects lines tagged `:WORK:' or `:LAPTOP:'.
3022 `WORK|LAPTOP&NIGHT'
3023      Like before, but require the `:LAPTOP:' lines to be tagged also
3024      `NIGHT'.
3026    If you are using multi-state TODO keywords (*note TODO
3027 extensions::), it can be useful to also match on the TODO keyword.
3028 This can be done by adding a condition after a slash to a tags match.
3029 The syntax is similar to the tag matches, but should be applied with
3030 consideration: For example, a positive selection on several TODO
3031 keywords can not meaningfully be combined with boolean AND.  However,
3032 _negative selection_ combined with AND can be meaningful.  To make sure
3033 that only lines are checked that actually have any TODO keyword, use
3034 `C-c a M', or equivalently start the todo part after the slash with `!'.
3035 Examples:
3037 `WORK/WAITING'
3038      Select `:WORK:'-tagged TODO lines with the specific TODO keyword
3039      `WAITING'.
3041 `WORK/!-WAITING-NEXT'
3042      Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
3043      `NEXT'
3045 `WORK/+WAITING|+NEXT'
3046      Select `:WORK:'-tagged TODO lines that are either `WAITING' or
3047      `NEXT'.
3049    Any element of the tag/todo match can be a regular expression - in
3050 this case it must be enclosed in curly braces.  For example,
3051 `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
3052 tag starting with `BOSS'.
3054    You can also require a headline to be of a certain level, by writing
3055 instead of any TAG an expression like `LEVEL=3'.  For example, a search
3056 `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
3057 BOSS and are _not_ marked with the todo keyword DONE.
3059 \x1f
3060 File: org,  Node: Properties and columns,  Next: Timestamps,  Prev: Tags,  Up: Top
3062 7 Properties and Columns
3063 ************************
3065 Properties are a set of key-value pairs associated with an entry.  There
3066 are two main applications for properties in Org-mode.  First, properties
3067 are like tags, but with a value.  For example, in a file where you
3068 document bugs and plan releases of a piece of software, instead of using
3069 tags like `:release_1:', `:release_2:', it can be more efficient to use
3070 a property `RELEASE' with a value `1.0' or `2.0'.  Second, you can use
3071 properties to implement (very basic) database capabilities in an
3072 Org-mode buffer, for example to create a list of Music CD's you own.
3073 You can edit and view properties conveniently in column view (*note
3074 Column view::).
3076 * Menu:
3078 * Property syntax::             How properties are spelled out
3079 * Special properties::          Access to other Org-mode features
3080 * Property searches::           Matching property values
3081 * Column view::                 Tabular viewing and editing
3082 * Property API::                Properties for Lisp programmers
3084 \x1f
3085 File: org,  Node: Property syntax,  Next: Special properties,  Prev: Properties and columns,  Up: Properties and columns
3087 7.1 Property Syntax
3088 ===================
3090 Properties are key-value pairs.  They need to be inserted into a special
3091 drawer (*note Drawers::) with the name `PROPERTIES'.  Each property is
3092 specified on a single line, with the key (surrounded by colons) first,
3093 and the value after it.  Here is an example:
3095      * CD collection
3096      ** Classic
3097      *** Goldberg Variations
3098          :PROPERTIES:
3099          :Title:     Goldberg Variations
3100          :Composer:  J.S. Bach
3101          :Artist:    Glen Gould
3102          :Publisher: Deutsche Grammphon
3103          :NDisks:    1
3104          :END:
3106    You may define the allowed values for a particular property `XYZ' by
3107 setting a property `XYZ_ALL'.  This special property is _inherited_, so
3108 if you set it in a level 1 entry, it will apply to the entire tree.
3109 When allowed values are defined, setting the corresponding property
3110 becomes easier and is less prone to typing errors.  For the example
3111 with the CD collection, we can predefine publishers and the number of
3112 disks in a box like this:
3114      * CD collection
3115        :PROPERTIES:
3116        :NDisks_ALL:  1 2 3 4
3117        :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
3118        :END:
3120    If you want to set properties that can be inherited by any entry in a
3121 file, use a line like
3123      #+PROPERTY: NDisks_ALL 1 2 3 4
3125    Property values set with the global variable `org-global-properties'
3126 can be inherited by all entries in all Org-mode files.
3128 The following commands help to work with properties:
3130 `M-<TAB>'
3131      After an initial colon in a line, complete property keys.  All
3132      keys used in the current file will be offered as possible
3133      completions.  
3135 `C-c C-x p'
3136      Set a property.  This prompts for a property name and a value.  If
3137      necessary, the property drawer is created as well.
3139 `M-x org-insert-property-drawer'
3140      Insert a property drawer into the current entry.  The drawer will
3141      be inserted early in the entry, but after the lines with planning
3142      information like deadlines.  
3144 `C-c C-c'
3145      With the cursor in a property drawer, this executes property
3146      commands.
3148 `C-c C-c s'
3149      Set a property in the current entry.  Both the property and the
3150      value can be inserted using completion.  
3152 `S-<left>/<right>'
3153      Switch property at point to the next/previous allowed value.
3155 `C-c C-c d'
3156      Remove a property from the current entry.
3158 `C-c C-c D'
3159      Globally remove a property, from all entries in the current file.
3161 `C-c C-c c'
3162      Compute the property at point, using the operator and scope from
3163      the nearest column format definition.
3165 \x1f
3166 File: org,  Node: Special properties,  Next: Property searches,  Prev: Property syntax,  Up: Properties and columns
3168 7.2 Special Properties
3169 ======================
3171 Special properties provide alternative access method to Org-mode
3172 features discussed in the previous chapters, like the TODO state or the
3173 priority of an entry.  This interface exists so that you can include
3174 these states into columns view (*note Column view::).  The following
3175 property names are special and should not be used as keys in the
3176 properties drawer:
3178      TODO         The TODO keyword of the entry.
3179      TAGS         The tags defined directly in the headline.
3180      ALLTAGS      All tags, including inherited ones.
3181      PRIORITY     The priority of the entry, a string with a single letter.
3182      DEADLINE     The deadline time string, without the angular brackets.
3183      SCHEDULED    The scheduling time stamp, without the angular brackets.
3185 \x1f
3186 File: org,  Node: Property searches,  Next: Column view,  Prev: Special properties,  Up: Properties and columns
3188 7.3 Property searches
3189 =====================
3191 To create sparse trees and special lists with selection based on
3192 properties, the same commands are used as for tag searches (*note Tag
3193 searches::), and the same logic applies.  For example, a search string
3195      +WORK-BOSS+PRIORITY="A"+coffee="unlimited"+with={Sarah\|Denny}
3197 finds entries tagged `:WORK:' but not `:BOSS:', which also have a
3198 priority value `A', a `:coffee:' property with the value `unlimited',
3199 and a `:with:' property that is matched by the regular expression
3200 `Sarah\|Denny'.
3202    During a search, properties will be inherited from parent entries
3203 only if you configure the variable `org-use-property-inheritance'.
3205    There is also a special command for creating sparse trees based on a
3206 single property:
3208 `C-c / p'
3209      Create a sparse tree based on the value of a property.  This first
3210      prompts for the name of a property, and then for a value.  A
3211      sparse tree is created with all entries that define this property
3212      with the given value.  If you enclose the value into curly braces,
3213      it is interpreted as a regular expression and matched against the
3214      property values.
3216 \x1f
3217 File: org,  Node: Column view,  Next: Property API,  Prev: Property searches,  Up: Properties and columns
3219 7.4 Column View
3220 ===============
3222 A great way to view and edit properties in an outline tree is _column
3223 view_.  In column view, each outline item is turned into a table row.
3224 Columns in this table provide access to properties of the entries.
3225 Org-mode implements columns by overlaying a tabular structure over the
3226 headline of each item.  While the headlines have been turned into a
3227 table row, you can still change the visibility of the outline tree.
3228 For example, you get a compact table by switching to CONTENTS view
3229 (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
3230 can still open, read, and edit the entry below each headline.  Or, you
3231 can switch to column view after executing a sparse tree command and in
3232 this way get a table only for the selected items.  Column view also
3233 works in agenda buffers (*note Agenda views::) where queries have
3234 collected selected items, possibly from a number of files.
3236 * Menu:
3238 * Defining columns::            The COLUMNS format property
3239 * Using column view::           How to create and use column view
3240 * Capturing Column View::       A dynamic block for column view
3242 \x1f
3243 File: org,  Node: Defining columns,  Next: Using column view,  Prev: Column view,  Up: Column view
3245 7.4.1 Defining Columns
3246 ----------------------
3248 Setting up a column view first requires defining the columns.  This is
3249 done by defining a column format line.
3251 * Menu:
3253 * Scope of column definitions::  Where defined, where valid?
3254 * Column attributes::           Appearance and content of a column
3256 \x1f
3257 File: org,  Node: Scope of column definitions,  Next: Column attributes,  Prev: Defining columns,  Up: Defining columns
3259 7.4.1.1 Scope of column definitions
3260 ...................................
3262 To define a column format for an entire file, use a line like
3264      #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3266    To specify a format that only applies to a specific tree, add a
3267 COLUMNS property to the top node of that tree, for example
3268      ** Top node for columns view
3269         :PROPERTIES:
3270         :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3271         :END:
3273    If a `COLUMNS' property is present in an entry, it defines columns
3274 for the entry itself, and for the entire subtree below it.  Since the
3275 column definition is part of the hierarchical structure of the document,
3276 you can define columns on level 1 that are general enough for all
3277 sublevels, and more specific columns further down, when you edit a
3278 deeper part of the tree.
3280 \x1f
3281 File: org,  Node: Column attributes,  Prev: Scope of column definitions,  Up: Defining columns
3283 7.4.1.2 Column attributes
3284 .........................
3286 A column definition sets the attributes of a column.  The general
3287 definition looks like this:
3289       %[width]property[(title)][{summary-type}]
3291 Except for the percent sign and the property name, all items are
3292 optional.  The individual parts have the following meaning:
3294      width           An integer specifying the width of the column in characters.
3295                      If omitted, the width will be determined automatically.
3296      property        The property that should be edited in this column.
3297      (title)         The header text for the column. If omitted, the
3298                      property name is used.
3299      {summary-type}  The summary type.  If specified, the column values for
3300                      parent nodes are computed from the children.
3301                      Supported summary types are:
3302                      {+}  Sum numbers in this column.
3303                      {:}  Sum times, HH:MM:SS, plain numbers are hours.
3304                      {X}  Checkbox status, [X] if all children are [X].
3306 Here is an example for a complete columns definition, along with allowed
3307 values.
3309      :COLUMNS:  %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
3310      :Owner_ALL:    Tammy Mark Karl Lisa Don
3311      :Status_ALL:   "In progress" "Not started yet" "Finished" ""
3312      :Approved_ALL: "[ ]" "[X]"
3314    The first column, `%25ITEM', means the first 25 characters of the
3315 item itself, i.e. of the headline.  You probably always should start the
3316 column definition with the ITEM specifier.  The other specifiers create
3317 columns `Owner' with a list of names as allowed values, for `Status'
3318 with four different possible values, and for a checkbox field
3319 `Approved'.  When no width is given after the `%' character, the column
3320 will be exactly as wide as it needs to be in order to fully display all
3321 values.  The `Approved' column does have a modified title (`Approved?',
3322 with a question mark).  Summaries will be created for the `Time_Spent'
3323 column by adding time duration expressions like HH:MM, and for the
3324 `Approved' column, by providing an `[X]' status if all children have
3325 been checked.
3327 \x1f
3328 File: org,  Node: Using column view,  Next: Capturing Column View,  Prev: Defining columns,  Up: Column view
3330 7.4.2 Using Column View
3331 -----------------------
3333 Turning column view on and off
3334 ..............................
3336 `C-c C-x C-c'
3337      Create the column view for the local environment.  This command
3338      searches the hierarchy, up from point, for a `COLUMNS' property
3339      that defines a format.  When one is found, the column view table
3340      is established for the entire tree, starting from the entry that
3341      contains the `COLUMNS' property.  If none is found, the format is
3342      taken from the `#+COLUMNS' line or from the variable
3343      `org-columns-default-format', and column view is established for
3344      the current entry and its subtree.  
3347      Exit column view.
3349 Editing values
3350 ..............
3352 `<left> <right> <up> <down>'
3353      Move through the column view from field to field.  
3355 `S-<left>/<right>'
3356      Switch to the next/previous allowed value of the field.  For this,
3357      you have to have specified allowed values for a property.  
3359 `n / p'
3360      Same as `S-<left>/<right>' 
3363      Edit the property at point.  For the special properties, this will
3364      invoke the same interface that you normally use to change that
3365      property.  For example, when editing a TAGS property, the tag
3366      completion or fast selection interface will pop up.  
3368 `C-c C-c'
3369      When there is a checkbox at point, toggle it.  
3372      View the full value of this property.  This is useful if the width
3373      of the column is smaller than that of the value.  
3376      Edit the list of allowed values for this property.  If the list is
3377      found in the hierarchy, the modified values is stored there.  If
3378      no list is found, the new value is stored in the first entry that
3379      is part of the current column view.
3381 Modifying the table structure
3382 .............................
3384 `< / >'
3385      Make the column narrower/wider by one character.  
3387 `S-M-<right>'
3388      Insert a new column, to the right of the current column.  
3390 `S-M-<left>'
3391      Delete the current column.
3393 \x1f
3394 File: org,  Node: Capturing Column View,  Prev: Using column view,  Up: Column view
3396 7.4.3 Capturing Column View
3397 ---------------------------
3399 Since column view is just an overlay over a buffer, it cannot be
3400 exported or printed directly.  If you want to capture a column view, use
3401 the dynamic block (*note Dynamic blocks::).  The frame of this block
3402 looks like this:
3404      * The column view
3405      #+BEGIN: columnview :hlines 1 :id "label"
3407      #+END:
3409 This dynamic block has the following parameters:
3411 `:id'
3412      This is most important parameter.  Column view is a feature that is
3413      often localized to a certain (sub)tree, and the capture block
3414      might be in a different location in the file.  To identify the
3415      tree whose view to capture, you can use 3 values:
3416           local     use the tree in which the capture block is located
3417           global    make a global view, including all headings in the file
3418           "label"   call column view in the tree that has and `:ID:'
3419                     property with the value label
3421 `:hlines'
3422      When `t', insert a hline after every line.  When a number N, insert
3423      a hline before each headline with level `<= N'.
3425 `:vlines'
3426      When set to `t', enforce column groups to get vertical lines.
3428 The following commands insert or update the dynamic block:
3430 `C-c C-x r'
3431      Insert a dynamic block capturing a column view.  You will be
3432      prompted for the scope or id of the view.  
3434 `C-c C-c'
3435 `C-c C-x C-u'
3436      Update dynamical block at point.  The cursor needs to be in the
3437      `#+BEGIN' line of the dynamic block.  
3439 `C-u C-c C-x C-u'
3440      Update all dynamic blocks (*note Dynamic blocks::).  This is
3441      useful if you have several clocktable blocks in a buffer.
3443 \x1f
3444 File: org,  Node: Property API,  Prev: Column view,  Up: Properties and columns
3446 7.5 The Property API
3447 ====================
3449 There is a full API for accessing and changing properties.  This API can
3450 be used by Emacs Lisp programs to work with properties and to implement
3451 features based on them.  For more information see *Note Using the
3452 property API::.
3454 \x1f
3455 File: org,  Node: Timestamps,  Next: Remember,  Prev: Properties and columns,  Up: Top
3457 8 Timestamps
3458 ************
3460 Items can be labeled with timestamps to make them useful for project
3461 planning.
3463 * Menu:
3465 * Time stamps::                 Assigning a time to a tree entry
3466 * Creating timestamps::         Commands which insert timestamps
3467 * Deadlines and scheduling::    Planning your work
3468 * Clocking work time::
3470 \x1f
3471 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Timestamps,  Up: Timestamps
3473 8.1 Time stamps, deadlines and scheduling
3474 =========================================
3476 A time stamp is a specification of a date (possibly with time or a range
3477 of times) in a special format, either `<2003-09-16 Tue>' or
3478 `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1).  A time
3479 stamp can appear anywhere in the headline or body of an org-tree entry.
3480 Its presence causes entries to be shown on specific dates in the agenda
3481 (*note Weekly/Daily agenda::).  We distinguish:
3483 PLAIN TIME STAMP, EVENT, APPOINTMENT
3484      A simple time stamp just assigns a date/time to an item.  This is
3485      just like writing down an appointment or event in a paper agenda.
3486      In the timeline and agenda displays, the headline of an entry
3487      associated with a plain time stamp will be shown exactly on that
3488      date.
3490           * Meet Peter at the movies <2006-11-01 Wed 19:15>
3491           * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
3493 TIME STAMP WITH REPEATER INTERVAL
3494      A time stamp may contain a _repeater interval_, indicating that it
3495      applies not only on the given date, but again and again after a
3496      certain interval of N days (d), weeks (w), months(m), or years(y).
3497      The following will show up in the agenda every Wednesday:
3499           * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
3501 DIARY-STYLE SEXP ENTRIES
3502      For more complex date specifications, Org-mode supports using the
3503      special sexp diary entries implemented in the Emacs calendar/diary
3504      package.  For example
3506           * The nerd meeting on every 2nd Thursday of the month
3507             <%%(diary-float t 4 2)>
3509 TIME/DATE RANGE
3510      Two time stamps connected by `--' denote a range.  The headline
3511      will be shown on the first and last day of the range, and on any
3512      dates that are displayed and fall in the range.  Here is an
3513      example:
3515           ** Meeting in Amsterdam
3516              <2004-08-23 Mon>--<2004-08-26 Thu>
3518 INACTIVE TIME STAMP
3519      Just like a plain time stamp, but with square brackets instead of
3520      angular ones.  These time stamps are inactive in the sense that
3521      they do _not_ trigger an entry to show up in the agenda.
3523           * Gillian comes late for the fifth time [2006-11-01 Wed]
3526    ---------- Footnotes ----------
3528    (1) This is the standard ISO date/time format.  If you cannot get
3529 used to these, see *Note Custom time format::
3531 \x1f
3532 File: org,  Node: Creating timestamps,  Next: Deadlines and scheduling,  Prev: Time stamps,  Up: Timestamps
3534 8.2 Creating timestamps
3535 =======================
3537 For Org-mode to recognize time stamps, they need to be in the specific
3538 format.  All commands listed below produce time stamps in the correct
3539 format.
3541 `C-c .'
3542      Prompt for a date and insert a corresponding time stamp.  When the
3543      cursor is at a previously used time stamp, it is updated to NOW.
3544      When this command is used twice in succession, a time range is
3545      inserted.  
3547 `C-u C-c .'
3548      Like `C-c .', but use the alternative format which contains date
3549      and time.  The default time can be rounded to multiples of 5
3550      minutes, see the option `org-time-stamp-rounding-minutes'.  
3552 `C-c !'
3553      Like `C-c .', but insert an inactive time stamp that will not cause
3554      an agenda entry.  
3556 `C-c <'
3557      Insert a time stamp corresponding to the cursor date in the
3558      Calendar.  
3560 `C-c >'
3561      Access the Emacs calendar for the current date.  If there is a
3562      timestamp in the current line, goto the corresponding date instead.  
3564 `C-c C-o'
3565      Access the agenda for the date given by the time stamp or -range at
3566      point (*note Weekly/Daily agenda::).  
3568 `S-<left>'
3569 `S-<right>'
3570      Change date at cursor by one day.  These key bindings conflict with
3571      CUA-mode (*note Conflicts::).  
3573 `S-<up>'
3574 `S-<down>'
3575      Change the item under the cursor in a timestamp.  The cursor can
3576      be on a year, month, day, hour or minute.  Note that if the cursor
3577      is in a headline and not at a time stamp, these same keys modify
3578      the priority of an item.  (*note Priorities::). The key bindings
3579      also conflict with CUA-mode (*note Conflicts::).  
3581 `C-c C-y'
3582      Evaluate a time range by computing the difference between start and
3583      end.  With prefix arg, insert result after the time range (in a
3584      table: into the following column).
3586 * Menu:
3588 * The date/time prompt::        How org-mode helps you entering date and time
3589 * Custom time format::          Making dates look differently
3591 \x1f
3592 File: org,  Node: The date/time prompt,  Next: Custom time format,  Prev: Creating timestamps,  Up: Creating timestamps
3594 8.2.1 The date/time prompt
3595 --------------------------
3597 When Org-mode prompts for a date/time, the prompt suggests to enter an
3598 ISO date.  But it will in fact accept any string containing some date
3599 and/or time information.  You can, for example, use `C-y' to paste a
3600 (possibly multi-line) string copied from an email message.  Org-mode
3601 will find whatever information is in there and will replace anything not
3602 specified with the _default date and time_.  The default is usually the
3603 current date and time, but when modifying an existing time stamp, or
3604 when entering the second stamp of a range, it is taken from the stamp in
3605 the buffer.  For example:
3607      3-2-5         --> 2003-02-05
3608      feb 15        --> defaultyear-02-15
3609      sep 12 9      --> 2009-09-12
3610      12:45         --> default-date 12:45
3611      22 sept 0:34  --> defaultyear-09-22 0:34
3612      12            --> defaultyear-defaultmonth-12
3613      Fri           --> nearest Friday (defaultdate or later)
3615    Furthermore you can specify a relative date by giving, as the
3616 _first_ thing in the input: a plus/minus sign, a number and a letter
3617 [dwmy] to indicate change in days weeks, months, years.  With a single
3618 plus or minus, the date is always relative to today.  With a double
3619 plus or minus, it is relative to the default date.  If instead of a
3620 single letter, you use the abbreviation of day name, the date will be
3621 the nth such day.  E.g.
3623      +4d           --> four days from today
3624      +4            --> same as above
3625      +2w           --> two weeks from today
3626      ++5           --> five days from default date
3627      +2tue         --> second tuesday from now.
3629    The function understands English month and weekday abbreviations.  If
3630 you want to use unabbreviated names and/or other languages, configure
3631 the variables `parse-time-months' and `parse-time-weekdays'.
3633    Parallel to the minibuffer prompt, a calendar is popped up(1).  When
3634 you exit the date prompt, either by clicking on a date in the calendar,
3635 or by pressing <RET>, the date selected in the calendar will be
3636 combined with the information entered at the prompt.  You can control
3637 the calendar fully from the minibuffer:
3640      Scroll calendar backwards by one month.  
3643      Scroll calendar forwards by one month.  
3645 `mouse-1'
3646      Select date by clicking on it.  
3648 `S-<right>'
3649      One day forward.  
3651 `S-<left>'
3652      One day back.  
3654 `S-<down>'
3655      One week forward.  
3657 `S-<up>'
3658      One week back.  
3660 `M-S-<right>'
3661      One month forward.  
3663 `M-S-<left>'
3664      One month back.  
3666 `<RET>'
3667      Choose date in calendar (only if nothing was typed into
3668      minibuffer).
3670    ---------- Footnotes ----------
3672    (1) If you don't need/want the calendar, configure the variable
3673 `org-popup-calendar-for-date-prompt'.
3675 \x1f
3676 File: org,  Node: Custom time format,  Prev: The date/time prompt,  Up: Creating timestamps
3678 8.2.2 Custom time format
3679 ------------------------
3681 Org-mode uses the standard ISO notation for dates and times as it is
3682 defined in ISO 8601.  If you cannot get used to this and require another
3683 representation of date and time to keep you happy, you can get it by
3684 customizing the variables `org-display-custom-times' and
3685 `org-time-stamp-custom-formats'.
3687 `C-c C-x C-t'
3688      Toggle the display of custom formats for dates and times.
3690 Org-mode needs the default format for scanning, so the custom date/time
3691 format does not _replace_ the default format - instead it is put _over_
3692 the default format using text properties.  This has the following
3693 consequences:
3694    * You cannot place the cursor onto a time stamp anymore, only before
3695      or after.
3697    * The `S-<up>/<down>' keys can no longer be used to adjust each
3698      component of a time stamp.  If the cursor is at the beginning of
3699      the stamp, `S-<up>/<down>' will change the stamp by one day, just
3700      like `S-<left>/<right>'.  At the end of the stamp, the time will
3701      be changed by one minute.
3703    * If the time stamp contains a range of clock times or a repeater,
3704      these will not be overlayed, but remain in the buffer as they were.
3706    * When you delete a time stamp character-by-character, it will only
3707      disappear from the buffer after _all_ (invisible) characters
3708      belonging to the ISO timestamp have been removed.
3710    * If the custom time stamp format is longer than the default and you
3711      are using dates in tables, table alignment will be messed up.  If
3712      the custom format is shorter, things do work as expected.
3714 \x1f
3715 File: org,  Node: Deadlines and scheduling,  Next: Clocking work time,  Prev: Creating timestamps,  Up: Timestamps
3717 8.3 Deadlines and Scheduling
3718 ============================
3720 A time stamp may be preceded by special keywords to facilitate planning
3721 of work:
3723 DEADLINE
3724      The task (most likely a TODO item) is supposed to be finished on
3725      that date, and it will be listed then.  In addition, the
3726      compilation for _today_ will carry a warning about the approaching
3727      or missed deadline, starting `org-deadline-warning-days' before
3728      the due date, and continuing until the entry is marked DONE.  An
3729      example:
3731           *** TODO write article about the Earth for the Guide
3732               The editor in charge is [[bbdb:Ford Prefect]]
3733               DEADLINE: <2004-02-29 Sun>
3735      You can specify a different lead time for warnings for a specific
3736      deadlines using the following syntax.  Here is an example with a
3737      warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
3739 SCHEDULED
3740      You are planning to start working on that task on the given date.
3741      The headline will be listed under the given date(1).  In addition,
3742      a reminder that the scheduled date has passed will be present in
3743      the compilation for _today_, until the entry is marked DONE.
3744      I.e., the task will automatically be forwarded until completed.
3746           *** TODO Call Trillian for a date on New Years Eve.
3747               SCHEDULED: <2004-12-25 Sat>
3749      Important: Scheduling an item in Org-mode should not be understood
3750      like Scheduling a meeting.  Setting a date for a meeting is just a
3751      simple appointment, you should mark this entry with a simple plain
3752      time stamp, to get this item shown on the date where it applies.
3753      This is a frequent mis-understanding from Org-users.  In Org-mode,
3754      Scheduling means setting a date when you want to start working on
3755      an action item.
3757 * Menu:
3759 * Inserting deadline/schedule::  Planning items
3760 * Repeated tasks::              Items that show up again and again
3762    ---------- Footnotes ----------
3764    (1) It will still be listed on that date after it has been marked
3765 DONE.  If you don't like this, set the variable
3766 `org-agenda-skip-scheduled-if-done'.
3768 \x1f
3769 File: org,  Node: Inserting deadline/schedule,  Next: Repeated tasks,  Prev: Deadlines and scheduling,  Up: Deadlines and scheduling
3771 8.3.1 Inserting deadline/schedule
3772 ---------------------------------
3774 The following commands allow to quickly insert a deadline or to schedule
3775 an item:
3777 `C-c C-d'
3778      Insert `DEADLINE' keyword along with a stamp.  The insertion will
3779      happen in the line directly following the headline.  When called
3780      with a prefix arg, an existing deadline will be removed from the
3781      entry.  
3783 `C-c C-w'
3784      Create a sparse tree with all deadlines that are either past-due,
3785      or which will become due within `org-deadline-warning-days'.  With
3786      `C-u' prefix, show all deadlines in the file.  With a numeric
3787      prefix, check that many days.  For example, `C-1 C-c C-w' shows
3788      all deadlines due tomorrow.  
3790 `C-c C-s'
3791      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
3792      happen in the line directly following the headline.  Any CLOSED
3793      timestamp will be removed.  When called with a prefix argument,
3794      remove the scheduling date from the entry.
3796 \x1f
3797 File: org,  Node: Repeated tasks,  Prev: Inserting deadline/schedule,  Up: Deadlines and scheduling
3799 8.3.2 Repeated Tasks
3800 --------------------
3802 Some tasks need to be repeated again and again, and Org-mode therefore
3803 allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
3804 example:
3805      ** TODO Pay the rent
3806         DEADLINE: <2005-10-01 Sat +1m>
3808    Deadlines and scheduled items produce entries in the agenda when they
3809 are over-due, so it is important to be able to mark such an entry as
3810 completed once you have done so.  When you mark a DEADLINE or a SCHEDULE
3811 with the todo keyword DONE, it will no longer produce entries in the
3812 agenda. The problem with this is, however, that then also the _next_
3813 instance of the repeated entry will not be active.  Org-mode deals with
3814 this in the following way: When you try to mark such an entry DONE
3815 (using `C-c C-t'), it will shift the base date of the repeating time
3816 stamp by the repeater interval, and immediately set the entry state
3817 back to TODO.  In the example above, setting the state to DONE would
3818 actually switch the date like this:
3820      ** TODO Pay the rent
3821         DEADLINE: <2005-11-01 Tue +1m>
3823    You will also be prompted for a note(1) that will be put under the
3824 DEADLINE line to keep a record that you actually acted on the previous
3825 instance of this deadline.
3827    As a consequence of shifting the base date, this entry will no
3828 longer be visible in the agenda when checking past dates, but all
3829 future instances will be visible.
3831    You may have both scheduling and deadline information for a specific
3832 task - just make sure that the repeater intervals on both are the same.
3834    ---------- Footnotes ----------
3836    (1) You can change this using the option `org-log-repeat', or the
3837 `#+STARTUP' options `logrepeat' and `nologrepeat'.
3839 \x1f
3840 File: org,  Node: Clocking work time,  Prev: Deadlines and scheduling,  Up: Timestamps
3842 8.4 Clocking work time
3843 ======================
3845 Org-mode allows you to clock the time you spent on specific tasks in a
3846 project.  When you start working on an item, you can start the clock.
3847 When you stop working on that task, or when you mark the task done, the
3848 clock is stopped and the corresponding time interval is recorded.  It
3849 also computes the total time spent on each subtree of a project.
3851 `C-c C-x C-i'
3852      Start the clock on the current item (clock-in).  This inserts the
3853      CLOCK keyword together with a timestamp.  If this is not the first
3854      clocking of this item, the multiple CLOCK lines will be wrapped
3855      into a `:CLOCK:' drawer (see also the variable
3856      `org-clock-into-drawer'.  
3858 `C-c C-x C-o'
3859      Stop the clock (clock-out).  The inserts another timestamp at the
3860      same location where the clock was last started.  It also directly
3861      computes the resulting time in inserts it after the time range as
3862      `=> HH:MM'.  See the variable `org-log-done' for the possibility to
3863      record an additional note together with the clock-out time
3864      stamp(1).  
3866 `C-c C-y'
3867      Recompute the time interval after changing one of the time stamps.
3868      This is only necessary if you edit the time stamps directly.  If
3869      you change them with `S-<cursor>' keys, the update is automatic.  
3871 `C-c C-t'
3872      Changing the TODO state of an item to DONE automatically stops the
3873      clock if it is running in this same item.  
3875 `C-c C-x C-x'
3876      Cancel the current clock.  This is useful if a clock was started by
3877      mistake, or if you ended up working on something else.  
3879 `C-c C-x C-j'
3880      Jump to the entry that contains the currently running clock, an
3881      another window.  
3883 `C-c C-x C-d'
3884      Display time summaries for each subtree in the current buffer.
3885      This puts overlays at the end of each headline, showing the total
3886      time recorded under that heading, including the time of any
3887      subheadings. You can use visibility cycling to study the tree, but
3888      the overlays disappear when you change the buffer (see variable
3889      `org-remove-highlights-with-change') or press `C-c C-c'.  
3891 `C-c C-x C-r'
3892      Insert a dynamic block (*note Dynamic blocks::) containing a clock
3893      report as an org-mode table into the current file.  When the
3894      cursor is at an existing clock table, just update it.  When called
3895      with a prefix argument, jump to the first clock report in the
3896      current document and update it.
3897           #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
3899           #+END: clocktable
3900      If such a block already exists at point, its content is replaced
3901      by the new table.  The `BEGIN' line can specify options:
3902           :maxlevel    Maximum level depth to which times are listed in the table.
3903           :emphasize   When `t', emphasize level one and level two items
3904           :scope       The scope to consider.  This can be any of the following:
3905                        nil        the current buffer or narrowed region
3906                        file       the full current buffer
3907                        subtree    the subtree where the clocktable is located
3908                        treeN      the surrounding level N tree, for example `tree3'
3909                        tree       the surrounding level 1 tree
3910                        agenda     all agenda files
3911                        ("file"..) scan these files
3912           :block       The time block to consider.  This block is specified relative
3913                        to the current time and may be any of these keywords:
3914                        `today', `yesterday', `thisweek', `lastweek',
3915                        `thismonth', `lastmonth', `thisyear', or `lastyear'.
3916           :tstart      A time string specifying when to start considering times
3917           :tend        A time string specifying when to stop considering times
3918      So to get a clock summary of the current level 1 tree, for the
3919      current day, you could write
3920           #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
3922           #+END: clocktable
3923      and to use a specific time range you could write(2)
3924           #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
3925                               :tend "<2006-08-10 Thu 12:00>"
3927           #+END: clocktable
3928      
3929 `C-c C-c'
3930 `C-c C-x C-u'
3931      Update dynamical block at point.  The cursor needs to be in the
3932      `#+BEGIN' line of the dynamic block.  
3934 `C-u C-c C-x C-u'
3935      Update all dynamic blocks (*note Dynamic blocks::).  This is
3936      useful if you have several clocktable blocks in a buffer.
3938    The `l' key may be used in the timeline (*note Timeline::) and in
3939 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
3940 worked on or closed during a day.
3942    ---------- Footnotes ----------
3944    (1) The corresponding in-buffer setting is: `#+STARTUP:
3945 lognoteclock-out'
3947    (2) Note that all parameters must be specified in a single line -
3948 the line is broken here only to fit it onto the manual.
3950 \x1f
3951 File: org,  Node: Remember,  Next: Agenda views,  Prev: Timestamps,  Up: Top
3953 9 Remember
3954 **********
3956 The Remember package by John Wiegley lets you store quick notes with
3957 little interruption of your work flow.  See
3958 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
3959 information.  It is an excellent way to add new notes and TODO items to
3960 Org-mode files.  Org-mode significantly expands the possibilities of
3961 remember: You may define templates for different note types, and
3962 associate target files and headlines with specific templates.  It also
3963 allows you to select the location where a note should be stored
3964 interactively, on the fly.
3966 * Menu:
3968 * Setting up remember::         Some code for .emacs to get things going
3969 * Remember templates::          Define the outline of different note types
3970 * Storing notes::               Directly get the note to where it belongs
3972 \x1f
3973 File: org,  Node: Setting up remember,  Next: Remember templates,  Prev: Remember,  Up: Remember
3975 9.1 Setting up remember
3976 =======================
3978 The following customization will tell remember to use org files as
3979 target, and to create annotations compatible with Org-mode links.
3981      (require 'remember)
3982      (setq org-directory "~/path/to/my/orgfiles/")
3983      (setq org-default-notes-file (concat org-directory "/notes.org"))
3984      (setq remember-annotation-functions '(org-remember-annotation))
3985      (setq remember-handler-functions '(org-remember-handler))
3986      (add-hook 'remember-mode-hook 'org-remember-apply-template)
3988 \x1f
3989 File: org,  Node: Remember templates,  Next: Storing notes,  Prev: Setting up remember,  Up: Remember
3991 9.2 Remember templates
3992 ======================
3994 In combination with Org-mode, you can use templates to generate
3995 different types of remember notes.  For example, if you would like to
3996 use one template to create general TODO entries, another one for
3997 journal entries, and a third one for collecting random ideas, you could
3998 use:
4000      (setq org-remember-templates
4001       '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org" "Tasks")
4002         ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")
4003         ("Idea" ?i "* %^{Title}\n  %i\n  %a" "~/org/JOURNAL.org" "New Ideas")))
4005 In these entries, the first string is just a name, and the character
4006 specifies how to select the template.  It is useful if the character is
4007 also the first letter of the name.  The next string specifies the
4008 template.  Two more (optional) strings give the file in which, and the
4009 headline under which the new note should be stored.  The file defaults
4010 (if not present or `nil') to `org-default-notes-file', the heading to
4011 `org-remember-default-headline'.  Both defaults help to get to the
4012 storing location quickly, but you can change the location interactively
4013 while storing the note.
4015    When you call `M-x remember' (or `M-x org-remember') to remember
4016 something, org will prompt for a key to select the template (if you have
4017 more than one template) and then prepare the buffer like
4018      * TODO
4019        [[file:link to where you called remember]]
4021 During expansion of the template, special `%'-escapes allow dynamic
4022 insertion of content:
4023      %^{prompt}  prompt the user for a string and replace this sequence with it.
4024      %t          time stamp, date only
4025      %T          time stamp with date and time
4026      %u, %U      like the above, but inactive time stamps
4027      %^t         like `%t', but prompt for date.  Similarly `%^T', `%^u', `%^U'
4028                  You may define a prompt like `%^{Birthday}t'
4029      %n          user name (taken from `user-full-name')
4030      %a          annotation, normally the link created with `org-store-link'
4031      %A          like `%a', but prompt for the description part
4032      %i          initial content, the region when remember is called with C-u.
4033                  The entire text will be indented like `%i' itself.
4034      %^g         prompt for tags, with completion on tags in target file.
4035      %^G         prompt for tags, with completion all tags in all agenda files.
4036      %:keyword   specific information for certain link types, see below
4038 For specific link types, the following keywords will be defined(1):
4040      Link type          |  Available keywords
4041      -------------------+----------------------------------------------
4042      bbdb               |  %:name %:company
4043      vm, wl, mh, rmail  |  %:type %:subject %:message-id
4044                         |  %:from %:fromname %:fromaddress
4045                         |  %:to   %:toname   %:toaddress
4046                         |  %:fromto (either "to NAME" or "from NAME")(2)
4047      gnus               |  %:group, for messages also all email fields
4048      w3, w3m            |  %:url
4049      info               |  %:file %:node
4050      calendar           |  %:date"
4052 To place the cursor after template expansion use:
4054      %?          After completing the template, position cursor here.
4056 If you change you mind about which template to use, call `org-remember'
4057 in the remember buffer.  You may then select a new template that will
4058 be filled with the previous context information.
4060    ---------- Footnotes ----------
4062    (1) If you define your own link types (*note Adding hyperlink
4063 types::), any property you store with `org-store-link-props' can be
4064 accessed in remember templates in a similar way.
4066    (2) This will always be the other, not the user.  See the variable
4067 `org-from-is-user-regexp'.
4069 \x1f
4070 File: org,  Node: Storing notes,  Prev: Remember templates,  Up: Remember
4072 9.3 Storing notes
4073 =================
4075 When you are finished preparing a note with remember, you have to press
4076 `C-c C-c' to file the note away.  The handler will store the note in
4077 the file and under the headline specified in the template, or it will
4078 use the default file and headlines.  The window configuration will be
4079 restored, and you are back in the working context before the call to
4080 `remember'.  To re-use the location found during the last call to
4081 `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
4082 specify a double prefix argument to `C-c C-c'.
4084    If you want to store the note to a different place, use `C-u C-c
4085 C-c' instead to exit remember(1).  The handler will then first prompt
4086 for a target file - if you press <RET>, the value specified for the
4087 template is used.  Then the command offers the headings tree of the
4088 selected file, with the cursor position at the default headline (if you
4089 had specified one in the template).  You can either immediately press
4090 <RET> to get the note placed there.  Or you can use the following keys
4091 to find a different location:
4092      <TAB>         Cycle visibility.
4093      <down> / <up>   Next/previous visible headline.
4094      n / p        Next/previous visible headline.
4095      f / b        Next/previous headline same level.
4096      u            One level up.
4097    Pressing <RET> or <left> or <right> then leads to the following
4098 result.
4100 Cursor         Key         Note gets inserted
4101 position                   
4102 on headline    <RET>       as sublevel of the heading at cursor, first or
4103                            last
4104                            depending on `org-reverse-note-order'.
4105                <left>/<right>as same level, before/after current heading
4106 buffer-start   <RET>       as level 2 heading at end of file or level 1
4107                            at beginning
4108                            depending on `org-reverse-note-order'.
4109 not on         <RET>       at cursor position, level taken from context.
4110 headline                   
4112    Before inserting the text into a tree, the function ensures that the
4113 text has a headline, i.e. a first line that starts with a `*'.  If not,
4114 a headline is constructed from the current date and some additional
4115 data.  If you have indented the text of the note below the headline, the
4116 indentation will be adapted if inserting the note into the tree requires
4117 demotion from level 1.
4119    ---------- Footnotes ----------
4121    (1) Configure the variable `org-remember-store-without-prompt' to
4122 make this behavior the default.
4124 \x1f
4125 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Remember,  Up: Top
4127 10 Agenda Views
4128 ***************
4130 Due to the way Org-mode works, TODO items, time-stamped items, and
4131 tagged headlines can be scattered throughout a file or even a number of
4132 files.  To get an overview over open action items, or over events that
4133 are important for a particular date, this information must be collected,
4134 sorted and displayed in an organized way.
4136    Org-mode can select items based on various criteria, and display them
4137 in a separate buffer.  Six different view types are provided:
4139    * an _agenda_ that is like a calendar and shows information for
4140      specific dates,
4142    * a _TODO list_ that covers all unfinished action items,
4144    * a _tags view_, showings headlines based on the tags associated
4145      with them,
4147    * a _timeline view_ that shows all events in a single Org-mode file,
4148      in time-sorted view,
4150    * a _stuck projects view_ showing projects that currently don't move
4151      along, and
4153    * _custom views_ that are special tag/keyword searches and
4154      combinations of different views.
4156 The extracted information is displayed in a special _agenda buffer_.
4157 This buffer is read-only, but provides commands to visit the
4158 corresponding locations in the original Org-mode files, and even to
4159 edit these files remotely.
4161    Two variables control how the agenda buffer is displayed and whether
4162 the window configuration is restored when the agenda exits:
4163 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
4165 * Menu:
4167 * Agenda files::                Files being searched for agenda information
4168 * Agenda dispatcher::           Keyboard access to agenda views
4169 * Built-in agenda views::       What is available out of the box?
4170 * Presentation and sorting::    How agenda items are prepared for display
4171 * Agenda commands::             Remote editing of org trees
4172 * Custom agenda views::         Defining special searches and views
4174 \x1f
4175 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
4177 10.1 Agenda files
4178 =================
4180 The information to be shown is collected from all _agenda files_, the
4181 files listed in the variable `org-agenda-files'(1). If a directory is
4182 part of this list, all files with the extension `.org' in this
4183 directory will be part of the list.
4185    Thus even if you only work with a single Org-mode file, this file
4186 should be put into that list(2).  You can customize `org-agenda-files',
4187 but the easiest way to maintain it is through the following commands
4189 `C-c ['
4190      Add current file to the list of agenda files.  The file is added to
4191      the front of the list.  If it was already in the list, it is moved
4192      to the front.  With prefix arg, file is added/moved to the end.  
4194 `C-c ]'
4195      Remove current file from the list of agenda files.  
4197 `C-,'
4198 `C-''
4199      Cycle through agenda file list, visiting one file after the other.
4201 The Org menu contains the current list of files and can be used to
4202 visit any of them.
4204    ---------- Footnotes ----------
4206    (1) If the value of that variable is not a list, but a single file
4207 name, then the list of agenda files will be maintained in that external
4208 file.
4210    (2) When using the dispatcher, pressing `<' before selecting a
4211 command will actually limit the command to the current file, and ignore
4212 `org-agenda-files' until the next dispatcher command.
4214 \x1f
4215 File: org,  Node: Agenda dispatcher,  Next: Built-in agenda views,  Prev: Agenda files,  Up: Agenda views
4217 10.2 The agenda dispatcher
4218 ==========================
4220 The views are created through a dispatcher that should be bound to a
4221 global key, for example `C-c a' (*note Installation::).  In the
4222 following we will assume that `C-c a' is indeed how the dispatcher is
4223 accessed and list keyboard access to commands accordingly.  After
4224 pressing `C-c a', an additional letter is required to execute a
4225 command.  The dispatcher offers the following default commands:
4227      Create the calendar-like agenda (*note Weekly/Daily agenda::).
4229 `t / T'
4230      Create a list of all TODO items (*note Global TODO list::).
4232 `m / M'
4233      Create a list of headlines matching a TAGS expression (*note
4234      Matching tags and properties::).
4237      Create the timeline view for the current buffer (*note Timeline::).
4239 `# / !'
4240      Create a list of stuck projects (*note Stuck projects::).
4243      Search for a regular expression in all agenda files and
4244      additionally in the files listed in
4245      `org-agenda-multi-occur-extra-files'.  This uses the Emacs command
4246      `multi-occur'.  A prefix argument can be used to specify the
4247      number of context lines for each match, default is 1.
4250      Restrict an agenda command to the current buffer(1).  After
4251      pressing `<', you still need to press the character selecting the
4252      command.
4254 `< <'
4255      If there is an active region, restrict the following agenda
4256      command to the region.  Otherwise, restrict it to the current
4257      subtree(2).  After pressing `< <', you still need to press the
4258      character selecting the command.
4260    You can also define custom commands that will be accessible through
4261 the dispatcher, just like the default commands.  This includes the
4262 possibility to create extended agenda buffers that contain several
4263 blocks together, for example the weekly agenda, the global TODO list and
4264 a number of special tags matches.  *Note Custom agenda views::.
4266    ---------- Footnotes ----------
4268    (1) For backward compatibility, you can also press `1' to restrict
4269 to the current buffer.
4271    (2) For backward compatibility, you can also press `0' to restrict
4272 to the current buffer.
4274 \x1f
4275 File: org,  Node: Built-in agenda views,  Next: Presentation and sorting,  Prev: Agenda dispatcher,  Up: Agenda views
4277 10.3 The built-in agenda views
4278 ==============================
4280 In this section we describe the built-in views.
4282 * Menu:
4284 * Weekly/Daily agenda::         The calendar page with current tasks
4285 * Global TODO list::            All unfinished action items
4286 * Matching tags and properties::  Structured information with fine-tuned search
4287 * Timeline::                    Time-sorted view for single file
4288 * Stuck projects::              Find projects you need to review
4290 \x1f
4291 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Built-in agenda views,  Up: Built-in agenda views
4293 10.3.1 The weekly/daily agenda
4294 ------------------------------
4296 The purpose of the weekly/daily _agenda_ is to act like a page of a
4297 paper agenda, showing all the tasks for the current week or day.
4299 `C-c a a'
4300      Compile an agenda for the current week from a list of org files.
4301      The agenda shows the entries for each day.  With a numeric
4302      prefix(1)  (like `C-u 2 1 C-c a a') you may set the number of days
4303      to be displayed (see also the variable `org-agenda-ndays')
4305    Remote editing from the agenda buffer means, for example, that you
4306 can change the dates of deadlines and appointments from the agenda
4307 buffer.  The commands available in the Agenda buffer are listed in
4308 *Note Agenda commands::.
4310 Calendar/Diary integration
4311 ..........................
4313 Emacs contains the calendar and diary by Edward M. Reingold.  The
4314 calendar displays a three-month calendar with holidays from different
4315 countries and cultures.  The diary allows you to keep track of
4316 anniversaries, lunar phases, sunrise/set, recurrent appointments
4317 (weekly, monthly) and more.  In this way, it is quite complementary to
4318 Org-mode.  It can be very useful to combine output from Org-mode with
4319 the diary.
4321    In order to include entries from the Emacs diary into Org-mode's
4322 agenda, you only need to customize the variable
4324      (setq org-agenda-include-diary t)
4326 After that, everything will happen automatically.  All diary entries
4327 including holidays, anniversaries etc will be included in the agenda
4328 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
4329 the agenda buffer to jump to the diary file in order to edit existing
4330 diary entries.  The `i' command to insert new entries for the current
4331 date works in the agenda buffer, as well as the commands `S', `M', and
4332 `C' to display Sunrise/Sunset times, show lunar phases and to convert
4333 to other calendars, respectively.  `c' can be used to switch back and
4334 forth between calendar and agenda.
4336    If you are using the diary only for sexp entries and holidays, it is
4337 faster to not use the above setting, but instead to copy or even move
4338 the entries into an Org-mode file. Org-mode evaluates diary-style sexp
4339 entries, and does it faster because there is no overhead for first
4340 creating the diary display.  Note that the sexp entries must start at
4341 the left margin, no white space is allowed before them.  For example,
4342 the following segment of an Org-mode file will be processed and entries
4343 will be made in the agenda:
4345      * Birthdays and similar stuff
4346      #+CATEGORY: Holiday
4347      %%(org-calendar-holiday)   ; special function for holiday names
4348      #+CATEGORY: Ann
4349      %%(diary-anniversary 14  5 1956) Arthur Dent is %d years old
4350      %%(diary-anniversary  2 10 1869) Mahatma Gandhi would be %d years old
4352 Appointment reminders
4353 .....................
4355 Org can interact with Emacs appointments notification facility.
4357    To add all the appointments of your agenda files, use the command
4358 `org-agenda-to-appt'.  This commands also lets you filter through the
4359 list of your appointments and add only those belonging to a specific
4360 category or matching a regular expression. See the docstring for
4361 details.
4363    ---------- Footnotes ----------
4365    (1) For backward compatibility, the universal prefix `C-u' causes
4366 all TODO entries to be listed before the agenda.  This feature is
4367 deprecated, use the dedicated TODO list, or a block agenda instead.
4369 \x1f
4370 File: org,  Node: Global TODO list,  Next: Matching tags and properties,  Prev: Weekly/Daily agenda,  Up: Built-in agenda views
4372 10.3.2 The global TODO list
4373 ---------------------------
4375 The global TODO list contains all unfinished TODO items, formatted and
4376 collected into a single place.
4378 `C-c a t'
4379      Show the global TODO list.  This collects the TODO items from all
4380      agenda files (*note Agenda views::) into a single buffer.  The
4381      buffer is in `agenda-mode', so there are commands to examine and
4382      manipulate the TODO entries directly from that buffer (*note
4383      Agenda commands::).  
4385 `C-c a T'
4386      Like the above, but allows selection of a specific TODO keyword.
4387      You can also do this by specifying a prefix argument to `C-c a t'.
4388      With a `C-u' prefix you are prompted for a keyword, and you may
4389      also specify several keywords by separating them with `|' as
4390      boolean OR operator.  With a numeric prefix, the Nth keyword in
4391      `org-todo-keywords' is selected.  The `r' key in the agenda buffer
4392      regenerates it, and you can give a prefix argument to this command
4393      to change the selected TODO keyword, for example `3 r'.  If you
4394      often need a search for a specific keyword, define a custom
4395      command for it (*note Agenda dispatcher::).
4396      Matching specific TODO keywords can also be done as part of a tags
4397      search (*note Tag searches::).
4399    Remote editing of TODO items means that you can change the state of a
4400 TODO entry with a single key press.  The commands available in the TODO
4401 list are described in *Note Agenda commands::.
4403    Normally the global todo list simply shows all headlines with TODO
4404 keywords.  This list can become very long.  There are two ways to keep
4405 it more compact:
4406    - Some people view a TODO item that has been _scheduled_ for
4407      execution (*note Time stamps::) as no longer _open_.  Configure the
4408      variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
4409      items from the global TODO list.
4411    - TODO items may have sublevels to break up the task into subtasks.
4412      In such cases it may be enough to list only the highest level TODO
4413      headline and omit the sublevels from the global list.  Configure
4414      the variable `org-agenda-todo-list-sublevels' to get this behavior.
4416 \x1f
4417 File: org,  Node: Matching tags and properties,  Next: Timeline,  Prev: Global TODO list,  Up: Built-in agenda views
4419 10.3.3 Matching Tags and Properties
4420 -----------------------------------
4422 If headlines in the agenda files are marked with _tags_ (*note Tags::),
4423 you can select headlines based on the tags that apply to them and
4424 collect them into an agenda buffer.
4426 `C-c a m'
4427      Produce a list of all headlines that match a given set of tags.
4428      The command prompts for a selection criterion, which is a boolean
4429      logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
4430      `WORK|HOME' (*note Tags::).  If you often need a specific search,
4431      define a custom command for it (*note Agenda dispatcher::).  
4433 `C-c a M'
4434      Like `C-c a m', but only select headlines that are also TODO items
4435      and force checking subitems (see variable
4436      `org-tags-match-list-sublevels').  Matching specific todo keywords
4437      together with a tags match is also possible, see *Note Tag
4438      searches::.
4440    The commands available in the tags list are described in *Note
4441 Agenda commands::.
4443 \x1f
4444 File: org,  Node: Timeline,  Next: Stuck projects,  Prev: Matching tags and properties,  Up: Built-in agenda views
4446 10.3.4 Timeline for a single file
4447 ---------------------------------
4449 The timeline summarizes all time-stamped items from a single Org-mode
4450 file in a _time-sorted view_.  The main purpose of this command is to
4451 give an overview over events in a project.
4453 `C-c a L'
4454      Show a time-sorted view of the org file, with all time-stamped
4455      items.  When called with a `C-u' prefix, all unfinished TODO
4456      entries (scheduled or not) are also listed under the current date.
4458 The commands available in the timeline buffer are listed in *Note
4459 Agenda commands::.
4461 \x1f
4462 File: org,  Node: Stuck projects,  Prev: Timeline,  Up: Built-in agenda views
4464 10.3.5 Stuck projects
4465 ---------------------
4467 If you are following a system like David Allen's GTD to organize your
4468 work, one of the "duties" you have is a regular review to make sure
4469 that all projects move along.  A _stuck_ project is a project that has
4470 no defined next actions, so it will never show up in the TODO lists
4471 Org-mode produces.  During the review, you need to identify such
4472 projects and define next actions for them.
4474 `C-c a #'
4475      List projects that are stuck.  
4477 `C-c a !'
4478      Customize the variable `org-stuck-projects' to define what a stuck
4479      project is and how to find it.
4481    You almost certainly will have to configure this view before it will
4482 work for you.  The built-in default assumes that all your projects are
4483 level-2 headlines, and that a project is not stuck if it has at least
4484 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
4486    Lets assume that you, in your own way of using Org-mode, identify
4487 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
4488 indicate a project that should not be considered yet.  Lets further
4489 assume that the todo keyword DONE marks finished projects, and that NEXT
4490 and TODO indicate next actions.  The tag @SHOP indicates shopping and
4491 is a next action even without the NEXT tag.  Finally, if the project
4492 contains the special word IGNORE anywhere, it should not be listed
4493 either.  In this case you would start by identifying eligible projects
4494 with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
4495 NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
4496 not stuck.  The correct customization for this is
4498      (setq org-stuck-projects
4499            '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
4500                                     "\\<IGNORE\\>"))
4502 \x1f
4503 File: org,  Node: Presentation and sorting,  Next: Agenda commands,  Prev: Built-in agenda views,  Up: Agenda views
4505 10.4 Presentation and sorting
4506 =============================
4508 Before displaying items in an agenda view, Org-mode visually prepares
4509 the items and sorts them.  Each item occupies a single line.  The line
4510 starts with a _prefix_ that contains the _category_ (*note
4511 Categories::) of the item and other important information.  You can
4512 customize the prefix using the option `org-agenda-prefix-format'.  The
4513 prefix is followed by a cleaned-up version of the outline headline
4514 associated with the item.
4516 * Menu:
4518 * Categories::                  Not all tasks are equal
4519 * Time-of-day specifications::  How the agenda knows the time
4520 * Sorting of agenda items::     The order of things
4522 \x1f
4523 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Presentation and sorting,  Up: Presentation and sorting
4525 10.4.1 Categories
4526 -----------------
4528 The category is a broad label assigned to each agenda item.  By default,
4529 the category is simply derived from the file name, but you can also
4530 specify it with a special line in the buffer, like this(1):
4532      #+CATEGORY: Thesis
4534 If you would like to have a special CATEGORY for a single entry or a
4535 (sub)tree, give the entry a `:CATEGORY:' property with the location as
4536 the value (*note Properties and columns::).
4538 The display in the agenda buffer looks best if the category is not
4539 longer than 10 characters.
4541    ---------- Footnotes ----------
4543    (1) If there are several such lines in a file, each specifies the
4544 category for the text below it.  The first category also applies to any
4545 text before the first CATEGORY line.  This method is only kept for
4546 backward compatibility.  The preferred method for setting multiple
4547 categories in a buffer is using a property.
4549 \x1f
4550 File: org,  Node: Time-of-day specifications,  Next: Sorting of agenda items,  Prev: Categories,  Up: Presentation and sorting
4552 10.4.2 Time-of-Day Specifications
4553 ---------------------------------
4555 Org-mode checks each agenda item for a time-of-day specification.  The
4556 time can be part of the time stamp that triggered inclusion into the
4557 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
4558 specified with two time stamps, like
4559 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
4561    In the headline of the entry itself, a time(range) may also appear as
4562 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
4563 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
4564 entries are recognized as well.
4566    For agenda display, Org-mode extracts the time and displays it in a
4567 standard 24 hour format as part of the prefix.  The example times in
4568 the previous paragraphs would end up in the agenda like this:
4570          8:30-13:00 Arthur Dent lies in front of the bulldozer
4571         12:45...... Ford Prefect arrives and takes Arthur to the pub
4572         19:00...... The Vogon reads his poem
4573         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4575    If the agenda is in single-day mode, or for the display of today, the
4576 timed entries are embedded in a time grid, like
4578          8:00...... ------------------
4579          8:30-13:00 Arthur Dent lies in front of the bulldozer
4580         10:00...... ------------------
4581         12:00...... ------------------
4582         12:45...... Ford Prefect arrives and takes Arthur to the pub
4583         14:00...... ------------------
4584         16:00...... ------------------
4585         18:00...... ------------------
4586         19:00...... The Vogon reads his poem
4587         20:00...... ------------------
4588         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4590    The time grid can be turned on and off with the variable
4591 `org-agenda-use-time-grid', and can be configured with
4592 `org-agenda-time-grid'.
4594 \x1f
4595 File: org,  Node: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Presentation and sorting
4597 10.4.3 Sorting of agenda items
4598 ------------------------------
4600 Before being inserted into a view, the items are sorted.  How this is
4601 done depends on the type of view.
4602    * For the daily/weekly agenda, the items for each day are sorted.
4603      The default order is to first collect all items containing an
4604      explicit time-of-day specification.  These entries will be shown
4605      at the beginning of the list, as a _schedule_ for the day.  After
4606      that, items remain grouped in categories, in the sequence given by
4607      `org-agenda-files'.  Within each category, items are sorted by
4608      priority (*note Priorities::), which is composed of the base
4609      priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
4610      plus additional increments for overdue scheduled or deadline items.
4612    * For the TODO list, items remain in the order of categories, but
4613      within each category, sorting takes place according to priority
4614      (*note Priorities::).
4616    * For tags matches, items are not sorted at all, but just appear in
4617      the sequence in which they are found in the agenda files.
4619    Sorting can be customized using the variable
4620 `org-agenda-sorting-strategy'.
4622 \x1f
4623 File: org,  Node: Agenda commands,  Next: Custom agenda views,  Prev: Presentation and sorting,  Up: Agenda views
4625 10.5 Commands in the agenda buffer
4626 ==================================
4628 Entries in the agenda buffer are linked back to the org file or diary
4629 file where they originate.  You are not allowed to edit the agenda
4630 buffer itself, but commands are provided to show and jump to the
4631 original entry location, and to edit the org-files "remotely" from the
4632 agenda buffer.  In this way, all information is stored only once,
4633 removing the risk that your agenda and note files may diverge.
4635    Some commands can be executed with mouse clicks on agenda lines.  For
4636 the other commands, the cursor needs to be in the desired line.
4638 Motion
4639 ......
4642      Next line (same as <up> and `C-p').  
4645      Previous line (same as <down> and `C-n').
4647 View/GoTo org file
4648 ..................
4650 `mouse-3'
4651 `<SPC>'
4652      Display the original location of the item in another window.  
4655      Display original location and recenter that window.  
4657 `mouse-2'
4658 `mouse-1'
4659 `<TAB>'
4660      Go to the original location of the item in another window.  Under
4661      Emacs 22, `mouse-1' will also works for this.  
4663 `<RET>'
4664      Go to the original location of the item and delete other windows.  
4667      Toggle Follow mode.  In Follow mode, as you move the cursor through
4668      the agenda buffer, the other window always shows the corresponding
4669      location in the org file.  The initial setting for this mode in new
4670      agenda buffers can be set with the variable
4671      `org-agenda-start-with-follow-mode'.  
4674      Display the entire subtree of the current item in an indirect
4675      buffer.  With numerical prefix ARG, go up to this level and then
4676      take that tree.  If ARG is negative, go up that many levels.  With
4677      `C-u' prefix, do not remove the previously used indirect buffer.  
4680      Toggle Logbook mode.  In Logbook mode, entries that where marked
4681      DONE while logging was on (variable `org-log-done') are shown in
4682      the agenda, as are entries that have been clocked on that day.
4684 Change display
4685 ..............
4688      Delete other windows.  
4690 `d w m y'
4691      Switch to day/week/month/year view.  When switching to day or week
4692      view, this setting becomes the default for subseqent agenda
4693      commands.  Since month and year views are slow to create, the do
4694      not become the default.  
4697      Toggle the inclusion of diary entries.  See *Note Weekly/Daily
4698      agenda::.  
4701      Toggle the time grid on and off.  See also the variables
4702      `org-agenda-use-time-grid' and `org-agenda-time-grid'.  
4705      Recreate the agenda buffer, for example to reflect the changes
4706      after modification of the time stamps of items with S-<left> and
4707      S-<right>.  When the buffer is the global todo list, a prefix
4708      argument is interpreted to create a selective list for a specific
4709      TODO keyword.  
4712 `C-x C-s'
4713      Save all Org-mode buffers in the current Emacs session.  
4715 `<right>'
4716      Display the following `org-agenda-ndays' days.  For example, if
4717      the display covers a week, switch to the following week.  With
4718      prefix arg, go forward that many times `org-agenda-ndays' days.  
4720 `<left>'
4721      Display the previous dates.  
4724      Goto today.
4726 Remote editing
4727 ..............
4729 `0-9'
4730      Digit argument.  
4732 `C-_'
4733      Undo a change due to a remote editing command.  The change is
4734      undone both in the agenda buffer and in the remote buffer.  
4737      Change the TODO state of the item, both in the agenda and in the
4738      original org file.  
4740 `C-k'
4741      Delete the current agenda item along with the entire subtree
4742      belonging to it in the original Org-mode file.  If the text to be
4743      deleted remotely is longer than one line, the kill needs to be
4744      confirmed by the user.  See variable `org-agenda-confirm-kill'.  
4747      Archive the subtree corresponding to the current headline.  
4750      Show all tags associated with the current item.  Because of
4751      inheritance, this may be more than the tags listed in the line
4752      itself.  
4755      Set tags for the current headline.  If there is an active region
4756      in the agenda, change a tag for all headings in the region.  
4759      Toggle the ARCHIVE tag for the current headline.  
4762      Set the priority for the current item.  Org-mode prompts for the
4763      priority character. If you reply with <SPC>, the priority cookie
4764      is removed from the entry.  
4767      Display weighted priority of current item.  
4770 `S-<up>'
4771      Increase the priority of the current item.  The priority is
4772      changed in the original buffer, but the agenda is not resorted.
4773      Use the `r' key for this.  
4776 `S-<down>'
4777      Decrease the priority of the current item.  
4779 `C-c C-s'
4780      Schedule this item 
4782 `C-c C-d'
4783      Set a deadline for this item.  
4785 `S-<right>'
4786      Change the time stamp associated with the current line by one day
4787      into the future.  With prefix argument, change it by that many
4788      days.  For example, `3 6 5 S-<right>' will change it by a year.
4789      The stamp is changed in the original org file, but the change is
4790      not directly reflected in the agenda buffer.  Use the `r' key to
4791      update the buffer.  
4793 `S-<left>'
4794      Change the time stamp associated with the current line by one day
4795      into the past.  
4798      Change the time stamp associated with the current line to today.
4799      The key `>' has been chosen, because it is the same as `S-.' on my
4800      keyboard.  
4803      Start the clock on the current item.  If a clock is running
4804      already, it is stopped first.  
4807      Stop the previously started clock.  
4810      Cancel the currently running clock.
4813      Jump to the running clock in another window.
4815 Calendar commands
4816 .................
4819      Open the Emacs calendar and move to the date at the agenda cursor.
4822      When in the calendar, compute and show the Org-mode agenda for the
4823      date at the cursor.  
4826      Insert a new entry into the diary.  Prompts for the type of entry
4827      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
4828      new entry in the diary, just as `i d' etc. would do in the
4829      calendar.  The date is taken from the cursor position.  
4832      Show the phases of the moon for the three months around current
4833      date.  
4836      Show sunrise and sunset times.  The geographical location must be
4837      set with calendar variables, see documentation of the Emacs
4838      calendar.  
4841      Convert the date at cursor into many other cultural and historic
4842      calendars.  
4845      Show holidays for three month around the cursor date.  
4847 `C-c C-x C-c'
4848      Export a single iCalendar file containing entries from all agenda
4849      files.
4851 Exporting to a file
4852 ...................
4854 `C-x C-w'
4855      Write the agenda view to a file.  Depending on the extension of the
4856      selected file name, the view will be exported as HTML (extension
4857      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
4858      (any other extension).  Use the variable
4859      `org-agenda-exporter-settings' to set options for `ps-print' and
4860      for `htmlize' to be used during export.
4862 Quit and Exit
4863 .............
4866      Quit agenda, remove the agenda buffer.  
4869      Exit agenda, remove the agenda buffer and all buffers loaded by
4870      Emacs for the compilation of the agenda.  Buffers created by the
4871      user to visit org files will not be removed.
4873 \x1f
4874 File: org,  Node: Custom agenda views,  Prev: Agenda commands,  Up: Agenda views
4876 10.6 Custom agenda views
4877 ========================
4879 Custom agenda commands serve two purposes: to store and quickly access
4880 frequently used TODO and tags searches, and to create special composite
4881 agenda buffers.  Custom agenda commands will be accessible through the
4882 dispatcher (*note Agenda dispatcher::), just like the default commands.
4884 * Menu:
4886 * Storing searches::            Type once, use often
4887 * Block agenda::                All the stuff you need in a single buffer
4888 * Setting Options::             Changing the rules
4889 * Exporting Agenda Views::      Writing agendas to files.
4890 * Extracting Agenda Information for other programs::
4892 \x1f
4893 File: org,  Node: Storing searches,  Next: Block agenda,  Prev: Custom agenda views,  Up: Custom agenda views
4895 10.6.1 Storing searches
4896 -----------------------
4898 The first application of custom searches is the definition of keyboard
4899 shortcuts for frequently used searches, either creating an agenda
4900 buffer, or a sparse tree (the latter covering of course only the current
4901 buffer).  Custom commands are configured in the variable
4902 `org-agenda-custom-commands'.  You can customize this variable, for
4903 example by pressing `C-c a C'.  You can also directly set it with Emacs
4904 Lisp in `.emacs'.  The following example contains all valid search
4905 types:
4907      (setq org-agenda-custom-commands
4908            '(("w" todo "WAITING")
4909              ("W" todo-tree "WAITING")
4910              ("u" tags "+BOSS-URGENT")
4911              ("v" tags-todo "+BOSS-URGENT")
4912              ("U" tags-tree "+BOSS-URGENT")
4913              ("f" occur-tree "\\<FIXME\\>")
4914              ("h" . "HOME+Name tags searches") ; description for "h" prefix
4915              ("hl" tags "+HOME+Lisa")
4916              ("hp" tags "+HOME+Peter")
4917              ("hk" tags "+HOME+Kim")))
4919 The initial string in each entry defines the keys you have to press
4920 after the dispatcher command `C-c a' in order to access the command.
4921 Usually this will be just a single character, but if you have many
4922 similar commands, you can also define two-letter combinations where the
4923 first character is the same in several combinations and serves as a
4924 prefix key(1).  The second parameter is the search type, followed by
4925 the string or regular expression to be used for the matching.  The
4926 example above will therefore define:
4928 `C-c a w'
4929      as a global search for TODO entries with `WAITING' as the TODO
4930      keyword
4932 `C-c a W'
4933      as the same search, but only in the current buffer and displaying
4934      the results as a sparse tree
4936 `C-c a u'
4937      as a global tags search for headlines marked `:BOSS:' but not
4938      `:URGENT:'
4940 `C-c a v'
4941      as the same search as `C-c a u', but limiting the search to
4942      headlines that are also TODO items
4944 `C-c a U'
4945      as the same search as `C-c a u', but only in the current buffer and
4946      displaying the result as a sparse tree
4948 `C-c a f'
4949      to create a sparse tree (again: current buffer only) with all
4950      entries containing the word `FIXME'
4952 `C-c a h'
4953      as a prefix command for a HOME tags search where you have to press
4954      an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
4955      or Kim) as additional tag to match.
4957    ---------- Footnotes ----------
4959    (1) You can provide a description for a prefix key by inserting a
4960 cons cell with the prefix and the description.
4962 \x1f
4963 File: org,  Node: Block agenda,  Next: Setting Options,  Prev: Storing searches,  Up: Custom agenda views
4965 10.6.2 Block agenda
4966 -------------------
4968 Another possibility is the construction of agenda views that comprise
4969 the results of _several_ commands, each of which creates a block in the
4970 agenda buffer.  The available commands include `agenda' for the daily
4971 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
4972 todo list (as constructed with `C-c a t'), and the matching commands
4973 discussed above: `todo', `tags', and `tags-todo'.  Here are two
4974 examples:
4976      (setq org-agenda-custom-commands
4977            '(("h" "Agenda and Home-related tasks"
4978               ((agenda)
4979                (tags-todo "HOME")
4980                (tags "GARDEN")))
4981              ("o" "Agenda and Office-related tasks"
4982               ((agenda)
4983                (tags-todo "WORK")
4984                (tags "OFFICE")))))
4986 This will define `C-c a h' to create a multi-block view for stuff you
4987 need to attend to at home.  The resulting agenda buffer will contain
4988 your agenda for the current week, all TODO items that carry the tag
4989 `HOME', and also all lines tagged with `GARDEN'.  Finally the command
4990 `C-c a o' provides a similar view for office tasks.
4992 \x1f
4993 File: org,  Node: Setting Options,  Next: Exporting Agenda Views,  Prev: Block agenda,  Up: Custom agenda views
4995 10.6.3 Setting Options for custom commands
4996 ------------------------------------------
4998 Org-mode contains a number of variables regulating agenda construction
4999 and display.  The global variables define the behavior for all agenda
5000 commands, including the custom commands.  However, if you want to change
5001 some settings just for a single custom view, you can do so.  Setting
5002 options requires inserting a list of variable names and values at the
5003 right spot in `org-agenda-custom-commands'.  For example:
5005      (setq org-agenda-custom-commands
5006            '(("w" todo "WAITING"
5007               ((org-agenda-sorting-strategy '(priority-down))
5008                (org-agenda-prefix-format "  Mixed: ")))
5009              ("U" tags-tree "+BOSS-URGENT"
5010               ((org-show-following-heading nil)
5011                (org-show-hierarchy-above nil)))))
5013 Now the `C-c a w' command will sort the collected entries only by
5014 priority, and the prefix format is modified to just say `  Mixed:'
5015 instead of giving the category of the entry.  The sparse tags tree of
5016 `C-c a U' will now turn out ultra-compact, because neither the headline
5017 hierarchy above the match, nor the headline following the match will be
5018 shown.
5020    For command sets creating a block agenda,
5021 `org-agenda-custom-commands' has two separate spots for setting
5022 options.  You can add options that should be valid for just a single
5023 command in the set, and options that should be valid for all commands in
5024 the set.  The former are just added to the command entry, the latter
5025 must come after the list of command entries.  Going back to the block
5026 agenda example (*note Block agenda::), let's change the sorting strategy
5027 for the `C-c a h' commands to `priority-down', but let's sort the
5028 results for GARDEN tags query in the opposite order, `priority-up'.
5029 This would look like this:
5031      (setq org-agenda-custom-commands
5032            '(("h" "Agenda and Home-related tasks"
5033               ((agenda)
5034                (tags-todo "HOME")
5035                (tags "GARDEN"
5036                      ((org-agenda-sorting-strategy '(priority-up)))))
5037               ((org-agenda-sorting-strategy '(priority-down))))
5038              ("o" "Agenda and Office-related tasks"
5039               ((agenda)
5040                (tags-todo "WORK")
5041                (tags "OFFICE")))))
5043    As you see, the values and parenthesis setting is a little complex.
5044 When in doubt, use the customize interface to set this variable - it
5045 fully supports its structure.  Just one caveat: When setting options in
5046 this interface, the _values_ are just lisp expressions.  So if the
5047 value is a string, you need to add the double quotes around the value
5048 yourself.
5050 \x1f
5051 File: org,  Node: Exporting Agenda Views,  Next: Extracting Agenda Information for other programs,  Prev: Setting Options,  Up: Custom agenda views
5053 10.6.4 Exporting Agenda Views
5054 -----------------------------
5056 If you are away from your computer, it can be very useful to have a
5057 printed version of some agenda views to carry around.  Org-mode can
5058 export custom agenda views as plain text, HTML(1) and postscript.  If
5059 you want to do this only occasionally, use the command
5061 `C-x C-w'
5062      Write the agenda view to a file.  Depending on the extension of the
5063      selected file name, the view will be exported as HTML (extension
5064      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
5065      (any other extension).  Use the variable
5066      `org-agenda-exporter-settings' to set options for `ps-print' and
5067      for `htmlize' to be used during export, for example
5068           (setq org-agenda-exporter-settings
5069                 '((ps-number-of-columns 2)
5070                   (ps-landscape-mode t)
5071                   (htmlize-output-type 'css)))
5073    If you need to export certain agenda views frequently, you can
5074 associate any custom agenda command with a list of output file names
5075 (2).  Here is an example that first does define custom commands for the
5076 agenda and the global todo list, together with a number of files to
5077 which to export them.  Then we define two block agenda commands and
5078 specify filenames for them as well.  File names can be relative to the
5079 current working directory, or absolute.
5081      (setq org-agenda-custom-commands
5082            '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
5083              ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
5084              ("h" "Agenda and Home-related tasks"
5085               ((agenda)
5086                (tags-todo "HOME")
5087                (tags "GARDEN"))
5088               nil
5089               ("~/views/home.html"))
5090              ("o" "Agenda and Office-related tasks"
5091               ((agenda)
5092                (tags-todo "WORK")
5093                (tags "OFFICE"))
5094               nil
5095               ("~/views/office.ps"))))
5097    The extension of the file name determines the type of export.  If it
5098 is `.html', Org-mode will use the `htmlize.el' package to convert the
5099 buffer to HTML and save it to this file name.  If the extension is
5100 `.ps', `ps-print-buffer-with-faces' is used to produce postscript
5101 output.  Any other extension produces a plain ASCII file.
5103    The export files are _not_ created when you use one of those
5104 commands interactively.  Instead, there is a special command to produce
5105 _all_ specified files in one step:
5107 `C-c a e'
5108      Export all agenda views that have export filenames associated with
5109      them.
5111    You can use the options section of the custom agenda commands to also
5112 set options for the export commands.  For example:
5114      (setq org-agenda-custom-commands
5115            '(("X" agenda ""
5116               ((ps-number-of-columns 2)
5117                (ps-landscape-mode t)
5118                (org-agenda-prefix-format " [ ] ")
5119                (org-agenda-with-colors nil)
5120                (org-agenda-remove-tags t))
5121               ("theagenda.ps"))))
5123 This command sets two options for the postscript exporter, to make it
5124 print in two columns in landscape format - the resulting page can be cut
5125 in two and then used in a paper agenda.  The remaining settings modify
5126 the agenda prefix to omit category and scheduling information, and
5127 instead include a checkbox to check off items.  We also remove the tags
5128 to make the lines compact, and we don't want to use colors for the
5129 black-and-white printer.  Settings specified in
5130 `org-agenda-exporter-settings' will also apply, but the settings in
5131 `org-agenda-custom-commands' take precedence.
5133 From the command line you may also use
5134      emacs -f org-batch-store-agenda-views -kill
5135    or, if you need to modify some parameters
5136      emacs -eval '(org-batch-store-agenda-views                      \
5137                    org-agenda-ndays 30                               \
5138                    org-agenda-include-diary nil                      \
5139                    org-agenda-files (quote ("~/org/project.org")))'  \
5140            -kill
5141    which will create the agenda views restricted to the file
5142 `~/org/project.org', without diary entries and with 30 days extent.
5144    ---------- Footnotes ----------
5146    (1) You need to install Hrvoje Niksic' `htmlize.el'.
5148    (2) If you want to store standard views like the weekly agenda or
5149 the global TODO list as well, you need to define custom commands for
5150 them in order to be able to specify filenames.
5152 \x1f
5153 File: org,  Node: Extracting Agenda Information for other programs,  Prev: Exporting Agenda Views,  Up: Custom agenda views
5155 10.6.5 Extracting Agenda Information for other programs
5156 -------------------------------------------------------
5158 Org-mode provides commands to access agenda information for the command
5159 line in emacs batch mode.  This extracted information can be sent
5160 directly to a printer, or it can be read by a program that does further
5161 processing of the data.  The first of these commands is the function
5162 `org-batch-agenda', that produces an agenda view and sends it as ASCII
5163 text to STDOUT.  The command takes a single string as parameter.  If
5164 the string has length 1, it is used as a key to one of the commands you
5165 have configured in `org-agenda-custom-commands', basically any key you
5166 can use after `C-c a'.  For example, to directly print the current TODO
5167 list, you could use
5169      emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
5171    If the parameter is a string with 2 or more characters, it is used
5172 as a tags/todo match string.  For example, to print your local shopping
5173 list (all items with the tag `shop', but excluding the tag `NewYork'),
5174 you could use
5176      emacs -batch -l ~/.emacs                                      \
5177            -eval '(org-batch-agenda "+shop-NewYork")' | lpr
5179 You may also modify parameters on the fly like this:
5181      emacs -batch -l ~/.emacs                                      \
5182         -eval '(org-batch-agenda "a"                               \
5183                  org-agenda-ndays 30                               \
5184                  org-agenda-include-diary nil                      \
5185                  org-agenda-files (quote ("~/org/project.org")))'  \
5186         | lpr
5188 which will produce a 30 day agenda, fully restricted to the Org file
5189 `~/org/projects.org', not even including the diary.
5191    If you want to process the agenda data in more sophisticated ways,
5192 you can use the command `org-batch-agenda-csv' to get a comma-separated
5193 list of values for each agenda item.  Each line in the output will
5194 contain a number of fields separated by commas.  The fields in a line
5195 are:
5197      category     The category of the item
5198      head         The headline, without TODO kwd, TAGS and PRIORITY
5199      type         The type of the agenda entry, can be
5200                      todo               selected in TODO match
5201                      tagsmatch          selected in tags match
5202                      diary              imported from diary
5203                      deadline           a deadline
5204                      scheduled          scheduled
5205                      timestamp          appointment, selected by timestamp
5206                      closed             entry was closed on date
5207                      upcoming-deadline  warning about nearing deadline
5208                      past-scheduled     forwarded scheduled item
5209                      block              entry has date block including date
5210      todo         The todo keyword, if any
5211      tags         All tags including inherited ones, separated by colons
5212      date         The relevant date, like 2007-2-14
5213      time         The time, like 15:00-16:50
5214      extra        String with extra planning info
5215      priority-l   The priority letter if any was given
5216      priority-n   The computed numerical priority
5218 Time and date will only be given if a timestamp (or deadline/scheduled)
5219 lead to the selection of the item.
5221    A CSV list like this is very easy to use in a post processing script.
5222 For example, here is a Perl program that gets the TODO list from
5223 Emacs/org-mode and prints all the items, preceded by a checkbox:
5225      #!/usr/bin/perl
5227      # define the Emacs command to run
5228      $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
5230      # run it and capture the output
5231      $agenda = qx{$cmd 2>/dev/null};
5233      # loop over all lines
5234      foreach $line (split(/\n/,$agenda)) {
5236        # get the individual values
5237        ($category,$head,$type,$todo,$tags,$date,$time,$extra,
5238         $priority_l,$priority_n) = split(/,/,$line);
5240        # proccess and print
5241        print "[ ] $head\n";
5242      }
5244 \x1f
5245 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
5247 11 Embedded LaTeX
5248 *****************
5250 Plain ASCII is normally sufficient for almost all note taking.  One
5251 exception, however, are scientific notes which need to be able to
5252 contain mathematical symbols and the occasional formula.  LaTeX(1) is
5253 widely used to typeset scientific documents. Org-mode supports
5254 embedding LaTeX code into its files, because many academics are used to
5255 read LaTeX source code, and because it can be readily processed into
5256 images for HTML production.
5258    It is not necessary to mark LaTeX macros and code in any special way.
5259 If you observe a few conventions, Org-mode knows how to find it and what
5260 to do with it.
5262 * Menu:
5264 * Math symbols::                TeX macros for symbols and Greek letters
5265 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
5266 * LaTeX fragments::             Complex formulas made easy
5267 * Processing LaTeX fragments::  Previewing LaTeX processing
5268 * CDLaTeX mode::                Speed up entering of formulas
5270    ---------- Footnotes ----------
5272    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
5273 Many of the features described here as "LaTeX" are really from TeX, but
5274 for simplicity I am blurring this distinction.
5276 \x1f
5277 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
5279 11.1 Math symbols
5280 =================
5282 You can use LaTeX macros to insert special symbols like `\alpha' to
5283 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
5284 for these macros is available, just type `\' and maybe a few letters,
5285 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
5286 Org-mode allows these macros to be present without surrounding math
5287 delimiters, for example:
5289      Angles are written as Greek letters \alpha, \beta and \gamma.
5291    During HTML export (*note HTML export::), these symbols are
5292 translated into the proper syntax for HTML, for the above examples this
5293 is `&alpha;' and `&rarr;', respectively.
5295 \x1f
5296 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
5298 11.2 Subscripts and Superscripts
5299 ================================
5301 Just like in LaTeX, `^' and `_' are used to indicate super- and
5302 subscripts.  Again, these can be used without embedding them in
5303 math-mode delimiters.  To increase the readability of ASCII text, it is
5304 not necessary (but OK) to surround multi-character sub- and superscripts
5305 with curly braces.  For example
5307      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
5308      the sun is R_{sun} = 6.96 x 10^8 m.
5310    To avoid interpretation as raised or lowered text, you can quote `^'
5311 and `_' with a backslash: `\_' and `\^'.
5313    During HTML export (*note HTML export::), subscript and superscripts
5314 are surrounded with `<sub>' and `<sup>' tags, respectively.
5316 \x1f
5317 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
5319 11.3 LaTeX fragments
5320 ====================
5322 With symbols, sub- and superscripts, HTML is pretty much at its end when
5323 it comes to representing mathematical formulas(1). More complex
5324 expressions need a dedicated formula processor. To this end, Org-mode
5325 can contain arbitrary LaTeX fragments. It provides commands to preview
5326 the typeset result of these fragments, and upon export to HTML, all
5327 fragments will be converted to images and inlined into the HTML
5328 document(2). For this to work you need to be on a system with a working
5329 LaTeX installation. You also need the `dvipng' program, available at
5330 `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
5331 be used when processing a fragment can be configured with the variable
5332 `org-format-latex-header'.
5334    LaTeX fragments don't need any special marking at all.  The following
5335 snippets will be identified as LaTeX source code:
5336    * Environments of any kind.  The only requirement is that the
5337      `\begin' statement appears on a new line, preceded by only
5338      whitespace.
5340    * Text within the usual LaTeX math delimiters.  To avoid conflicts
5341      with currency specifications, single `$' characters are only
5342      recognized as math delimiters if the enclosed text contains at
5343      most two line breaks, is directly attached to the `$' characters
5344      with no whitespace in between, and if the closing `$' is followed
5345      by whitespace or punctuation.  For the other delimiters, there is
5346      no such restriction, so when in doubt, use `\(...\)' as inline
5347      math delimiters.
5349 For example:
5351      \begin{equation}                          % arbitrary environments,
5352      x=\sqrt{b}                                % even tables, figures
5353      \end{equation}                            % etc
5355      If $a^2=b$ and \( b=2 \), then the solution must be
5356      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
5358 If you need any of the delimiter ASCII sequences for other purposes, you
5359 can configure the option `org-format-latex-options' to deselect the
5360 ones you do not wish to have interpreted by the LaTeX converter.
5362    ---------- Footnotes ----------
5364    (1) Yes, there is MathML, but that is not yet fully supported by
5365 many browsers, and there is no decent converter for turning LaTeX or
5366 ASCII representations of formulas into MathML. So for the time being,
5367 converting formulas into images seems the way to go.
5369    (2) The LaTeX export will not use images for displaying LaTeX
5370 fragments but include these fragments directly into the LaTeX code.
5372 \x1f
5373 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
5375 11.4 Processing LaTeX fragments
5376 ===============================
5378 LaTeX fragments can be processed to produce a preview images of the
5379 typeset expressions:
5381 `C-c C-x C-l'
5382      Produce a preview image of the LaTeX fragment at point and overlay
5383      it over the source code.  If there is no fragment at point,
5384      process all fragments in the current entry (between two
5385      headlines).  When called with a prefix argument, process the
5386      entire subtree.  When called with two prefix arguments, or when
5387      the cursor is before the first headline, process the entire buffer.  
5389 `C-c C-c'
5390      Remove the overlay preview images.
5392    During HTML export (*note HTML export::), all LaTeX fragments are
5393 converted into images and inlined into the document if the following
5394 setting is active:
5396      (setq org-export-with-LaTeX-fragments t)
5398 \x1f
5399 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
5401 11.5 Using CDLaTeX to enter math
5402 ================================
5404 CDLaTeX-mode is a minor mode that is normally used in combination with a
5405 major LaTeX mode like AUCTeX in order to speed-up insertion of
5406 environments and math templates.  Inside Org-mode, you can make use of
5407 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
5408 and `texmathp.el' (the latter comes also with AUCTeX) from
5409 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
5410 cdlatex-mode itself under Org-mode, but use the light version
5411 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
5412 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
5413 with
5415      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
5417    When this mode is enabled, the following features are present (for
5418 more details see the documentation of cdlatex-mode):
5419    * Environment templates can be inserted with `C-c {'.
5421    * The <TAB> key will do template expansion if the cursor is inside a
5422      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
5423      `\frac{}{}' and position the cursor correctly inside the first
5424      brace.  Another <TAB> will get you into the second brace.  Even
5425      outside fragments, <TAB> will expand environment abbreviations at
5426      the beginning of a line.  For example, if you write `equ' at the
5427      beginning of a line and press <TAB>, this abbreviation will be
5428      expanded to an `equation' environment.  To get a list of all
5429      abbreviations, type `M-x cdlatex-command-help'.
5431    * Pressing `_' and `^' inside a LaTeX fragment will insert these
5432      characters together with a pair of braces.  If you use <TAB> to
5433      move out of the braces, and if the braces surround only a single
5434      character or macro, they are removed again (depending on the
5435      variable `cdlatex-simplify-sub-super-scripts').
5437    * Pressing the backquote ``' followed by a character inserts math
5438      macros, also outside LaTeX fragments.  If you wait more than 1.5
5439      seconds after the backquote, a help window will pop up.
5441    * Pressing the normal quote `'' followed by another character
5442      modifies the symbol before point with an accent or a font.  If you
5443      wait more than 1.5 seconds after the backquote, a help window will
5444      pop up.  Character modification will work only inside LaTeX
5445      fragments, outside the quote is normal.
5447    ---------- Footnotes ----------
5449    (1) Org-mode has a method to test if the cursor is inside such a
5450 fragment, see the documentation of the function
5451 `org-inside-LaTeX-fragment-p'.
5453 \x1f
5454 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
5456 12 Exporting
5457 ************
5459 Org-mode documents can be exported into a variety of other formats.  For
5460 printing and sharing of notes, ASCII export produces a readable and
5461 simple version of an Org-mode file.  HTML export allows you to publish a
5462 notes file on the web, while the XOXO format provides a solid base for
5463 exchange with a broad range of other applications. LaTeX export lets
5464 you use Org-mode and its structured editing functions to easily create
5465 LaTeX files.  To incorporate entries with associated times like
5466 deadlines or appointments into a desktop calendar program like iCal,
5467 Org-mode can also produce extracts in the iCalendar format.  Currently
5468 Org-mode only supports export, not import of these different formats.
5470    When exporting, Org-mode uses special conventions to enrich the
5471 output produced.  *Note Text interpretation::, for more details.
5473 `C-c C-e'
5474      Dispatcher for export and publishing commands.  Displays a
5475      help-window listing the additional key(s) needed to launch an
5476      export or publishing command.
5478 * Menu:
5480 * ASCII export::                Exporting to plain ASCII
5481 * HTML export::                 Exporting to HTML
5482 * LaTeX export::                Exporting to LaTeX
5483 * XOXO export::                 Exporting to XOXO
5484 * iCalendar export::            Exporting in iCalendar format
5485 * Text interpretation::         How the exporter looks at the file
5487 \x1f
5488 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
5490 12.1 ASCII export
5491 =================
5493 ASCII export produces a simple and very readable version of an Org-mode
5494 file.
5496 `C-c C-e a'
5497      Export as ASCII file.  For an org file `myfile.org', the ASCII file
5498      will be `myfile.txt'.  The file will be overwritten without
5499      warning.  If there is an active region, only the region will be
5500      exported. If the selected region is a single tree, the tree head
5501      will become the document title.  If the tree head entry has or
5502      inherits an EXPORT_FILE_NAME property, that name will be used for
5503      the export.  
5505 `C-c C-e v a'
5506      Export only the visible part of the document.
5508    In the exported version, the first 3 outline levels will become
5509 headlines, defining a general document structure.  Additional levels
5510 will be exported as itemized lists.  If you want that transition to
5511 occur at a different level, specify it with a prefix argument.  For
5512 example,
5514      C-1 C-c C-e a
5516 creates only top level headlines and does the rest as items.  When
5517 headlines are converted to items, the indentation of the text following
5518 the headline is changed to fit nicely under the item.  This is done with
5519 the assumption that the first bodyline indicates the base indentation of
5520 the body text.  Any indentation larger than this is adjusted to preserve
5521 the layout relative to the first line.  Should there be lines with less
5522 indentation than the first, these are left alone.
5524 \x1f
5525 File: org,  Node: HTML export,  Next: LaTeX export,  Prev: ASCII export,  Up: Exporting
5527 12.2 HTML export
5528 ================
5530 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
5531 HTML formatting, in ways similar to John Grubers _markdown_ language,
5532 but with additional support for tables.
5534 * Menu:
5536 * HTML Export commands::        How to invoke LaTeX export
5537 * Quoting HTML tags::           Using direct HTML in Org-mode
5538 * Links::                       Transformation of links for HTML
5539 * Images::                      How to include images
5540 * CSS support::                 Changing the appearence of the output
5542 \x1f
5543 File: org,  Node: HTML Export commands,  Next: Quoting HTML tags,  Prev: HTML export,  Up: HTML export
5545 12.2.1 HTML export commands
5546 ---------------------------
5548 `C-c C-e h'
5549      Export as HTML file `myfile.html'.  For an org file `myfile.org',
5550      the ASCII file will be `myfile.html'.  The file will be
5551      overwritten without warning.  If there is an active region, only
5552      the region will be exported. If the selected region is a single
5553      tree, the tree head will become the document title.  If the tree
5554      head entry has or inherits an EXPORT_FILE_NAME property, that name
5555      will be used for the export.  
5557 `C-c C-e b'
5558      Export as HTML file and immediately open it with a browser.  
5560 `C-c C-e H'
5561      Export to a temporary buffer, do not create a file.  
5563 `C-c C-e H'
5564      Export the active region to a temporary buffer.  With prefix arg,
5565      do not produce file header and foot, but just the plain HTML
5566      section for the region.  This is good for cut-and-paste operations.  
5568 `C-c C-e v h'
5570 `C-c C-e v b'
5572 `C-c C-e v H'
5574 `C-c C-e v R'
5575      Export only the visible part of the document.
5577 `M-x org-export-region-as-html'
5578      Convert the region to HTML under the assumption that it was
5579      org-mode syntax before.  This is a global command that can be
5580      invoked in any buffer.
5582 `M-x org-replace-region-by-HTML'
5583      Replace the active region (assumed to be in Org-mode syntax) by
5584      HTML code.
5586    In the exported version, the first 3 outline levels will become
5587 headlines, defining a general document structure.  Additional levels
5588 will be exported as itemized lists.  If you want that transition to
5589 occur at a different level, specify it with a prefix argument.  For
5590 example,
5592      C-2 C-c C-e b
5594 creates two levels of headings and does the rest as items.
5596 \x1f
5597 File: org,  Node: Quoting HTML tags,  Next: Links,  Prev: HTML Export commands,  Up: HTML export
5599 12.2.2 Quoting HTML tags
5600 ------------------------
5602 Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
5603 export.  If you want to include simple HTML tags which should be
5604 interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
5605 Note that this really works only for simple tags.  For more extensive
5606 HTML that should be copied verbatim to the exported file use either
5608      #+HTML: Literal HTML code for export
5612      #+BEGIN_HTML
5613      All lines between these markers are exported literally
5614      #+END_HTML
5616 \x1f
5617 File: org,  Node: Links,  Next: Images,  Prev: Quoting HTML tags,  Up: HTML export
5619 12.2.3 Links
5620 ------------
5622 Internal links (*note Internal links::) will continue to work in HTML
5623 files only if they match a dedicated `<<target>>'.  Automatic links
5624 created by radio targets (*note Radio targets::) will also work in the
5625 HTML file.  Links to external files will still work if the HTML file is
5626 in the same directory as the Org-mode file.  Links to other `.org'
5627 files will be translated into HTML links under the assumption that an
5628 HTML version also exists of the linked file.  For information related to
5629 linking files while publishing them to a publishing directory see *Note
5630 Publishing links::.
5632 \x1f
5633 File: org,  Node: Images,  Next: CSS support,  Prev: Links,  Up: HTML export
5635 12.2.4 Images
5636 -------------
5638 HTML export can inline images given as links in the Org-mode file, and
5639 it can make an image the clickable part of a link.  By default(1),
5640 images are inlined if a link does not have a description.  So
5641 `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
5642 image]]' will just produce a link `the image' that points to the image.
5643 If the description part itself is a `file:' link or a `http:' URL
5644 pointing to an image, this image will be inlined and activated so that
5645 clicking on the image will activate the link.  For example, to include
5646 a thumbnail that will link to a high resolution version of the image,
5647 you could use:
5649      [[file:highres.jpg][file:thumb.jpg]]
5651 and you could use `http' addresses just as well.
5653    ---------- Footnotes ----------
5655    (1) but see the variable `org-export-html-inline-images'
5657 \x1f
5658 File: org,  Node: CSS support,  Prev: Images,  Up: HTML export
5660 12.2.5 CSS support
5661 ------------------
5663 You can also give style information for the exported file.  The HTML
5664 exporter assigns the following CSS classes to appropriate parts of the
5665 document - your style specifications may change these:
5666      .todo           TODO keywords
5667      .done           the DONE keyword
5668      .timestamp      time stamp
5669      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
5670      .tag            tag in a headline
5671      .target         target for links
5673    The default style specification can be configured through the option
5674 `org-export-html-style'.  If you want to use a file-local style, you
5675 may use file variables, best wrapped into a COMMENT section at the end
5676 of the outline tree.  For example(1):
5678      * COMMENT html style specifications
5680      # Local Variables:
5681      # org-export-html-style: "   <style type=\"text/css\">
5682      #       p {font-weight: normal; color: gray; }
5683      #       h1 {color: black; }
5684      #   </style>"
5685      # End:
5687    Remember to execute `M-x normal-mode' after changing this to make
5688 the new style visible to Emacs.  This command restarts org-mode for the
5689 current buffer and forces Emacs to re-evaluate the local variables
5690 section in the buffer.
5692    ---------- Footnotes ----------
5694    (1) Under Emacs 21, the continuation lines for a variable value
5695 should have no `#' at the start of the line.
5697 \x1f
5698 File: org,  Node: LaTeX export,  Next: XOXO export,  Prev: HTML export,  Up: Exporting
5700 12.3 LaTeX export
5701 =================
5703 Org-mode contains a LaTeX exporter written by Bastien Guerry.
5705 * Menu:
5707 * LaTeX export commands::       How to invoke LaTeX export
5708 * Quoting LaTeX code::          Incorporating literal LaTeX code
5710 \x1f
5711 File: org,  Node: LaTeX export commands,  Next: Quoting LaTeX code,  Prev: LaTeX export,  Up: LaTeX export
5713 12.3.1 LaTeX export commands
5714 ----------------------------
5716 `C-c C-e l'
5717      Export as LaTeX file `myfile.tex'.  
5719 `C-c C-e L'
5720      Export to a temporary buffer, do not create a file.  
5722 `C-c C-e v l'
5724 `C-c C-e v L'
5725      Export only the visible part of the document.
5727 `M-x org-export-region-as-latex'
5728      Convert the region to LaTeX under the assumption that it was
5729      org-mode syntax before.  This is a global command that can be
5730      invoked in any buffer.
5732 `M-x org-replace-region-by-latex'
5733      Replace the active region (assumed to be in Org-mode syntax) by
5734      LaTeX code.
5736    In the exported version, the first 3 outline levels will become
5737 headlines, defining a general document structure.  Additional levels
5738 will be exported as description lists.  The exporter can ignore them or
5739 convert them to a custom string depending on `org-latex-low-levels'.
5741    If you want that transition to occur at a different level, specify it
5742 with a prefix argument. For example,
5744      C-2 C-c C-e l
5746 creates two levels of headings and does the rest as items.
5748 \x1f
5749 File: org,  Node: Quoting LaTeX code,  Prev: LaTeX export commands,  Up: LaTeX export
5751 12.3.2 Quoting LaTeX code
5752 -------------------------
5754 Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
5755 inserted into the LaTeX file.  Forthermore, you can add special code
5756 that should only be present in LaTeX export with the following
5757 constructs:
5759      #+LaTeX: Literal LaTeX code for export
5763      #+BEGIN_LaTeX
5764      All lines between these markers are exported literally
5765      #+END_LaTeX
5767 \x1f
5768 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: LaTeX export,  Up: Exporting
5770 12.4 XOXO export
5771 ================
5773 Org-mode contains an exporter that produces XOXO-style output.
5774 Currently, this exporter only handles the general outline structure and
5775 does not interpret any additional Org-mode features.
5777 `C-c C-e x'
5778      Export as XOXO file `myfile.html'.  
5780 `C-c C-e v x'
5781      Export only the visible part of the document.
5783 \x1f
5784 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
5786 12.5 iCalendar export
5787 =====================
5789 Some people like to use Org-mode for keeping track of projects, but
5790 still prefer a standard calendar application for anniversaries and
5791 appointments.  In this case it can be useful to have deadlines and
5792 other time-stamped items in Org-mode files show up in the calendar
5793 application.  Org-mode can export calendar information in the standard
5794 iCalendar format.  If you also want to have TODO entries included in the
5795 export, configure the variable `org-icalendar-include-todo'.
5797 `C-c C-e i'
5798      Create iCalendar entries for the current file and store them in
5799      the same directory, using a file extension `.ics'.  
5801 `C-c C-e I'
5802      Like `C-c C-e i', but do this for all files in `org-agenda-files'.
5803      For each of these files, a separate iCalendar file will be
5804      written.  
5806 `C-c C-e c'
5807      Create a single large iCalendar file from all files in
5808      `org-agenda-files' and write it to the file given by
5809      `org-combined-agenda-icalendar-file'.
5811    The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
5812 the selected entries have them.  If not, the summary will be derived
5813 from the headline, and the description from the body (limited to
5814 `org-icalendar-include-body' characters).
5816    How this calendar is best read and updated, depends on the
5817 application you are using.  The FAQ covers this issue.
5819 \x1f
5820 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
5822 12.6 Text interpretation by the exporter
5823 ========================================
5825 The exporter backends interpret additional structure in the Org-mode
5826 file in order to produce better output.
5828 * Menu:
5830 * Comment lines::               Some lines will not be exported
5831 * Initial text::                Text before the first headline
5832 * Footnotes::                   Numbers like [1]
5833 * Enhancing text::              Subscripts, symbols and more
5834 * Export options::              How to influence the export settings
5836 \x1f
5837 File: org,  Node: Comment lines,  Next: Initial text,  Prev: Text interpretation,  Up: Text interpretation
5839 12.6.1 Comment lines
5840 --------------------
5842 Lines starting with `#' in column zero are treated as comments and will
5843 never be exported.  Also entire subtrees starting with the word
5844 `COMMENT' will never be exported.
5846 `C-c ;'
5847      Toggle the COMMENT keyword at the beginning of an entry.
5849 \x1f
5850 File: org,  Node: Initial text,  Next: Footnotes,  Prev: Comment lines,  Up: Text interpretation
5852 12.6.2 Text before the first headline
5853 -------------------------------------
5855 Org-mode normally ignores any text before the first headline when
5856 exporting, leaving this region for internal links to speed up navigation
5857 etc.  However, in publishing-oriented files, you might want to have some
5858 text before the first headline, like a small introduction, special HTML
5859 code with a navigation bar, etc.  You can ask to have this part of the
5860 file exported as well by setting the variable
5861 `org-export-skip-text-before-1st-heading' to `nil'.  On a per-file
5862 basis, you can get the same effect with
5864      #+OPTIONS: skip:nil
5866    The text before the first headline will be fully processed (*note
5867 Enhancing text::), and the first non-comment line becomes the title of
5868 the exported document.  If you need to include literal HTML, use the
5869 special constructs described in *Note Quoting HTML tags::.  The table
5870 of contents is normally inserted directly before the first headline of
5871 the file.  If you would like to get it to a different location, insert
5872 the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
5873 location.
5875    Finally, if you want to use the space before the first headline for
5876 internal purposes, but _still_ want to place something before the first
5877 headline when exporting the file, you can use the `#+TEXT' construct:
5879      #+OPTIONS: skip:t
5880      #+TEXT: This text will go before the *first* headline.
5881      #+TEXT: We place the table of contents here:
5882      #+TEXT: [TABLE-OF-CONTENTS]
5883      #+TEXT: This goes between the table of contents and the first headline
5885 \x1f
5886 File: org,  Node: Footnotes,  Next: Enhancing text,  Prev: Initial text,  Up: Text interpretation
5888 12.6.3 Footnotes
5889 ----------------
5891 Numbers in square brackets are treated as footnotes, so that you can use
5892 the Emacs package `footnote.el' to create footnotes.  For example:
5894      The org-mode homepage[1] clearly needs help from
5895      a good web designer.
5897      [1] The link is: http://orgmode.org
5899 Note that the `footnote' package uses `C-c !' to invoke its commands.
5900 This binding conflicts with the org-mode command for inserting inactive
5901 time stamps.  You could use the variable `footnote-prefix' to switch
5902 footnotes commands to another key.  Or, if you are too used to this
5903 binding, you could use `org-replace-disputed-keys' and
5904 `org-disputed-keys' to change the settings in Org-mode.
5906 \x1f
5907 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Footnotes,  Up: Text interpretation
5909 12.6.4 Enhancing text for export
5910 --------------------------------
5912 Some of the export backends of Org-mode allow for sophisticated text
5913 formatting, this is true in particular for the HTML and LaTeX backends.
5914 Org-mode has a number of typing conventions that allow to produce a
5915 richly formatted output.
5917    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
5918      enumerator will be recognized and transformed if the backend
5919      supports lists.  See *Note Plain lists::.
5921    * You can make words *bold*, /italic/, _underlined_, `=code=', and
5922      even `+strikethrough+'(1).
5924    * A line consisting of only dashes, and at least 5 of them, will be
5925      exported as a horizontal line (`<hr/>' in HTML).
5927    * Many TeX macros and entire LaTeX fragments are converted into HTML
5928      entities or images (*note Embedded LaTeX::).
5930    * Tables are transformed into native tables under the exporter, if
5931      the export backend supports this. Data fields before the first
5932      horizontal separator line will be formatted as table header fields.
5934    * If a headline starts with the word `QUOTE', the text below the
5935      headline will be typeset as fixed-width, to allow quoting of
5936      computer codes etc.  Lines starting with `:' are also typeset in
5937      fixed-width font.
5938     `C-c :'
5939           Toggle fixed-width for entry (QUOTE) or region, see below.
5941    * A double backslash _at the end of a line_ enforces a line break at
5942      this position.
5944    If these conversions conflict with your habits of typing ASCII text,
5945 they can all be turned off with corresponding variables.  See the
5946 customization group `org-export-general', and the following section
5947 which explains how to set export options with special lines in a buffer.
5949    ---------- Footnotes ----------
5951    (1) but remember that strikethrough is typographically evil and
5952 should never be used.
5954 \x1f
5955 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
5957 12.6.5 Export options
5958 ---------------------
5960 The exporter recognizes special lines in the buffer which provide
5961 additional information.  These lines may be put anywhere in the file.
5962 The whole set of lines can be inserted into the buffer with `C-c C-e
5963 t'.  For individual lines, a good way to make sure the keyword is
5964 correct is to type `#+' and then use `M-<TAB>' completion (*note
5965 Completion::).
5967 `C-c C-e t'
5968      Insert template with export options, see example below.
5970      #+TITLE:     the title to be shown (default is the buffer name)
5971      #+AUTHOR:    the author (default taken from `user-full-name')
5972      #+DATE:      A date, fixed, of a format string for `format-time-string'
5973      #+EMAIL:     his/her email address (default from `user-mail-address')
5974      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
5975      #+TEXT:      Some descriptive text to be inserted at the beginning.
5976      #+TEXT:      Several lines may be given.
5977      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
5979 The OPTIONS line is a compact form to specify export settings.  Here
5980 you can: 
5981      H:         set the number of headline levels for export
5982      num:       turn on/off section-numbers
5983      toc:       turn on/off table of contents, or set level limit (integer)
5984      \n:        turn on/off linebreak-preservation
5985      @:         turn on/off quoted HTML tags
5986      ::         turn on/off fixed-width sections
5987      |:         turn on/off tables
5988      ^:         turn on/off TeX-like syntax for sub- and superscripts.  If
5989                 you write "^:{}", `a_{b}' will be interpreted, but
5990                 the simple `a_b' will be left as it is.
5991      f:         turn on/off foototes like this[1].
5992      *:         turn on/off emphasized text (bold, italic, underlined)
5993      TeX:       turn on/off simple TeX macros in plain text
5994      LaTeX:     turn on/off LaTeX fragments
5995      skip:      turn on/off skipping the text before the first heading
5996      author:    turn on/off inclusion of author name/email into exported file
5997      timestamp: turn on/off inclusion creation time into exported file
5998      d:         turn on/off inclusion of drawers
6000    These options take effect in both the HTML and LaTeX export, except
6001 for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
6002 LaTeX export.
6004 \x1f
6005 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
6007 13 Publishing
6008 *************
6010 Org-mode includes(1) a publishing management system that allows you to
6011 configure automatic HTML conversion of _projects_ composed of
6012 interlinked org files.  This system is called _org-publish_.  You can
6013 also configure org-publish to automatically upload your exported HTML
6014 pages and related attachments, such as images and source code files, to
6015 a web server. Org-publish turns org-mode into a web-site authoring tool.
6017    You can also use Org-publish to convert files into LaTeX, or even
6018 combine HTML and LaTeX conversion so that files are available in both
6019 formats on the server(2).
6021    Org-publish has been contributed to Org-mode by David O'Toole.
6023 * Menu:
6025 * Configuration::               Defining projects
6026 * Sample configuration::        Example projects
6027 * Triggering publication::      Publication commands
6029    ---------- Footnotes ----------
6031    (1) `org-publish.el' is not distributed with Emacs 21, if you are
6032 still using Emacs 21, you need you need to download this file
6033 separately.
6035    (2) Since LaTeX files on a server are not that helpful, you surely
6036 want to perform further conversion on them - e.g. convert them to `PDF'
6037 format.
6039 \x1f
6040 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
6042 13.1 Configuration
6043 ==================
6045 Publishing needs significant configuration to specify files, destination
6046 and many other properties of a project.
6048 * Menu:
6050 * Project alist::               The central configuration variable
6051 * Sources and destinations::    From here to there
6052 * Selecting files::             What files are part of the project?
6053 * Publishing action::           Setting the function doing the publishing
6054 * Publishing options::          Tweaking HTML export
6055 * Publishing links::            Which links keep working after publishing?
6056 * Project page index::          Publishing a list of project files
6058 \x1f
6059 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
6061 13.1.1 The variable `org-publish-project-alist'
6062 -----------------------------------------------
6064 Org-publish is configured almost entirely through setting the value of
6065 one variable, called `org-publish-project-alist'.  Each element of the
6066 list configures one project, and may be in one of the two following
6067 forms:
6069      ("project-name"  :property value :property value ...)
6071      or
6073      ("project-name"  :components ("project-name" "project-name" ...))
6075    In both cases, projects are configured by specifying property values.
6076 A project defines the set of files that will be published, as well as
6077 the publishing configuration to use when publishing those files.  When
6078 a project takes the second form listed above, the individual members of
6079 the "components" property are taken to be components of the project,
6080 which group together files requiring different publishing options. When
6081 you publish such a "meta-project" all the components will also publish.
6083 \x1f
6084 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
6086 13.1.2 Sources and destinations for files
6087 -----------------------------------------
6089 Most properties are optional, but some should always be set. In
6090 particular, org-publish needs to know where to look for source files,
6091 and where to put published files.
6093 `:base-directory'      Directory containing publishing source files
6094 `:publishing-directory'Directory (possibly remote) where output files
6095                        will be published.
6096 `:preparation-function'Function called before starting publishing
6097                        process, for example to run `make' for updating
6098                        files to be published.
6100 \x1f
6101 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
6103 13.1.3 Selecting files
6104 ----------------------
6106 By default, all files with extension `.org' in the base directory are
6107 considered part of the project.  This can be modified by setting the
6108 properties
6109 `:base-extension'  Extension (without the dot!) of source files.  This
6110                    actually is a regular expression.
6111 `:exclude'         Regular expression to match file names that should
6112                    not be published, even though they have been selected
6113                    on the basis of their extension.
6114 `:include'         List of files to be included regardless of
6115                    `:base-extension' and `:exclude'.
6117 \x1f
6118 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
6120 13.1.4 Publishing Action
6121 ------------------------
6123 Publishing means that a file is copied to the destination directory and
6124 possibly transformed in the process.  The default transformation is to
6125 export Org-mode files as HTML files, and this is done by the function
6126 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
6127 export::). But you also can publish your files in LaTeX by using the
6128 function `org-publish-org-to-latex' instead. Other files like images
6129 only need to be copied to the publishing destination. For non-Org-mode
6130 files, you need to specify the publishing function.
6132 `:publishing-function' Function executing the publication of a file.
6133                        This may also be a list of functions, which will
6134                        all be called in turn.
6136    The function must accept two arguments: a property list containing at
6137 least a `:publishing-directory' property, and the name of the file to
6138 be published.  It should take the specified file, make the necessary
6139 transformation (if any) and place the result into the destination
6140 folder.  You can write your own publishing function, but `org-publish'
6141 provides one for attachments (files that only need to be copied):
6142 `org-publish-attachment'.
6144 \x1f
6145 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
6147 13.1.5 Options for the HTML/LaTeX exporters
6148 -------------------------------------------
6150 The property list can be used to set many export options for the HTML
6151 and LaTeX exporters.  In most cases, these properties correspond to user
6152 variables in Org-mode.  The table below lists these properties along
6153 with the variable they belong to.  See the documentation string for the
6154 respective variable for details.
6156 `:language'            `org-export-default-language'
6157 `:headline-levels'     `org-export-headline-levels'
6158 `:section-numbers'     `org-export-with-section-numbers'
6159 `:table-of-contents'   `org-export-with-toc'
6160 `:archived-trees'      `org-export-with-archived-trees'
6161 `:emphasize'           `org-export-with-emphasize'
6162 `:sub-superscript'     `org-export-with-sub-superscripts'
6163 `:TeX-macros'          `org-export-with-TeX-macros'
6164 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
6165 `:fixed-width'         `org-export-with-fixed-width'
6166 `:timestamps'          `org-export-with-timestamps'
6167  .                     
6168 `:tags'                `org-export-with-tags'
6169  .                     
6170 `:tables'              `org-export-with-tables'
6171 `:table-auto-headline' `org-export-highlight-first-table-line'
6172 `:style'               `org-export-html-style'
6173 `:convert-org-links'   `org-export-html-link-org-files-as-html'
6174 `:inline-images'       `org-export-html-inline-images'
6175 `:expand-quoted-html'  `org-export-html-expand'
6176 `:timestamp'           `org-export-html-with-timestamp'
6177 `:publishing-directory'`org-export-publishing-directory'
6178 `:preamble'            `org-export-html-preamble'
6179 `:postamble'           `org-export-html-postamble'
6180 `:auto-preamble'       `org-export-html-auto-preamble'
6181 `:auto-postamble'      `org-export-html-auto-postamble'
6182 `:author'              `user-full-name'
6183 `:email'               `user-mail-address'
6185    Most of the `org-export-with-*' variables have the same effect in
6186 both HTML and LaTeX exporters, except for `:TeX-macros' and
6187 `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
6189    When a property is given a value in org-publish-project-alist, its
6190 setting overrides the value of the corresponding user variable (if any)
6191 during publishing.  Options set within a file (*note Export options::),
6192 however, override everything.
6194 \x1f
6195 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
6197 13.1.6 Links between published files
6198 ------------------------------------
6200 To create a link from one Org-mode file to another, you would use
6201 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
6202 (*note Hyperlinks::).  Upon publishing this link becomes a link to
6203 `foo.html'.  In this way, you can interlink the pages of your "org web"
6204 project and the links will work as expected when you publish them to
6205 HTML.
6207    You may also link to related files, such as images. Provided you are
6208 careful with relative pathnames, and provided you have also configured
6209 org-publish to upload the related files, these links will work too.
6210 *Note Complex example:: for an example of this usage.
6212    Sometime an Org-mode file to be published may contain links that are
6213 only valid in your production environment, but not in the publishing
6214 location.  In this case, use the property
6216 `:link-validation-function'   Function to validate links
6218 to define a function for checking link validity.  This function must
6219 accept two arguments, the file name and a directory relative to which
6220 the file name is interpreted in the production environment.  If this
6221 function returns `nil', then the HTML generator will only insert a
6222 description into the HTML file, but no link.  One option for this
6223 function is `org-publish-validate-link' which checks if the given file
6224 is part of any project in `org-publish-project-alist'.
6226 \x1f
6227 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
6229 13.1.7 Project page index
6230 -------------------------
6232 The following properties may be used to control publishing of an index
6233 of files or summary page for a given project.
6235 `:auto-index'      When non-nil, publish an index during
6236                    org-publish-current-project or org-publish-all.
6237 `:index-filename'  Filename for output of index. Defaults to `index.org'
6238                    (which becomes `index.html').
6239 `:index-title'     Title of index page. Defaults to name of file.
6240 `:index-function'  Plugin function to use for generation of index.
6241                    Defaults to `org-publish-org-index', which generates
6242                    a plain list of links to all files in the project.
6244 \x1f
6245 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
6247 13.2 Sample configuration
6248 =========================
6250 Below we provide two example configurations.  The first one is a simple
6251 project publishing only a set of Org-mode files.  The second example is
6252 more complex, with a multi-component project.
6254 * Menu:
6256 * Simple example::              One-component publishing
6257 * Complex example::             A multi-component publishing example
6259 \x1f
6260 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
6262 13.2.1 Example: simple publishing configuration
6263 -----------------------------------------------
6265 This example publishes a set of Org-mode files to the `public_html'
6266 directory on the local machine.
6268      (setq org-publish-project-alist
6269            '(("org"
6270               :base-directory "~/org/"
6271               :publishing-directory "~/public_html"
6272               :section-numbers nil
6273               :table-of-contents nil
6274               :style "<link rel=stylesheet
6275                      href=\"../other/mystyle.css\"
6276                      type=\"text/css\">")))
6278 \x1f
6279 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
6281 13.2.2 Example: complex publishing configuration
6282 ------------------------------------------------
6284 This more complicated example publishes an entire website, including
6285 org files converted to HTML, image files, emacs lisp source code, and
6286 stylesheets. The publishing-directory is remote and private files are
6287 excluded.
6289    To ensure that links are preserved, care should be taken to replicate
6290 your directory structure on the web server, and to use relative file
6291 paths. For example, if your org files are kept in `~/org' and your
6292 publishable images in `~/images', you'd link to an image with
6293      file:../images/myimage.png
6294    On the web server, the relative path to the image should be the
6295 same. You can accomplish this by setting up an "images" folder in the
6296 right place on the webserver, and publishing images to it.
6298      (setq org-publish-project-alist
6299            '(("orgfiles"
6300                :base-directory "~/org/"
6301                :base-extension "org"
6302                :publishing-directory "/ssh:user@host:~/html/notebook/"
6303                :publishing-function org-publish-org-to-html
6304                :exclude "PrivatePage.org"   ;; regexp
6305                :headline-levels 3
6306                :section-numbers nil
6307                :table-of-contents nil
6308                :style "<link rel=stylesheet
6309                        href=\"../other/mystyle.css\" type=\"text/css\">"
6310                :auto-preamble t
6311                :auto-postamble nil)
6313               ("images"
6314                :base-directory "~/images/"
6315                :base-extension "jpg\\|gif\\|png"
6316                :publishing-directory "/ssh:user@host:~/html/images/"
6317                :publishing-function org-publish-attachment)
6319               ("other"
6320                :base-directory "~/other/"
6321                :base-extension "css\\|el"
6322                :publishing-directory "/ssh:user@host:~/html/other/"
6323                :publishing-function org-publish-attachment)
6324               ("website" :components ("orgfiles" "images" "other"))))
6326 \x1f
6327 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
6329 13.3 Triggering publication
6330 ===========================
6332 Once org-publish is properly configured, you can publish with the
6333 following functions:
6335 `C-c C-e C'
6336      Prompt for a specific project and publish all files that belong to
6337      it.
6339 `C-c C-e P'
6340      Publish the project containing the current file.
6342 `C-c C-e F'
6343      Publish only the current file.
6345 `C-c C-e A'
6346      Publish all projects.
6348    Org uses timestamps to track when a file has changed. The above
6349 functions normally only publish changed files. You can override this and
6350 force publishing of all files by giving a prefix argument.
6352 \x1f
6353 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
6355 14 Miscellaneous
6356 ****************
6358 * Menu:
6360 * Completion::                  M-TAB knows what you need
6361 * Customization::               Adapting Org-mode to your taste
6362 * In-buffer settings::          Overview of the #+KEYWORDS
6363 * The very busy C-c C-c key::   When in doubt, press C-c C-c
6364 * Clean view::                  Getting rid of leading stars in the outline
6365 * TTY keys::                    Using Org-mode on a tty
6366 * Interaction::                 Other Emacs packages
6367 * Bugs::                        Things which do not work perfectly
6369 \x1f
6370 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
6372 14.1 Completion
6373 ===============
6375 Org-mode supports in-buffer completion.  This type of completion does
6376 not make use of the minibuffer.  You simply type a few letters into the
6377 buffer and use the key to complete text right there.
6379 `M-<TAB>'
6380      Complete word at point
6381         * At the beginning of a headline, complete TODO keywords.
6383         * After `\', complete TeX symbols supported by the exporter.
6385         * After `*', complete headlines in the current buffer so that
6386           they can be used in search links like `[[*find this
6387           headline]]'.
6389         * After `:' in a headline, complete tags.  The list of tags is
6390           taken from the variable `org-tag-alist' (possibly set through
6391           the `#+TAGS' in-buffer option, *note Setting tags::), or it
6392           is created dynamically from all tags used in the current
6393           buffer.
6395         * After `:' and not in a headline, complete property keys.  The
6396           list of keys is constructed dynamically from all keys used in
6397           the current buffer.
6399         * After `[', complete link abbreviations (*note Link
6400           abbreviations::).
6402         * After `#+', complete the special keywords like `TYP_TODO' or
6403           `OPTIONS' which set file-specific options for Org-mode.  When
6404           the option keyword is already complete, pressing `M-<TAB>'
6405           again will insert example settings for this keyword.
6407         * In the line after `#+STARTUP: ', complete startup keywords,
6408           i.e. valid keys for this line.
6410         * Elsewhere, complete dictionary words using ispell.
6412 \x1f
6413 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
6415 14.2 Customization
6416 ==================
6418 There are more than 180 variables that can be used to customize
6419 Org-mode.  For the sake of compactness of the manual, I am not
6420 describing the variables here.  A structured overview of customization
6421 variables is available with `M-x org-customize'.  Or select `Browse Org
6422 Group' from the `Org->Customization' menu.  Many settings can also be
6423 activated on a per-file basis, by putting special lines into the buffer
6424 (*note In-buffer settings::).
6426 \x1f
6427 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
6429 14.3 Summary of in-buffer settings
6430 ==================================
6432 Org-mode uses special lines in the buffer to define settings on a
6433 per-file basis.  These lines start with a `#+' followed by a keyword, a
6434 colon, and then individual words defining a setting.  Several setting
6435 words can be in the same line, but you can also have multiple lines for
6436 the keyword.  While these settings are described throughout the manual,
6437 here is a summary.  After changing any of those lines in the buffer,
6438 press `C-c C-c' with the cursor still in the line to activate the
6439 changes immediately.  Otherwise they become effective only when the
6440 file is visited again in a new Emacs session.
6442 `#+ARCHIVE: %s_done::'
6443      This line sets the archive location for the agenda file.  It
6444      applies for all subsequent lines until the next `#+ARCHIVE' line,
6445      or the end of the file.  The first such line also applies to any
6446      entries before it.  The corresponding variable is
6447      `org-archive-location'.
6449 `#+CATEGORY:'
6450      This line sets the category for the agenda file.  The category
6451      applies for all subsequent lines until the next `#+CATEGORY' line,
6452      or the end of the file.  The first such line also applies to any
6453      entries before it.
6455 `#+COLUMNS: %25ITEM .....'
6456      Set the default format for columns view.  This format applies when
6457      columns view is invoked in location where no COLUMNS property
6458      applies.
6460 `#+CONSTANTS: name1=value1 ...'
6461      Set file-local values for constants to be used in table formulas.
6462      This line set the local variable
6463      `org-table-formula-constants-local'.  The global version of this
6464      variable is `org-table-formula-constants'.
6466 `#+DRAWERS: NAME1 .....'
6467      Set the file-local set of drawers.  The corresponding global
6468      variable is `org-drawers'.
6470 `#+LINK:  linkword replace'
6471      These lines (several are allowed) specify link abbreviations.
6472      *Note Link abbreviations::.  The corresponding variable is
6473      `org-link-abbrev-alist'.
6475 `#+PRIORITIES: highest lowest default'
6476      This line sets the limits and the default for the priorities.  All
6477      three must be either letters A-Z or numbers 0-9.  The highest
6478      priority must have a lower ASCII number that the lowest priority.
6480 `#+PROPERTY: Property_Name Value'
6481      This line sets a default inheritance value for entries in the
6482      current buffer, most useful for specifying the allowed values of a
6483      property.
6485 `#+STARTUP:'
6486      This line sets options to be used at startup of Org-mode, when an
6487      Org-mode file is being visited.  The first set of options deals
6488      with the initial visibility of the outline tree.  The
6489      corresponding variable for global default settings is
6490      `org-startup-folded', with a default value `t', which means
6491      `overview'.  
6492           overview   top-level headlines only
6493           content    all headlines
6494           showall    no folding at all, show everything
6495      Then there are options for aligning tables upon visiting a file.
6496      This is useful in files containing narrowed table columns.  The
6497      corresponding variable is `org-startup-align-all-tables', with a
6498      default value `nil'.  
6499           align      align all tables
6500           noalign    don't align tables on startup
6501      Logging TODO state changes and clock intervals (variables
6502      `org-log-done' and `org-log-repeat') can be configured using these
6503      options.  
6504           logging          record a timestamp when an item is marked DONE
6505           nologging        don't record when items are marked DONE
6506           lognotedone      record timestamp and a note when DONE
6507           lognotestate     record timestamp and a note when TODO state changes
6508           logrepeat        record a note when re-instating a repeating item
6509           nologrepeat      do not record when re-instating repeating item
6510           lognoteclock-out record timestamp and a note when clocking out
6511      Here are the options for hiding leading stars in outline headings.
6512      The corresponding variables are `org-hide-leading-stars' and
6513      `org-odd-levels-only', both with a default setting `nil' (meaning
6514      `showstars' and `oddeven').  
6515           hidestars  make all but one of the stars starting a headline invisible.
6516           showstars  show all stars starting a headline
6517           odd        allow only odd outline levels (1,3,...)
6518           oddeven    allow all outline levels
6519      To turn on custom format overlays over time stamps (variables
6520      `org-put-time-stamp-overlays' and
6521      `org-time-stamp-overlay-formats'), use 
6522           customtime overlay custom time format
6523      The following options influence the table spreadsheet (variable
6524      `constants-unit-system').  
6525           constcgs   `constants.el' should use the c-g-s unit system
6526           constSI    `constants.el' should use the SI unit system
6528 `#+TAGS:  TAG1(c1) TAG2(c2)'
6529      These lines (several such lines are allowed) specify the legal
6530      tags in this file, and (potentially) the corresponding _fast tag
6531      selection_ keys.  The corresponding variable is `org-tag-alist'.
6533 `#+TBLFM:'
6534      This line contains the formulas for the table directly above the
6535      line.
6537 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
6538      These lines provide settings for exporting files.  For more
6539      details see *Note Export options::.
6541 `#+SEQ_TODO:   #+TYP_TODO:'
6542      These lines set the TODO keywords and their interpretation in the
6543      current file.  The corresponding variables are `org-todo-keywords'
6544      and `org-todo-interpretation'.
6546 \x1f
6547 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
6549 14.4 The very busy C-c C-c key
6550 ==============================
6552 The key `C-c C-c' has many purposes in org-mode, which are all
6553 mentioned scattered throughout this manual.  One specific function of
6554 this key is to add _tags_ to a headline (*note Tags::).  In many other
6555 circumstances it means something like _Hey Org-mode, look here and
6556 update according to what you see here_.  Here is a summary of what this
6557 means in different contexts.
6559    - If there are highlights in the buffer from the creation of a sparse
6560      tree, or from clock display, remove these highlights.
6562    - If the cursor is in one of the special `#+KEYWORD' lines, this
6563      triggers scanning the buffer for these lines and updating the
6564      information.
6566    - If the cursor is inside a table, realign the table.  This command
6567      works even if the automatic table editor has been turned off.
6569    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
6570      entire table.
6572    - If the cursor is inside a table created by the `table.el' package,
6573      activate that table.
6575    - If the current buffer is a remember buffer, close the note and
6576      file it.  With a prefix argument, file it, without further
6577      interaction, to the default location.
6579    - If the cursor is on a `<<<target>>>', update radio targets and
6580      corresponding links in this buffer.
6582    - If the cursor is in a property line or at the start or end of a
6583      property drawer, offer property commands.
6585    - If the cursor is in a plain list item with a checkbox, toggle the
6586      status of the checkbox.
6588    - If the cursor is on a numbered item in a plain list, renumber the
6589      ordered list.
6591    - If the cursor is on the `#+BEGIN' line of a dynamical block, the
6592      block is updated.
6594 \x1f
6595 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
6597 14.5 A cleaner outline view
6598 ===========================
6600 Some people find it noisy and distracting that the Org-mode headlines
6601 are starting with a potentially large number of stars.  For example the
6602 tree from *Note Headlines:::
6604      * Top level headline
6605      ** Second level
6606      *** 3rd level
6607          some text
6608      *** 3rd level
6609          more text
6610      * Another top level headline
6612 Unfortunately this is deeply ingrained into the code of Org-mode and
6613 cannot be easily changed.  You can, however, modify the display in such
6614 a way that all leading stars become invisible and the outline more easy
6615 to read.  To do this, customize the variable `org-hide-leading-stars'
6616 like this:
6618      (setq org-hide-leading-stars t)
6620 or change this on a per-file basis with one of the lines (anywhere in
6621 the buffer)
6623      #+STARTUP: showstars
6624      #+STARTUP: hidestars
6626 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
6627 modifications.
6629    With stars hidden, the tree becomes:
6631      * Top level headline
6632       * Second level
6633        * 3rd level
6634          some text
6635        * 3rd level
6636          more text
6637      * Another top level headline
6639 Note that the leading stars are not truly replaced by whitespace, they
6640 are only fontified with the face `org-hide' that uses the background
6641 color as font color.  If you are not using either white or black
6642 background, you may have to customize this face to get the wanted
6643 effect.  Another possibility is to set this font such that the extra
6644 stars are almost invisible, for example using the color `grey90' on a
6645 white background.
6647    Things become cleaner still if you skip all the even levels and use
6648 only odd levels 1, 3, 5..., effectively adding two stars to go from one
6649 outline level to the next:
6651      * Top level headline
6652        * Second level
6653          * 3rd level
6654            some text
6655          * 3rd level
6656            more text
6657      * Another top level headline
6659 In order to make the structure editing and export commands handle this
6660 convention correctly, use
6662      (setq org-odd-levels-only t)
6664 or set this on a per-file basis with one of the following lines (don't
6665 forget to press `C-c C-c' with the cursor in the startup line to
6666 activate changes immediately).
6668      #+STARTUP: odd
6669      #+STARTUP: oddeven
6671    You can convert an Org-mode file from single-star-per-level to the
6672 double-star-per-level convention with `M-x org-convert-to-odd-levels
6673 RET' in that file.  The reverse operation is `M-x
6674 org-convert-to-oddeven-levels'.
6676 \x1f
6677 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
6679 14.6 Using org-mode on a tty
6680 ============================
6682 Org-mode uses a number of keys that are not accessible on a tty.  This
6683 applies to most special keys like cursor keys, <TAB> and <RET>, when
6684 these are combined with modifier keys like <Meta> and/or <Shift>.
6685 Org-mode uses these bindings because it needs to provide keys for a
6686 large number of commands, and because these keys appeared particularly
6687 easy to remember.  In order to still be able to access the core
6688 functionality of Org-mode on a tty, alternative bindings are provided.
6689 Here is a complete list of these bindings, which are obviously more
6690 cumbersome to use.  Note that sometimes a work-around can be better.
6691 For example changing a time stamp is really only fun with `S-<cursor>'
6692 keys.  On a tty you would rather use `C-c .'  to re-insert the
6693 timestamp.
6695 Default     Alternative 1  Alternative 2
6696 `S-<TAB>'   `C-u <TAB>'    
6697 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
6698 `M-S-<left>'`C-c C-x L'    
6699 `M-<right>' `C-c C-x r'    `<Esc>
6700                            <right>'
6701 `M-S-<right>'`C-c C-x R'    
6702 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
6703 `M-S-<up>'  `C-c C-x U'    
6704 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
6705 `M-S-<down>'`C-c C-x D'    
6706 `S-<RET>'   `C-c C-x c'    
6707 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
6708 `M-S-<RET>' `C-c C-x M'    
6709 `S-<left>'  `C-c <left>'   
6710 `S-<right>' `C-c <right>'  
6711 `S-<up>'    `C-c <up>'     
6712 `S-<down>'  `C-c <down>'   
6713 `C-S-<left>'`C-c C-x       
6714             <left>'        
6715 `C-S-<right>'`C-c C-x       
6716             <right>'       
6718 \x1f
6719 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
6721 14.7 Interaction with other packages
6722 ====================================
6724 Org-mode lives in the world of GNU Emacs and interacts in various ways
6725 with other code out there.
6727 * Menu:
6729 * Cooperation::                 Packages Org-mode cooperates with
6730 * Conflicts::                   Packages that lead to conflicts
6732 \x1f
6733 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
6735 14.7.1 Packages that Org-mode cooperates with
6736 ---------------------------------------------
6738 `calc.el' by Dave Gillespie
6739      Org-mode uses the calc package for implementing spreadsheet
6740      functionality in its tables (*note The spreadsheet::).  Org-mode
6741      checks for the availability of calc by looking for the function
6742      `calc-eval' which should be autoloaded in your setup if calc has
6743      been installed properly.  As of Emacs 22, calc is part of the Emacs
6744      distribution.  Another possibility for interaction between the two
6745      packages is using calc for embedded calculations. *Note Embedded
6746      Mode: (calc)Embedded Mode.  
6748 `constants.el' by Carsten Dominik
6749      In a table formula (*note The spreadsheet::), it is possible to use
6750      names for natural constants or units.  Instead of defining your own
6751      constants in the variable `org-table-formula-constants', install
6752      the `constants' package which defines a large number of constants
6753      and units, and lets you use unit prefixes like `M' for `Mega' etc.
6754      You will need version 2.0 of this package, available at
6755      `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
6756      function `constants-get', which has to be autoloaded in your
6757      setup.  See the installation instructions in the file
6758      `constants.el'.
6760 `cdlatex.el' by Carsten Dominik
6761      Org-mode can make use of the cdlatex package to efficiently enter
6762      LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
6764 `remember.el' by John Wiegley
6765      Org mode cooperates with remember, see *Note Remember::.
6766      `Remember.el' is not part of Emacs, find it on the web.  
6768 `table.el' by Takaaki Ota
6769      Complex ASCII tables with automatic line wrapping, column- and
6770      row-spanning, and alignment can be created using the Emacs table
6771      package by Takaaki Ota (`http://sourceforge.net/projects/table',
6772      and also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in
6773      such a table, Org-mode will call `table-recognize-table' and move
6774      the cursor into the table.  Inside a table, the keymap of Org-mode
6775      is inactive.  In order to execute Org-mode-related commands, leave
6776      the table.
6778     `C-c C-c'
6779           Recognize `table.el' table.  Works when the cursor is in a
6780           table.el table.  
6782     `C-c ~'
6783           Insert a table.el table.  If there is already a table at
6784           point, this command converts it between the table.el format
6785           and the Org-mode format.  See the documentation string of the
6786           command `org-convert-table' for the restrictions under which
6787           this is possible.
6788      `table.el' is part of Emacs 22.  
6790 `footnote.el' by Steven L. Baur
6791      Org-mode recognizes numerical footnotes as provided by this package
6792      (*note Footnotes::).
6794 \x1f
6795 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
6797 14.7.2 Packages that lead to conflicts with Org-mode
6798 ----------------------------------------------------
6800 `allout.el' by Ken Manheimer
6801      Startup of Org-mode may fail with the error message
6802      `(wrong-type-argument keymapp nil)' when there is an outdated
6803      version `allout.el' on the load path, for example the version
6804      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
6805      will disappear.  If for some reason you cannot do this, make sure
6806      that org.el is loaded _before_ `allout.el', for example by putting
6807      `(require 'org)' early enough into your `.emacs' file.
6809 `CUA.el' by Kim. F. Storm
6810      Keybindings in Org-mode conflict with the `S-<cursor>' keys used
6811      by CUA-mode (as well as pc-select-mode and s-region-mode) to
6812      select and extend the region.  If you want to use one of these
6813      packages along with Org-mode, configure the variable
6814      `org-CUA-compatible'.  When set, Org-mode will move the following
6815      keybindings in Org-mode files, and in the agenda buffer (but not
6816      during date selection).
6818           S-UP    -> M-p             S-DOWN  -> M-n
6819           S-LEFT  -> M--             S-RIGHT -> M-+
6821      Yes, these are unfortunately more difficult to remember.  If you
6822      want to have other replacement keys, look at the variable
6823      `org-disputed-keys'.
6825 `windmove.el' by Hovav Shacham
6826      Also this package uses the `S-<cursor>' keys, so everything written
6827      in the paragraph above about CUA mode also applies here.
6829 `footnote.el' by Steven L. Baur
6830      Org-mode supports the syntax of the footnote package, but only the
6831      numerical footnote markers.  Also, the default key for footnote
6832      commands, `C-c !' is already used by Org-mode.  You could use the
6833      variable `footnote-prefix' to switch footnotes commands to another
6834      key.  Or, you could use `org-replace-disputed-keys' and
6835      `org-disputed-keys' to change the settings in Org-mode.
6838 \x1f
6839 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
6841 14.8 Bugs
6842 =========
6844 Here is a list of things that should work differently, but which I have
6845 found too hard to fix.
6847    * If a table field starts with a link, and if the corresponding table
6848      column is narrowed (*note Narrow columns::) to a width too small to
6849      display the link, the field would look entirely empty even though
6850      it is not.  To prevent this, Org-mode throws an error.  The
6851      work-around is to make the column wide enough to fit the link, or
6852      to add some text (at least 2 characters) before the link in the
6853      same field.
6855    * Narrowing table columns does not work on XEmacs, because the
6856      `format' function does not transport text properties.
6858    * Text in an entry protected with the `QUOTE' keyword should not
6859      autowrap.
6861    * When the application called by `C-c C-o' to open a file link fails
6862      (for example because the application does not exist or refuses to
6863      open the file), it does so silently.  No error message is
6864      displayed.
6866    * Recalculating a table line applies the formulas from left to right.
6867      If a formula uses _calculated_ fields further down the row,
6868      multiple recalculation may be needed to get all fields consistent.
6869      You may use the command `org-table-iterate' (`C-u C-c *') to
6870      recalculate until convergence.
6872    * A single letter cannot be made bold, for example `*a*'.
6874    * The exporters work well, but could be made more efficient.
6876 \x1f
6877 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
6879 Appendix A Extensions, Hooks and Hacking
6880 ****************************************
6882 This appendix lists extensions for Org-mode written by other authors.
6883 It also covers some aspects where users can extend the functionality of
6884 Org-mode.
6886 * Menu:
6888 * Extensions::                  Existing 3rd-part extensions
6889 * Adding hyperlink types::      New custom link types
6890 * Tables in arbitrary syntax::  Orgtbl for LaTeX and other programs
6891 * Dynamic blocks::              Automatically filled blocks
6892 * Special agenda views::        Customized views
6893 * Using the property API::      Writing programs that use entry properties
6895 \x1f
6896 File: org,  Node: Extensions,  Next: Adding hyperlink types,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
6898 A.1 Third-party extensions for Org-mode
6899 =======================================
6901 The following extensions for Org-mode have been written by other people:
6903 `org-publish.el' by David O'Toole
6904      This package provides facilities for publishing related sets of
6905      Org-mode files together with linked files like images as webpages.
6906      It is highly configurable and can be used for other publishing
6907      purposes as well.  As of Org-mode version 4.30, `org-publish.el'
6908      is part of the Org-mode distribution.  It is not yet part of
6909      Emacs, however, a delay caused by the preparations for the 22.1
6910      release.  In the mean time, `org-publish.el' can be downloaded
6911      from David's site: `http://dto.freeshell.org/e/org-publish.el'.  
6913 `org-mouse.el' by Piotr Zielinski
6914      This package implements extended mouse functionality for Org-mode.
6915      It allows you to cycle visibility and to edit the document
6916      structure with the mouse.  Best of all, it provides a
6917      context-sensitive menu on <mouse-3> that changes depending on the
6918      context of a mouse-click.  As of Org-mode version 4.53,
6919      `org-mouse.el' is part of the Org-mode distribution.  It is not
6920      yet part of Emacs, however, a delay caused by the preparations for
6921      the 22.1 release.  In the mean time, `org-mouse.el' can be
6922      downloaded from Piotr's site:
6923      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
6925 `org-blog.el' by David O'Toole
6926      A blogging plug-in for `org-publish.el'.
6927      `http://dto.freeshell.org/notebook/OrgMode.html'.  
6929 `blorg.el' by Bastien Guerry
6930      Publish Org-mode files as blogs.
6931      `http://www.cognition.ens.fr/~guerry/blorg.html'.  
6933 `org2rem.el' by Bastien Guerry
6934      Translates Org-mode files into something readable by Remind.
6935      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
6937 `org-toc.el' by Bastien Guerry
6938      Produces a simple table of contents of an Org-mode file, for easy
6939      navigation. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
6941 `org-registry.el' by Bastien Guerry
6942      Find which Org-file link to a certain document.
6943      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
6945 \x1f
6946 File: org,  Node: Adding hyperlink types,  Next: Tables in arbitrary syntax,  Prev: Extensions,  Up: Extensions and Hacking
6948 A.2 Adding hyperlink types
6949 ==========================
6951 Org-mode has a large number of hyperlink types built-in (*note
6952 Hyperlinks::).  If you would like to add new link types, it provides an
6953 interface for doing so.  Lets look at an example file `org-man.el' that
6954 will add support for creating links like `[[man:printf][The printf
6955 manpage]]' to show unix manual pages inside emacs:
6957      ;;; org-man.el - Support for links to manpages in Org-mode
6959      (require 'org)
6961      (org-add-link-type "man" 'org-man-open)
6962      (add-hook 'org-store-link-functions 'org-man-store-link)
6964      (defcustom org-man-command 'man
6965        "The Emacs command to be used to display a man page."
6966        :group 'org-link
6967        :type '(choice (const man) (const woman)))
6969      (defun org-man-open (path)
6970        "Visit the manpage on PATH.
6971      PATH should be a topic that can be thrown at the man command."
6972        (funcall org-man-command path))
6974      (defun org-man-store-link ()
6975        "Store a link to a manpage."
6976        (when (memq major-mode '(Man-mode woman-mode))
6977          ;; This is a man page, we do make this link
6978          (let* ((page (org-man-get-page-name))
6979                 (link (concat "man:" page))
6980                 (description (format "Manpage for %s" page)))
6981            (org-store-link-props
6982             :type "man"
6983             :link link
6984             :description description))))
6986      (defun org-man-get-page-name ()
6987        "Extract the page name from the buffer name."
6988        ;; This works for both `Man-mode' and `woman-mode'.
6989        (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
6990            (match-string 1 (buffer-name))
6991          (error "Cannot create link to this man page")))
6993      (provide 'org-man)
6995      ;;; org-man.el ends here
6997 You would activate this new link type in `.emacs' with
6999      (require 'org-man)
7001 Lets go through the file and see what it does.
7002   1. It does `(require 'org)' to make sure that `org.el' has been
7003      loaded.
7005   2. The next line calls `org-add-link-type' to define a new link type
7006      with prefix `man'.  The call also contains the name of a function
7007      that will be called to follow such a link.
7009   3. The next line adds a function to `org-store-link-functions', in
7010      order to allow the command `C-c l' to record a useful link in a
7011      buffer displaying a man page.
7013    The rest of the file defines the necessary variables and functions.
7014 First there is a customization variable that determines which emacs
7015 command should be used to display manpages.  There are two options,
7016 `man' and `woman'.  Then the function to follow a link is defined.  It
7017 gets the link path as an argument - in this case the link path is just
7018 a topic for the manual command.  The function calls the value of
7019 `org-man-command' to display the man page.
7021    Finally the function `org-man-store-link' is defined.  When you try
7022 to store a link with `C-c l', also this function will be called to try
7023 to make a link.  The function must first decide if it is supposed to
7024 create the link for this buffer type, we do this by checking the value
7025 of the variable `major-mode'.  If not, the function must exit and
7026 retunr the value `nil'.  If yes, the link is created by getting the
7027 manual tpoic from the buffer name and prefixing it with the string
7028 `man:'.  Then it must call the command `org-store-link-props' and set
7029 the `:type' and `:link' properties.  Optionally you can also set the
7030 `:description' property to provide a default for the link description
7031 when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
7033 \x1f
7034 File: org,  Node: Tables in arbitrary syntax,  Next: Dynamic blocks,  Prev: Adding hyperlink types,  Up: Extensions and Hacking
7036 A.3 Tables in arbitrary syntax
7037 ==============================
7039 Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
7040 frequent feature request has been to make it work with native tables in
7041 specific languages, for example LaTeX.  However, this is extremely hard
7042 to do in a general way, would lead to a customization nightmare, and
7043 would take away much of the simplicity of the Orgtbl-mode table editor.
7045    This appendix describes a different approach.  We keep the
7046 Orgtbl-mode table in its native format (the source table), and use a
7047 custom function to translate the table to the correct syntax, and to
7048 install it in the right location (the target table).  This puts the
7049 burden of writing conversion functions on the user, but it allows for a
7050 very flexible system.
7052 * Menu:
7054 * Radio tables::                Sending and receiving
7055 * A LaTeX example::             Step by step, almost a tutorial
7056 * Translator functions::        Copy and modify
7058 \x1f
7059 File: org,  Node: Radio tables,  Next: A LaTeX example,  Prev: Tables in arbitrary syntax,  Up: Tables in arbitrary syntax
7061 A.3.1 Radio tables
7062 ------------------
7064 To define the location of the target table, you first need to create two
7065 lines that are comments in the current mode, but contain magic words for
7066 Orgtbl-mode to find.  Orgtbl-mode will insert the translated table
7067 between these lines, replacing whatever was there before.  For example:
7069      /* BEGIN RECEIVE ORGTBL table_name */
7070      /* END RECEIVE ORGTBL table_name */
7072 Just above the source table, we put a special line that tells
7073 Orgtbl-mode how to translate this table and where to install it.  For
7074 example:
7075      #+ORGTBL: SEND table_name translation_function arguments....
7077 `table_name' is the reference name for the table that is also used in
7078 the receiver lines. `translation_function' is the Lisp function that
7079 does the translation.  Furthermore, the line can contain a list of
7080 arguments (alternating key and value) at the end.  The arguments will be
7081 passed as a property list to the translation function for
7082 interpretation.  A few standard parameters are already recognized and
7083 acted upon before the translation function is called:
7085 `:skip N'
7086      Skip the first N lines of the table. Hlines do count!
7088 `:skipcols (n1 n2 ...)'
7089      List of columns that should be skipped.  If the table has a column
7090      with calculation marks, that column is automatically discarded as
7091      well.  Please note that the translator function sees the table
7092      _after_ the removal of these columns, the function never knows
7093      that there have been additional columns.
7095 The one problem remaining is how to keep the source table in the buffer
7096 without disturbing the normal workings of the file, for example during
7097 compilation of a C file or processing of a LaTeX file.  There are a
7098 number of different solutions:
7100    * The table could be placed in a block comment if that is supported
7101      by the language.  For example, in C-mode you could wrap the table
7102      between `/*' and `*/' lines.
7104    * Sometimes it is possible to put the table after some kind of END
7105      statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
7107    * You can just comment the table line by line whenever you want to
7108      process the file, and uncomment it whenever you need to edit the
7109      table.  This only sounds tedious - the command `M-x
7110      orgtbl-toggle-comment' does make this comment-toggling very easy,
7111      in particular if you bind it to a key.
7113 \x1f
7114 File: org,  Node: A LaTeX example,  Next: Translator functions,  Prev: Radio tables,  Up: Tables in arbitrary syntax
7116 A.3.2 A LaTeX example
7117 ---------------------
7119 The best way to wrap the source table in LaTeX is to use the `comment'
7120 environment provided by `comment.sty'.  It has to be activated by
7121 placing `\usepackage{comment}' into the document header.  Orgtbl-mode
7122 can insert a radio table skeleton(1)  with the command `M-x
7123 orgtbl-insert-radio-table'.  You will be prompted for a table name,
7124 lets say we use `salesfigures'.  You will then get the following
7125 template:
7127      % BEGIN RECEIVE ORGTBL salesfigures
7128      % END RECEIVE ORGTBL salesfigures
7129      \begin{comment}
7130      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7131      | | |
7132      \end{comment}
7134 The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
7135 `orgtbl-to-latex' to convert the table into LaTeX and to put it into
7136 the receiver location with name `salesfigures'.  You may now fill in
7137 the table, feel free to use the spreadsheet features(2):
7139      % BEGIN RECEIVE ORGTBL salesfigures
7140      % END RECEIVE ORGTBL salesfigures
7141      \begin{comment}
7142      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7143      | Month | Days | Nr sold | per day |
7144      |-------+------+---------+---------|
7145      | Jan   |   23 |      55 |     2.4 |
7146      | Feb   |   21 |      16 |     0.8 |
7147      | March |   22 |     278 |    12.6 |
7148      #+TBLFM: $4=$3/$2;%.1f
7149      % $ (optional extra dollar to keep font-lock happy, see footnote)
7150      \end{comment}
7152 When you are done, press `C-c C-c' in the table to get the converted
7153 table inserted between the two marker lines.
7155    Now lets assume you want to make the table header by hand, because
7156 you want to control how columns are aligned etc.  In this case we make
7157 sure that the table translator does skip the first 2 lines of the source
7158 table, and tell the command to work as a splice, i.e. to not produce
7159 header and footer commands of the target table:
7161      \begin{tabular}{lrrr}
7162      Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
7163      % BEGIN RECEIVE ORGTBL salesfigures
7164      % END RECEIVE ORGTBL salesfigures
7165      \end{tabular}
7166      %
7167      \begin{comment}
7168      #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
7169      | Month | Days | Nr sold | per day |
7170      |-------+------+---------+---------|
7171      | Jan   |   23 |      55 |     2.4 |
7172      | Feb   |   21 |      16 |     0.8 |
7173      | March |   22 |     278 |    12.6 |
7174      #+TBLFM: $4=$3/$2;%.1f
7175      \end{comment}
7177    The LaTeX translator function `orgtbl-to-latex' is already part of
7178 Orgtbl-mode.  It uses a `tabular' environment to typeset the table and
7179 marks horizontal lines with `\hline'.  Furthermore, it interprets the
7180 following parameters:
7182 `:splice nil/t'
7183      When set to t, return only table body lines, don't wrap them into a
7184      tabular environment.  Default is nil.
7186 `:fmt fmt'
7187      A format to be used to wrap each field, should contain `%s' for the
7188      original field value.  For example, to wrap each field value in
7189      dollars, you could use `:fmt "$%s$"'.  This may also be a property
7190      list with column numbers and formats. for example `:fmt (2 "$%s$"
7191      4 "%s\\%%")'.
7193 `:efmt efmt'
7194      Use this format to print numbers with exponentials.  The format
7195      should have `%s' twice for inserting mantissa and exponent, for
7196      example `"%s\\times10^{%s}"'.  The default is `"%s\\,(%s)"'.  This
7197      may also be a property list with column numbers and formats, for
7198      example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
7199      After `efmt' has been applied to a value, `fmt' will also be
7200      applied.
7202    ---------- Footnotes ----------
7204    (1) By default this works only for LaTeX, HTML, and TeXInfo.
7205 Configure the variable `orgtbl-radio-tables' to install templates for
7206 other modes.
7208    (2) If the `#+TBLFM' line contains an odd number of dollar
7209 characters, this may cause problems with font-lock in latex-mode.  As
7210 shown in the example you can fix this by adding an extra line inside the
7211 `comment' environment that is used to balance the dollar expressions.
7212 If you are using AUCTeX with the font-latex library, a much better
7213 solution is to add the `comment' environment to the variable
7214 `LaTeX-verbatim-environments'.
7216 \x1f
7217 File: org,  Node: Translator functions,  Prev: A LaTeX example,  Up: Tables in arbitrary syntax
7219 A.3.3 Translator functions
7220 --------------------------
7222 Orgtbl-mode has several translator functions built-in:
7223 `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'.  Except
7224 for `orgtbl-to-html'(1), these all use a generic translator,
7225 `orgtbl-to-generic'.  For example, `orgtbl-to-latex' itself is a very
7226 short function that computes the column definitions for the `tabular'
7227 environment, defines a few field and line separators and then hands
7228 over to the generic translator.  Here is the entire code:
7230      (defun orgtbl-to-latex (table params)
7231        "Convert the orgtbl-mode TABLE to LaTeX."
7232        (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
7233                                     org-table-last-alignment ""))
7234               (params2
7235                (list
7236                 :tstart (concat "\\begin{tabular}{" alignment "}")
7237                 :tend "\\end{tabular}"
7238                 :lstart "" :lend " \\\\" :sep " & "
7239                 :efmt "%s\\,(%s)" :hline "\\hline")))
7240          (orgtbl-to-generic table (org-combine-plists params2 params))))
7242    As you can see, the properties passed into the function (variable
7243 PARAMS) are combined with the ones newly defined in the function
7244 (variable PARAMS2).  The ones passed into the function (i.e. the ones
7245 set by the `ORGTBL SEND' line) take precedence.  So if you would like
7246 to use the LaTeX translator, but wanted the line endings to be
7247 `\\[2mm]' instead of the default `\\', you could just overrule the
7248 default with
7250      #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
7252    For a new language, you can either write your own converter function
7253 in analogy with the LaTeX translator, or you can use the generic
7254 function directly.  For example, if you have a language where a table
7255 is started with `!BTBL!', ended with `!ETBL!', and where table lines are
7256 started with `!BL!', ended with `!EL!' and where the field separator is
7257 a TAB, you could call the generic translator like this (on a single
7258 line!):
7260      #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
7261                                    :lstart "!BL! " :lend " !EL!" :sep "\t"
7263 Please check the documentation string of the function
7264 `orgtbl-to-generic' for a full list of parameters understood by that
7265 function and remember that you can pass each of them into
7266 `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
7267 the generic function.
7269    Of course you can also write a completely new function doing
7270 complicated things the generic translator cannot do.  A translator
7271 function takes two arguments.  The first argument is the table, a list
7272 of lines, each line either the symbol `hline' or a list of fields.  The
7273 second argument is the property list containing all parameters
7274 specified in the `#+ORGTBL: SEND' line.  The function must return a
7275 single string containing the formatted table.  If you write a generally
7276 useful translator, please post it on `emacs-orgmode@gnu.org' so that
7277 others can benefit from your work.
7279    ---------- Footnotes ----------
7281    (1) The HTML translator uses the same code that produces tables
7282 during HTML export.
7284 \x1f
7285 File: org,  Node: Dynamic blocks,  Next: Special agenda views,  Prev: Tables in arbitrary syntax,  Up: Extensions and Hacking
7287 A.4 Dynamic blocks
7288 ==================
7290 Org-mode documents can contain _dynamic blocks_.  These are specially
7291 marked regions that are updated by some user-written function.  A good
7292 example for such a block is the clock table inserted by the command
7293 `C-c C-x C-r' (*note Clocking work time::).
7295    Dynamic block are enclosed by a BEGIN-END structure that assigns a
7296 name to the block and can also specify parameters for the function
7297 producing the content of the block.
7299      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
7301      #+END:
7303    Dynamic blocks are updated with the following commands
7305 `C-c C-x C-u'
7306      Update dynamic block at point.  
7308 `C-u C-c C-x C-u'
7309      Update all dynamic blocks in the current file.
7311    Updating a dynamic block means to remove all the text between BEGIN
7312 and END, parse the BEGIN line for parameters and then call the specific
7313 writer function for this block to insert the new content.  For a block
7314 with name `myblock', the writer function is `org-dblock-write:myblock'
7315 with as only parameter a property list with the parameters given in the
7316 begin line.  Here is a trivial example of a block that keeps track of
7317 when the block update function was last run:
7319      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
7321      #+END:
7323 The corresponding block writer function could look like this:
7325      (defun org-dblock-write:block-update-time (params)
7326         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
7327           (insert "Last block update at: "
7328                   (format-time-string fmt (current-time)))))
7330    If you want to make sure that all dynamic blocks are always
7331 up-to-date, you could add the function `org-update-all-dblocks' to a
7332 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
7333 written in a way that is does nothing in buffers that are not in
7334 Org-mode.
7336 \x1f
7337 File: org,  Node: Special agenda views,  Next: Using the property API,  Prev: Dynamic blocks,  Up: Extensions and Hacking
7339 A.5 Special Agenda Views
7340 ========================
7342 Org-mode provides a special hook that can be used to narrow down the
7343 selection made by any of the agenda views.  You may specify a function
7344 that is used at each match to verify if the match should indeed be part
7345 of the agenda view, and if not, how much should be skipped.
7347    Let's say you want to produce a list of projects that contain a
7348 WAITING tag anywhere in the project tree.  Let's further assume that
7349 you have marked all tree headings that define a project with the todo
7350 keyword PROJECT.  In this case you would run a todo search for the
7351 keyword PROJECT, but skip the match unless there is a WAITING tag
7352 anywhere in the subtree belonging to the project line.
7354    To achieve this, you must write a function that searches the subtree
7355 for the tag.  If the tag is found, the function must return `nil' to
7356 indicate that this match should not be skipped.  If there is no such
7357 tag, return the location of the end of the subtree, to indicate that
7358 search should continue from there.
7360      (defun my-skip-unless-waiting ()
7361        "Skip trees that are not waiting"
7362        (let ((subtree-end (save-excursion (org-end-of-subtree t))))
7363          (if (re-search-forward ":WAITING:" subtree-end t)
7364              nil          ; tag found, do not skip
7365            subtree-end))) ; tag not found, continue after end of subtree
7367    Now you may use this function in an agenda custom command, for
7368 example like this:
7370      (org-add-agenda-custom-command
7371       '("b" todo "PROJECT"
7372         ((org-agenda-skip-function 'my-org-waiting-projects)
7373          (org-agenda-overriding-header "Projects waiting for something: "))))
7375    Note that this also binds `org-agenda-overriding-header' to get a
7376 meaningful header in the agenda view.
7378    You may also put a Lisp form into `org-agenda-skip-function'.  In
7379 particular, you may use the functions `org-agenda-skip-entry-if' and
7380 `org-agenda-skip-subtree-if' in this form, for example:
7382 `'(org-agenda-skip-entry-if 'scheduled)'
7383      Skip current entry if it has been scheduled.
7385 `'(org-agenda-skip-entry-if 'notscheduled)'
7386      Skip current entry if it has not been scheduled.
7388 `'(org-agenda-skip-entry-if 'deadline)'
7389      Skip current entry if it has a deadline.
7391 `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
7392      Skip current entry if it has a deadline, or if it is scheduled.
7394 `'(org-agenda-skip-entry 'regexp "regular expression")'
7395      Skip current entry if the regular expression matches in the entry.
7397 `'(org-agenda-skip-entry 'notregexp "regular expression")'
7398      Skip current entry unless the regular expression matches.
7400 `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
7401      Same as above, but check and skip the entire subtree.
7403    Therefore we could also have written the search for WAITING projects
7404 like this, even without defining a special function:
7406      (org-add-agenda-custom-command
7407       '("b" todo "PROJECT"
7408         ((org-agenda-skip-function '(org-agenda-skip-subtree-if
7409                                      'regexp ":WAITING:"))
7410          (org-agenda-overriding-header "Projects waiting for something: "))))
7412 \x1f
7413 File: org,  Node: Using the property API,  Prev: Special agenda views,  Up: Extensions and Hacking
7415 A.6 Using the property API
7416 ==========================
7418 Here is a description of the functions that can be used to work with
7419 properties.
7421  -- Function: org-entry-properties &optional pom which
7422      Get all properties of the entry at point-or-marker POM.  This
7423      includes the TODO keyword, the tags, time strings for deadline,
7424      scheduled, and clocking, and any additional properties defined in
7425      the entry.  The return value is an alist, keys may occur multiple
7426      times if the property key was used several times.  POM may also be
7427      nil, in which case the current entry is used.  If WHICH is nil or
7428      `all', get all properties.  If WHICH is `special' or `standard',
7429      only get that subclass.
7431  -- Function: org-entry-get pom property &optional inherit
7432      Get value of PROPERTY for entry at point-or-marker POM.  If
7433      INHERIT is non-nil and the entry does not have the property, then
7434      also check higher levels of the hierarchy.
7436  -- Function: org-entry-delete pom property
7437      Delete the property PROPERTY from entry at point-or-marker POM.
7439  -- Function: org-entry-put pom property value
7440      Set PROPERTY to VALUE for entry at point-or-marker POM.
7442  -- Function: org-buffer-property-keys &optional include-specials
7443      Get all property keys in the current buffer.
7445  -- Function: org-insert-property-drawer
7446      Insert a property drawer at point.
7448 \x1f
7449 File: org,  Node: History and Acknowledgments,  Next: Index,  Prev: Extensions and Hacking,  Up: Top
7451 Appendix B History and Acknowledgments
7452 **************************************
7454 Org-mode was borne in 2003, out of frustration over the user interface
7455 of the Emacs outline-mode.  I was trying to organize my notes and
7456 projects, and using Emacs seemed to be the natural way to go.  However,
7457 having to remember eleven different commands with two or three keys per
7458 command, only to hide and unhide parts of the outline tree, that seemed
7459 entirely unacceptable to me.  Also, when using outlines to take notes, I
7460 constantly want to restructure the tree, organizing it parallel to my
7461 thoughts and plans.  _Visibility cycling_ and _structure editing_ were
7462 originally implemented in the package `outline-magic.el', but quickly
7463 moved to the more general `org.el'.  As this environment became
7464 comfortable for project planning, the next step was adding _TODO
7465 entries_, basic _time stamps_, and _table support_.  These areas
7466 highlight the two main goals that Org-mode still has today: To create a
7467 new, outline-based, plain text mode with innovative and intuitive
7468 editing features, and to incorporate project planning functionality
7469 directly into a notes file.
7471    Since the first release, literally thousands of emails to me or on
7472 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
7473 feedback, new ideas, and sometimes patches and add-on code.  Many
7474 thanks to everyone who has helped to improve this package.  I am trying
7475 to keep here a list of the people who had significant influence in
7476 shaping one or more aspects of Org-mode.  The list may not be complete,
7477 if I have forgotten someone, please accept my apologies and let me know.
7479    * Russel Adams came up with the idea for drawers.
7481    * Thomas Baumann contributed the code for links to the MH-E email
7482      system.
7484    * Alex Bochannek provided a patch for rounding time stamps.
7486    * Charles Cave's suggestion sparked the implementation of templates
7487      for Remember.
7489    * Pavel Chalmoviansky influenced the agenda treatment of items with
7490      specified time.
7492    * Gregory Chernov patched support for lisp forms into table
7493      calculations and improved XEmacs compatibility, in particular by
7494      porting `nouline.el' to XEmacs.
7496    * Sacha Chua suggested to copy some linking code from Planner.
7498    * Eddward DeVilla proposed and tested checkbox statistics.  He also
7499      came up with the idea of properties, and that there should be an
7500      API for them.
7502    * Kees Dullemond used to edit projects lists directly in HTML and so
7503      inspired some of the early development, including HTML export.  He
7504      also asked for a way to narrow wide table columns.
7506    * Christian Egli converted the documentation into TeXInfo format,
7507      patched CSS formatting into the HTML exporter, and inspired the
7508      agenda.
7510    * David Emery provided a patch for custom CSS support in exported
7511      HTML agendas.
7513    * Nic Ferrier contributed mailcap and XOXO support.
7515    * John Foerch figured out how to make incremental search show context
7516      around a match in a hidden outline tree.
7518    * Niels Giesen had the idea to automatically archive DONE trees.
7520    * Bastien Guerry wrote the LaTeX exporter and has been prolific with
7521      patches, ideas, and bug reports.
7523    * Kai Grossjohann pointed out key-binding conflicts with other
7524      packages.
7526    * Scott Jaderholm proposed footnotes, control over whitespace between
7527      folded entries, and column view for properties.
7529    * Shidai Liu ("Leo") asked for embedded LaTeX and tested it.  He also
7530      provided frequent feedback and some patches.
7532    * Jason F. McBrayer suggested agenda export to CSV format.
7534    * Dmitri Minaev sent a patch to set priority limits on a per-file
7535      basis.
7537    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
7538      happy.
7540    * Rick Moynihan proposed to allow multiple TODO sequences in a file.
7542    * Todd Neal provided patches for links to Info files and elisp forms.
7544    * Tim O'Callaghan suggested in-file links, search options for general
7545      file links, and TAGS.
7547    * Takeshi Okano translated the manual and David O'Toole's tutorial
7548      into Japanese.
7550    * Oliver Oppitz suggested multi-state TODO items.
7552    * Scott Otterson sparked the introduction of descriptive text for
7553      links, among other things.
7555    * Pete Phillips helped during the development of the TAGS feature,
7556      and provided frequent feedback.
7558    * T.V. Raman reported bugs and suggested improvements.
7560    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
7561      control.
7563    * Kevin Rogers contributed code to access VM files on remote hosts.
7565    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
7566      conflict with `allout.el'.
7568    * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
7570    * Philip Rooke created the Org-mode reference card and provided lots
7571      of feedback.
7573    * Christian Schlauer proposed angular brackets around links, among
7574      other things.
7576    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
7577      `organizer-mode.el'.
7579    * Daniel Sinder came up with the idea of internal archiving by
7580      locking subtrees.
7582    * Dale Smith proposed link abbreviations.
7584    * Adam Spiers asked for global linking commands and inspired the link
7585      extension system.  support mairix.
7587    * David O'Toole wrote `org-publish.el' and drafted the manual
7588      chapter about publishing.
7590    * Ju"rgen Vollmer contributed code generating the table of contents
7591      in HTML output.
7593    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
7595    * David Wainberg suggested archiving, and improvements to the linking
7596      system.
7598    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
7599      development of Org-mode was fully independent, and both systems are
7600      really different beasts in their basic ideas and implementation
7601      details.  I later looked at John's code, however, and learned from
7602      his implementation of (i) links where the link itself is hidden
7603      and only a description is shown, and (ii) popping up a calendar to
7604      select a date.  John has also contributed a number of great ideas
7605      directly to Org-mode.
7607    * Carsten Wimmer suggested some changes and helped fix a bug in
7608      linking to GNUS.
7610    * Roland Winkler requested additional keybindings to make Org-mode
7611      work on a tty.
7613    * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
7614      contributed various ideas and code snippets.
7616 \x1f
7617 File: org,  Node: Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
7619 Index
7620 *****
7622 \0\b[index\0\b]
7623 * Menu:
7625 * abbreviation, links:                   Link abbreviations.  (line   6)
7626 * acknowledgments:                       History and Acknowledgments.
7627                                                               (line   6)
7628 * action, for publishing:                Publishing action.   (line   6)
7629 * activation:                            Activation.          (line   6)
7630 * active region <1>:                     ASCII export.        (line   9)
7631 * active region <2>:                     Structure editing.   (line  71)
7632 * active region <3>:                     Built-in table editor.
7633                                                               (line 143)
7634 * active region:                         HTML Export commands.
7635                                                               (line   6)
7636 * agenda:                                Weekly/Daily agenda. (line   6)
7637 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
7638 * agenda files:                          Agenda files.        (line   6)
7639 * agenda files, removing buffers:        Agenda commands.     (line 244)
7640 * agenda views:                          Agenda views.        (line   6)
7641 * agenda views, custom:                  Custom agenda views. (line   6)
7642 * agenda views, exporting <1>:           Agenda commands.     (line 233)
7643 * agenda views, exporting:               Exporting Agenda Views.
7644                                                               (line  12)
7645 * agenda views, user-defined:            Special agenda views.
7646                                                               (line   6)
7647 * agenda, pipe:                          Extracting Agenda Information for other programs.
7648                                                               (line   6)
7649 * agenda, with block views:              Block agenda.        (line   6)
7650 * align, STARTUP keyword:                In-buffer settings.  (line  72)
7651 * allout.el:                             Conflicts.           (line   6)
7652 * angular brackets, around links:        External links.      (line  43)
7653 * API, for properties <1>:               Property API.        (line   6)
7654 * API, for properties:                   Using the property API.
7655                                                               (line   6)
7656 * appointment reminders:                 Weekly/Daily agenda. (line  65)
7657 * appt.el:                               Weekly/Daily agenda. (line  65)
7658 * archive locations:                     Moving subtrees.     (line  23)
7659 * archiving:                             Archiving.           (line   6)
7660 * ASCII export:                          ASCII export.        (line   6)
7661 * author:                                Feedback.            (line   6)
7662 * author info, in export:                Export options.      (line  26)
7663 * autoload:                              Activation.          (line   6)
7664 * backtrace of an error:                 Feedback.            (line  27)
7665 * BBDB links:                            External links.      (line   6)
7666 * block agenda:                          Block agenda.        (line   6)
7667 * blorg.el:                              Extensions.          (line  32)
7668 * bold text:                             Enhancing text.      (line  15)
7669 * Boolean logic, for tag searches:       Tag searches.        (line  24)
7670 * bug reports:                           Feedback.            (line   6)
7671 * bugs:                                  Bugs.                (line   6)
7672 * C-c C-c, overview:                     The very busy C-c C-c key.
7673                                                               (line   6)
7674 * calc package:                          The spreadsheet.     (line   6)
7675 * calc.el:                               Cooperation.         (line   6)
7676 * calculations, in tables <1>:           The spreadsheet.     (line   6)
7677 * calculations, in tables:               Built-in table editor.
7678                                                               (line 143)
7679 * calendar commands, from agenda:        Agenda commands.     (line 196)
7680 * calendar integration:                  Weekly/Daily agenda. (line  23)
7681 * calendar, for selecting date:          The date/time prompt.
7682                                                               (line  42)
7683 * category:                              Categories.          (line   6)
7684 * CDLaTeX:                               CDLaTeX mode.        (line   6)
7685 * cdlatex.el:                            Cooperation.         (line  29)
7686 * checkbox statistics:                   Checkboxes.          (line  23)
7687 * checkboxes:                            Checkboxes.          (line   6)
7688 * children, subtree visibility state:    Visibility cycling.  (line  10)
7689 * clean outline view:                    Clean view.          (line   6)
7690 * column formula:                        Column formulas.     (line   6)
7691 * column view, for properties:           Defining columns.    (line   6)
7692 * commands, in agenda buffer:            Agenda commands.     (line   6)
7693 * comment lines:                         Comment lines.       (line   6)
7694 * completion, of dictionary words:       Completion.          (line   6)
7695 * completion, of file names:             Handling links.      (line  44)
7696 * completion, of link abbreviations:     Completion.          (line   6)
7697 * completion, of links:                  Handling links.      (line  25)
7698 * completion, of option keywords <1>:    Per file keywords.   (line  23)
7699 * completion, of option keywords <2>:    Completion.          (line   6)
7700 * completion, of option keywords:        Export options.      (line   6)
7701 * completion, of property keys:          Completion.          (line   6)
7702 * completion, of tags <1>:               Completion.          (line   6)
7703 * completion, of tags:                   Setting tags.        (line  11)
7704 * completion, of TeX symbols:            Completion.          (line   6)
7705 * completion, of TODO keywords <1>:      Completion.          (line   6)
7706 * completion, of TODO keywords:          Workflow states.     (line  15)
7707 * constants, in calculations:            References.          (line  82)
7708 * constants.el:                          Cooperation.         (line  14)
7709 * constcgs, STARTUP keyword:             In-buffer settings.  (line  98)
7710 * constSI, STARTUP keyword:              In-buffer settings.  (line  98)
7711 * content, STARTUP keyword:              In-buffer settings.  (line  65)
7712 * contents, global visibility state:     Visibility cycling.  (line  22)
7713 * copying, of subtrees:                  Structure editing.   (line   6)
7714 * creating timestamps:                   Creating timestamps. (line   6)
7715 * CUA.el:                                Conflicts.           (line  15)
7716 * custom agenda views:                   Custom agenda views. (line   6)
7717 * custom date/time format:               Custom time format.  (line   6)
7718 * custom search strings:                 Custom searches.     (line   6)
7719 * customization:                         Customization.       (line   6)
7720 * customtime, STARTUP keyword:           In-buffer settings.  (line  95)
7721 * cutting, of subtrees:                  Structure editing.   (line   6)
7722 * cycling, of TODO states:               TODO basics.         (line  13)
7723 * cycling, visibility:                   Visibility cycling.  (line   6)
7724 * daily agenda:                          Weekly/Daily agenda. (line   6)
7725 * date format, custom:                   Custom time format.  (line   6)
7726 * date range:                            Time stamps.         (line  40)
7727 * date stamps <1>:                       Timestamps.          (line   6)
7728 * date stamps:                           Time stamps.         (line   6)
7729 * date, reading in minibuffer:           The date/time prompt.
7730                                                               (line   6)
7731 * DEADLINE keyword:                      Deadlines and scheduling.
7732                                                               (line  10)
7733 * deadlines:                             Time stamps.         (line   6)
7734 * debugging, of table formulas:          Editing and debugging formulas.
7735                                                               (line  97)
7736 * demotion, of subtrees:                 Structure editing.   (line   6)
7737 * diary entries, creating from agenda:   Agenda commands.     (line 201)
7738 * diary integration:                     Weekly/Daily agenda. (line  23)
7739 * dictionary word completion:            Completion.          (line   6)
7740 * directories, for publishing:           Sources and destinations.
7741                                                               (line   6)
7742 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
7743 * display changing, in agenda:           Agenda commands.     (line  65)
7744 * document structure:                    Document structure.  (line   6)
7745 * DONE, final TODO keyword:              Per file keywords.   (line  26)
7746 * drawer, for properties:                Property syntax.     (line   6)
7747 * drawers:                               Drawers.             (line   6)
7748 * dynamic blocks:                        Dynamic blocks.      (line   6)
7749 * editing tables:                        Tables.              (line   6)
7750 * editing, of table formulas:            Editing and debugging formulas.
7751                                                               (line   6)
7752 * elisp links:                           External links.      (line   6)
7753 * emphasized text:                       Export options.      (line  26)
7754 * enhancing text:                        Enhancing text.      (line   6)
7755 * evaluate time range:                   Creating timestamps. (line  48)
7756 * even, STARTUP keyword:                 In-buffer settings.  (line  88)
7757 * exporting:                             Exporting.           (line   6)
7758 * exporting agenda views <1>:            Agenda commands.     (line 233)
7759 * exporting agenda views:                Exporting Agenda Views.
7760                                                               (line  12)
7761 * exporting, not:                        Comment lines.       (line   6)
7762 * extended TODO keywords:                TODO extensions.     (line   6)
7763 * extension, third-party:                Extensions.          (line   6)
7764 * external archiving:                    Moving subtrees.     (line   6)
7765 * external links:                        External links.      (line   6)
7766 * external links, in HTML export:        Links.               (line   6)
7767 * faces, for TODO keywords:              Faces for TODO keywords.
7768                                                               (line   6)
7769 * FAQ:                                   Summary.             (line  56)
7770 * feedback:                              Feedback.            (line   6)
7771 * field formula:                         Field formulas.      (line   6)
7772 * field references:                      References.          (line  15)
7773 * file links:                            External links.      (line   6)
7774 * file links, searching:                 Search options.      (line   6)
7775 * file name completion:                  Handling links.      (line  44)
7776 * files for agenda:                      Agenda files.        (line   6)
7777 * files, adding to agenda list:          Agenda files.        (line  15)
7778 * files, selecting for publishing:       Selecting files.     (line   6)
7779 * fixed width:                           Enhancing text.      (line  28)
7780 * fixed-width sections:                  Export options.      (line  26)
7781 * folded, subtree visibility state:      Visibility cycling.  (line  10)
7782 * folding, sparse trees:                 Sparse trees.        (line   6)
7783 * following links:                       Handling links.      (line  59)
7784 * footnote.el <1>:                       Cooperation.         (line  56)
7785 * footnote.el <2>:                       Footnotes.           (line   6)
7786 * footnote.el:                           Conflicts.           (line  35)
7787 * footnotes <1>:                         Export options.      (line  26)
7788 * footnotes:                             Footnotes.           (line   6)
7789 * format specifier:                      Formula syntax for Calc.
7790                                                               (line  14)
7791 * format, of links:                      Link format.         (line   6)
7792 * formula debugging:                     Editing and debugging formulas.
7793                                                               (line  97)
7794 * formula editing:                       Editing and debugging formulas.
7795                                                               (line   6)
7796 * formula syntax, Calc:                  Formula syntax for Calc.
7797                                                               (line   6)
7798 * formula, for individual table field:   Field formulas.      (line   6)
7799 * formula, for table column:             Column formulas.     (line   6)
7800 * formula, in tables:                    Built-in table editor.
7801                                                               (line 143)
7802 * global cycling:                        Visibility cycling.  (line  22)
7803 * global keybindings:                    Activation.          (line   6)
7804 * global TODO list:                      Global TODO list.    (line   6)
7805 * global visibility states:              Visibility cycling.  (line  22)
7806 * GNUS links:                            External links.      (line   6)
7807 * grouping columns in tables:            Column groups.       (line   6)
7808 * hand-formatted lists:                  Enhancing text.      (line  11)
7809 * headline levels:                       Export options.      (line  26)
7810 * headline levels, for exporting <1>:    ASCII export.        (line  21)
7811 * headline levels, for exporting <2>:    LaTeX export commands.
7812                                                               (line  26)
7813 * headline levels, for exporting:        HTML Export commands.
7814                                                               (line  44)
7815 * headline navigation:                   Motion.              (line   6)
7816 * headline tagging:                      Tags.                (line   6)
7817 * headline, promotion and demotion:      Structure editing.   (line   6)
7818 * headlines:                             Headlines.           (line   6)
7819 * hide text:                             Visibility cycling.  (line   6)
7820 * hidestars, STARTUP keyword:            In-buffer settings.  (line  88)
7821 * hiding leading stars:                  Clean view.          (line   6)
7822 * history:                               History and Acknowledgments.
7823                                                               (line   6)
7824 * horizontal rules, in exported files:   Enhancing text.      (line  18)
7825 * HTML export:                           HTML export.         (line   6)
7826 * HTML, and orgtbl-mode:                 Translator functions.
7827                                                               (line   6)
7828 * hyperlinks:                            Hyperlinks.          (line   6)
7829 * hyperlinks, adding new types:          Adding hyperlink types.
7830                                                               (line   6)
7831 * iCalendar export:                      iCalendar export.    (line   6)
7832 * images, inline in HTML:                Images.              (line   6)
7833 * in-buffer settings:                    In-buffer settings.  (line   6)
7834 * inactive timestamp:                    Time stamps.         (line  49)
7835 * index, of published pages:             Project page index.  (line   6)
7836 * Info links:                            External links.      (line   6)
7837 * inheritance, of properties:            Property searches.   (line   6)
7838 * inheritance, of tags:                  Tag inheritance.     (line   6)
7839 * inlining images in HTML:               Images.              (line   6)
7840 * inserting links:                       Handling links.      (line  25)
7841 * installation:                          Installation.        (line   6)
7842 * internal archiving:                    ARCHIVE tag.         (line   6)
7843 * internal links:                        Internal links.      (line   6)
7844 * internal links, in HTML export:        Links.               (line   6)
7845 * introduction:                          Introduction.        (line   6)
7846 * italic text:                           Enhancing text.      (line  15)
7847 * jumping, to headlines:                 Motion.              (line   6)
7848 * keybindings, global:                   Activation.          (line   6)
7849 * keyword options:                       Per file keywords.   (line   6)
7850 * LaTeX export:                          LaTeX export.        (line   6)
7851 * LaTeX fragments <1>:                   LaTeX fragments.     (line   6)
7852 * LaTeX fragments:                       Export options.      (line  26)
7853 * LaTeX fragments, export:               Enhancing text.      (line  21)
7854 * LaTeX fragments, preview:              Processing LaTeX fragments.
7855                                                               (line   6)
7856 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
7857 * LaTeX, and orgtbl-mode:                A LaTeX example.     (line   6)
7858 * level, require for tags match:         Tag searches.        (line  69)
7859 * linebreak preservation:                Export options.      (line  26)
7860 * linebreak, forced:                     Enhancing text.      (line  35)
7861 * link abbreviations:                    Link abbreviations.  (line   6)
7862 * link abbreviations, completion of:     Completion.          (line   6)
7863 * link completion:                       Handling links.      (line  25)
7864 * link format:                           Link format.         (line   6)
7865 * links, external:                       External links.      (line   6)
7866 * links, finding next/previous:          Handling links.      (line  92)
7867 * links, handling:                       Handling links.      (line   6)
7868 * links, in HTML export:                 Links.               (line   6)
7869 * links, internal:                       Internal links.      (line   6)
7870 * links, publishing:                     Publishing links.    (line   6)
7871 * links, radio targets:                  Radio targets.       (line   6)
7872 * links, returning to:                   Handling links.      (line  86)
7873 * Lisp forms, as table formulas:         Formula syntax for Lisp.
7874                                                               (line   6)
7875 * lists, hand-formatted:                 Enhancing text.      (line  11)
7876 * lists, ordered:                        Plain lists.         (line   6)
7877 * lists, plain:                          Plain lists.         (line   6)
7878 * logdone, STARTUP keyword:              In-buffer settings.  (line  77)
7879 * logging, of progress:                  Progress logging.    (line   6)
7880 * lognoteclock-out, STARTUP keyword:     In-buffer settings.  (line  77)
7881 * lognotedone, STARTUP keyword:          In-buffer settings.  (line  77)
7882 * lognotestate, STARTUP keyword:         In-buffer settings.  (line  77)
7883 * logrepeat, STARTUP keyword:            In-buffer settings.  (line  77)
7884 * maintainer:                            Feedback.            (line   6)
7885 * mark ring:                             Handling links.      (line  82)
7886 * marking characters, tables:            Advanced features.   (line  40)
7887 * matching, of properties:               Matching tags and properties.
7888                                                               (line   6)
7889 * matching, of tags:                     Matching tags and properties.
7890                                                               (line   6)
7891 * matching, tags:                        Tags.                (line   6)
7892 * math symbols:                          Math symbols.        (line   6)
7893 * MH-E links:                            External links.      (line   6)
7894 * minor mode for structure editing:      orgstruct-mode.      (line   6)
7895 * minor mode for tables:                 orgtbl-mode.         (line   6)
7896 * mode, for calc:                        Formula syntax for Calc.
7897                                                               (line  14)
7898 * motion commands in agenda:             Agenda commands.     (line  19)
7899 * motion, between headlines:             Motion.              (line   6)
7900 * name, of column or field:              References.          (line  82)
7901 * named references:                      References.          (line  82)
7902 * names as TODO keywords:                TODO types.          (line   6)
7903 * narrow columns in tables:              Narrow columns.      (line   6)
7904 * noalign, STARTUP keyword:              In-buffer settings.  (line  72)
7905 * nologging, STARTUP keyword:            In-buffer settings.  (line  77)
7906 * nologrepeat, STARTUP keyword:          In-buffer settings.  (line  77)
7907 * occur, command:                        Sparse trees.        (line   6)
7908 * odd, STARTUP keyword:                  In-buffer settings.  (line  88)
7909 * option keyword completion:             Completion.          (line   6)
7910 * options, for custom agenda views:      Setting Options.     (line   6)
7911 * options, for customization:            Customization.       (line   6)
7912 * options, for export:                   Export options.      (line   6)
7913 * options, for publishing:               Publishing options.  (line   6)
7914 * ordered lists:                         Plain lists.         (line   6)
7915 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
7916 * org-blog.el:                           Extensions.          (line  28)
7917 * org-mode, turning on:                  Activation.          (line  22)
7918 * org-mouse.el:                          Extensions.          (line  16)
7919 * org-publish-project-alist:             Project alist.       (line   6)
7920 * org-publish.el:                        Extensions.          (line   8)
7921 * org2rem.el:                            Extensions.          (line  36)
7922 * orgstruct-mode:                        orgstruct-mode.      (line   6)
7923 * orgtbl-mode <1>:                       orgtbl-mode.         (line   6)
7924 * orgtbl-mode:                           Tables in arbitrary syntax.
7925                                                               (line   6)
7926 * outline tree:                          Headlines.           (line   6)
7927 * outline-mode:                          Outlines.            (line   6)
7928 * outlines:                              Outlines.            (line   6)
7929 * overview, global visibility state:     Visibility cycling.  (line  22)
7930 * overview, STARTUP keyword:             In-buffer settings.  (line  65)
7931 * packages, interaction with other:      Interaction.         (line   6)
7932 * pasting, of subtrees:                  Structure editing.   (line   6)
7933 * per file keywords:                     Per file keywords.   (line   6)
7934 * plain lists:                           Plain lists.         (line   6)
7935 * plain text external links:             External links.      (line  43)
7936 * presentation, of agenda items:         Presentation and sorting.
7937                                                               (line   6)
7938 * printing sparse trees:                 Sparse trees.        (line  46)
7939 * priorities:                            Priorities.          (line   6)
7940 * priorities, of agenda items:           Sorting of agenda items.
7941                                                               (line   6)
7942 * progress logging:                      Progress logging.    (line   6)
7943 * projects, for publishing:              Project alist.       (line   6)
7944 * promotion, of subtrees:                Structure editing.   (line   6)
7945 * properties:                            Properties and columns.
7946                                                               (line   6)
7947 * properties, API <1>:                   Using the property API.
7948                                                               (line   6)
7949 * properties, API:                       Property API.        (line   6)
7950 * properties, column view:               Defining columns.    (line   6)
7951 * properties, inheritance:               Property searches.   (line   6)
7952 * properties, searching:                 Property searches.   (line   6)
7953 * properties, special:                   Special properties.  (line   6)
7954 * property syntax:                       Property syntax.     (line   6)
7955 * publishing:                            Publishing.          (line   6)
7956 * quoted HTML tags:                      Export options.      (line  26)
7957 * radio tables:                          Radio tables.        (line   6)
7958 * radio targets:                         Radio targets.       (line   6)
7959 * range references:                      References.          (line  60)
7960 * ranges, time:                          Time stamps.         (line   6)
7961 * recomputing table fields:              Updating the table.  (line   6)
7962 * references:                            References.          (line   6)
7963 * references, named:                     References.          (line  82)
7964 * references, to fields:                 References.          (line  15)
7965 * references, to ranges:                 References.          (line  60)
7966 * region, active <1>:                    ASCII export.        (line   9)
7967 * region, active <2>:                    Structure editing.   (line  71)
7968 * region, active <3>:                    HTML Export commands.
7969                                                               (line   6)
7970 * region, active:                        Built-in table editor.
7971                                                               (line 143)
7972 * regular expressions, with tags search: Tag searches.        (line  64)
7973 * remember.el <1>:                       Remember.            (line   6)
7974 * remember.el:                           Cooperation.         (line  33)
7975 * remote editing, from agenda:           Agenda commands.     (line 107)
7976 * remote editing, undo:                  Agenda commands.     (line 108)
7977 * richer text:                           Enhancing text.      (line   6)
7978 * RMAIL links:                           External links.      (line   6)
7979 * SCHEDULED keyword:                     Deadlines and scheduling.
7980                                                               (line  26)
7981 * scheduling:                            Time stamps.         (line   6)
7982 * Scripts, for agenda processing:        Extracting Agenda Information for other programs.
7983                                                               (line   6)
7984 * search option in file links:           Search options.      (line   6)
7985 * search strings, custom:                Custom searches.     (line   6)
7986 * searching for tags:                    Tag searches.        (line   6)
7987 * searching, of properties:              Property searches.   (line   6)
7988 * section-numbers:                       Export options.      (line  26)
7989 * setting tags:                          Setting tags.        (line   6)
7990 * SHELL links:                           External links.      (line   6)
7991 * show all, command:                     Visibility cycling.  (line  33)
7992 * show all, global visibility state:     Visibility cycling.  (line  22)
7993 * show hidden text:                      Visibility cycling.  (line   6)
7994 * showall, STARTUP keyword:              In-buffer settings.  (line  65)
7995 * showstars, STARTUP keyword:            In-buffer settings.  (line  88)
7996 * sorting, of agenda items:              Sorting of agenda items.
7997                                                               (line   6)
7998 * sparse tree, for deadlines:            Inserting deadline/schedule.
7999                                                               (line  13)
8000 * sparse tree, for TODO:                 TODO basics.         (line  38)
8001 * sparse tree, tag based:                Tags.                (line   6)
8002 * sparse trees:                          Sparse trees.        (line   6)
8003 * special keywords:                      In-buffer settings.  (line   6)
8004 * spreadsheet capabilities:              The spreadsheet.     (line   6)
8005 * statistics, for checkboxes:            Checkboxes.          (line  23)
8006 * storing links:                         Handling links.      (line   9)
8007 * structure editing:                     Structure editing.   (line   6)
8008 * structure of document:                 Document structure.  (line   6)
8009 * sublevels, inclusion into tags match:  Tag inheritance.     (line   6)
8010 * sublevels, inclusion into todo list:   Global TODO list.    (line  34)
8011 * subscript:                             Subscripts and Superscripts.
8012                                                               (line   6)
8013 * subtree cycling:                       Visibility cycling.  (line  10)
8014 * subtree visibility states:             Visibility cycling.  (line  10)
8015 * subtree, cut and paste:                Structure editing.   (line   6)
8016 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
8017 * subtrees, cut and paste:               Structure editing.   (line   6)
8018 * summary:                               Summary.             (line   6)
8019 * superscript:                           Subscripts and Superscripts.
8020                                                               (line   6)
8021 * syntax, of formulas:                   Formula syntax for Calc.
8022                                                               (line   6)
8023 * table editor, built-in:                Built-in table editor.
8024                                                               (line   6)
8025 * table editor, table.el:                Cooperation.         (line  37)
8026 * table of contents:                     Export options.      (line  26)
8027 * table.el:                              Cooperation.         (line  34)
8028 * tables <1>:                            Tables.              (line   6)
8029 * tables:                                Export options.      (line  26)
8030 * tables, export:                        Enhancing text.      (line  24)
8031 * tables, in other modes:                Tables in arbitrary syntax.
8032                                                               (line   6)
8033 * tag completion:                        Completion.          (line   6)
8034 * tag inheritance:                       Tag inheritance.     (line   6)
8035 * tag searches:                          Tag searches.        (line   6)
8036 * tags:                                  Tags.                (line   6)
8037 * tags view:                             Matching tags and properties.
8038                                                               (line   6)
8039 * tags, setting:                         Setting tags.        (line   6)
8040 * targets, for links:                    Internal links.      (line   6)
8041 * targets, radio:                        Radio targets.       (line   6)
8042 * tasks, breaking down:                  Breaking down tasks. (line   6)
8043 * templates, for remember:               Remember templates.  (line   6)
8044 * TeX interpretation:                    Embedded LaTeX.      (line   6)
8045 * TeX macros <1>:                        Math symbols.        (line   6)
8046 * TeX macros:                            Export options.      (line  26)
8047 * TeX macros, export:                    Enhancing text.      (line  21)
8048 * TeX symbol completion:                 Completion.          (line   6)
8049 * TeX-like syntax for sub- and superscripts: Export options.  (line  26)
8050 * thanks:                                History and Acknowledgments.
8051                                                               (line   6)
8052 * time format, custom:                   Custom time format.  (line   6)
8053 * time grid:                             Time-of-day specifications.
8054                                                               (line  26)
8055 * time info, in export:                  Export options.      (line  26)
8056 * time stamps <1>:                       Timestamps.          (line   6)
8057 * time stamps:                           Time stamps.         (line   6)
8058 * time, reading in minibuffer:           The date/time prompt.
8059                                                               (line   6)
8060 * time-of-day specification:             Time-of-day specifications.
8061                                                               (line   6)
8062 * time-sorted view:                      Timeline.            (line   6)
8063 * timeline, single file:                 Timeline.            (line   6)
8064 * timerange:                             Time stamps.         (line  40)
8065 * timestamp:                             Time stamps.         (line  14)
8066 * timestamp, inactive:                   Time stamps.         (line  49)
8067 * timestamp, with repeater interval:     Time stamps.         (line  24)
8068 * timestamps, creating:                  Creating timestamps. (line   6)
8069 * TODO items:                            TODO items.          (line   6)
8070 * TODO keyword matching:                 Global TODO list.    (line  17)
8071 * TODO keyword matching, with tags search: Tag searches.      (line  41)
8072 * todo keyword sets:                     Multiple sets in one file.
8073                                                               (line   6)
8074 * TODO keywords completion:              Completion.          (line   6)
8075 * TODO list, global:                     Global TODO list.    (line   6)
8076 * TODO types:                            TODO types.          (line   6)
8077 * TODO workflow:                         Workflow states.     (line   6)
8078 * transient-mark-mode <1>:               Built-in table editor.
8079                                                               (line 143)
8080 * transient-mark-mode <2>:               Structure editing.   (line  71)
8081 * transient-mark-mode <3>:               ASCII export.        (line   9)
8082 * transient-mark-mode:                   HTML Export commands.
8083                                                               (line   6)
8084 * translator function:                   Translator functions.
8085                                                               (line   6)
8086 * trees, sparse:                         Sparse trees.        (line   6)
8087 * trees, visibility:                     Visibility cycling.  (line   6)
8088 * tty keybindings:                       TTY keys.            (line   6)
8089 * types as TODO keywords:                TODO types.          (line   6)
8090 * underlined text:                       Enhancing text.      (line  15)
8091 * undoing remote-editing events:         Agenda commands.     (line 108)
8092 * updating, table:                       Updating the table.  (line   6)
8093 * URL links:                             External links.      (line   6)
8094 * USENET links:                          External links.      (line   6)
8095 * variables, for customization:          Customization.       (line   6)
8096 * vectors, in table calculations:        Formula syntax for Calc.
8097                                                               (line  11)
8098 * visibility cycling:                    Visibility cycling.  (line   6)
8099 * visibility cycling, drawers:           Drawers.             (line   6)
8100 * visible text, printing:                Sparse trees.        (line  46)
8101 * VM links:                              External links.      (line   6)
8102 * WANDERLUST links:                      External links.      (line   6)
8103 * weekly agenda:                         Weekly/Daily agenda. (line   6)
8104 * windmove.el:                           Conflicts.           (line  32)
8105 * workflow states as TODO keywords:      Workflow states.     (line   6)
8106 * XEmacs:                                Installation.        (line   6)
8107 * XOXO export:                           XOXO export.         (line   6)
8109 \x1f
8110 File: org,  Node: Key Index,  Prev: Index,  Up: Top
8112 Key Index
8113 *********
8115 \0\b[index\0\b]
8116 * Menu:
8118 * $:                                     Agenda commands.     (line 122)
8119 * ':                                     CDLaTeX mode.        (line  43)
8120 * +:                                     Agenda commands.     (line 145)
8121 * ,:                                     Agenda commands.     (line 137)
8122 * -:                                     Agenda commands.     (line 151)
8123 * .:                                     Agenda commands.     (line  99)
8124 * ::                                     Agenda commands.     (line 130)
8125 * < <1>:                                 The date/time prompt.
8126                                                               (line  48)
8127 * <:                                     Using column view.   (line  57)
8128 * <left>:                                Agenda commands.     (line  96)
8129 * <RET> <1>:                             Agenda commands.     (line  39)
8130 * <RET> <2>:                             Setting tags.        (line  76)
8131 * <RET> <3>:                             The date/time prompt.
8132                                                               (line  73)
8133 * <RET>:                                 Built-in table editor.
8134                                                               (line  64)
8135 * <right>:                               Agenda commands.     (line  91)
8136 * <SPC> <1>:                             Agenda commands.     (line  28)
8137 * <SPC>:                                 Setting tags.        (line  73)
8138 * <TAB> <1>:                             CDLaTeX mode.        (line  23)
8139 * <TAB> <2>:                             Visibility cycling.  (line  10)
8140 * <TAB> <3>:                             Setting tags.        (line  68)
8141 * <TAB> <4>:                             Agenda commands.     (line  33)
8142 * <TAB> <5>:                             Editing and debugging formulas.
8143                                                               (line  57)
8144 * <TAB> <6>:                             Built-in table editor.
8145                                                               (line  57)
8146 * <TAB>:                                 Plain lists.         (line  41)
8147 * > <1>:                                 The date/time prompt.
8148                                                               (line  49)
8149 * > <2>:                                 Using column view.   (line  57)
8150 * >:                                     Agenda commands.     (line 173)
8151 * ^:                                     CDLaTeX mode.        (line  33)
8152 * _:                                     CDLaTeX mode.        (line  33)
8153 * `:                                     CDLaTeX mode.        (line  39)
8154 * a <1>:                                 Agenda commands.     (line 134)
8155 * a:                                     Using column view.   (line  46)
8156 * b:                                     Agenda commands.     (line  49)
8157 * C:                                     Agenda commands.     (line 216)
8158 * c:                                     Agenda commands.     (line 196)
8159 * C-#:                                   Advanced features.   (line   9)
8160 * C-':                                   Agenda files.        (line  21)
8161 * C-,:                                   Agenda files.        (line  21)
8162 * C-<RET>:                               Structure editing.   (line  18)
8163 * C-_:                                   Agenda commands.     (line 108)
8164 * C-c ! <1>:                             Footnotes.           (line  14)
8165 * C-c !:                                 Creating timestamps. (line  19)
8166 * C-c #:                                 Checkboxes.          (line  57)
8167 * C-c %:                                 Handling links.      (line  82)
8168 * C-c &:                                 Handling links.      (line  86)
8169 * C-c ':                                 Editing and debugging formulas.
8170                                                               (line  36)
8171 * C-c *:                                 Updating the table.  (line  13)
8172 * C-c +:                                 Built-in table editor.
8173                                                               (line 143)
8174 * C-c ,:                                 Priorities.          (line  18)
8175 * C-c - <1>:                             Built-in table editor.
8176                                                               (line  92)
8177 * C-c -:                                 Plain lists.         (line  88)
8178 * C-c .:                                 Creating timestamps. (line  10)
8179 * C-c /:                                 Sparse trees.        (line  15)
8180 * C-c / p:                               Property searches.   (line  23)
8181 * C-c / r:                               Sparse trees.        (line  17)
8182 * C-c / T:                               Tag searches.        (line   9)
8183 * C-c / t:                               TODO basics.         (line  38)
8184 * C-c ::                                 Enhancing text.      (line  32)
8185 * C-c ;:                                 Comment lines.       (line  10)
8186 * C-c <:                                 Creating timestamps. (line  23)
8187 * C-c <TAB>:                             Built-in table editor.
8188                                                               (line 163)
8189 * C-c = <1>:                             Column formulas.     (line  26)
8190 * C-c =:                                 Editing and debugging formulas.
8191                                                               (line  14)
8192 * C-c >:                                 Creating timestamps. (line  27)
8193 * C-c ?:                                 Editing and debugging formulas.
8194                                                               (line  24)
8195 * C-c [:                                 Agenda files.        (line  15)
8196 * C-c \:                                 Tag searches.        (line   9)
8197 * C-c ]:                                 Agenda files.        (line  18)
8198 * C-c ^ <1>:                             Built-in table editor.
8199                                                               (line  96)
8200 * C-c ^:                                 Structure editing.   (line  58)
8201 * C-c `:                                 Built-in table editor.
8202                                                               (line 159)
8203 * C-c a !:                               Stuck projects.      (line  14)
8204 * C-c a #:                               Stuck projects.      (line  13)
8205 * C-c a a:                               Weekly/Daily agenda. (line   9)
8206 * C-c a C:                               Storing searches.    (line   9)
8207 * C-c a e:                               Exporting Agenda Views.
8208                                                               (line  57)
8209 * C-c a L:                               Timeline.            (line  10)
8210 * C-c a m:                               Tag searches.        (line  13)
8211 * C-c a M <1>:                           Matching tags and properties.
8212                                                               (line  15)
8213 * C-c a M:                               Tag searches.        (line  17)
8214 * C-c a m:                               Matching tags and properties.
8215                                                               (line  10)
8216 * C-c a T:                               Global TODO list.    (line  14)
8217 * C-c a t <1>:                           TODO basics.         (line  49)
8218 * C-c a t:                               Global TODO list.    (line   9)
8219 * C-c C-a:                               Visibility cycling.  (line  33)
8220 * C-c C-b:                               Motion.              (line  15)
8221 * C-c C-c <1>:                           Processing LaTeX fragments.
8222                                                               (line  15)
8223 * C-c C-c <2>:                           Cooperation.         (line  37)
8224 * C-c C-c <3>:                           Built-in table editor.
8225                                                               (line  56)
8226 * C-c C-c <4>:                           Editing and debugging formulas.
8227                                                               (line  46)
8228 * C-c C-c <5>:                           Plain lists.         (line  81)
8229 * C-c C-c <6>:                           Editing and debugging formulas.
8230                                                               (line  90)
8231 * C-c C-c <7>:                           Capturing Column View.
8232                                                               (line  39)
8233 * C-c C-c <8>:                           Cooperation.         (line  46)
8234 * C-c C-c <9>:                           TODO basics.         (line  30)
8235 * C-c C-c <10>:                          Clocking work time.  (line  89)
8236 * C-c C-c <11>:                          Checkboxes.          (line  37)
8237 * C-c C-c <12>:                          Using column view.   (line  39)
8238 * C-c C-c <13>:                          Property syntax.     (line  58)
8239 * C-c C-c <14>:                          Setting tags.        (line  10)
8240 * C-c C-c:                               The very busy C-c C-c key.
8241                                                               (line   6)
8242 * C-c C-d <1>:                           Agenda commands.     (line 158)
8243 * C-c C-d:                               Inserting deadline/schedule.
8244                                                               (line   9)
8245 * C-c C-e:                               Exporting.           (line  20)
8246 * C-c C-e a:                             ASCII export.        (line   9)
8247 * C-c C-e b:                             HTML Export commands.
8248                                                               (line  13)
8249 * C-c C-e c:                             iCalendar export.    (line  21)
8250 * C-c C-e h:                             HTML Export commands.
8251                                                               (line   6)
8252 * C-c C-e H:                             HTML Export commands.
8253                                                               (line  16)
8254 * C-c C-e I:                             iCalendar export.    (line  16)
8255 * C-c C-e i:                             iCalendar export.    (line  14)
8256 * C-c C-e l:                             LaTeX export commands.
8257                                                               (line   6)
8258 * C-c C-e L:                             LaTeX export commands.
8259                                                               (line   7)
8260 * C-c C-e R:                             HTML Export commands.
8261                                                               (line  19)
8262 * C-c C-e t:                             Export options.      (line  13)
8263 * C-c C-e v <1>:                         Sparse trees.        (line  46)
8264 * C-c C-e v:                             XOXO export.         (line  11)
8265 * C-c C-e v a:                           ASCII export.        (line  16)
8266 * C-c C-e v b:                           HTML Export commands.
8267                                                               (line  24)
8268 * C-c C-e v h:                           HTML Export commands.
8269                                                               (line  24)
8270 * C-c C-e v H:                           HTML Export commands.
8271                                                               (line  24)
8272 * C-c C-e v l:                           LaTeX export commands.
8273                                                               (line  10)
8274 * C-c C-e v L:                           LaTeX export commands.
8275                                                               (line  10)
8276 * C-c C-e v R:                           HTML Export commands.
8277                                                               (line  24)
8278 * C-c C-e x:                             XOXO export.         (line  10)
8279 * C-c C-f:                               Motion.              (line  12)
8280 * C-c C-j:                               Motion.              (line  21)
8281 * C-c C-l:                               Handling links.      (line  25)
8282 * C-c C-n:                               Motion.              (line   8)
8283 * C-c C-o <1>:                           Creating timestamps. (line  31)
8284 * C-c C-o:                               Handling links.      (line  59)
8285 * C-c C-p:                               Motion.              (line   9)
8286 * C-c C-q <1>:                           Built-in table editor.
8287                                                               (line 127)
8288 * C-c C-q:                               Editing and debugging formulas.
8289                                                               (line  50)
8290 * C-c C-r <1>:                           Visibility cycling.  (line  34)
8291 * C-c C-r:                               Editing and debugging formulas.
8292                                                               (line  53)
8293 * C-c C-s <1>:                           Agenda commands.     (line 155)
8294 * C-c C-s:                               Inserting deadline/schedule.
8295                                                               (line  20)
8296 * C-c C-t <1>:                           Clocking work time.  (line  30)
8297 * C-c C-t:                               TODO basics.         (line  13)
8298 * C-c C-u:                               Motion.              (line  18)
8299 * C-c C-v:                               TODO basics.         (line  38)
8300 * C-c C-w:                               Inserting deadline/schedule.
8301                                                               (line  13)
8302 * C-c C-x b:                             Visibility cycling.  (line  41)
8303 * C-c C-x C-a:                           ARCHIVE tag.         (line  28)
8304 * C-c C-x C-b:                           Checkboxes.          (line  39)
8305 * C-c C-x C-c <1>:                       Using column view.   (line   9)
8306 * C-c C-x C-c:                           Agenda commands.     (line 223)
8307 * C-c C-x C-d:                           Clocking work time.  (line  42)
8308 * C-c C-x C-i:                           Clocking work time.  (line  12)
8309 * C-c C-x C-j:                           Clocking work time.  (line  38)
8310 * C-c C-x C-k:                           Structure editing.   (line  43)
8311 * C-c C-x C-l:                           Processing LaTeX fragments.
8312                                                               (line   9)
8313 * C-c C-x C-n:                           Handling links.      (line  92)
8314 * C-c C-x C-o:                           Clocking work time.  (line  17)
8315 * C-c C-x C-p:                           Handling links.      (line  92)
8316 * C-c C-x C-r:                           Clocking work time.  (line  50)
8317 * C-c C-x C-s:                           Moving subtrees.     (line  10)
8318 * C-c C-x C-t:                           Custom time format.  (line  12)
8319 * C-c C-x C-u <1>:                       Capturing Column View.
8320                                                               (line  42)
8321 * C-c C-x C-u <2>:                       Dynamic blocks.      (line  21)
8322 * C-c C-x C-u:                           Clocking work time.  (line  91)
8323 * C-c C-x C-w <1>:                       Built-in table editor.
8324                                                               (line 116)
8325 * C-c C-x C-w:                           Structure editing.   (line  43)
8326 * C-c C-x C-x:                           Clocking work time.  (line  34)
8327 * C-c C-x C-y <1>:                       Structure editing.   (line  52)
8328 * C-c C-x C-y:                           Built-in table editor.
8329                                                               (line 120)
8330 * C-c C-x M-w <1>:                       Structure editing.   (line  48)
8331 * C-c C-x M-w:                           Built-in table editor.
8332                                                               (line 113)
8333 * C-c C-x p:                             Property syntax.     (line  49)
8334 * C-c C-x r:                             Capturing Column View.
8335                                                               (line  37)
8336 * C-c C-y <1>:                           Clocking work time.  (line  25)
8337 * C-c C-y:                               Creating timestamps. (line  48)
8338 * C-c l:                                 Handling links.      (line   9)
8339 * C-c { <1>:                             CDLaTeX mode.        (line  21)
8340 * C-c {:                                 Editing and debugging formulas.
8341                                                               (line  33)
8342 * C-c |:                                 Built-in table editor.
8343                                                               (line  40)
8344 * C-c }:                                 Editing and debugging formulas.
8345                                                               (line  79)
8346 * C-c ~:                                 Cooperation.         (line  48)
8347 * C-k:                                   Agenda commands.     (line 116)
8348 * C-S-<left>:                            Multiple sets in one file.
8349                                                               (line  25)
8350 * C-S-<right>:                           Multiple sets in one file.
8351                                                               (line  25)
8352 * C-TAB:                                 ARCHIVE tag.         (line  38)
8353 * C-u C-c *:                             Updating the table.  (line  16)
8354 * C-u C-c .:                             Creating timestamps. (line  14)
8355 * C-u C-c = <1>:                         Field formulas.      (line  24)
8356 * C-u C-c =:                             Editing and debugging formulas.
8357                                                               (line  14)
8358 * C-u C-c C-c:                           Updating the table.  (line  19)
8359 * C-u C-c C-l:                           Handling links.      (line  44)
8360 * C-u C-c C-t:                           TODO basics.         (line  22)
8361 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  31)
8362 * C-u C-c C-x C-s:                       Moving subtrees.     (line  14)
8363 * C-u C-c C-x C-u <1>:                   Clocking work time.  (line  93)
8364 * C-u C-c C-x C-u <2>:                   Capturing Column View.
8365                                                               (line  44)
8366 * C-u C-c C-x C-u:                       Dynamic blocks.      (line  22)
8367 * C-u C-u C-c *:                         Updating the table.  (line  22)
8368 * C-u C-u C-c =:                         Editing and debugging formulas.
8369                                                               (line  18)
8370 * C-u C-u C-c C-c:                       Updating the table.  (line  22)
8371 * C-x C-s <1>:                           Editing and debugging formulas.
8372                                                               (line  46)
8373 * C-x C-s:                               Agenda commands.     (line  87)
8374 * C-x C-w <1>:                           Exporting Agenda Views.
8375                                                               (line  11)
8376 * C-x C-w:                               Agenda commands.     (line 232)
8377 * D:                                     Agenda commands.     (line  72)
8378 * d:                                     Agenda commands.     (line  66)
8379 * e:                                     Using column view.   (line  33)
8380 * f:                                     Agenda commands.     (line  42)
8381 * g:                                     Agenda commands.     (line  76)
8382 * H:                                     Agenda commands.     (line 220)
8383 * I:                                     Agenda commands.     (line 178)
8384 * i:                                     Agenda commands.     (line 201)
8385 * J:                                     Agenda commands.     (line 190)
8386 * l:                                     Agenda commands.     (line  55)
8387 * L:                                     Agenda commands.     (line  30)
8388 * M:                                     Agenda commands.     (line 207)
8389 * m:                                     Agenda commands.     (line  66)
8390 * M-<down> <1>:                          Built-in table editor.
8391                                                               (line  82)
8392 * M-<down>:                              Editing and debugging formulas.
8393                                                               (line  76)
8394 * M-<left> <1>:                          Structure editing.   (line  25)
8395 * M-<left>:                              Built-in table editor.
8396                                                               (line  74)
8397 * M-<RET> <1>:                           Structure editing.   (line   6)
8398 * M-<RET>:                               Plain lists.         (line  49)
8399 * M-<right> <1>:                         Built-in table editor.
8400                                                               (line  74)
8401 * M-<right>:                             Structure editing.   (line  28)
8402 * M-<TAB> <1>:                           Editing and debugging formulas.
8403                                                               (line  64)
8404 * M-<TAB> <2>:                           Completion.          (line  10)
8405 * M-<TAB> <3>:                           Per file keywords.   (line  23)
8406 * M-<TAB> <4>:                           Property syntax.     (line  46)
8407 * M-<TAB>:                               Setting tags.        (line   6)
8408 * M-<up> <1>:                            Built-in table editor.
8409                                                               (line  82)
8410 * M-<up>:                                Editing and debugging formulas.
8411                                                               (line  76)
8412 * M-S-<down> <1>:                        Built-in table editor.
8413                                                               (line  89)
8414 * M-S-<down> <2>:                        Plain lists.         (line  66)
8415 * M-S-<down> <3>:                        Structure editing.   (line  40)
8416 * M-S-<down>:                            Editing and debugging formulas.
8417                                                               (line  72)
8418 * M-S-<left> <1>:                        Structure editing.   (line  31)
8419 * M-S-<left> <2>:                        The date/time prompt.
8420                                                               (line  70)
8421 * M-S-<left> <3>:                        Plain lists.         (line  72)
8422 * M-S-<left>:                            Built-in table editor.
8423                                                               (line  76)
8424 * M-S-<RET> <1>:                         Checkboxes.          (line  54)
8425 * M-S-<RET> <2>:                         Structure editing.   (line  22)
8426 * M-S-<RET>:                             Plain lists.         (line  59)
8427 * M-S-<right> <1>:                       Built-in table editor.
8428                                                               (line  79)
8429 * M-S-<right> <2>:                       The date/time prompt.
8430                                                               (line  67)
8431 * M-S-<right> <3>:                       Plain lists.         (line  72)
8432 * M-S-<right>:                           Structure editing.   (line  34)
8433 * M-S-<up> <1>:                          Built-in table editor.
8434                                                               (line  86)
8435 * M-S-<up> <2>:                          Editing and debugging formulas.
8436                                                               (line  72)
8437 * M-S-<up> <3>:                          Plain lists.         (line  66)
8438 * M-S-<up>:                              Structure editing.   (line  37)
8439 * mouse-1 <1>:                           Agenda commands.     (line  33)
8440 * mouse-1 <2>:                           Handling links.      (line  73)
8441 * mouse-1:                               The date/time prompt.
8442                                                               (line  52)
8443 * mouse-2 <1>:                           Agenda commands.     (line  33)
8444 * mouse-2:                               Handling links.      (line  73)
8445 * mouse-3 <1>:                           Agenda commands.     (line  28)
8446 * mouse-3:                               Handling links.      (line  78)
8447 * n <1>:                                 Agenda commands.     (line  19)
8448 * n:                                     Using column view.   (line  30)
8449 * O:                                     Agenda commands.     (line 182)
8450 * o:                                     Agenda commands.     (line  65)
8451 * p <1>:                                 Agenda commands.     (line  20)
8452 * p:                                     Using column view.   (line  30)
8453 * P:                                     Agenda commands.     (line 142)
8454 * q <1>:                                 Agenda commands.     (line 243)
8455 * q:                                     Using column view.   (line  17)
8456 * r <1>:                                 Global TODO list.    (line  22)
8457 * r:                                     Agenda commands.     (line  80)
8458 * s:                                     Agenda commands.     (line  87)
8459 * S:                                     Agenda commands.     (line 211)
8460 * S-<down> <1>:                          Plain lists.         (line  62)
8461 * S-<down> <2>:                          Creating timestamps. (line  40)
8462 * S-<down> <3>:                          Priorities.          (line  23)
8463 * S-<down> <4>:                          Editing and debugging formulas.
8464                                                               (line  67)
8465 * S-<down> <5>:                          The date/time prompt.
8466                                                               (line  61)
8467 * S-<down>:                              Agenda commands.     (line 151)
8468 * S-<left> <1>:                          Multiple sets in one file.
8469                                                               (line  29)
8470 * S-<left> <2>:                          Using column view.   (line  26)
8471 * S-<left> <3>:                          Agenda commands.     (line 169)
8472 * S-<left> <4>:                          The date/time prompt.
8473                                                               (line  58)
8474 * S-<left> <5>:                          TODO basics.         (line  26)
8475 * S-<left> <6>:                          Property syntax.     (line  66)
8476 * S-<left> <7>:                          Editing and debugging formulas.
8477                                                               (line  67)
8478 * S-<left>:                              Creating timestamps. (line  35)
8479 * S-<RET>:                               Built-in table editor.
8480                                                               (line 146)
8481 * S-<right> <1>:                         Multiple sets in one file.
8482                                                               (line  29)
8483 * S-<right> <2>:                         Using column view.   (line  26)
8484 * S-<right> <3>:                         Agenda commands.     (line 161)
8485 * S-<right> <4>:                         Creating timestamps. (line  35)
8486 * S-<right> <5>:                         Property syntax.     (line  66)
8487 * S-<right> <6>:                         Editing and debugging formulas.
8488                                                               (line  67)
8489 * S-<right> <7>:                         The date/time prompt.
8490                                                               (line  55)
8491 * S-<right>:                             TODO basics.         (line  26)
8492 * S-<TAB> <1>:                           Built-in table editor.
8493                                                               (line  61)
8494 * S-<TAB>:                               Visibility cycling.  (line  22)
8495 * S-<up> <1>:                            Editing and debugging formulas.
8496                                                               (line  67)
8497 * S-<up> <2>:                            Plain lists.         (line  62)
8498 * S-<up> <3>:                            The date/time prompt.
8499                                                               (line  64)
8500 * S-<up> <4>:                            Creating timestamps. (line  40)
8501 * S-<up> <5>:                            Agenda commands.     (line 145)
8502 * S-<up>:                                Priorities.          (line  23)
8503 * S-M-<left>:                            Using column view.   (line  61)
8504 * S-M-<RET>:                             TODO basics.         (line  57)
8505 * S-M-<right>:                           Using column view.   (line  58)
8506 * t:                                     Agenda commands.     (line 112)
8507 * T:                                     Agenda commands.     (line 125)
8508 * v:                                     Using column view.   (line  42)
8509 * w:                                     Agenda commands.     (line  66)
8510 * X:                                     Agenda commands.     (line 185)
8511 * x:                                     Agenda commands.     (line 244)
8512 * y:                                     Agenda commands.     (line  66)
8515 \x1f
8516 Tag Table:
8517 Node: Top\x7f971
8518 Node: Introduction\x7f13147
8519 Node: Summary\x7f13562
8520 Node: Installation\x7f16689
8521 Node: Activation\x7f18067
8522 Node: Feedback\x7f19304
8523 Node: Document structure\x7f21373
8524 Node: Outlines\x7f22265
8525 Node: Headlines\x7f22930
8526 Ref: Headlines-Footnote-1\x7f23934
8527 Node: Visibility cycling\x7f24045
8528 Ref: Visibility cycling-Footnote-1\x7f26255
8529 Ref: Visibility cycling-Footnote-2\x7f26313
8530 Ref: Visibility cycling-Footnote-3\x7f26363
8531 Node: Motion\x7f26633
8532 Node: Structure editing\x7f27587
8533 Node: Archiving\x7f30754
8534 Node: ARCHIVE tag\x7f31312
8535 Node: Moving subtrees\x7f33105
8536 Ref: Moving subtrees-Footnote-1\x7f34652
8537 Node: Sparse trees\x7f34939
8538 Ref: Sparse trees-Footnote-1\x7f37211
8539 Ref: Sparse trees-Footnote-2\x7f37393
8540 Node: Plain lists\x7f37508
8541 Ref: Plain lists-Footnote-1\x7f41705
8542 Ref: Plain lists-Footnote-2\x7f42063
8543 Node: Drawers\x7f42244
8544 Ref: Drawers-Footnote-1\x7f43121
8545 Node: orgstruct-mode\x7f43227
8546 Node: Tables\x7f44127
8547 Node: Built-in table editor\x7f44708
8548 Node: Narrow columns\x7f52114
8549 Ref: Narrow columns-Footnote-1\x7f54049
8550 Node: Column groups\x7f54095
8551 Node: orgtbl-mode\x7f55628
8552 Node: The spreadsheet\x7f56431
8553 Node: References\x7f57518
8554 Ref: References-Footnote-1\x7f61982
8555 Node: Formula syntax for Calc\x7f62271
8556 Node: Formula syntax for Lisp\x7f64728
8557 Node: Field formulas\x7f66446
8558 Node: Column formulas\x7f67754
8559 Node: Editing and debugging formulas\x7f69353
8560 Node: Updating the table\x7f73506
8561 Node: Advanced features\x7f74559
8562 Node: Hyperlinks\x7f79084
8563 Node: Link format\x7f79862
8564 Node: Internal links\x7f81155
8565 Ref: Internal links-Footnote-1\x7f83080
8566 Node: Radio targets\x7f83215
8567 Node: External links\x7f83915
8568 Node: Handling links\x7f86319
8569 Ref: Handling links-Footnote-1\x7f91635
8570 Ref: Handling links-Footnote-2\x7f91872
8571 Node: Using links outside Org-mode\x7f91946
8572 Node: Link abbreviations\x7f92456
8573 Node: Search options\x7f94149
8574 Ref: Search options-Footnote-1\x7f95929
8575 Node: Custom searches\x7f96010
8576 Node: TODO items\x7f97041
8577 Node: TODO basics\x7f98079
8578 Node: TODO extensions\x7f100294
8579 Node: Workflow states\x7f101238
8580 Ref: Workflow states-Footnote-1\x7f102413
8581 Node: TODO types\x7f102506
8582 Ref: TODO types-Footnote-1\x7f104089
8583 Node: Multiple sets in one file\x7f104171
8584 Node: Fast access to TODO states\x7f105791
8585 Node: Per file keywords\x7f106934
8586 Ref: Per file keywords-Footnote-1\x7f108236
8587 Node: Faces for TODO keywords\x7f108437
8588 Node: Progress logging\x7f109143
8589 Node: Closing items\x7f109574
8590 Ref: Closing items-Footnote-1\x7f110508
8591 Ref: Closing items-Footnote-2\x7f110713
8592 Node: Tracking TODO state changes\x7f110786
8593 Ref: Tracking TODO state changes-Footnote-1\x7f111971
8594 Node: Priorities\x7f112046
8595 Ref: Priorities-Footnote-1\x7f113696
8596 Node: Breaking down tasks\x7f113766
8597 Ref: Breaking down tasks-Footnote-1\x7f114286
8598 Node: Checkboxes\x7f114382
8599 Node: Tags\x7f117231
8600 Node: Tag inheritance\x7f118003
8601 Node: Setting tags\x7f118940
8602 Ref: Setting tags-Footnote-1\x7f123463
8603 Ref: Setting tags-Footnote-2\x7f123575
8604 Node: Tag searches\x7f123658
8605 Node: Properties and columns\x7f126385
8606 Node: Property syntax\x7f127490
8607 Node: Special properties\x7f130180
8608 Node: Property searches\x7f131096
8609 Node: Column view\x7f132363
8610 Node: Defining columns\x7f133594
8611 Node: Scope of column definitions\x7f133992
8612 Node: Column attributes\x7f134914
8613 Node: Using column view\x7f137162
8614 Node: Capturing Column View\x7f139243
8615 Node: Property API\x7f140970
8616 Node: Timestamps\x7f141324
8617 Node: Time stamps\x7f141735
8618 Ref: Time stamps-Footnote-1\x7f144089
8619 Node: Creating timestamps\x7f144205
8620 Node: The date/time prompt\x7f146279
8621 Ref: The date/time prompt-Footnote-1\x7f149038
8622 Node: Custom time format\x7f149144
8623 Node: Deadlines and scheduling\x7f150836
8624 Ref: Deadlines and scheduling-Footnote-1\x7f152909
8625 Node: Inserting deadline/schedule\x7f153064
8626 Node: Repeated tasks\x7f154182
8627 Ref: Repeated tasks-Footnote-1\x7f155860
8628 Node: Clocking work time\x7f155981
8629 Ref: Clocking work time-Footnote-1\x7f160828
8630 Ref: Clocking work time-Footnote-2\x7f160906
8631 Node: Remember\x7f161032
8632 Node: Setting up remember\x7f161911
8633 Node: Remember templates\x7f162539
8634 Ref: Remember templates-Footnote-1\x7f166100
8635 Ref: Remember templates-Footnote-2\x7f166283
8636 Node: Storing notes\x7f166381
8637 Ref: Storing notes-Footnote-1\x7f168860
8638 Node: Agenda views\x7f168962
8639 Node: Agenda files\x7f170913
8640 Ref: Agenda files-Footnote-1\x7f172001
8641 Ref: Agenda files-Footnote-2\x7f172150
8642 Node: Agenda dispatcher\x7f172343
8643 Ref: Agenda dispatcher-Footnote-1\x7f174397
8644 Ref: Agenda dispatcher-Footnote-2\x7f174491
8645 Node: Built-in agenda views\x7f174585
8646 Node: Weekly/Daily agenda\x7f175167
8647 Ref: Weekly/Daily agenda-Footnote-1\x7f178465
8648 Node: Global TODO list\x7f178669
8649 Node: Matching tags and properties\x7f180949
8650 Node: Timeline\x7f182040
8651 Node: Stuck projects\x7f182714
8652 Node: Presentation and sorting\x7f184567
8653 Node: Categories\x7f185360
8654 Ref: Categories-Footnote-1\x7f186071
8655 Node: Time-of-day specifications\x7f186391
8656 Node: Sorting of agenda items\x7f188364
8657 Node: Agenda commands\x7f189648
8658 Node: Custom agenda views\x7f197111
8659 Node: Storing searches\x7f197832
8660 Ref: Storing searches-Footnote-1\x7f200366
8661 Node: Block agenda\x7f200483
8662 Node: Setting Options\x7f201715
8663 Node: Exporting Agenda Views\x7f204456
8664 Ref: Exporting Agenda Views-Footnote-1\x7f208742
8665 Ref: Exporting Agenda Views-Footnote-2\x7f208799
8666 Node: Extracting Agenda Information for other programs\x7f208985
8667 Node: Embedded LaTeX\x7f213113
8668 Ref: Embedded LaTeX-Footnote-1\x7f214207
8669 Node: Math symbols\x7f214397
8670 Node: Subscripts and Superscripts\x7f215164
8671 Node: LaTeX fragments\x7f216010
8672 Ref: LaTeX fragments-Footnote-1\x7f218243
8673 Ref: LaTeX fragments-Footnote-2\x7f218504
8674 Node: Processing LaTeX fragments\x7f218638
8675 Node: CDLaTeX mode\x7f219586
8676 Ref: CDLaTeX mode-Footnote-1\x7f222072
8677 Node: Exporting\x7f222220
8678 Node: ASCII export\x7f223687
8679 Node: HTML export\x7f225188
8680 Node: HTML Export commands\x7f225814
8681 Node: Quoting HTML tags\x7f227601
8682 Node: Links\x7f228236
8683 Node: Images\x7f228933
8684 Ref: Images-Footnote-1\x7f229804
8685 Node: CSS support\x7f229865
8686 Ref: CSS support-Footnote-1\x7f231184
8687 Node: LaTeX export\x7f231297
8688 Node: LaTeX export commands\x7f231621
8689 Node: Quoting LaTeX code\x7f232783
8690 Node: XOXO export\x7f233288
8691 Node: iCalendar export\x7f233728
8692 Node: Text interpretation\x7f235197
8693 Node: Comment lines\x7f235788
8694 Node: Initial text\x7f236183
8695 Node: Footnotes\x7f237852
8696 Node: Enhancing text\x7f238643
8697 Ref: Enhancing text-Footnote-1\x7f240512
8698 Node: Export options\x7f240602
8699 Node: Publishing\x7f243004
8700 Ref: Publishing-Footnote-1\x7f243965
8701 Ref: Publishing-Footnote-2\x7f244109
8702 Node: Configuration\x7f244260
8703 Node: Project alist\x7f244978
8704 Node: Sources and destinations\x7f246044
8705 Node: Selecting files\x7f246774
8706 Node: Publishing action\x7f247522
8707 Node: Publishing options\x7f248856
8708 Node: Publishing links\x7f251231
8709 Node: Project page index\x7f252744
8710 Node: Sample configuration\x7f253522
8711 Node: Simple example\x7f254014
8712 Node: Complex example\x7f254687
8713 Node: Triggering publication\x7f256763
8714 Node: Miscellaneous\x7f257448
8715 Node: Completion\x7f258082
8716 Node: Customization\x7f259752
8717 Node: In-buffer settings\x7f260335
8718 Node: The very busy C-c C-c key\x7f266005
8719 Node: Clean view\x7f267860
8720 Node: TTY keys\x7f270437
8721 Node: Interaction\x7f272047
8722 Node: Cooperation\x7f272444
8723 Node: Conflicts\x7f275320
8724 Node: Bugs\x7f277323
8725 Node: Extensions and Hacking\x7f278819
8726 Node: Extensions\x7f279544
8727 Node: Adding hyperlink types\x7f281806
8728 Node: Tables in arbitrary syntax\x7f285468
8729 Node: Radio tables\x7f286557
8730 Node: A LaTeX example\x7f289060
8731 Ref: A LaTeX example-Footnote-1\x7f292706
8732 Ref: A LaTeX example-Footnote-2\x7f292854
8733 Node: Translator functions\x7f293289
8734 Ref: Translator functions-Footnote-1\x7f296398
8735 Node: Dynamic blocks\x7f296486
8736 Node: Special agenda views\x7f298458
8737 Node: Using the property API\x7f301703
8738 Node: History and Acknowledgments\x7f303184
8739 Node: Index\x7f309745
8740 Node: Key Index\x7f344814
8741 \x1f
8742 End Tag Table