Release 4.58
[org-mode.git] / org
blobd657fb2e7d19457e9a29c1d330c45ccc5e870c8c
1 This is org, produced by makeinfo version 4.8 from org.texi.
3 INFO-DIR-SECTION Emacs
4 START-INFO-DIR-ENTRY
5 * Org Mode: (org).      outline-based notes management and organizer
6 END-INFO-DIR-ENTRY
8    This manual is for Org-mode (version 4.58).
10    Copyright (C) 2004, 2005, 2006 Free Software Foundation
12      Permission is granted to copy, distribute and/or modify this
13      document under the terms of the GNU Free Documentation License,
14      Version 1.1 or any later version published by the Free Software
15      Foundation; with no Invariant Sections, with the Front-Cover texts
16      being "A GNU Manual," and with the Back-Cover Texts as in (a)
17      below.  A copy of the license is included in the section entitled
18      "GNU Free Documentation License."
20      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
21      modify this GNU Manual, like GNU software.  Copies published by
22      the Free Software Foundation raise funds for GNU development."
24 \x1f
25 File: org,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
27 Org Mode Manual
28 ***************
30 This manual is for Org-mode (version 4.58).
32    Copyright (C) 2004, 2005, 2006 Free Software Foundation
34      Permission is granted to copy, distribute and/or modify this
35      document under the terms of the GNU Free Documentation License,
36      Version 1.1 or any later version published by the Free Software
37      Foundation; with no Invariant Sections, with the Front-Cover texts
38      being "A GNU Manual," and with the Back-Cover Texts as in (a)
39      below.  A copy of the license is included in the section entitled
40      "GNU Free Documentation License."
42      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
43      modify this GNU Manual, like GNU software.  Copies published by
44      the Free Software Foundation raise funds for GNU development."
46 * Menu:
48 * Introduction::                Getting started
49 * Document structure::          A tree works like your brain
50 * Tables::                      Pure magic for quick formatting
51 * Hyperlinks::                  Notes in context
52 * TODO items::                  Every tree branch can be a TODO item
53 * Timestamps::                  Assign date and time to items
54 * Tags::                        Tagging headlines and matching sets of tags
55 * Agenda views::                Collecting information into views
56 * Embedded LaTeX::              LaTeX fragments and formulas
57 * Exporting::                   Sharing and publishing of notes
58 * Publishing::                  Create a web site of linked Org-mode files
59 * Miscellaneous::               All the rest which did not fit elsewhere
60 * Extensions and Hacking::      It is possible to write add-on code
61 * History and Acknowledgments::  How Org-mode came into being
62 * Index::                       The fast road to specific information
63 * Key Index::                   Key bindings and where they are described
65  --- The Detailed Node Listing ---
67 Introduction
69 * Summary::                     Brief summary of what Org-mode does
70 * Installation::                How to install a downloaded version of Org-mode
71 * Activation::                  How to activate Org-mode for certain buffers.
72 * Feedback::                    Bug reports, ideas, patches etc.
74 Document Structure
76 * Outlines::                    Org-mode is based on outline-mode
77 * Headlines::                   How to typeset org-tree headlines
78 * Visibility cycling::          Show and hide, much simplified
79 * Motion::                      Jumping to other headlines
80 * Structure editing::           Changing sequence and level of headlines
81 * Archiving::                   Move done task trees to a different place
82 * Sparse trees::                Matches embedded in context
83 * Plain lists::                 Additional structure within an entry
85 Archiving
87 * ARCHIVE tag::                 Marking a tree as inactive
88 * Moving subtrees::             Moving a tree to an archive file
90 Tables
92 * Built-in table editor::       Simple tables
93 * Narrow columns::              Stop wasting space in tables
94 * Table calculations::          Compute a field from other fields
95 * orgtbl-mode::                 The table editor as minor mode
96 * table.el::                    Complex tables
98 Calculations in tables
100 * Formula syntax::              How to write a formula
101 * Lisp formulas::               An alternative way to write formulas
102 * Column formulas::             Formulas valid for all fields in a column
103 * Advanced features::           Field names, parameters and automatic recalc
104 * Named-field formulas::        Formulas valid in single fields
105 * Editing/debugging formulas::  Changing a stored formula
106 * Appetizer::                   Taste the power of calc
108 Hyperlinks
110 * Link format::                 How links in Org-mode are formatted
111 * Internal links::              Links to other places in the current file
112 * External links::              URL-like links to the world
113 * Handling links::              Creating, inserting and following
114 * Link abbreviations::          Shortcuts for writing complex links
115 * Search options::              Linking to a specific location
116 * Custom searches::             When the default search is not enough
117 * Remember::                    Org-trees store quick notes
119 Internal links
121 * Radio targets::               Make targets trigger links in plain text.
122 * CamelCase links::             Activating CamelCase words as links
124 TODO items
126 * TODO basics::                 Marking and displaying TODO entries
127 * TODO extensions::             Workflow and assignments
128 * Priorities::                  Some things are more important than others
129 * Breaking down tasks::         Splitting a task into managable pieces
130 * Checkboxes::                  Tick-off lists
132 Extended use of TODO keywords
134 * Workflow states::             From TODO to DONE in steps
135 * TODO types::                  I do this, Fred the rest
136 * Per file keywords::           Different files, different requirements
138 Timestamps
140 * Time stamps::                 Assigning a time to a tree entry
141 * Creating timestamps::         Commands which insert timestamps
142 * Custom time format::          If you cannot work with the ISO format
143 * Progress logging::            Documenting when what work was done.
145 Creating timestamps
147 * The date/time prompt::        How org-mode helps you entering date and time
149 Progress Logging
151 * Closing items::               When was this entry marked DONE?
152 * Clocking work time::          When exactly did you work on this item?
154 Tags
156 * Tag inheritance::             Tags use the tree structure of the outline
157 * Setting tags::                How to assign tags to a headline
158 * Tag searches::                Searching for combinations of tags
160 Agenda Views
162 * Agenda files::                Files being searched for agenda information
163 * Agenda dispatcher::           Keyboard access to agenda views
164 * Built-in agenda views::       What is available out of the box?
165 * Presentation and sorting::    How agenda items are prepared for display
166 * Agenda commands::             Remote editing of org trees
167 * Custom agenda views::         Defining special searches and views
169 The built-in agenda views
171 * Weekly/Daily agenda::         The calendar page with current tasks
172 * Global TODO list::            All unfinished action items
173 * Matching headline tags::      Structured information with fine-tuned search
174 * Timeline::                    Time-sorted view for single file
175 * Stuck projects::              Find projects you need to review
177 Presentation and sorting
179 * Categories::                  Not all tasks are equal
180 * Time-of-day specifications::  How the agenda knows the time
181 * Sorting of agenda items::     The order of things
183 Custom agenda views
185 * Storing searches::            Type once, use often
186 * Block agenda::                All the stuff you need in a single buffer
187 * Setting Options::             Changing the rules
188 * Batch processing::            Agenda views from the command line
190 Embedded LaTeX
192 * Math symbols::                TeX macros for symbols and Greek letters
193 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
194 * LaTeX fragments::             Complex formulas made easy
195 * Processing LaTeX fragments::  Previewing LaTeX processing
196 * CDLaTeX mode::                Speed up entering of formulas
198 Exporting
200 * ASCII export::                Exporting to plain ASCII
201 * HTML export::                 Exporting to HTML
202 * XOXO export::                 Exporting to XOXO
203 * iCalendar export::            Exporting in iCalendar format
204 * Text interpretation::         How the exporter looks at the file
206 Text interpretation by the exporter
208 * Comment lines::               Some lines will not be exported
209 * Enhancing text::              Subscripts, symbols and more
210 * Export options::              How to influence the export settings
212 Publishing
214 * Configuration::               Defining projects
215 * Sample configuration::        Example projects
216 * Triggering publication::      Publication commands
218 Configuration
220 * Project alist::               The central configuration variable
221 * Sources and destinations::    From here to there
222 * Selecting files::             What files are part of the project?
223 * Publishing action::           Setting the function doing the publishing
224 * Publishing options::          Tweaking HTML export
225 * Publishing links::            Which links keep working after publishing?
226 * Project page index::          Publishing a list of project files
228 Sample configuration
230 * Simple example::              One-component publishing
231 * Complex example::             A multi-component publishing example
233 Miscellaneous
235 * Completion::                  M-TAB knows what you need
236 * Customization::               Adapting Org-mode to your taste
237 * In-buffer settings::          Overview of the #+KEYWORDS
238 * The very busy C-c C-c key::   When in doubt, press C-c C-c
239 * Clean view::                  Getting rid of leading stars in the outline
240 * TTY keys::                    Using Org-mode on a tty
241 * Interaction::                 Other Emacs packages
242 * Bugs::                        Things which do not work perfectly
244 Interaction with other packages
246 * Cooperation::                 Packages Org-mode cooperates with
247 * Conflicts::                   Packages that lead to conflicts
249 Extensions, Hooks and Hacking
251 * Extensions::                  Existing 3rd-part extensions
252 * Dynamic blocks::              Automatically filled blocks
253 * Special agenda views::
255 \x1f
256 File: org,  Node: Introduction,  Next: Document structure,  Prev: Top,  Up: Top
258 1 Introduction
259 **************
261 * Menu:
263 * Summary::                     Brief summary of what Org-mode does
264 * Installation::                How to install a downloaded version of Org-mode
265 * Activation::                  How to activate Org-mode for certain buffers.
266 * Feedback::                    Bug reports, ideas, patches etc.
268 \x1f
269 File: org,  Node: Summary,  Next: Installation,  Prev: Introduction,  Up: Introduction
271 1.1 Summary
272 ===========
274 Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
275 project planning with a fast and effective plain-text system.
277    Org-mode develops organizational tasks around NOTES files that
278 contain lists or information about projects as plain text.  Org-mode is
279 implemented on top of outline-mode, which makes it possible to keep the
280 content of large files well structured.  Visibility cycling and
281 structure editing help to work with the tree.  Tables are easily created
282 with a built-in table editor.  Org-mode supports ToDo items, deadlines,
283 time stamps, and scheduling.  It dynamically compiles entries into an
284 agenda that utilizes and smoothly integrates much of the Emacs calendar
285 and diary.  Plain text URL-like links connect to websites, emails,
286 Usenet messages, BBDB entries, and any files related to the projects.
287 For printing and sharing of notes, an Org-mode file can be exported as a
288 structured ASCII file, as HTML, or (todo and agenda items only) as an
289 iCalendar file.  It can also serve as a publishing tool for a set of
290 linked webpages.
292    An important design aspect that distinguishes Org-mode from for
293 example Planner/Muse is that it encougages to store every piece of
294 information only once.  In Planner, you have project pages, day pages
295 and possibly other files, duplicating some information such as tasks.
296 In Org-mode, you only have notes files.  In your notes you mark entries
297 as tasks, label them with tags and timestamps.  All necessary lists
298 like a schedule for the day, the agenda for a meeting, tasks lists
299 selected by tags etc are created dynamically when you need them.
301    Org-mode keeps simple things simple.  When first fired up, it should
302 feel like a straightforward, easy to use outliner.  Complexity is not
303 imposed, but a large amount of functionality is available when you need
304 it.  Org-mode can be used on different levels and in different ways, for
305 example:
307      * as an outline extension with visibility cycling and structure editing
308      * as an ASCII system and table editor for taking structured notes
309      * as an ASCII table editor with spreadsheet-like capabilities
310      * as a TODO list editor
311      * as a full agenda and planner with deadlines and work scheduling
312      * as an environment to implement David Allen's GTD system
313      * as a simple hypertext system, with HTML export
314      * as a publishing tool to create a set of interlinked webpages
316    Org-mode's automatic, context sensitive table editor can be
317 integrated into any major mode by activating the minor Orgtbl-mode.
319    There is a website for Org-mode which provides links to the newest
320 version of Org-mode, as well as additional information, frequently asked
321 questions (FAQ), links to tutorials etc.  This page is located at
322 `http://www.astro.uva.nl/~dominik/Tools/org/'.
324 \x1f
325 File: org,  Node: Installation,  Next: Activation,  Prev: Summary,  Up: Introduction
327 1.2 Installation
328 ================
330 Important: If Org-mode is part of the Emacs distribution or an XEmacs
331 package, please skip this section and go directly to *Note Activation::.
333    If you have downloaded Org-mode from the Web, you must take the
334 following steps to install it: Go into the Org-mode distribution
335 directory and edit the top section of the file `Makefile'.  You must
336 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
337 and the paths to the directories where local Lisp and Info files are
338 kept.  If you don't have access to the system-wide directories, create
339 your own two directories for these files, enter them into the Makefile,
340 and make sure Emacs finds the Lisp files by adding the following line
341 to `.emacs':
343      (setq load-path (cons "~/path/to/lispdir" load-path))
345    XEmacs users now need to install the file `noutline.el' from the
346 `xemacs' subdirectory of the Org-mode distribution.  Use the command:
348      make install-noutline
350 Now byte-compile and install the Lisp files with the shell commands:
352      make
353      make install
355 If you want to install the info documentation, use this command:
357      make install-info
359 Then add to `.emacs':
361      ;; This line only if org-mode is not part of the X/Emacs distribution.
362      (require 'org-install)
364 \x1f
365 File: org,  Node: Activation,  Next: Feedback,  Prev: Installation,  Up: Introduction
367 1.3 Activation
368 ==============
370 Add the following lines to your `.emacs' file.  The last two lines
371 define _global_ keys for the commands `org-store-link' and `org-agenda'
372 - please choose suitable keys yourself.
374      ;; The following lines are always needed.  Choose your own keys.
375      (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
376      (define-key global-map "\C-cl" 'org-store-link)
377      (define-key global-map "\C-ca" 'org-agenda)
379    Furthermore, you must activate `font-lock-mode' in org-mode buffers,
380 because significant functionality depends on font-locking being active.
381 You can do this with either one of the following two lines (XEmacs
382 user must use the second option):
383      (global-font-lock-mode 1)                     ; for all buffers
384      (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only
386    With this setup, all files with extension `.org' will be put into
387 Org-mode.  As an alternative, make the first line of a file look like
388 this:
390      MY PROJECTS    -*- mode: org; -*-
392 which will select Org-mode for this buffer no matter what the file's
393 name is.  See also the variable `org-insert-mode-line-in-empty-file'.
395 \x1f
396 File: org,  Node: Feedback,  Prev: Activation,  Up: Introduction
398 1.4 Feedback
399 ============
401 If you find problems with Org-mode, or if you have questions, remarks,
402 or ideas about it, please contact the maintainer Carsten Dominik at
403 <dominik at science dot uva dot nl>.
405    For bug reports, please provide as much information as possible,
406 including the version information of Emacs (`C-h v emacs-version
407 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
408 Org-mode related setup in `.emacs'.  If an error occurs, a backtrace
409 can be very useful (see below on how to create one).  Often a small
410 example file helps, along with clear information about:
412   1. What exactly did you do?
414   2. What did you expect to happen?
416   3. What happened instead?
417         Thank you for helping to improve this mode.
419 How to create a useful backtrace
420 ................................
422 If working with Org-mode produces an error with a message you don't
423 understand, you may have hit a bug.  The best way to report this is by
424 providing, in addition to what was mentioned above, a _Backtrace_.
425 This is information from the built-in debugger about where and how the
426 error occurred.  Here is how to produce a useful backtrace:
428   1. Start a fresh Emacs or XEmacs, and make sure that it will load the
429      original Lisp code in `org.el' instead of the compiled version in
430      `org.elc'.  The backtrace contains much more information if it is
431      produced with uncompiled code.  To do this, either rename `org.elc'
432      to something else before starting Emacs, or ask Emacs explicitly
433      to load `org.el' by using the command line
434           emacs -l /path/to/org.el
436   2. Go to the `Options' menu and select `Enter Debugger on Error'
437      (XEmacs has this option in the `Troubleshooting' sub-menu).
439   3. Do whatever you have to do to hit the error.  Don't forget to
440      document the steps you take.
442   4. When you hit the error, a `*Backtrace*' buffer will appear on the
443      screen.  Save this buffer to a file (for example using `C-x C-w')
444      and attach it to your bug report.
446 \x1f
447 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
449 2 Document Structure
450 ********************
452 Org-mode is based on outline mode and provides flexible commands to
453 edit the structure of the document.
455 * Menu:
457 * Outlines::                    Org-mode is based on outline-mode
458 * Headlines::                   How to typeset org-tree headlines
459 * Visibility cycling::          Show and hide, much simplified
460 * Motion::                      Jumping to other headlines
461 * Structure editing::           Changing sequence and level of headlines
462 * Archiving::                   Move done task trees to a different place
463 * Sparse trees::                Matches embedded in context
464 * Plain lists::                 Additional structure within an entry
466 \x1f
467 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
469 2.1 Outlines
470 ============
472 Org-mode is implemented on top of outline-mode.  Outlines allow to
473 organize a document in a hierarchical structure, which (at least for
474 me) is the best representation of notes and thoughts.  Overview over
475 this structure is achieved by folding (hiding) large parts of the
476 document to show only the general document structure and the parts
477 currently being worked on.  Org-mode greatly simplifies the use of
478 outlines by compressing the entire show/hide functionality into a
479 single command `org-cycle', which is bound to the <TAB> key.
481 \x1f
482 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
484 2.2 Headlines
485 =============
487 Headlines define the structure of an outline tree.  The headlines in
488 Org-mode start with one or more stars, on the left margin.  For example:
490      * Top level headline
491      ** Second level
492      *** 3rd level
493          some text
494      *** 3rd level
495          more text
496      * Another top level headline
498 Some people find the many stars too noisy and would prefer an outline
499 that has whitespace followed by a single star as headline starters.
500 *Note Clean view:: describes a setup to realize this.
502 \x1f
503 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
505 2.3 Visibility cycling
506 ======================
508 Outlines make it possible to hide parts of the text in the buffer.
509 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
510 the visibility in the buffer.
512 `<TAB>'
513      _Subtree cycling_: Rotate current subtree between the states
515           ,-> FOLDED -> CHILDREN -> SUBTREE --.
516           '-----------------------------------'
518      The cursor must be on a headline for this to work(1).  When the
519      cursor is at the beginning of the buffer and the first line is not
520      a headline, then <TAB> actually runs global cycling (see
521      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
522      global cycling is invoked.
524 `S-<TAB>'
525 `C-u <TAB>'
526      _Global cycling_: Rotate the entire buffer between the states
528           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
529           '--------------------------------------'
531      Note that inside tables, `S-<TAB>' jumps to the previous field.
533 `C-c C-a'
534      Show all.  
536 `C-c C-r'
537      Reveal context around point, showing the current entry, the
538      following heading and the hierarchy above.  Useful for working
539      near a location exposed by a sparse tree command (*note Sparse
540      trees::) or an agenda command (*note Agenda commands::).  
542 `C-c C-x b'
543      Show the current subtree in an indirect buffer(3), in a separate,
544      dedicated frame.  With positive numerical prefix N, go up to level
545      N before selecting the subtree.  With negative prefix -N, go up N
546      levels.  With `C-u' prefix, don't use the dedicated frame, but
547      another, new frame.
549    When Emacs first visits an Org-mode file, the global state is set to
550 OVERVIEW, i.e. only the top level headlines are visible.  This can be
551 configured through the variable `org-startup-folded', or on a per-file
552 basis by adding one of the following lines anywhere in the buffer:
554      #+STARTUP: overview
555      #+STARTUP: content
556      #+STARTUP: showall
558    ---------- Footnotes ----------
560    (1) see, however, the option `org-cycle-emulate-tab'.
562    (2) see the option `org-cycle-global-at-bob'.
564    (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
565 Buffers.) will contain the entire buffer, but will be narrowed to the
566 current tree.  Editing the indirect buffer will also change the
567 original buffer, but without affecting visibility in that buffer .
569 \x1f
570 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
572 2.4 Motion
573 ==========
575 The following commands jump to other headlines in the buffer.
577 `C-c C-n'
578      Next heading.  
580 `C-c C-p'
581      Previous heading.  
583 `C-c C-f'
584      Next heading same level.  
586 `C-c C-b'
587      Previous heading same level.  
589 `C-c C-u'
590      Backward to higher level heading.  
592 `C-c C-j'
593      Jump to a different place without changing the current outline
594      visibility.  Shows the document structure in a temporary buffer,
595      where you can use visibility cycling (<TAB>) to find your
596      destination.  After pressing <RET>, the cursor moves to the
597      selected location in the original buffer, and the headings
598      hierarchy above it is made visible.
600 \x1f
601 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
603 2.5 Structure editing
604 =====================
606 `M-<RET>'
607      Insert new heading with same level as current.  If the cursor is
608      in a plain list item, a new item is created (*note Plain lists::).
609      To force creation of a new headline, use a prefix arg, or first
610      press <RET> to get to the beginning of the next line.  When this
611      command is used in the middle of a line, the line is split and the
612      rest of the line becomes the new headline.  If the command is used
613      at the beginning of a headline, the new headline is created before
614      the current line.  If at the beginning of any other line, the
615      content of that line is made the new heading.  If the command is
616      used at the end of a folded subtree (i.e. behind the ellipses at
617      the end of a headline), then a headline like the current one will
618      be inserted after the end of the subtree.  
620 `M-S-<RET>'
621      Insert new TODO entry with same level as current heading.  
623 `M-<left>'
624      Promote current heading by one level.  
626 `M-<right>'
627      Demote current heading by one level.  
629 `M-S-<left>'
630      Promote the current subtree by one level.  
632 `M-S-<right>'
633      Demote the current subtree by one level.  
635 `M-S-<up>'
636      Move subtree up (swap with previous subtree of same level).  
638 `M-S-<down>'
639      Move subtree down (swap with next subtree of same level).  
641 `C-c C-x C-w'
642 `C-c C-x C-k'
643      Kill subtree, i.e. remove it from buffer but save in kill ring.  
645 `C-c C-x M-w'
646      Copy subtree to kill ring.  
648 `C-c C-x C-y'
649      Yank subtree from kill ring.  This does modify the level of the
650      subtree to make sure the tree fits in nicely at the yank position.
651      The yank level can also be specified with a prefix arg, or by
652      yanking after a headline marker like `****'.  
654 `C-c ^'
655      Sort same-level entries.  When there is an active region, all
656      entries in the region will be sorted.  Otherwise the children of
657      the current headline are sorted.  The command prompts for the
658      sorting method, which can be alphabetically, numerically, by time
659      (using the first time stamp in each entry), and each of these in
660      reverse order.  With a `C-u' prefix, sorting will be
661      case-sensitive.  With two `C-u C-u' prefixes, duplicate entries
662      will also be removed.
664    When there is an active region (transient-mark-mode), promotion and
665 demotion work on all headlines in the region.  To select a region of
666 headlines, it is best to place both point and mark at the beginning of a
667 line, mark at the beginning of the first headline, and point at the line
668 just after the last headline to change.  Note that when the cursor is
669 inside a table (*note Tables::), the Meta-Cursor keys have different
670 functionality.
672 \x1f
673 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
675 2.6 Archiving
676 =============
678 When a project represented by a (sub)tree is finished, you may want to
679 move the tree out of the way and to stop it from contributing to the
680 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
681 the ARCHIVE tag, or you can move an entire (sub)tree to a different
682 location.
684 * Menu:
686 * ARCHIVE tag::                 Marking a tree as inactive
687 * Moving subtrees::             Moving a tree to an archive file
689 \x1f
690 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
692 2.6.1 The ARCHIVE tag
693 ---------------------
695 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
696 its location in the outline tree, but behaves in the following way:
697    - It does not open when you attempt to do so with a visibility
698      cycling command (*note Visibility cycling::).  You can force
699      cycling archived subtrees with `C-<TAB>', or by setting the option
700      `org-cycle-open-archived-trees'.  Also normal outline commands like
701      `show-all' will open archived subtrees.
703    - During sparse tree construction (*note Sparse trees::), matches in
704      archived subtrees are not exposed, unless you configure the option
705      `org-sparse-tree-open-archived-trees'.
707    - During agenda view construction (*note Agenda views::), the
708      content of archived trees is ignored unless you configure the
709      option `org-agenda-skip-archived-trees'.
711    - Archived trees are not exported (*note Exporting::), only the
712      headline is.  Configure the details using the variable
713      `org-export-with-archived-trees'.
715    The following commands help managing the ARCHIVE tag:
717 `C-c C-x C-a'
718      Toggle the ARCHIVE tag for the current headline.  When the tag is
719      set, the headline changes to a shadowish face, and the subtree
720      below it is hidden.  
722 `C-u C-c C-x C-a'
723      Check if any direct children of the current headline should be
724      archived.  To do this, each subtree is checked for open TODO
725      entries.  If none are found, the command offers to set the ARCHIVE
726      tag for the child.  If the cursor is _not_ on a headline when this
727      command is invoked, the level 1 trees will be checked.  
729 `C-TAB'
730      Cycle a tree even if it is tagged with ARCHIVE.
732 \x1f
733 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
735 2.6.2 Moving subtrees
736 ---------------------
738 Once an entire project is finished, you may want to move it to a
739 different location, either in the current file, or even in a different
740 file, the archive file.
742 `C-c $'
743      Archive the subtree starting at the cursor position to the location
744      given by `org-archive-location'.  
746 `C-u C-c $'
747      Check if any direct children of the current headline could be
748      moved to the archive.  To do this, each subtree is checked for
749      open TODO entries.  If none are found, the command offers to move
750      it to the archive location.  If the cursor is _not_ on a headline
751      when this command is invoked, the level 1 trees will be checked.
753    The default archive location is a file in the same directory as the
754 current file, with the name derived by appending `_archive' to the
755 current file name.  For information and examples on how to change this,
756 see the documentation string of the variable `org-archive-location'.
758 \x1f
759 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
761 2.7 Sparse trees
762 ================
764 An important feature of Org-mode is the ability to construct _sparse
765 trees_ for selected information in an outline tree.  A sparse tree
766 means that the entire document is folded as much as possible, but the
767 selected information is made visible along with the headline structure
768 above it(1).  Just try it out and you will see immediately how it works.
770    Org-mode contains several commands creating such trees.  The most
771 basic one is `org-occur':
773 `C-c /'
774      Occur.  Prompts for a regexp and shows a sparse tree with all
775      matches.  If the match is in a headline, the headline is made
776      visible.  If the match is in the body of an entry, headline and
777      body are made visible.  In order to provide minimal context, also
778      the full hierarchy of headlines above the match is shown, as well
779      as the headline following the match.  Each match is also
780      highlighted; the highlights disappear when the bufer is changes an
781      editing command, or by pressing `C-c C-c'.  When called with a
782      `C-u' prefix argument, previous highlights are kept, so several
783      calls to this command can be stacked.
784    For frequently used sparse trees of specific search strings, you can
785 use the variable `org-agenda-custom-commands' to define fast keyboard
786 access to specific sparse trees.  These commands will then be
787 accessible through the agenda dispatcher (*note Agenda dispatcher::).
788 For example:
790      (setq org-agenda-custom-commands
791            '(("f" occur-tree "FIXME")))
793 will define the key `C-c a f' as a shortcut for creating a sparse tree
794 matching the string `FIXME'.
796    Other commands use sparse trees as well.  For example `C-c C-v'
797 creates a sparse TODO tree (*note TODO basics::).
799    To print a sparse tree, you can use the Emacs command
800 `ps-print-buffer-with-faces' which does not print invisible parts of
801 the document (2).  Or you can use the command `C-c C-e v' to export
802 only the visible part of the document and print the resulting file.
804    ---------- Footnotes ----------
806    (1) See also the variables `org-show-hierarchy-above' and
807 `org-show-following-heading'.
809    (2) This does not work under XEmacs, because XEmacs uses selective
810 display for outlining, not text properties.
812 \x1f
813 File: org,  Node: Plain lists,  Prev: Sparse trees,  Up: Document structure
815 2.8 Plain lists
816 ===============
818 Within an entry of the outline tree, hand-formatted lists can provide
819 additional structure.  They also provide a way to create lists of
820 checkboxes (*note Checkboxes::).  Org-mode supports editing such lists,
821 and the HTML exporter (*note Exporting::) does parse and format them.
823    Org-mode knows ordered and unordered lists.  Unordered list items
824 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
825 with `1.' or `1)'.  Items belonging to the same list must have the same
826 indentation on the first line.  In particular, if an ordered list
827 reaches number `10.', then the 2-digit numbers must be written
828 left-aligned with the other numbers in the list.  Indentation also
829 determines the end of a list item.  It ends before the next line that
830 is indented like the bullet/number, or less.  For example:
832      ** Lord of the Rings
833         My favorite scenes are (in this order)
834         1. The attack of the Rohirrim
835         2. Eowyns fight with the witch king
836            + this was already my favorite scene in the book
837            + I really like Miranda Otto.
838         3. Peter Jackson being shot by Legolas
839             - on DVD only
840            He makes a really funny face when it happens.
841         But in the end, not individual scenes matter but the film as a whole.
843    Org-mode supports these lists by tuning filling and wrapping
844 commands to deal with them correctly(2).
846    The following commands act on items when the cursor is in the first
847 line of an item (the line with the bullet or number).
849 `<TAB>'
850      Items can be folded just like headline levels if you set the
851      variable `org-cycle-include-plain-lists'.  The level of an item is
852      then given by the indentation of the bullet/number.  Items are
853      always subordinate to real headlines, however; the hierarchies
854      remain completely separated.  
856 `M-<RET>'
857      Insert new item at current level.  With prefix arg, force a new
858      heading (*note Structure editing::).  If this command is used in
859      the middle of a line, the line is _split_ and the rest of the line
860      becomes the new item.  If this command is executed in the
861      _whitespace before a bullet or number_, the new item is created
862      _before_ the current item.  If the command is executed in the
863      white space before the text that is part of an item but does not
864      contain the bullet, a bullet is added to the current line.  
866 `M-S-<RET>'
867      Insert a new item with a checkbox (*note Checkboxes::).  
869 `S-<up>'
870 `S-<down>'
871      Jump to the previous/next item in the current list.  
873 `M-S-<up>'
874 `M-S-<down>'
875      Move the item including subitems up/down (swap with previous/next
876      item of same indentation).  If the list is ordered, renumbering is
877      automatic.  
879 `M-S-<left>'
880 `M-S-<right>'
881      Decrease/increase the indentation of the item, including subitems.
882      Initially, the item tree is selected based on current indentation.
883      When these commands are executed several times in direct
884      succession, the initially selected region is used, even if the new
885      indentation would imply a different hierarchy.  To use the new
886      hierarchy, break the command chain with a cursor motion or so.  
888 `C-c C-c'
889      If there is a checkbox (*note Checkboxes::) in the item line,
890      toggle the state of the checkbox.  Otherwise, if this is an
891      ordered list, renumber the ordered list at the cursor.
893    ---------- Footnotes ----------
895    (1) When using `*' as a bullet, lines must be indented or they will
896 be seen as top-level headlines.  Also, when you are hiding leading
897 stars to get a clean outline view, plain list items starting with a
898 star are visually indistinguishable from true headlines.  In short:
899 even though `*' is supported, it may be better not to use it for plain
900 list items
902    (2) Org-mode only changes the filling settings for Emacs.  For
903 XEmacs, you should use Kyle E. Jones' `filladapt.el'.  To turn this on,
904 put into `.emacs':
905      (require 'filladapt)
907 \x1f
908 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
910 3 Tables
911 ********
913 Org-mode has a very fast and intuitive table editor built-in.
914 Spreadsheet-like calculations are supported in connection with the
915 Emacs `calc' package.
917 * Menu:
919 * Built-in table editor::       Simple tables
920 * Narrow columns::              Stop wasting space in tables
921 * Table calculations::          Compute a field from other fields
922 * orgtbl-mode::                 The table editor as minor mode
923 * table.el::                    Complex tables
925 \x1f
926 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
928 3.1 The built-in table editor
929 =============================
931 Org-mode makes it easy to format tables in plain ASCII.  Any line with
932 `|' as the first non-white character is considered part of a table.
933 `|' is also the column separator.  A table might look like this:
935      | Name  | Phone | Age |
936      |-------+-------+-----|
937      | Peter |  1234 |  17 |
938      | Anna  |  4321 |  25 |
940    A table is re-aligned automatically each time you press <TAB> or
941 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
942 field (<RET> to the next row) and creates new table rows at the end of
943 the table or before horizontal lines.  The indentation of the table is
944 set by the first line.  Any line starting with `|-' is considered as a
945 horizontal separator line and will be expanded on the next re-align to
946 span the whole table width.  So, to create the above table, you would
947 only type
949      |Name|Phone|Age|
950      |-
952 and then press <TAB> to align the table and start filling in fields.
954    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
955 and all character keys in a special way, so that inserting and deleting
956 avoids shifting other fields.  Also, when typing _immediately after the
957 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
958 the field is automatically made blank.  If this behavior is too
959 unpredictable for you, configure the variables
960 `org-enable-table-editor' and `org-table-auto-blank-field'.
962 Creation and conversion
963 .......................
965 `C-c |'
966      Convert the active region to table. If every line contains at
967      least one TAB character, the function assumes that the material is
968      tab separated.  If not, lines are split at whitespace into fields.
969      You can use a prefix argument to indicate the minimum number of
970      consecutive spaces required to identify a field separator
971      (default: just one).
972      If there is no active region, this command creates an empty
973      Org-mode table.  But it's easier just to start typing, like
974      `|Name|Phone|Age <RET> |- <TAB>'.
976 Re-aligning and field motion
977 ............................
979 `C-c C-c'
980      Re-align the table without moving the cursor.
982 `<TAB>'
983      Re-align the table, move to the next field.  Creates a new row if
984      necessary.
986 `S-<TAB>'
987      Re-align, move to previous field.
989 `<RET>'
990      Re-align the table and move down to next row.  Creates a new row if
991      necessary.  At the beginning or end of a line, <RET> still does
992      NEWLINE, so it can be used to split a table.
994 Column and row editing
995 ......................
997 `M-<left>'
998 `M-<right>'
999      Move the current column left/right.
1001 `M-S-<left>'
1002      Kill the current column.
1004 `M-S-<right>'
1005      Insert a new column to the left of the cursor position.
1007 `M-<up>'
1008 `M-<down>'
1009      Move the current row up/down.
1011 `M-S-<up>'
1012      Kill the current row or horizontal line.
1014 `M-S-<down>'
1015      Insert a new row above (with arg: below) the current row.
1017 `C-c -'
1018      Insert a horizontal line below current row. With prefix arg, the
1019      line is created above the current line.
1021 `C-c ^'
1022      Sort the table lines in the region.  The position of point
1023      indicates the column to be used for sorting, and the range of
1024      lines is the range between the nearest horizontal separator lines,
1025      or the entire table.  If point is before the first column, you
1026      will be prompted for the sorting column.  If there is an active
1027      region, the mark specifies the first line and the sorting column,
1028      while point should be in the last line to be included into the
1029      sorting.  The command prompts for the sorting type
1030      (alphabetically, numerically, or by time).  When called with a
1031      prefix argument, alphabetic sorting will be case-sensitive.
1033 Regions
1034 .......
1036 `C-c C-x M-w'
1037      Copy a rectangular region from a table to a special clipboard.
1038      Point and mark determine edge fields of the rectangle.  The
1039      process ignores horizontal separator lines.  
1041 `C-c C-x C-w'
1042      Copy a rectangular region from a table to a special clipboard, and
1043      blank all fields in the rectangle.  So this is the "cut" operation.  
1045 `C-c C-x C-y'
1046      Paste a rectangular region into a table.  The upper right corner
1047      ends up in the current field.  All involved fields will be
1048      overwritten.  If the rectangle does not fit into the present table,
1049      the table is enlarged as needed.  The process ignores horizontal
1050      separator lines.  
1052 `C-c C-q'
1053      Wrap several fields in a column like a paragraph.  If there is an
1054      active region, and both point and mark are in the same column, the
1055      text in the column is wrapped to minimum width for the given
1056      number of lines.  A prefix ARG may be used to change the number of
1057      desired lines.  If there is no region, the current field is split
1058      at the cursor position and the text fragment to the right of the
1059      cursor is prepended to the field one line down. If there is no
1060      region, but you specify a prefix ARG, the current field is made
1061      blank, and the content is appended to the field above.
1063 Calculations
1064 ............
1066 `C-c ='
1067      Install a new formula for the current column and replace current
1068      field with the result of the formula.
1070 `C-u C-c ='
1071      Install a new formula for the current field, which must be a named
1072      field.  Evaluate the formula and replace the field content with the
1073      result.
1075 `C-c ''
1076      Edit all formulas associated with the current table in a separate
1077      buffer.
1079 `C-c *'
1080      Recalculate the current row by applying the stored formulas from
1081      left to right.  When called with a `C-u' prefix, recalculate the
1082      entire table, starting with the first non-header line (i.e. below
1083      the first horizontal separator line).  For details, see *Note
1084      Table calculations::.
1086 `C-#'
1087      Rotate the calculation mark in first column through the states `',
1088      `#', `*', `!', `$'.  For the meaning of these marks see *Note
1089      Advanced features::.  When there is an active region, change all
1090      marks in the region.
1092 `C-c ?'
1093      Which table column is the cursor in?  Displays number >0 in echo
1094      area.
1096 `C-c +'
1097      Sum the numbers in the current column, or in the rectangle defined
1098      by the active region.  The result is shown in the echo area and can
1099      be inserted with `C-y'.
1101 `S-<RET>'
1102      When current field is empty, copy from first non-empty field above.
1103      When not empty, copy current field down to next row and move cursor
1104      along with it.  Depending on the variable
1105      `org-table-copy-increment', integer field values will be
1106      incremented during copy.  This key is also used by CUA-mode (*note
1107      Cooperation::).
1109 Miscellaneous
1110 .............
1112 `C-c `'
1113      Edit the current field in a separate window.  This is useful for
1114      fields that are not fully visible (*note Narrow columns::).  When
1115      called with a `C-u' prefix, just make the full field visible, so
1116      that it can be edited in place.
1118 `C-c <TAB>'
1119      This is an alias for `C-u C-c `' to make the current field fully
1120      visible.
1122 `M-x org-table-import'
1123      Import a file as a table.  The table should be TAB- or whitespace
1124      separated.  Useful, for example, to import an Excel table or data
1125      from a database, because these programs generally can write
1126      TAB-separated text files.  This command works by inserting the
1127      file into the buffer and then converting the region to a table.
1128      Any prefix argument is passed on to the converter, which uses it
1129      to determine the separator.
1131 `M-x org-table-export'
1132      Export the table as a TAB-separated file.  Useful for data
1133      exchange with, for example, Excel or database programs.
1136    If you don't like the automatic table editor because it gets in your
1137 way on lines which you would like to start with `|', you can turn it
1138 off with
1140      (setq org-enable-table-editor nil)
1142 Then the only table command that still works is `C-c C-c' to do a
1143 manual re-align.
1145 \x1f
1146 File: org,  Node: Narrow columns,  Next: Table calculations,  Prev: Built-in table editor,  Up: Tables
1148 3.2 Narrow columns
1149 ==================
1151 The width of columns is automatically determined by the table editor.
1152 Sometimes a single field or a few fields need to carry more text,
1153 leading to inconveniently wide columns.  To limit(1) the width of a
1154 column, one field anywhere in the column may contain just the string
1155 `<N>' where `N' is an integer specifying the width of the column in
1156 characters.  The next re-align will then set the width of this column
1157 to no more than this value.
1159      |---+------------------------------|               |---+--------|
1160      |   |                              |               |   | <6>    |
1161      | 1 | one                          |               | 1 | one    |
1162      | 2 | two                          |     ----\     | 2 | two    |
1163      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1164      | 4 | four                         |               | 4 | four   |
1165      |---+------------------------------|               |---+--------|
1167 Fields that are wider become clipped and end in the string `=>'.  Note
1168 that the full text is still in the buffer, it is only invisible.  To
1169 see the full text, hold the mouse over the field - a tooltip window
1170 will show the full content.  To edit such a field, use the command `C-c
1171 `' (that is `C-c' followed by the backquote).  This will open a new
1172 window with the full field.  Edit it and finish with `C-c C-c'.
1174    When visiting a file containing a table with narrowed columns, the
1175 necessary character hiding has not yet happened, and the table needs to
1176 be aligned before it looks nice.  Setting the option
1177 `org-startup-align-all-tables' will realign all tables in a file upon
1178 visiting, but also slow down startup.  You can also set this option on
1179 a per-file basis with:
1181      #+STARTUP: align
1182      #+STARTUP: noalign
1184    ---------- Footnotes ----------
1186    (1) This feature does not work on XEmacs.
1188 \x1f
1189 File: org,  Node: Table calculations,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1191 3.3 Calculations in tables
1192 ==========================
1194 The table editor makes use of the Emacs `calc' package to implement
1195 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1196 derive fields from other fields.  Org-mode has two levels of complexity
1197 for table calculations.  On the basic level, tables do only horizontal
1198 computations, so a field can be computed from other fields _in the same
1199 row_, and Org-mode assumes that there is only one formula for each
1200 column.  This is very efficient to work with and enough for many tasks.
1201 On the complex level, columns and individual fields can be named for
1202 easier referencing in formulas, individual named fields can have their
1203 own formula associated with them, and recalculation can be automated.
1205 * Menu:
1207 * Formula syntax::              How to write a formula
1208 * Lisp formulas::               An alternative way to write formulas
1209 * Column formulas::             Formulas valid for all fields in a column
1210 * Advanced features::           Field names, parameters and automatic recalc
1211 * Named-field formulas::        Formulas valid in single fields
1212 * Editing/debugging formulas::  Changing a stored formula
1213 * Appetizer::                   Taste the power of calc
1215 \x1f
1216 File: org,  Node: Formula syntax,  Next: Lisp formulas,  Prev: Table calculations,  Up: Table calculations
1218 3.3.1 Formula syntax
1219 --------------------
1221 A formula can be any algebraic expression understood by the Emacs
1222 `calc' package.  Note that `calc' has the slightly non-standard
1223 convention that `/' has lower precedence than `*', so that `a/b*c' is
1224 interpreted as `a/(b*c)'.  Before evaluation by `calc-eval' (*note
1225 calc-eval: (calc)Calling Calc from Your Programs.), variable
1226 substitution takes place:
1228        $        refers to the current field
1229        $3       refers to the field in column 3 of the current row
1230        $3..$7   a vector of the fields in columns 3-7 of current row
1231        $P1..$P3 vector of column range, using column names
1232        &2       second data field above the current, in same column
1233        &5-2     vector from fifth to second field above current
1234        &III-II  vector of fields between 2nd and 3rd hline above
1235        &III     vector of fields between third hline above and current field
1236        $name    a named field, parameter or constant
1238    The range vectors can be directly fed into the calc vector functions
1239 like `vmean' and `vsum'.
1241    `$name' is interpreted as the name of a column, parameter or
1242 constant.  Constants are defined globally through the variable
1243 `org-table-formula-constants'.  If you have the `constants.el' package,
1244 it will also be used to resolve constants, including natural constants
1245 like `$h' for Planck's constant, and units like `$km' for kilometers.
1246 Column names and parameters can be specified in special table lines.
1247 These are described below, see *Note Advanced features::.
1249    A formula can contain an optional mode string after a semicolon.
1250 This string consists of flags to influence calc's modes(1) during
1251 execution, e.g.  `p20' to switch the internal precision to 20 digits,
1252 `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
1253 or fixed display format, respectively, and `D', `R', `F', and `S' to
1254 turn on degrees, radians, fraction and symbolic modes, respectively.
1255 In addition, you may provide a `printf' format specifier to reformat
1256 the final result.  A few examples:
1258      $1+$2                Sum of first and second field
1259      $1+$2;%.2f           Same, format result to two decimals
1260      exp($2)+exp($1)      Math functions can be used
1261      $;%.1f               Reformat current cell to 1 decimal
1262      ($3-32)*5/9          Degrees F -> C conversion
1263      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1264      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1265      sin($1);Dp3%.1e      Same, but use printf specifier for display
1266      vmean($2..$7)        Compute column range mean, using vector function
1267      vsum(&III)           Sum numbers from 3rd hline above, up to here
1268      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1270    ---------- Footnotes ----------
1272    (1) By default, Org-mode uses the standard calc modes (precision 12,
1273 angular units degrees, fraction and symbolic modes off).  The display
1274 format, however, has been changed to `(float 5)' to keep tables compact.
1275 The default settings can be configured using the variable
1276 `org-calc-default-modes'.
1278 \x1f
1279 File: org,  Node: Lisp formulas,  Next: Column formulas,  Prev: Formula syntax,  Up: Table calculations
1281 3.3.2 Emacs Lisp forms as formulas
1282 ----------------------------------
1284 It is also possible to write a formula in Emacs lisp; this can be useful
1285 for string manipulation and control structures.  If a formula starts
1286 with a single quote followed by an opening parenthesis, then it is
1287 evaluated as a lisp form.  The evaluation should return either a string
1288 or a number.  Just as with `calc' formulas, you can provide a format
1289 specifier after a semicolon.  A few examples:
1291      swap the first two characters of the content of column 1
1292      '(concat (substring "$1" 1 2) (substring "$1" 0 1) (substring "$1" 2))
1293      Add columns 1 and 2, equivalent to the calc's `$1+$2'
1294      '(+ $1 $2)
1296 \x1f
1297 File: org,  Node: Column formulas,  Next: Advanced features,  Prev: Lisp formulas,  Up: Table calculations
1299 3.3.3 Column formulas
1300 ---------------------
1302 To apply a formula to a field, type it directly into the field,
1303 preceded by an equal sign, like `=$1+$2'.  When you press <TAB> or
1304 <RET> or `C-c C-c' with the cursor still in the field, the formula will
1305 be stored as the formula for the current column, evaluated and the
1306 current field replaced with the result.  If the field contains only
1307 `=', the previously stored formula for this column is used.
1309    For each column, Org-mode will remember the most recently used
1310 formula.  The information is stored in a special line starting with
1311 `#+TBLFM' directly below the table.  When adding/deleting/moving
1312 columns with the appropriate commands, the stored equations will be
1313 modified accordingly.  When a column used in a calculation is removed,
1314 references to this column become invalid and will cause an error upon
1315 applying the equation.
1317    Instead of typing an equation into the field, you may also use the
1318 command `C-c ='.  It prompts for a formula (with default taken from the
1319 `#+TBLFM:' line) and applies it to the current field.  A numerical
1320 prefix (e.g. `C-5 C-c =') will apply it to that many consecutive fields
1321 in the current column.
1323    To recompute all the fields in a line, use the command `C-c *'.  It
1324 re-applies all stored equations to the current row, from left to right.
1325 With a `C-u' prefix, this will be done to every line in the table, so
1326 use this command it you want to make sure the entire table is
1327 up-to-date. `C-u C-c C-c' is another way to update the entire table.
1328 Global updating does not touch the line(s) above the first horizontal
1329 separator line, assuming that this is the table header.
1331 \x1f
1332 File: org,  Node: Advanced features,  Next: Named-field formulas,  Prev: Column formulas,  Up: Table calculations
1334 3.3.4 Advanced features
1335 -----------------------
1337 If you want the recalculation of fields to happen automatically, or if
1338 you want to be able to assign a formula to an individual field (instead
1339 of an entire column) you need to reserve the first column of the table
1340 for special marking characters.  Here is an example of a table that
1341 collects exam results of students and makes use of these features:
1343      |---+---------+--------+--------+--------+-------+------|
1344      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1345      |---+---------+--------+--------+--------+-------+------|
1346      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1347      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1348      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1349      |---+---------+--------+--------+--------+-------+------|
1350      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1351      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1352      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1353      |---+---------+--------+--------+--------+-------+------|
1354      |   | Average |        |        |        |  29.7 |      |
1355      | ^ |         |        |        |        |    at |      |
1356      | $ | max=50  |        |        |        |       |      |
1357      |---+---------+--------+--------+--------+-------+------|
1358      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
1360 Important: Please note that for these special tables, recalculating the
1361 table with `C-u C-c *' will only affect rows that are marked `#' or
1362 `*', and named fields.  The column formulas are not applied in rows
1363 with empty first field.
1365    The marking characters have the following meaning:
1367      The fields in this line define names for the columns, so that you
1368      may refer to a column as `$Tot' instead of `$6'.
1371      This row defines names for the fields _above_ the row.  With such
1372      a definition, any formula in the table may use `$m1' to refer to
1373      the value `10'.  Also, named fields can have their own formula
1374      associated with them.
1377      Similar to `^', but defines names for the fields in the row
1378      _below_.
1381      Fields in this row can define _parameters_ for formulas.  For
1382      example, if a field in a `$' row contains `max=50', then formulas
1383      in this table can refer to the value 50 using `$max'.  Parameters
1384      work exactly like constants, only that they can be defined on a
1385      per-table basis.  Changing a parameter and then recalculating the
1386      table can be useful.
1389      Fields in this row are automatically recalculated when pressing
1390      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1391      selected for a global recalculation with `C-u C-c *'.  Unmarked
1392      lines will be left alone by this command.
1395      Selects this line for global recalculation with `C-u C-c *', but
1396      not for automatic recalculation.  Use this when automatic
1397      recalculation slows down editing too much.
1400      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1401      All lines that should be recalculated should be marked with `#' or
1402      `*'.
1404 \x1f
1405 File: org,  Node: Named-field formulas,  Next: Editing/debugging formulas,  Prev: Advanced features,  Up: Table calculations
1407 3.3.5 Named-field formulas
1408 --------------------------
1410 A named field can have its own formula associated with it.  In the
1411 example above, this is used for the `at' field that contains the
1412 average result of the students.  To enter a formula for a named field,
1413 just type it into the buffer, preceded by `:='.  Or use `C-u C-c ='.
1414 This equation will be stored below the table like `$name=...'.  Any
1415 recalculation in the table (even if only requested for the current
1416 line) will also update all named field formulas.
1418 \x1f
1419 File: org,  Node: Editing/debugging formulas,  Next: Appetizer,  Prev: Named-field formulas,  Up: Table calculations
1421 3.3.6 Editing and debugging formulas
1422 ------------------------------------
1424 To edit a column or field formula, use the commands `C-c =' and `C-u
1425 C-c =', respectively.  The currently active expression is then
1426 presented as default in the minibuffer, where it may be edited.
1428    Note that making a table field blank does not remove the formula
1429 associated with the field - during the next recalculation the field
1430 will be filled again.  To remove a formula from a field, you have to
1431 give an empty reply when prompted for the formula, or to edit the
1432 `#+TBLFM' line.
1434    You may edit the `#+TBLFM' directly and re-apply the changed
1435 equations with `C-c C-c' in that line, or with the normal recalculation
1436 commands in the table.
1438    In particular for large tables with many formulas, it is convenient
1439 to use the command `C-c '' to edit the formulas of the current table in
1440 a separate buffer.  That buffer will show the formulas one per line,
1441 and you are free to edit, add and remove formulas.  Press `C-c ?' on a
1442 `$...'  expression to get information about its interpretation.
1443 Exiting the buffer with `C-c C-c' only stores the modified formulas
1444 below the table.  Exiting with `C-u C-c C-c' also applies them to the
1445 entire table.  `C-c C-q' exits without installing the changes.
1447    When the evaluation of a formula leads to an error, the field content
1448 becomes the string `#ERROR'.  If you would like see what is going on
1449 during variable substitution and calculation in order to find a bug,
1450 turn on formula debugging in the menu and repeat the calculation, for
1451 example by pressing `C-c = <RET>' in a field.  Detailed information
1452 will be displayed.
1454 \x1f
1455 File: org,  Node: Appetizer,  Prev: Editing/debugging formulas,  Up: Table calculations
1457 3.3.7 Appetizer
1458 ---------------
1460 Finally, just to whet your appetite on what can be done with the
1461 fantastic `calc' package, here is a table that computes the Taylor
1462 series for a couple of functions (homework: try that with Excel :-)
1464      |---+-------------+---+-----+--------------------------------------|
1465      |   | Func        | n | x   | Result                               |
1466      |---+-------------+---+-----+--------------------------------------|
1467      | # | exp(x)      | 1 | x   | 1 + x                                |
1468      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1469      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1470      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1471      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1472      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1473      |---+-------------+---+-----+--------------------------------------|
1474      #+TBLFM: $5=taylor($2,$4,$3);n3
1476 \x1f
1477 File: org,  Node: orgtbl-mode,  Next: table.el,  Prev: Table calculations,  Up: Tables
1479 3.4 The Orgtbl minor mode
1480 =========================
1482 If you like the intuitive way the Org-mode table editor works, you
1483 might also want to use it in other modes like text-mode or mail-mode.
1484 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1485 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1486 in mail mode, use
1488      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1490 \x1f
1491 File: org,  Node: table.el,  Prev: orgtbl-mode,  Up: Tables
1493 3.5 The `table.el' package
1494 ==========================
1496 Complex ASCII tables with automatic line wrapping, column- and
1497 row-spanning, and alignment can be created using the Emacs table
1498 package by Takaaki Ota (`http://sourceforge.net/projects/table', and
1499 also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in such a
1500 table, Org-mode will call `table-recognize-table' and move the cursor
1501 into the table.  Inside a table, the keymap of Org-mode is inactive.
1502 In order to execute Org-mode-related commands, leave the table.
1504 `C-c C-c'
1505      Recognize `table.el' table.  Works when the cursor is in a
1506      table.el table.
1508 `C-c ~'
1509      Insert a table.el table.  If there is already a table at point,
1510      this command converts it between the table.el format and the
1511      Org-mode format.  See the documentation string of the command
1512      `org-convert-table' for the restrictions under which this is
1513      possible.
1515 \x1f
1516 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1518 4 Hyperlinks
1519 ************
1521 Just like HTML, Org-mode provides links inside a file, and external
1522 links to other files, Usenet articles, emails, and much more.
1524 * Menu:
1526 * Link format::                 How links in Org-mode are formatted
1527 * Internal links::              Links to other places in the current file
1528 * External links::              URL-like links to the world
1529 * Handling links::              Creating, inserting and following
1530 * Link abbreviations::          Shortcuts for writing complex links
1531 * Search options::              Linking to a specific location
1532 * Custom searches::             When the default search is not enough
1533 * Remember::                    Org-trees store quick notes
1535 \x1f
1536 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1538 4.1 Link format
1539 ===============
1541 Org-mode will recognize plain URL-like links and activate them as
1542 clickable links.  The general link format, however, looks like this:
1544      [[link][description]]       or alternatively           [[link]]
1546    Once a link in the buffer is complete (all brackets present),
1547 Org-mode will change the display so that `description' is displayed
1548 instead of `[[link][description]]' and `link' is displayed instead of
1549 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1550 default is an underlined face.  You can directly edit the visible part
1551 of a link.  Note that this can be either the `link' part (if there is
1552 no description) or the `description' part.  To edit also the invisible
1553 `link' part, use `C-c C-l' with the cursor on the link.
1555    If you place the cursor at the beginning or just behind the end of
1556 the displayed text and press <BACKSPACE>, you will remove the
1557 (invisible) bracket at that location.  This makes the link incomplete
1558 and the internals are again displayed as plain text.  Inserting the
1559 missing bracket hides the link internals again.  To show the internal
1560 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1561 links'.
1563 \x1f
1564 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
1566 4.2 Internal links
1567 ==================
1569 If the link does not look like a URL, it is considered to be internal in
1570 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
1571 my target]]' lead to a text search in the current file.  The link can
1572 be followed with `C-c C-o' when the cursor is on the link, or with a
1573 mouse click (*note Handling links::).  The preferred match for such a
1574 link is a dedicated target: the same string in double angular brackets.
1575 Targets may be located anywhere; often it is convenient to put them
1576 into a comment line. For example
1578      # <<My Target>>
1580 In HTML export (*note HTML export::), such targets will become named
1581 anchors for direct access through `http' links(1).
1583    If no dedicated target exists, Org-mode will search for the words in
1584 the link.  In the above example the search would be for `my target'.
1585 Links starting with a star like `*My Target' restrict the search to
1586 headlines.  When searching, Org-mode will first try an exact match, but
1587 then move on to more and more lenient searches.  For example, the link
1588 `[[*My Targets]]' will find any of the following:
1590      ** My targets
1591      ** TODO my targets are bright
1592      ** my 20 targets are
1594    To insert a link targeting a headline, in-buffer completion can be
1595 used.  Just type a star followed by a few optional letters into the
1596 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
1597 offered as completions.  *Note Handling links::, for more commands
1598 creating links.
1600    Following a link pushes a mark onto Org-mode's own mark ring.  You
1601 can return to the previous position with `C-c &'.  Using this command
1602 several times in direct succession goes back to positions recorded
1603 earlier.
1605 * Menu:
1607 * Radio targets::               Make targets trigger links in plain text.
1608 * CamelCase links::             Activating CamelCase words as links
1610    ---------- Footnotes ----------
1612    (1) Note that text before the first headline will never be exported,
1613 so the first such target must be after the first headline.
1615 \x1f
1616 File: org,  Node: Radio targets,  Next: CamelCase links,  Prev: Internal links,  Up: Internal links
1618 4.2.1 Radio targets
1619 -------------------
1621 You can configure Org-mode to link any occurrences of certain target
1622 names in normal text.  So without explicitly creating a link, the text
1623 connects to the target radioing its position.  Radio targets are
1624 enclosed by triple angular brackets.  For example, a target `<<<My
1625 Target>>>' causes each occurrence of `my target' in normal text to
1626 become activated as a link.  The Org-mode file is scanned automatically
1627 for radio targets only when the file is first loaded into Emacs.  To
1628 update the target list during editing, press `C-c C-c' with the cursor
1629 on or at a target.
1631 \x1f
1632 File: org,  Node: CamelCase links,  Prev: Radio targets,  Up: Internal links
1634 4.2.2 CamelCase words as links
1635 ------------------------------
1637 Org-mode also supports CamelCase words as links.  This feature is not
1638 turned on by default because of the inconsistencies this system suffers
1639 from.  It is also possible that this feature will disappear entirely in
1640 a future version of Org-mode.  To activate CamelCase words as links, you
1641 need to customize the option `org-activate-links'.  A CamelCase word
1642 then leads to a text search such that `CamelCaseLink' is equivalent to
1643 `[[camel case link]]'.
1645 \x1f
1646 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
1648 4.3 External links
1649 ==================
1651 Org-mode supports links to files, websites, Usenet and email messages,
1652 and BBDB database entries.  External links are URL-like locators.  They
1653 start with a short identifying string followed by a colon.  There can be
1654 no space after the colon.  The following list shows examples for each
1655 link type.
1657      http://www.astro.uva.nl/~dominik          on the web
1658      file:/home/dominik/images/jupiter.jpg     file, absolute path
1659      file:papers/last.pdf                      file, relative path
1660      news:comp.emacs                           Usenet link
1661      mailto:adent@galaxy.net                   Mail link
1662      vm:folder                                 VM folder link
1663      vm:folder#id                              VM message link
1664      vm://myself@some.where.org/folder#id      VM on remote machine
1665      wl:folder                                 WANDERLUST folder link
1666      wl:folder#id                              WANDERLUST message link
1667      mhe:folder                                MH-E folder link
1668      mhe:folder#id                             MH-E message link
1669      rmail:folder                              RMAIL folder link
1670      rmail:folder#id                           RMAIL message link
1671      gnus:group                                GNUS group link
1672      gnus:group#id                             GNUS article link
1673      bbdb:Richard Stallman                     BBDB link
1674      shell:ls *.org                            A shell command
1675      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
1677    A link should be enclosed in double brackets and may contain a
1678 descriptive text to be displayed instead of the url (*note Link
1679 format::), for example:
1681      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
1683    Org-mode also finds external links in the normal text and activates
1684 them as links.  If spaces must be part of the link (for example in
1685 `bbdb:Richard Stallman'), or you need to remove ambiguities about the
1686 end of the link, enclose them in angular brackets.
1688 \x1f
1689 File: org,  Node: Handling links,  Next: Link abbreviations,  Prev: External links,  Up: Hyperlinks
1691 4.4 Handling links
1692 ==================
1694 Org-mode provides methods to create a link in the correct syntax, to
1695 insert it into an org-mode file, and to follow the link.
1697 `C-c l'
1698      Store a link to the current location.  This is a _global_ command
1699      which can be used in any buffer to create a link.  The link will be
1700      stored for later insertion into an Org-mode buffer (see below).
1701      For Org-mode files, if there is a `<<target>>' at the cursor, the
1702      link points to the target.  Otherwise it points to the current
1703      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
1704      the link will indicate the current article/entry.  For W3 and W3M
1705      buffers, the link goes to the current URL.  For any other files,
1706      the link will point to the file, with a search string (*note
1707      Search options::) pointing to the contents of the current line.
1708      If there is an active region, the selected words will form the
1709      basis of the search string.  If the automatically created link is
1710      not working correctly or accurately enough, you can write custom
1711      functions to select the search string and to do the search for
1712      particular file types - see *Note Custom searches::.  The key
1713      binding `C-c l' is only a suggestion - see *Note Installation::.
1715 `C-c C-l'
1716      Insert a link.  This prompts for a link to be inserted into the
1717      buffer.  You can just type a link, using text for an internal
1718      link, or one of the link type prefixes mentioned in the examples
1719      above.  Through completion, all links stored during the current
1720      session can be accessed(1).  The link will be inserted into the
1721      buffer, along with a descriptive text.  Note that you don't have
1722      to use this command to insert a link.  Links in Org-mode are plain
1723      text, and you can type or paste them straight into the buffer.  By
1724      using this command, the links are automatically enclosed in double
1725      brackets, and you will be asked for the optional descriptive text.
1726      If the link is a `file:' link and the linked file is located in
1727      the same directory as the current file or a subdirectory of it, the
1728      path of the file will be inserted relative to the current
1729      directory.
1731 `C-u C-c C-l'
1732      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
1733      file will be inserted and you may use file name completion to
1734      select the name of the file.  The path to the file is inserted
1735      relative to the directory of the current org file, if the linked
1736      file is in the current directory or in a subdirectory of it, or if
1737      the path is written relative to the current directory using `../'.
1738      Otherwise an absolute path is used, if possible with `~/' for
1739      your home directory.  You can force an absolute path with two
1740      `C-u' prefixes.
1742 `C-c C-l with cursor on existing link'
1743      When the cursor is on an existing link, `C-c C-l' allows you to
1744      edit the link and description parts of the link.
1746 `C-c C-o'
1747      Open link at point.  This will launch a web browser for URLs (using
1748      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
1749      the corresponding links, and execute the command in a shell link.
1750      When the cursor is on an internal link, this commands runs the
1751      corresponding search.  When the cursor is on a TAG list in a
1752      headline, it creates the corresponding TAGS view.  If the cursor
1753      is on a time stamp, it compiles the agenda for that date.
1754      Furthermore, it will visit text and remote files in `file:' links
1755      with Emacs and select a suitable application for local non-text
1756      files.  Classification of files is based on file extension only.
1757      See option `org-file-apps'.  If you want to override the default
1758      application and visit the file with Emacs, use a `C-u' prefix.
1760 `mouse-2'
1761 `mouse-1'
1762      On links, `mouse-2' will open the link just as `C-c C-o' would.
1763      Under Emacs 22, also `mouse-1' will follow a link.
1765 `mouse-3'
1766      Like `mouse-2', but force file links to be opened with Emacs, and
1767      internal links to be displayed in another window(2).
1769 `C-c %'
1770      Push the current position onto the mark ring, to be able to return
1771      easily. Commands following an internal link do this automatically.
1773 `C-c &'
1774      Jump back to a recorded position.  A position is recorded by the
1775      commands following internal links, and by `C-c %'.  Using this
1776      command several times in direct succession moves through a ring of
1777      previously recorded positions.
1779    ---------- Footnotes ----------
1781    (1) After insertion of a stored link, the link will be removed from
1782 the list of stored links.  To keep it in the list later use, use a
1783 triple `C-u' prefix to `C-c C-l', or configure the option
1784 `org-keep-stored-link-after-insertion'.
1786    (2) See the variable `org-display-internal-link-with-indirect-buffer'
1788 \x1f
1789 File: org,  Node: Link abbreviations,  Next: Search options,  Prev: Handling links,  Up: Hyperlinks
1791 4.5 Link abbreviatons
1792 =====================
1794 Long URLs can be cumbersome to type, and often many similar links are
1795 needed in a document.  For this you can use link abbreviations.  An
1796 abbreviated link looks like this
1798      [[linkword::tag][description]]
1800 where the tag is optional.  Such abbreviations are resolved according to
1801 the information in the variable `org-link-abbrev-alist' that relates
1802 the linkwords to replacement text.  Here is an example:
1804      (setq org-link-abbrev-alist
1805        '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
1806          ("google"   . "http://www.google.com/search?q=")
1807          ("ads"      . "http://adsabs.harvard.edu/cgi-bin/
1808                         nph-abs_connect?author=%s&db_key=AST")))
1810    If the replacement text contains the string `%s', it will be
1811 replaced with the tag.  Otherwise the tag will be appended to the string
1812 in order to create the link.  You may also specify a function that will
1813 be called with the tag as the only argument to create the link.
1815    With the above setting, you could link to a specific bug with
1816 `[[bugzilla::129]]', search the web for OrgMode with
1817 `[[google::OrgMode]]' and find out what the Org-mode author is doing
1818 besides Emacs hacking with `[[ads::Dominik,C]]'.
1820    If you need special abbreviations just for a single Org-mode buffer,
1821 you can define them in the file with
1823      #+LINK: bugzilla  http://10.1.2.9/bugzilla/show_bug.cgi?id=
1824      #+LINK: google    http://www.google.com/search?q=%s
1826 In-buffer completion *note Completion:: can be used after `[' to
1827 complete link abbreviations.
1829 \x1f
1830 File: org,  Node: Search options,  Next: Custom searches,  Prev: Link abbreviations,  Up: Hyperlinks
1832 4.6 Search options in file links
1833 ================================
1835 File links can contain additional information to make Emacs jump to a
1836 particular location in the file when following a link.  This can be a
1837 line number or a search option after a double(1) colon. For example,
1838 when the command `C-c l' creates a link (*note Handling links::) to a
1839 file, it encodes the words in the current line as a search string that
1840 can be used to find this line back later when following the link with
1841 `C-c C-o'.
1843    Here is the syntax of the different ways to attach a search to a file
1844 link, together with an explanation:
1846      [[file:~/code/main.c::255]]
1847      [[file:~/xx.org::My Target]]
1848      [[file:~/xx.org::*My Target]]
1849      [[file:~/xx.org::/regexp/]]
1851 `255'
1852      Jump to line 255.
1854 `My Target'
1855      Search for a link target `<<My Target>>', or do a text search for
1856      `my target', similar to the search in internal links, see *Note
1857      Internal links::.  In HTML export (*note HTML export::), such a
1858      file link will become an HTML reference to the corresponding named
1859      anchor in the linked file.
1861 `*My Target'
1862      In an Org-mode file, restrict search to headlines.
1864 `/regexp/'
1865      Do a regular expression search for `regexp'.  This uses the Emacs
1866      command `occur' to list all matches in a separate window.  If the
1867      target file is in Org-mode, `org-occur' is used to create a sparse
1868      tree with the matches.
1870    As a degenerate case, a file link with an empty file name can be used
1871 to search the current file.  For example, `[[file:::find me]]' does a
1872 search for `find me' in the current file, just as `[[find me]]' would.
1874    ---------- Footnotes ----------
1876    (1) For backward compatibility, line numbers can also follow a
1877 single colon.
1879 \x1f
1880 File: org,  Node: Custom searches,  Next: Remember,  Prev: Search options,  Up: Hyperlinks
1882 4.7 Custom Searches
1883 ===================
1885 The default mechanism for creating search strings and for doing the
1886 actual search related to a file link may not work correctly in all
1887 cases.  For example, BibTeX database files have many entries like
1888 `year="1993"' which would not result in good search strings, because
1889 the only unique identification for a BibTeX entry is the citation key.
1891    If you come across such a problem, you can write custom functions to
1892 set the right search string for a particular file type, and to do the
1893 search for the string in the file.  Using `add-hook', these functions
1894 need to be added to the hook variables
1895 `org-create-file-search-functions' and
1896 `org-execute-file-search-functions'.  See the docstring for these
1897 variables for more information.  Org-mode actually uses this mechanism
1898 for BibTeX database files, and you can use the corresponding code as an
1899 implementation example.  Search for `BibTeX links' in the source file.
1901 \x1f
1902 File: org,  Node: Remember,  Prev: Custom searches,  Up: Hyperlinks
1904 4.8 Remember
1905 ============
1907 Another way to create org entries with links to other files is through
1908 the _Remember_ package by John Wiegley.  _Remember_ lets you store
1909 quick notes with little interruption of your work flow.  See
1910 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
1911 information.  The notes produced by _Remember_ can be stored in
1912 different ways, and Org-mode files are a good target.  Org-mode allows
1913 you to file away notes either to a default file, or directly to the
1914 correct location in your Org-mode outline tree.  The following
1915 customization will tell _Remember_ to use org files as target, and to
1916 create annotations compatible with Org-mode links.
1918      (setq org-directory "~/path/to/my/orgfiles/")
1919      (setq org-default-notes-file "~/.notes")
1920      (setq remember-annotation-functions '(org-remember-annotation))
1921      (setq remember-handler-functions '(org-remember-handler))
1922      (add-hook 'remember-mode-hook 'org-remember-apply-template)
1924    In combination with Org-mode, you can use templates to generate
1925 different types of remember notes.  For example, if you would like to
1926 use one template to create general TODO entries, and another one for
1927 journal entries, you could use:
1929      (setq org-remember-templates
1930            '((?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org")
1931              (?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")))
1933 In these entries, the character specifies how to select the template,
1934 the first string specifies the template, and the (optional) second
1935 string specifies a default file (overruling `org-default-notes-file')
1936 as a target for this note.
1938    When you call `M-x remember' to remember something, org will prompt
1939 for a key to select the template and then prepare the buffer like
1940      * TODO
1941        [[file:link to where you called remember]]
1945      * [2006-03-21 Tue 15:37]
1947        [[file:link to where you called remember]]
1949 See the variable `org-remember-templates' for more details.
1951    When you are finished composing a note with remember, you have to
1952 press `C-c C-c' to file the note away.  The handler first prompts for a
1953 target file - if you press <RET>, the value of `org-default-notes-file'
1954 is used.  Then the command offers the headings tree of the selected
1955 file.  You can either immediately press <RET> to get the note appended
1956 to the file.  Or you can use vertical cursor motion (<up> and <down>)
1957 and visibility cycling (<TAB>) to find a better place.  Pressing <RET>
1958 or <left> or <right> leads to the following result.
1960 Cursor         Key     Note gets inserted
1961 position               
1962 buffer-start   <RET>   as level 2 heading at end of file
1963 on headline    <RET>   as sublevel of the heading at cursor
1964                <left>  as same level, before current heading
1965                <right> as same level, after current heading
1966 not on         <RET>   at cursor position, level taken from context.
1967 headline                      Or use prefix arg to specify level
1968                        manually.
1970    So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
1971 append it to the default file.  Even shorter would be `C-u C-c C-c',
1972 which does the same without even showing the tree.  But with little
1973 extra effort, you can push it directly to the correct location.
1975    Before inserting the text into a tree, the function ensures that the
1976 text has a headline, i.e. a first line that starts with a `*'.  If not,
1977 a headline is constructed from the current date and some additional
1978 data.  If the variable `org-adapt-indentation' is non-nil, the entire
1979 text is also indented so that it starts in the same column as the
1980 headline (after the asterisks).
1982 \x1f
1983 File: org,  Node: TODO items,  Next: Timestamps,  Prev: Hyperlinks,  Up: Top
1985 5 TODO items
1986 ************
1988 Org-mode does not maintain TODO lists as a separate document.  TODO
1989 items are an integral part of the notes file, because TODO items
1990 usually come up while taking notes!  With Org-mode, you simply mark any
1991 entry in a tree as being a TODO item.  In this way, the information is
1992 not duplicated, and the entire context from which the item emerged is
1993 always present when you check.
1995    Of course, this technique causes TODO items to be scattered
1996 throughout your file.  Org-mode provides methods to give you an
1997 overview over all things you have to do.
1999 * Menu:
2001 * TODO basics::                 Marking and displaying TODO entries
2002 * TODO extensions::             Workflow and assignments
2003 * Priorities::                  Some things are more important than others
2004 * Breaking down tasks::         Splitting a task into managable pieces
2005 * Checkboxes::                  Tick-off lists
2007 \x1f
2008 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
2010 5.1 Basic TODO functionality
2011 ============================
2013 Any headline can become a TODO item by starting it with the word TODO,
2014 for example:
2016      *** TODO Write letter to Sam Fortune
2018 The most important commands to work with TODO entries are:
2020 `C-c C-t'
2021      Rotate the TODO state of the current item between
2023           ,-> (unmarked) -> TODO -> DONE --.
2024           '--------------------------------'
2026      The same rotation can also be done "remotely" from the timeline and
2027      agenda buffers with the `t' command key (*note Agenda commands::).  
2029 `S-<right>'
2030 `S-<left>'
2031      Select the following/preceding TODO state, similar to cycling.
2032      Mostly useful if more than two TODO states are possible (*note
2033      TODO extensions::).  
2035 `C-c C-v'
2036      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
2037      the entire buffer, but shows all TODO items and the headings
2038      hierarchy above them.  With prefix arg, show also the DONE
2039      entries.  With numerical prefix N, show the tree for the Nth
2040      keyword in the variable `org-todo-keywords'.  
2042 `C-c a t'
2043      Show the global TODO list.  This collects the TODO items from all
2044      agenda files (*note Agenda views::) into a single buffer.  The
2045      buffer is in `agenda-mode', so there are commands to examine and
2046      manipulate the TODO entries directly from that buffer (*note
2047      Agenda commands::).  *Note Global TODO list::, for more
2048      information.
2050 \x1f
2051 File: org,  Node: TODO extensions,  Next: Priorities,  Prev: TODO basics,  Up: TODO items
2053 5.2 Extended use of TODO keywords
2054 =================================
2056 The default implementation of TODO entries is just two states: TODO and
2057 DONE.  You can, however, use the TODO feature for more complicated
2058 things by configuring the variables `org-todo-keywords' and
2059 `org-todo-interpretation'.  Using special setup, you can even use TODO
2060 keywords in different ways in different org files.
2062    Note that tags are another way to classify headlines in general and
2063 TODO items in particular (*note Tags::).
2065 * Menu:
2067 * Workflow states::             From TODO to DONE in steps
2068 * TODO types::                  I do this, Fred the rest
2069 * Per file keywords::           Different files, different requirements
2071 \x1f
2072 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
2074 5.2.1 TODO keywords as workflow states
2075 --------------------------------------
2077 You can use TODO keywords to indicate different states in the process
2078 of working on an item, for example:
2080      (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
2081            org-todo-interpretation 'sequence)
2083    Changing these variables only becomes effective in a new Emacs
2084 session.  With this setup, the command `C-c C-t' will cycle an entry
2085 from TODO to FEEDBACK, then to VERIFY, and finally to DONE.  You may
2086 also use a prefix argument to quickly select a specific state.  For
2087 example `C-3 C-c C-t' will change the state immediately to VERIFY.  If
2088 you define many keywords, you can use in-buffer completion (see *Note
2089 Completion::) to insert these words into the buffer.
2091 \x1f
2092 File: org,  Node: TODO types,  Next: Per file keywords,  Prev: Workflow states,  Up: TODO extensions
2094 5.2.2 TODO keywords as types
2095 ----------------------------
2097 The second possibility is to use TODO keywords to indicate different
2098 types of action items.  For example, you might want to indicate that
2099 items are for "work" or "home".  If you are into David Allen's _Getting
2100 Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
2101 `MAYBE'.  Or, when you work with several people on a single project,
2102 you might want to assign action items directly to persons, by using
2103 their names as TODO keywords.  This would be set up like this:
2105      (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
2106            org-todo-interpretation 'type)
2108    In this case, different keywords do not indicate a sequence, but
2109 rather different types.  So it is normally not useful to change from
2110 one type to another.  Therefore, in this case the behavior of the
2111 command `C-c C-t' is changed slightly(1).  When used several times in
2112 succession, it will still cycle through all names.  But when you return
2113 to the item after some time and execute `C-c C-t' again, it will switch
2114 from each name directly to DONE.  Use prefix arguments or completion to
2115 quickly select a specific name.  You can also review the items of a
2116 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2117 C-v'.  For example, to see all things Lucy has to do, you would use
2118 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
2119 single buffer, you would use the prefix arg as well when creating the
2120 global todo list: `C-3 C-c t'.
2122    ---------- Footnotes ----------
2124    (1) This is also true for the `t' command in the timeline and agenda
2125 buffers.
2127 \x1f
2128 File: org,  Node: Per file keywords,  Prev: TODO types,  Up: TODO extensions
2130 5.2.3 Setting up TODO keywords for individual files
2131 ---------------------------------------------------
2133 It can be very useful to use different aspects of the TODO mechanism in
2134 different files, which is not possible with the global settings
2135 described above.  For file-local settings, you need to add special
2136 lines to the file which set the keywords and interpretation for that
2137 file only.  For example, to set one of the two examples discussed
2138 above, you need one of the following lines, starting in column zero
2139 anywhere in the file:
2141      #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
2142      #+TYP_TODO: Fred Sara Lucy Mike DONE
2144 To make sure you are using the correct keyword, type `#+' into the
2145 buffer and then use `M-<TAB>' completion.
2147    Remember that the last keyword must always mean that the item is DONE
2148 (although you may use a different word).  Also note that in each file,
2149 only one of the two aspects of TODO keywords can be used.  After
2150 changing one of these lines, use `C-c C-c' with the cursor still in the
2151 line to make the changes known to Org-mode(1).
2153    If you want to use very many keywords, for example when working with
2154 a large group of people, you may split the names over several lines:
2156      #+TYP_TODO: Fred Sara Lucy Mike
2157      #+TYP_TODO: Luis George Jules Jessica
2158      #+TYP_TODO: Kim Arnold Peter
2159      #+TYP_TODO: DONE
2161    ---------- Footnotes ----------
2163    (1) Org-mode parses these lines only when Org-mode is activated
2164 after visiting a file.  `C-c C-c' with the cursor in a line starting
2165 with `#+' is simply restarting Org-mode for the current buffer.
2167 \x1f
2168 File: org,  Node: Priorities,  Next: Breaking down tasks,  Prev: TODO extensions,  Up: TODO items
2170 5.3 Priorities
2171 ==============
2173 If you use Org-mode extensively to organize your work, you may end up
2174 with a number of TODO entries so large that you'd like to prioritize
2175 them.  This can be done by placing a _priority cookie_ into the
2176 headline, like this
2178      *** TODO [#A] Write letter to Sam Fortune
2180 With its standard setup, Org-mode supports priorities `A', `B', and
2181 `C'.  `A' is the highest priority.  An entry without a cookie is
2182 treated as priority `B'.  Priorities make a difference only in the
2183 agenda (*note Weekly/Daily agenda::).
2185 `C-c ,'
2186      Set the priority of the current headline.  The command prompts for
2187      a priority character `A', `B' or `C'.  When you press <SPC>
2188      instead, the priority cookie is removed from the headline.  The
2189      priorities can also be changed "remotely" from the timeline and
2190      agenda buffer with the `,' command (*note Agenda commands::).
2192 `S-<up>'
2193 `S-<down>'
2194      Increase/decrease priority of current headline.  Note that these
2195      keys are also used to modify time stamps (*note Creating
2196      timestamps::).  Furthermore, these keys are also used by CUA-mode
2197      (*note Conflicts::).
2199 \x1f
2200 File: org,  Node: Breaking down tasks,  Next: Checkboxes,  Prev: Priorities,  Up: TODO items
2202 5.4 Breaking tasks down into subtasks
2203 =====================================
2205 It is often advisable to break down large tasks into smaller, managable
2206 subtasks.  You can do this by creating an outline tree below a TODO
2207 item, with detailed subtasks on the tree(1).  Another possibility is
2208 the use of checkboxes to identify (a hierarchy of) a large number of
2209 subtasks (*note Checkboxes::).
2211    ---------- Footnotes ----------
2213    (1) To keep subtasks out of the global TODO list, see the
2214 `org-agenda-todo-list-sublevels'.
2216 \x1f
2217 File: org,  Node: Checkboxes,  Prev: Breaking down tasks,  Up: TODO items
2219 5.5 Checkboxes
2220 ==============
2222 Every item in a plain list (*note Plain lists::) can be made a checkbox
2223 by starting it with the string `[ ]'.  This feature is similar to TODO
2224 items (*note TODO items::), but more lightweight.  Checkboxes are not
2225 included into the global TODO list, so they are often great to split a
2226 task into a number of simple steps.  Or you can use them in a shopping
2227 list.  To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
2228 `org-mouse.el'.  Here is an example of a checkbox list.
2230      * TODO Organize party [3/6]
2231        - call people [1/3]
2232          - [ ] Peter
2233          - [X] Sarah
2234          - [ ] Sam
2235        - [X] order food
2236        - [ ] think about what music to play
2237        - [X] talk to the neighbors
2239    The `[3/6]' and `[1/3]' in the first and second line are cookies
2240 indicating how many checkboxes are present in this entry, and how many
2241 of them have been checked off.  This can give you an idea on how many
2242 checkboxes remain, even without opening a folded entry.  The cookies
2243 can be placed into a headline or into (the first line of) a plain list
2244 item. Each cookie covers all checkboxes structurally below that
2245 headline/item.  You have to insert the cookie yourself by typing either
2246 `[/]' or `[%]'.  In the first case you get an `n out of m' result, in
2247 the second case you get information about the percentage of checkboxes
2248 checked (in the above example, this would be `[50%]' and `[33%],
2249 respectively').
2251 The following commands work with checkboxes:
2253 `C-c C-c'
2254      Toggle checkbox at point.  
2256 `C-c C-x C-b'
2257      Toggle checkbox at point.
2258         - If there is an active region, toggle the first checkbox in
2259           the region and set all remaining boxes to the same status as
2260           the first.  If you want to toggle all boxes in the region
2261           independently, use a prefix argument.
2263         - If the cursor is in a headline, toggle checkboxes in the
2264           region between this headline and the next (so _not_ the
2265           entire subtree).
2267         - If there is no active region, just toggle the checkbox at
2268           point.
2269      
2270 `M-S-<RET>'
2271      Insert a new item with a checkbox.  This works only if the cursor
2272      is already in a plain list item (*note Plain lists::).  
2274 `C-c #'
2275      Update the checkbox statistics in the current outline entry.  When
2276      called with a `C-u' prefix, update the entire file.  Checkbox
2277      statistic cookies are updated automatically if you toggle
2278      checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'.  If
2279      you delete boxes or add/change them by hand, use this command to
2280      get things back into synch.  Or simply toggle any checkbox twice
2281      with `C-c C-c'.
2283 \x1f
2284 File: org,  Node: Timestamps,  Next: Tags,  Prev: TODO items,  Up: Top
2286 6 Timestamps
2287 ************
2289 Items can be labeled with timestamps to make them useful for project
2290 planning.
2292 * Menu:
2294 * Time stamps::                 Assigning a time to a tree entry
2295 * Creating timestamps::         Commands which insert timestamps
2296 * Custom time format::          If you cannot work with the ISO format
2297 * Progress logging::            Documenting when what work was done.
2299 \x1f
2300 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Timestamps,  Up: Timestamps
2302 6.1 Time stamps, deadlines and scheduling
2303 =========================================
2305 A time stamp is a specification of a date (possibly with time) in a
2306 special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue
2307 09:39>'(1).  A time stamp can appear anywhere in the headline or body
2308 of an org-tree entry.  Its presence allows entries to be shown on
2309 specific dates in the agenda (*note Weekly/Daily agenda::).  We
2310 distinguish:
2312 PLAIN TIME STAMP
2313      A simple time stamp just assigns a date/time to an item.  This is
2314      just like writing down an appointment in a paper agenda, or like
2315      writing down an event in a diary, when you want to take note of
2316      when something happened.  In the timeline and agenda displays, the
2317      headline of an entry associated with a plain time stamp will be
2318      shown exactly on that date.
2320           * Meet Peter at the movies <2006-11-01 Wed 19:15>
2322 INACTIVE TIME STAMP
2323      Just like a plain time stamp, but with square brackets instead of
2324      angular ones.  These time stamps are inactive in the sense that
2325      they do _not_ trigger an entry to show up in the agenda.
2327           * Gillian comes late for the fifth time [2006-11-01 Wed]
2329 TIME STAMP RANGE
2330      Two time stamps connected by `--' denote a time range.  The
2331      headline will be shown on the first and last day of the range, and
2332      on any dates that are displayed and fall in the range.  Here is an
2333      example:
2335           ** Meeting in Amsterdam
2336              <2004-08-23 Mon>--<2004-08-26 Thu>
2338 TIME STAMP WITH SCHEDULED KEYWORD
2339      If a time stamp is preceded by the word `SCHEDULED:', it means you
2340      are planning to start working on that task on the given date. So
2341      this is not about recording an event, but about planning your
2342      work.  The headline will be listed under the given date(2).  In
2343      addition, a reminder that the scheduled date has passed will be
2344      present in the compilation for _today_, until the entry is marked
2345      DONE.  I.e., the task will automatically be forwarded until
2346      completed.
2348           *** TODO Call Trillian for a date on New Years Eve.
2349               SCHEDULED: <2004-12-25 Sat>
2351 TIME STAMP WITH DEADLINE KEYWORD
2352      If a time stamp is preceded by the word `DEADLINE:', the task
2353      (most likely a TODO item) is supposed to be finished on that date,
2354      and it will be listed then.  In addition, the compilation for
2355      _today_ will carry a warning about the approaching or missed
2356      deadline, starting `org-deadline-warning-days' before the due
2357      date, and continuing until the entry is marked DONE.  An example:
2359           *** TODO write article about the Earth for the Guide
2360               The editor in charge is [[bbdb:Ford Prefect]]
2361               DEADLINE: <2004-02-29 Sun>
2363 TIME STAMP WITH CLOSED KEYWORD
2364      When `org-log-done' is non-nil, Org-mode will automatically insert
2365      a special time stamp each time a TODO entry is marked done (*note
2366      Progress logging::).  This time stamp is enclosed in square
2367      brackets instead of angular brackets.
2369 TIME RANGE WITH CLOCK KEYWORD
2370      When using the clock to time the work that is being done on
2371      specific items, time ranges preceded by the CLOCK keyword are
2372      inserted automatically into the file.  The time stamps are
2373      enclosed in square brackets instead of angular brackets.  *Note
2374      Clocking work time::.
2376    ---------- Footnotes ----------
2378    (1) This is the standard ISO date/time format.  If you cannot get
2379 used to these, see *Note Custom time format::
2381    (2) It will still be listed on that date after it has been marked
2382 DONE.  If you don't like this, set the variable
2383 `org-agenda-skip-scheduled-if-done'.
2385 \x1f
2386 File: org,  Node: Creating timestamps,  Next: Custom time format,  Prev: Time stamps,  Up: Timestamps
2388 6.2 Creating timestamps
2389 =======================
2391 For Org-mode to recognize time stamps, they need to be in the specific
2392 format.  All commands listed below produce time stamps in the correct
2393 format.
2395 `C-c .'
2396      Prompt for a date and insert a corresponding time stamp.  When the
2397      cursor is at a previously used time stamp, it is updated to NOW.
2398      When this command is used twice in succession, a time range is
2399      inserted.
2401 `C-u C-c .'
2402      Like `C-c .', but use the alternative format which contains date
2403      and time.  The default time can be rounded to multiples of 5
2404      minutes, see the option `org-time-stamp-rounding-minutes'.
2406 `C-c !'
2407      Like `C-c .', but insert an inactive time stamp not triggering the
2408      agenda.
2410 `C-c <'
2411      Insert a time stamp corresponding to the cursor date in the
2412      Calendar.
2414 `C-c >'
2415      Access the Emacs calendar for the current date.  If there is a
2416      timestamp in the current line, goto the corresponding date instead.
2418 `C-c C-o'
2419      Access the agenda for the date given by the time stamp or -range at
2420      point (*note Weekly/Daily agenda::).
2422 `C-c C-d'
2423      Insert `DEADLINE' keyword along with a stamp.  The insertion will
2424      happen in the line directly following the headline.
2426 `C-c C-w'
2427      Create a sparse tree with all deadlines that are either past-due,
2428      or which will become due within `org-deadline-warning-days'.  With
2429      `C-u' prefix, show all deadlines in the file.  With a numeric
2430      prefix, check that many days.  For example, `C-1 C-c C-w' shows
2431      all deadlines due tomorrow.
2433 `C-c C-s'
2434      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
2435      happen in the line directly following the headline.  Any CLOSED
2436      timestamp will be removed.
2438 `S-<left>'
2439 `S-<right>'
2440      Change date at cursor by one day.  These key bindings conflict with
2441      CUA-mode (*note Conflicts::).
2443 `S-<up>'
2444 `S-<down>'
2445      Change the item under the cursor in a timestamp.  The cursor can
2446      be on a year, month, day, hour or minute.  Note that if the cursor
2447      is in a headline and not at a time stamp, these same keys modify
2448      the priority of an item.  (*note Priorities::). The key bindings
2449      also conflict with CUA-mode (*note Conflicts::).
2451 `C-c C-y'
2452      Evaluate a time range by computing the difference between start and
2453      end.  With prefix arg, insert result after the time range (in a
2454      table: into the following column).
2456 * Menu:
2458 * The date/time prompt::        How org-mode helps you entering date and time
2460 \x1f
2461 File: org,  Node: The date/time prompt,  Prev: Creating timestamps,  Up: Creating timestamps
2463 6.2.1 The date/time prompt
2464 --------------------------
2466 When Org-mode prompts for a date/time, the prompt suggests to enter an
2467 ISO date.  But it will in fact accept any string containing some date
2468 and/or time information.  You can, for example, use `C-y' to paste a
2469 (possibly multi-line) string copied from an email message.  Org-mode
2470 will find whatever information is in there and will replace anything not
2471 specified with the current date and time.  For example:
2473        3-2-5         --> 2003-02-05
2474        feb 15        --> currentyear-02-15
2475        sep 12 9      --> 2009-09-12
2476        12:45         --> today 12:45
2477        22 sept 0:34  --> currentyear-09-22 0:34
2478        12            --> currentyear-currentmonth-12
2479        Fri           --> nearest Friday (today or later)
2480        +4            --> 4 days from now (if +N is the only thing given)
2482    The function understands English month and weekday abbreviations.  If
2483 you want to use unabbreviated names and/or other languages, configure
2484 the variables `parse-time-months' and `parse-time-weekdays'.
2486    Parallel to the minibuffer prompt, a calendar is popped up(1).  You
2487 can control the calendar fully from the minibuffer:
2490      Scroll calendar backwards by one month.  
2493      Scroll calendar forwards by one month.  
2495 `mouse-1'
2496      Select date by clicking on it.  
2498 `S-<right>'
2499      One day forward.  
2501 `S-<left>'
2502      One day back.  
2504 `S-<down>'
2505      One week forward.  
2507 `S-<up>'
2508      One week back.  
2510 `M-S-<right>'
2511      One month forward.  
2513 `M-S-<left>'
2514      One month back.  
2516 `<RET>'
2517      Choose date in calendar (only if nothing was typed into
2518      minibuffer).
2520    ---------- Footnotes ----------
2522    (1) If you don't need/want the calendar, configure the variable
2523 `org-popup-calendar-for-date-prompt'.
2525 \x1f
2526 File: org,  Node: Custom time format,  Next: Progress logging,  Prev: Creating timestamps,  Up: Timestamps
2528 6.3 Custom time format
2529 ======================
2531 Org-mode uses the standard ISO notation for dates and times as it is
2532 defined in ISO 8601.  If you cannot get used to this and require another
2533 representation of date and time to keep you happy, you can get it by
2534 customizing the variables `org-display-custom-times' and
2535 `org-time-stamp-custom-formats'.
2537 `C-c C-x C-t'
2538      Toggle the display of custom formats for dates and times.
2540 Org-mode needs the default format for scanning, so the custom date/time
2541 format does not _replace_ the default format - instead it is put _over_
2542 the default format using text properties.  This has the following
2543 consequences:
2544    * You cannot place the cursor onto a time stamp anymore, only before
2545      or after.
2547    * The `S-<up>/<down>' keys can no longer be used to adjust each
2548      component of a time stamp.  If the cursor is at the beginning of
2549      the stamp, `S-<up>/<down>' will change the stamp by one day, just
2550      like `S-<left>/<right>'.  At the end of the stamp, the time will
2551      be changed by one minute.
2553    * When you delete a time stamp character-by-character, it will only
2554      disappear from the buffer after _all_ (invisible) characters
2555      belonging to the ISO timestamp have been removed.
2557    * If the custom time stamp format is longer than the default and you
2558      are using dates in tables, table alignment will be messed up.  If
2559      the custom format is shorter, things do work as expected.
2561 \x1f
2562 File: org,  Node: Progress logging,  Prev: Custom time format,  Up: Timestamps
2564 6.4 Progress Logging
2565 ====================
2567 Org-mode can automatically record a time stamp when you mark a TODO item
2568 as DONE.  You can also measure precisely the time you spent on specific
2569 items in a project by starting and stopping a clock when you start and
2570 stop working on an aspect of a project.
2572 * Menu:
2574 * Closing items::               When was this entry marked DONE?
2575 * Clocking work time::          When exactly did you work on this item?
2577 \x1f
2578 File: org,  Node: Closing items,  Next: Clocking work time,  Prev: Progress logging,  Up: Progress logging
2580 6.4.1 Closing items
2581 -------------------
2583 If you want to keep track of _when_ a certain TODO item was finished,
2584 turn on logging with
2586      (setq org-log-done t)
2588 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2589 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2590 [timestamp]' will be inserted just after the headline.  If you turn the
2591 entry back into a TODO item again through further state cycling, that
2592 line will be removed again.  In the timeline (*note Timeline::) and in
2593 the agenda (*note Weekly/Daily agenda::), you can then use the `l' key
2594 to display the TODO items closed on each day, giving you an overview of
2595 what has been done on a day.  See the variable `org-log-done' for the
2596 possibility to record an additional note together with a timestamp.
2598 \x1f
2599 File: org,  Node: Clocking work time,  Prev: Closing items,  Up: Progress logging
2601 6.4.2 Clocking work time
2602 ------------------------
2604 Org-mode allows you to clock the time you spent on specific tasks in a
2605 project.  When you start working on an item, you can start the clock.
2606 When you stop working on that task, or when you mark the task done, the
2607 clock is stopped and the corresponding time interval is recorded.  It
2608 also computes the total time spent on each subtree of a project.
2610 `C-c C-x C-i'
2611      Start the clock on the current item (clock-in).  This inserts the
2612      CLOCK keyword together with a timestamp.  
2614 `C-c C-x C-o'
2615      Stop the clock (clock-out).  The inserts another timestamp at the
2616      same location where the clock was last started.  It also directly
2617      computes the resulting time in inserts it after the time range as
2618      `=> HH:MM'.  See the variable `org-log-done' for the possibility to
2619      record an additional note together with the clock-out time stamp.  
2621 `C-c C-y'
2622      Recompute the time interval after changing one of the time stamps.
2623      This is only necessary if you edit the time stamps directly.  If
2624      you change them with `S-<cursor>' keys, the update is automatic.  
2626 `C-c C-t'
2627      Changing the TODO state of an item to DONE automatically stops the
2628      clock if it is running in this same item.  
2630 `C-c C-x C-x'
2631      Cancel the current clock.  This is useful if a clock was started by
2632      mistake, or if you ended up working on something else.  
2634 `C-c C-x C-d'
2635      Display time summaries for each subtree in the current buffer.
2636      This puts overlays at the end of each headline, showing the total
2637      time recorded under that heading, including the time of any
2638      subheadings. You can use visibility cycling to study the tree, but
2639      the overlays disappear when you change the buffer (see variable
2640      `org-remove-highlights-with-change') or press `C-c C-c'.  
2642 `C-c C-x C-r'
2643      Insert a dynamic block (*note Dynamic blocks::) containing a clock
2644      report as an org-mode table into the current file.
2645           #+BEGIN: clocktable :maxlevel 2 :emphasize nil
2647           #+END: clocktable
2648      If such a block already exists, its content is replaced by the new
2649      table.  The `BEGIN' line can specify options:
2650           :maxlevels   Maximum level depth to which times are listed in the table.
2651           :emphasize   When `t', emphasize level one and level two items
2652           :block       The time block to consider.  This block is specified relative
2653                        to the current time and may be any of these keywords:
2654                        `today', `yesterday', `thisweek', `lastweek',
2655                        `thismonth', `lastmonth', `thisyear', or `lastyear'.
2656           :tstart      A time string specifying when to start considering times
2657           :tend        A time string specifying when to stop considering times
2658      So to get a clock summary for the current day, you could write
2659           #+BEGIN: clocktable :maxlevel 2 :block today
2661           #+END: clocktable
2662      and to use a specific time range you could write(1)
2663           #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
2664                               :tend "<2006-08-10 Thu 12:00>"
2666           #+END: clocktable
2667      
2668 `C-u C-c C-x C-u'
2669      Update all dynamic blocks (*note Dynamic blocks::).  This is
2670      useful if you have several clocktable blocks in a buffer.
2672    The `l' key may be used in the timeline (*note Timeline::) and in
2673 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
2674 worked on or closed during a day.
2676    ---------- Footnotes ----------
2678    (1) Note that all parameters must be specified in a single line -
2679 the line is broken here only to fit it onto the manual.
2681 \x1f
2682 File: org,  Node: Tags,  Next: Agenda views,  Prev: Timestamps,  Up: Top
2684 7 Tags
2685 ******
2687 If you wish to implement a system of labels and contexts for
2688 cross-correlating information, an excellent way is to assign tags to
2689 headlines.  Org-mode has extensive support for using tags.
2691    Every headline can contain a list of tags, at the end of the
2692 headline.  Tags are normal words containing letters, numbers, `_', and
2693 `@'.  Tags must be preceded and followed by a single colon; like
2694 `:WORK:'.  Several tags can be specified like `:WORK:URGENT:'.
2696 * Menu:
2698 * Tag inheritance::             Tags use the tree structure of the outline
2699 * Setting tags::                How to assign tags to a headline
2700 * Tag searches::                Searching for combinations of tags
2702 \x1f
2703 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2705 7.1 Tag inheritance
2706 ===================
2708 Tags make use of the hierarchical structure of outline trees.  If a
2709 heading has a certain tag, all subheadings will inherit the tag as
2710 well.  For example, in the list
2712      * Meeting with the French group      :WORK:
2713      ** Summary by Frank                  :BOSS:NOTES:
2714      *** TODO Prepare slides for him      :ACTION:
2716 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
2717 `:ACTION:'.  When executing tag searches and Org-mode finds that a
2718 certain headline matches the search criterion, it will not check any
2719 sublevel headline, assuming that these likely also match, and that the
2720 list of matches can become very long.  This may not be what you want,
2721 however, and you can influence inheritance and searching using the
2722 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2724 \x1f
2725 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2727 7.2 Setting tags
2728 ================
2730 Tags can simply be typed into the buffer at the end of a headline.
2731 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2732 special command for inserting tags:
2734 `C-c C-c'
2735      Enter new tags for the current headline.  Org-mode will either
2736      offer completion or a special single-key interface for setting
2737      tags, see below.  After pressing <RET>, the tags will be inserted
2738      and aligned to `org-tags-column'.  When called with a `C-u'
2739      prefix, all tags in the current buffer will be aligned to that
2740      column, just to make things look nice.  TAGS are automatically
2741      realigned after promotion, demotion, and TODO state changes (*note
2742      TODO basics::).
2744    Org will support tag insertion based on a _list of tags_.  By
2745 default this list is constructed dynamically, containing all tags
2746 currently used in the buffer.  You may also globally specify a hard list
2747 of tags with the variable `org-tag-alist'.  Finally you can set the
2748 default tags for a given file with lines like
2750      #+TAGS: @WORK @HOME @TENNISCLUB
2751      #+TAGS: Laptop Car PC Sailboat
2753    If you have globally defined your preferred set of tags using the
2754 variable `org-tag-alist', but would like to use a dynamic tag list in a
2755 specific file: Just add an empty TAGS option line to that file:
2757      #+TAGS:
2759    The default support method for entering tags is minibuffer
2760 completion.  However, Org-mode also implements a much better method:
2761 _fast tag selection_.  This method allows to select and deselect tags
2762 with a single key per tag.  To function efficiently, you should assign
2763 unique keys to most tags.  This can be done globally with
2765      (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
2767 or on a per-file basis with
2769      #+TAGS: @WORK(w)  @HOME(h)  @TENNISCLUB(t)  Laptop(l)  PC(p)
2771 You can also group together tags that are mutually exclusive.  With
2772 curly braces(1)
2774      #+TAGS: { @WORK(w)  @HOME(h)  @TENNISCLUB(t) }  Laptop(l)  PC(p)
2776 you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
2777 should be selected.
2779 Don't forget to press `C-c C-c' with the cursor in one of these lines
2780 to activate any changes.
2782    If at least one tag has a selection key, pressing `C-c C-c' will
2783 automatically present you with a special interface, listing inherited
2784 tags, the tags of the current headline, and a list of all legal tags
2785 with corresponding keys(2).  In this interface, you can use the
2786 following keys:
2788 `a-z...'
2789      Pressing keys assigned to tags will add or remove them from the
2790      list of tags in the current line.  Selecting a tag in a group of
2791      mutually exclusive tags will turn off any other tags from that
2792      group.  
2794 `<TAB>'
2795      Enter a tag in the minibuffer, even if the tag is not in the
2796      predefined list.  You will be able to complete on all tags present
2797      in the buffer.  
2799 `<SPC>'
2800      Clear all tags for this line.  
2802 `<RET>'
2803      Accept the modified set.
2805 `C-g'
2806      Abort without installing changes.
2809      If `q' is not assigned to a tag, it aborts like `C-g'.
2812      Turn off groups of mutually exclusive tags.  Use this to (as an
2813      exception) assign several tags from such a group.
2815 `C-c'
2816      Toggle auto-exit after the next change (see below).
2818 This method lets you assign tags to a headline with very few keys.  With
2819 the above setup, you could clear the current tags and set `@HOME',
2820 `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
2821 p <RET>'.  Switching from `@HOME' to `@WORK' would be done with `C-c
2822 C-c w <RET>' or alternatively with `C-c C-c C-c w'.  Adding the
2823 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
2824 <RET> <RET>'.
2826    If you find that most of the time, you need only a single keypress to
2827 modify your list of tags, set the variable
2828 `org-fast-tag-selection-single-key'.  Then you no longer have to press
2829 <RET> to exit fast tag selection - it will immediately exit after the
2830 first change.  If you then occasionally need more keys, press `C-c' to
2831 turn off auto-exit for the current tag selection process.
2833    ---------- Footnotes ----------
2835    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
2836 respectively.  Several groups are allowed.
2838    (2) Keys will automatically be assigned to tags which have no
2839 configured keys.
2841 \x1f
2842 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
2844 7.3 Tag searches
2845 ================
2847 Once a tags system has been set up, it can be used to collect related
2848 information into special lists.
2850 `C-c \'
2851      Create a sparse tree with all headlines matching a tags search.
2852      With a `C-u' prefix argument, ignore headlines that are not a TODO
2853      line.  
2855 `C-c a m'
2856      Create a global list of tag matches from all agenda files.  *Note
2857      Matching headline tags::.  
2859 `C-c a M'
2860      Create a global list of tag matches from all agenda files, but
2861      check only TODO items and force checking subitems (see variable
2862      `org-tags-match-list-sublevels').
2864    A tags search string can use Boolean operators `&' for AND and `|'
2865 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
2866 not implemented.  A tag may also be preceded by `-', to select against
2867 it, and `+' is syntactic sugar for positive selection.  The AND
2868 operator `&' is optional when `+' or `-' is present.  Examples:
2870 `+WORK-BOSS'
2871      Select headlines tagged `:WORK:', but discard those also tagged
2872      `:BOSS:'.
2874 `WORK|LAPTOP'
2875      Selects lines tagged `:WORK:' or `:LAPTOP:'.
2877 `WORK|LAPTOP&NIGHT'
2878      Like before, but require the `:LAPTOP:' lines to be tagged also
2879      `NIGHT'.
2881    If you are using multi-state TODO keywords (*note TODO
2882 extensions::), it can be useful to also match on the TODO keyword.
2883 This can be done by adding a condition after a slash to a tags match.
2884 The syntax is similar to the tag matches, but should be applied with
2885 consideration: For example, a positive selection on several TODO
2886 keywords can not meaningfully be combined with boolean AND.  However,
2887 _negative selection_ combined with AND can be meaningful.  To make sure
2888 that only lines are checked that actually have any TODO keyword, use
2889 `C-c a M', or equivalently start the todo part after the slash with `!'.
2890 Examples:
2892 `WORK/WAITING'
2893      Select `:WORK:'-tagged TODO lines with the specific TODO keyword
2894      `WAITING'.
2896 `WORK/!-WAITING-NEXT'
2897      Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
2898      `NEXT'
2900 `WORK/+WAITING|+NEXT'
2901      Select `:WORK:'-tagged TODO lines that are either `WAITING' or
2902      `NEXT'.
2904    Any element of the tag/todo match can be a regular expression - in
2905 this case it must be enclosed in curly braces.  For example,
2906 `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
2907 tag starting with `BOSS'.
2909    You can also require a headline to be of a certain level, by writing
2910 instead of any TAG an expression like `LEVEL=3'.  For example, a search
2911 `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
2912 BOSS and are _not_ marked witht the todo keyword DONE.
2914 \x1f
2915 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Tags,  Up: Top
2917 8 Agenda Views
2918 **************
2920 Due to the way Org-mode works, TODO items, time-stamped items, and
2921 tagged headlines can be scattered throughout a file or even a number of
2922 files.  To get an overview over open action items, or over events that
2923 are important for a particular date, this information must be collected,
2924 sorted and displayed in an organized way.
2926    Org-mode can select items based on various criteria, and display them
2927 in a separate buffer.  Six different view types are provided:
2929    * an _agenda_ that is like a calendar and shows information for
2930      specific dates,
2932    * a _TODO list_ that covers all unfinished action items,
2934    * a _tags view_, showings headlines based on the tags associated
2935      them,
2937    * a _timeline view_ that shows all events in a single Org-mode file,
2938      in time-sorted view,
2940    * a _stuck projects view_ showing projects that currently don't move
2941      along, and
2943    * _custom views_ that are special tag/keyword searches and
2944      combinations of different views.
2946 The extracted information is displayed in a special _agenda buffer_.
2947 This buffer is read-only, but provides commands to visit the
2948 corresponding locations in the original Org-mode files, and even to
2949 edit these files remotely.
2951    Two variables control how the agenda buffer is displayed and whether
2952 the window configuration is restored when the agenda exits:
2953 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
2955 * Menu:
2957 * Agenda files::                Files being searched for agenda information
2958 * Agenda dispatcher::           Keyboard access to agenda views
2959 * Built-in agenda views::       What is available out of the box?
2960 * Presentation and sorting::    How agenda items are prepared for display
2961 * Agenda commands::             Remote editing of org trees
2962 * Custom agenda views::         Defining special searches and views
2964 \x1f
2965 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
2967 8.1 Agenda files
2968 ================
2970 The information to be shown is collected from all _agenda files_, the
2971 files listed in the variable `org-agenda-files'(1).  Thus even if you
2972 only work with a single Org-mode file, this file should be put into
2973 that list(2).  You can customize `org-agenda-files', but the easiest
2974 way to maintain it is through the following commands
2976 `C-c ['
2977      Add current file to the list of agenda files.  The file is added to
2978      the front of the list.  If it was already in the list, it is moved
2979      to the front.  With prefix arg, file is added/moved to the end.  
2981 `C-c ]'
2982      Remove current file from the list of agenda files.  
2984 `C-,'
2985      Cycle through agenda file list, visiting one file after the other.
2987 The Org menu contains the current list of files and can be used to
2988 visit any of them.
2990    ---------- Footnotes ----------
2992    (1) If the value of that variable is not a list, but a single file
2993 name, then the list of agenda files will be maintained in that external
2994 file.
2996    (2) When using the dispatcher, pressing `1' before selecting a
2997 command will actually limit the command to the current file, and ignore
2998 `org-agenda-files' until the next dispatcher command.
3000 \x1f
3001 File: org,  Node: Agenda dispatcher,  Next: Built-in agenda views,  Prev: Agenda files,  Up: Agenda views
3003 8.2 The agenda dispatcher
3004 =========================
3006 The views are created through a dispatcher that should be bound to a
3007 global key, for example `C-c a' (*note Installation::).  In the
3008 following we will assume that `C-c a' is indeed how the dispatcher is
3009 accessed and list keyboard access to commands accordingly.  After
3010 pressing `C-c a', an additional letter is required to execute a
3011 command.  The dispatcher offers the following default commands:
3013      Create the calendar-like agenda (*note Weekly/Daily agenda::).
3015 `t / T'
3016      Create a list of all TODO items (*note Global TODO list::).
3018 `m / M'
3019      Create a list of headlines matching a TAGS expression (*note
3020      Matching headline tags::).
3023      Create the timeline view for the current buffer (*note Timeline::).
3025 `# / !'
3026      Create a list of stuck projects (*note Stuck projects::).
3029      Restrict an agenda command to the current buffer.  After pressing
3030      `1', you still need to press the character selecting the command.
3033      If there is an active region, restrict the following agenda
3034      command to the region.  Otherwise, restrict it to the current
3035      subtree.  After pressing `0', you still need to press the
3036      character selecting the command.
3038    You can also define custom commands that will be accessible through
3039 the dispatcher, just like the default commands.  This includes the
3040 possibility to create extended agenda buffers that contain several
3041 blocks together, for example the weekly agenda, the global TODO list and
3042 a number of special tags matches.  *Note Custom agenda views::.
3044 \x1f
3045 File: org,  Node: Built-in agenda views,  Next: Presentation and sorting,  Prev: Agenda dispatcher,  Up: Agenda views
3047 8.3 The built-in agenda views
3048 =============================
3050 In this section we describe the built-in views.
3052 * Menu:
3054 * Weekly/Daily agenda::         The calendar page with current tasks
3055 * Global TODO list::            All unfinished action items
3056 * Matching headline tags::      Structured information with fine-tuned search
3057 * Timeline::                    Time-sorted view for single file
3058 * Stuck projects::              Find projects you need to review
3060 \x1f
3061 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Built-in agenda views,  Up: Built-in agenda views
3063 8.3.1 The weekly/daily agenda
3064 -----------------------------
3066 The purpose of the weekly/daily _agenda_ is to act like a page of a
3067 paper agenda, showing all the tasks for the current week or day.
3069 `C-c a a'
3070      Compile an agenda for the current week from a list of org files.
3071      The agenda shows the entries for each day.  With a `C-u' prefix (or
3072      when the variable `org-agenda-include-all-todo' is `t'), all
3073      unfinished TODO items (including those without a date) are also
3074      listed at the beginning of the buffer, before the first date.
3076    Remote editing from the agenda buffer means, for example, that you
3077 can change the dates of deadlines and appointments from the agenda
3078 buffer.  The commands available in the Agenda buffer are listed in
3079 *Note Agenda commands::.
3081 Calendar/Diary integration
3082 ..........................
3084 Emacs contains the calendar and diary by Edward M. Reingold.  The
3085 calendar displays a three-month calendar with holidays from different
3086 countries and cultures.  The diary allows you to keep track of
3087 anniversaries, lunar phases, sunrise/set, recurrent appointments
3088 (weekly, monthly) and more.  In this way, it is quite complementary to
3089 Org-mode.  It can be very useful to combine output from Org-mode with
3090 the diary.
3092    In order to include entries from the Emacs diary into Org-mode's
3093 agenda, you only need to customize the variable
3095      (setq org-agenda-include-diary t)
3097 After that, everything will happen automatically.  All diary entries
3098 including holidays, anniversaries etc will be included in the agenda
3099 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
3100 the agenda buffer to jump to the diary file in order to edit existing
3101 diary entries.  The `i' command to insert new entries for the current
3102 date works in the agenda buffer, as well as the commands `S', `M', and
3103 `C' to display Sunrise/Sunset times, show lunar phases and to convert
3104 to other calendars, respectively.  `c' can be used to switch back and
3105 forth between calendar and agenda.
3107 \x1f
3108 File: org,  Node: Global TODO list,  Next: Matching headline tags,  Prev: Weekly/Daily agenda,  Up: Built-in agenda views
3110 8.3.2 The global TODO list
3111 --------------------------
3113 The global TODO list contains all unfinished TODO items, formatted and
3114 collected into a single place.
3116 `C-c a t'
3117      Show the global TODO list.  This collects the TODO items from all
3118      agenda files (*note Agenda views::) into a single buffer.  The
3119      buffer is in `agenda-mode', so there are commands to examine and
3120      manipulate the TODO entries directly from that buffer (*note
3121      Agenda commands::).  
3123 `C-c a T'
3124      Like the above, but allows selection of a specific TODO keyword.
3125      You can also do this by specifying a prefix argument to `C-c a t'.
3126      With a `C-u' prefix you are prompted for a keyword.  With a
3127      numeric prefix, the Nth keyword in `org-todo-keywords' is selected.  The
3128      `r' key in the agenda buffer regenerates it, and you can give a
3129      prefix argument to this command to change the selected TODO
3130      keyword, for example `3 r'.  If you often need a search for a
3131      specific keyword, define a custom command for it (*note Agenda
3132      dispatcher::).
3133      Matching specific TODO keywords can also be done as part of a tags
3134      search (*note Tag searches::).
3136    Remote editing of TODO items means that you can change the state of a
3137 TODO entry with a single key press.  The commands available in the TODO
3138 list are described in *Note Agenda commands::.
3140    Normally the global todo list simply shows all headlines with TODO
3141 keywords.  This list can become very long.  There are two ways to keep
3142 it more compact:
3143    - Some people view a TODO item that has been _scheduled_ for
3144      execution (*note Time stamps::) as no longer _open_.  Configure the
3145      variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
3146      items from the global TODO list.
3148    - TODO items may have sublevels to break up the task into subtasks.
3149      In such cases it may be enough to list only the highest level TODO
3150      headline and omit the sublevels from the global list.  Configure
3151      the variable `org-agenda-todo-list-sublevels' to get this behavior.
3153 \x1f
3154 File: org,  Node: Matching headline tags,  Next: Timeline,  Prev: Global TODO list,  Up: Built-in agenda views
3156 8.3.3 Matching headline tags
3157 ----------------------------
3159 If headlines in the agenda files are marked with _tags_ (*note Tags::),
3160 you can select headlines based on the tags that apply to them and
3161 collect them into an agenda buffer.
3163 `C-c a m'
3164      Produce a list of all headlines that match a given set of tags.
3165      The command prompts for a selection criterion, which is a boolean
3166      logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
3167      `WORK|HOME' (*note Tags::).  If you often need a specific search,
3168      define a custom command for it (*note Agenda dispatcher::).  
3170 `C-c a M'
3171      Like `C-c a m', but only select headlines that are also TODO items
3172      and force checking subitems (see variable
3173      `org-tags-match-list-sublevels').  Matching specific todo keywords
3174      together with a tags match is also possible, see *Note Tag
3175      searches::.
3177    The commands available in the tags list are described in *Note
3178 Agenda commands::.
3180 \x1f
3181 File: org,  Node: Timeline,  Next: Stuck projects,  Prev: Matching headline tags,  Up: Built-in agenda views
3183 8.3.4 Timeline for a single file
3184 --------------------------------
3186 The timeline summarizes all time-stamped items from a single Org-mode
3187 file in a _time-sorted view_.  The main purpose of this command is to
3188 give an overview over events in a project.
3190 `C-c a L'
3191      Show a time-sorted view of the org file, with all time-stamped
3192      items.  When called with a `C-u' prefix, all unfinished TODO
3193      entries (scheduled or not) are also listed under the current date.
3195 The commands available in the timeline buffer are listed in *Note
3196 Agenda commands::.
3198 \x1f
3199 File: org,  Node: Stuck projects,  Prev: Timeline,  Up: Built-in agenda views
3201 8.3.5 Stuck projects
3202 --------------------
3204 If you are following a system like David Allen's GTD to organize your
3205 work, one of the "duties" you have is a regular review to make sure
3206 that all projects move along.  A _stuck_ project is a project that has
3207 no defined next actions, so it will never show up in the TODO lists
3208 Org-mode produces.  During the review, you need to identify such
3209 projects and define next actions for them.
3211 `C-c a #'
3212      List projects that are stuck.  
3214 `C-c a !'
3215      Customize the variable `org-stuck-projects' to define what a stuck
3216      project is and how to find it.
3218    You almost certainly will have to configure this view before it will
3219 work for you.  The built-in default assumes that all your projects are
3220 level-2 headlines, and that a project is not stuck if it has at least
3221 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
3223    Lets assume that you, in your own way of using Org-mode, identify
3224 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
3225 indicate a project that should not be considered yet.  Lets further
3226 assume that the todo keyword DONE marks finished projects, and that NEXT
3227 and TODO indicate next actions.  Finally, the tag @SHOP indicates
3228 shopping and is a next action even without the NEXT tag.  In this case
3229 you would start by identifying elegible projects with a tags/todo match
3230 `+PROJECT/-MAYBE-DONE', and then check for TODO, NEXT and @SHOP in the
3231 subtree to identify projects that are not stuck.  The correct
3232 customization for this is
3234      (setq org-stuck-projects
3235            ("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")))
3237 \x1f
3238 File: org,  Node: Presentation and sorting,  Next: Agenda commands,  Prev: Built-in agenda views,  Up: Agenda views
3240 8.4 Presentation and sorting
3241 ============================
3243 Before displaying items in an agenda view, Org-mode visually prepares
3244 the items and sorts them.  Each item occupies a single line.  The line
3245 starts with a _prefix_ that contains the _category_ (*note
3246 Categories::) of the item and other important information.  You can
3247 customize the prefix using the option `org-agenda-prefix-format'.  The
3248 prefix is followed by a cleaned-up version of the outline headline
3249 associated with the item.
3251 * Menu:
3253 * Categories::                  Not all tasks are equal
3254 * Time-of-day specifications::  How the agenda knows the time
3255 * Sorting of agenda items::     The order of things
3257 \x1f
3258 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Presentation and sorting,  Up: Presentation and sorting
3260 8.4.1 Categories
3261 ----------------
3263 The category is a broad label assigned to each agenda item.  By default,
3264 the category is simply derived from the file name, but you can also
3265 specify it with a special line in the buffer, like this:
3267      #+CATEGORY: Thesis
3269    If there are several such lines in a file, each specifies the
3270 category for the text below it (but the first category also applies to
3271 any text before the first CATEGORY line).  The display in the agenda
3272 buffer looks best if the category is not longer than 10 characters.
3274 \x1f
3275 File: org,  Node: Time-of-day specifications,  Next: Sorting of agenda items,  Prev: Categories,  Up: Presentation and sorting
3277 8.4.2 Time-of-Day Specifications
3278 --------------------------------
3280 Org-mode checks each agenda item for a time-of-day specification.  The
3281 time can be part of the time stamp that triggered inclusion into the
3282 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
3283 specified with two time stamps, like
3284 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
3286    In the headline of the entry itself, a time(range) may also appear as
3287 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
3288 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
3289 entries are recognized as well.
3291    For agenda display, Org-mode extracts the time and displays it in a
3292 standard 24 hour format as part of the prefix.  The example times in
3293 the previous paragraphs would end up in the agenda like this:
3295          8:30-13:00 Arthur Dent lies in front of the bulldozer
3296         12:45...... Ford Prefect arrives and takes Arthur to the pub
3297         19:00...... The Vogon reads his poem
3298         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
3300    If the agenda is in single-day mode, or for the display of today, the
3301 timed entries are embedded in a time grid, like
3303          8:00...... ------------------
3304          8:30-13:00 Arthur Dent lies in front of the bulldozer
3305         10:00...... ------------------
3306         12:00...... ------------------
3307         12:45...... Ford Prefect arrives and takes Arthur to the pub
3308         14:00...... ------------------
3309         16:00...... ------------------
3310         18:00...... ------------------
3311         19:00...... The Vogon reads his poem
3312         20:00...... ------------------
3313         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
3315    The time grid can be turned on and off with the variable
3316 `org-agenda-use-time-grid', and can be configured with
3317 `org-agenda-time-grid'.
3319 \x1f
3320 File: org,  Node: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Presentation and sorting
3322 8.4.3 Sorting of agenda items
3323 -----------------------------
3325 Before being inserted into a view, the items are sorted.  How this is
3326 done depends on the type of view.
3327    * For the daily/weekly agenda, the items for each day are sorted.
3328      The default order is to first collect all items containing an
3329      explicit time-of-day specification.  These entries will be shown
3330      at the beginning of the list, as a _schedule_ for the day.  After
3331      that, items remain grouped in categories, in the sequence given by
3332      `org-agenda-files'.  Within each category, items are sorted by
3333      priority (*note Priorities::), which is composed of the base
3334      priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
3335      plus additional increments for overdue scheduled or deadline items.
3337    * For the TODO list, items remain in the order of categories, but
3338      within each category, sorting takes place according to priority
3339      (*note Priorities::).
3341    * For tags matches, items are not sorted at all, but just appear in
3342      the sequence in which they are found in the agenda files.
3344    Sorting can be customized using the variable
3345 `org-agenda-sorting-strategy'.
3347 \x1f
3348 File: org,  Node: Agenda commands,  Next: Custom agenda views,  Prev: Presentation and sorting,  Up: Agenda views
3350 8.5 Commands in the agenda buffer
3351 =================================
3353 Entries in the agenda buffer are linked back to the org file or diary
3354 file where they originate.  You are not allowed to edit the agenda
3355 buffer itself, but commands are provided to show and jump to the
3356 original entry location, and to edit the org-files "remotely" from the
3357 agenda buffer.  In this way, all information is stored only once,
3358 removing the risk that your agenda and note files may diverge.
3360    Some commands can be executed with mouse clicks on agenda lines.  For
3361 the other commands, the cursor needs to be in the desired line.
3363 Motion
3364 ......
3367      Next line (same as <up>).  
3370      Previous line (same as <down>).
3372 View/GoTo org file
3373 ..................
3375 `mouse-3'
3376 `<SPC>'
3377      Display the original location of the item in another window.
3380      Display original location and recenter that window.
3382 `mouse-2'
3383 `mouse-1'
3384 `<TAB>'
3385      Go to the original location of the item in another window.  Under
3386      Emacs 22, `mouse-1' will also works for this.
3388 `<RET>'
3389      Go to the original location of the item and delete other windows.
3392      Toggle Follow mode.  In Follow mode, as you move the cursor through
3393      the agenda buffer, the other window always shows the corresponding
3394      location in the org file.  The initial setting for this mode in new
3395      agenda buffers can be set with the variable
3396      `org-agenda-start-with-follow-mode'.
3399      Display the entire subtree of the current item in an indirect
3400      buffer, in a separate, dedicated frame.  With positive numerical
3401      prefix N, go up to level N before selecting the subtree.  With
3402      negative prefix -N, go up N levels.  With `C-u' prefix, don't use
3403      the dedicated frame, but another, new frame.
3406      Toggle Logbook mode.  In Logbook mode, entries that where marked
3407      DONE while logging was on (variable `org-log-done') are shown in
3408      the agenda, as are entries that have been clocked on that day.
3410 Change display
3411 ..............
3414      Delete other windows.
3417      Switch to weekly view (7 days displayed together).
3420      Switch to daily view (just one day displayed).
3423      Toggle the inclusion of diary entries.  See *Note Weekly/Daily
3424      agenda::.
3427      Toggle the time grid on and off.  See also the variables
3428      `org-agenda-use-time-grid' and `org-agenda-time-grid'.
3431      Recreate the agenda buffer, for example to reflect the changes
3432      after modification of the time stamps of items with S-<left> and
3433      S-<right>.  When the buffer is the global todo list, a prefix
3434      argument is interpreted to create a selective list for a specific
3435      TODO keyword.
3438      Save all Org-mode buffers in the current Emacs session.
3440 `<right>'
3441      Display the following `org-agenda-ndays' days.  For example, if
3442      the display covers a week, switch to the following week.  With
3443      prefix arg, go forward that many times `org-agenda-ndays' days.
3445 `<left>'
3446      Display the previous dates.
3449      Goto today.
3451 Remote editing
3452 ..............
3454 `0-9'
3455      Digit argument.
3457 `C-_'
3458      Undo a change due to a remote editing command.  The change is
3459      undone both in the agenda buffer and in the remote buffer.
3462      Change the TODO state of the item, both in the agenda and in the
3463      original org file.
3465 `C-k'
3466      Delete the current agenda item along with the entire subtree
3467      belonging to it in the original Org-mode file.  If the text to be
3468      deleted remotely is longer than one line, the kill needs to be
3469      confirmed by the user.  See variable `org-agenda-confirm-kill'.
3472      Archive the subtree corresponding to the current headline.
3475      Show all tags associated with the current item.  Because of
3476      inheritance, this may be more than the tags listed in the line
3477      itself.
3480      Set tags for the current headline.
3483      Toggle the ARCHIVE tag for the current headline.
3486      Set the priority for the current item.  Org-mode prompts for the
3487      priority character. If you reply with <SPC>, the priority cookie
3488      is removed from the entry.
3491      Display weighted priority of current item.
3494 `S-<up>'
3495      Increase the priority of the current item.  The priority is
3496      changed in the original buffer, but the agenda is not resorted.
3497      Use the `r' key for this.
3500 `S-<down>'
3501      Decrease the priority of the current item.
3503 `C-c C-s'
3504      Schedule this item
3506 `C-c C-d'
3507      Set a deadline for this item.
3509 `S-<right>'
3510      Change the time stamp associated with the current line by one day
3511      into the future.  With prefix argument, change it by that many
3512      days.  For example, `3 6 5 S-<right>' will change it by a year.
3513      The stamp is changed in the original org file, but the change is
3514      not directly reflected in the agenda buffer.  Use the `r' key to
3515      update the buffer.
3517 `S-<left>'
3518      Change the time stamp associated with the current line by one day
3519      into the past.
3522      Change the time stamp associated with the current line to today.
3523      The key `>' has been chosen, because it is the same as `S-.' on my
3524      keyboard.
3527      Start the clock on the current item.  If a clock is running
3528      already, it is stopped first.  
3531      Stop the previously started clock.  
3534      Cancel the currently running clock.
3536 Calendar commands
3537 .................
3540      Open the Emacs calendar and move to the date at the agenda cursor.
3543      When in the calendar, compute and show the Org-mode agenda for the
3544      date at the cursor.
3547      Insert a new entry into the diary.  Prompts for the type of entry
3548      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
3549      new entry in the diary, just as `i d' etc. would do in the
3550      calendar.  The date is taken from the cursor position.
3553      Show the phases of the moon for the three months around current
3554      date.
3557      Show sunrise and sunset times.  The geographical location must be
3558      set with calendar variables, see documentation of the Emacs
3559      calendar.
3562      Convert the date at cursor into many other cultural and historic
3563      calendars.
3566      Show holidays for three month around the cursor date.
3568 `C-c C-x C-c'
3569      Export a single iCalendar file containing entries from all agenda
3570      files.
3572 Quit and Exit
3573 .............
3576      Quit agenda, remove the agenda buffer.
3579      Exit agenda, remove the agenda buffer and all buffers loaded by
3580      Emacs for the compilation of the agenda.  Buffers created by the
3581      user to visit org files will not be removed.
3584 \x1f
3585 File: org,  Node: Custom agenda views,  Prev: Agenda commands,  Up: Agenda views
3587 8.6 Custom agenda views
3588 =======================
3590 Custom agenda commands serve two purposes: to store and quickly access
3591 frequently used TODO and tags searches, and to create special composite
3592 agenda buffers.  Custom agenda commands will be accessible through the
3593 dispatcher (*note Agenda dispatcher::), just like the default commands.
3595 * Menu:
3597 * Storing searches::            Type once, use often
3598 * Block agenda::                All the stuff you need in a single buffer
3599 * Setting Options::             Changing the rules
3600 * Batch processing::            Agenda views from the command line
3602 \x1f
3603 File: org,  Node: Storing searches,  Next: Block agenda,  Prev: Custom agenda views,  Up: Custom agenda views
3605 8.6.1 Storing searches
3606 ----------------------
3608 The first application of custom searches is the definition of keyboard
3609 shortcuts for frequently used searches, either creating an agenda
3610 buffer, or a sparse tree (the latter covering of course only the current
3611 buffer).  Custom commands are configured in the variable
3612 `org-agenda-custom-commands'.  You can customize this variable, for
3613 example by pressing `C-c a C'.  You can also directly set it with Emacs
3614 Lisp in `.emacs'.  The following example contains all valid search
3615 types:
3617      (setq org-agenda-custom-commands
3618            '(("w" todo "WAITING")
3619              ("W" todo-tree "WAITING")
3620              ("u" tags "+BOSS-URGENT")
3621              ("v" tags-todo "+BOSS-URGENT")
3622              ("U" tags-tree "+BOSS-URGENT")
3623              ("f" occur-tree "\\<FIXME\\>")))
3625 The initial single-character string in each entry defines the character
3626 you have to press after the dispatcher command `C-c a' in order to
3627 access the command.   The second parameter is the search type, followed
3628 by the string or regular expression to be used for the matching.  The
3629 example above will therefore define:
3631 `C-c a w'
3632      as a global search for TODO entries with `WAITING' as the TODO
3633      keyword
3635 `C-c a W'
3636      as the same search, but only in the current buffer and displaying
3637      the results as a sparse tree
3639 `C-c a u'
3640      as a global tags search for headlines marked `:BOSS:' but not
3641      `:URGENT:'
3643 `C-c a v'
3644      as the same search as `C-c a u', but limiting the search to
3645      headlines that are also TODO items
3647 `C-c a U'
3648      as the same search as `C-c a u', but only in the current buffer and
3649      displaying the result as a sparse tree
3651 `C-c a f'
3652      to create a sparse tree (again: current buffer only) with all
3653      entries containing the word `FIXME'.
3655 \x1f
3656 File: org,  Node: Block agenda,  Next: Setting Options,  Prev: Storing searches,  Up: Custom agenda views
3658 8.6.2 Block agenda
3659 ------------------
3661 Another possibility is the construction of agenda views that comprise
3662 the results of _several_ commands, each of which creates a block in the
3663 agenda buffer.  The available commands include `agenda' for the daily
3664 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
3665 todo list (as constructed with `C-c a t'), and the matching commands
3666 discussed above: `todo', `tags', and `tags-todo'.  Here are two
3667 examples:
3669      (setq org-agenda-custom-commands
3670            '(("h" "Agenda and Home-related tasks"
3671               ((agenda)
3672                (tags-todo "HOME")
3673                (tags "GARDEN")))
3674              ("o" "Agenda and Office-related tasks"
3675               ((agenda)
3676                (tags-todo "WORK")
3677                (tags "OFFICE")))))
3679 This will define `C-c a h' to create a multi-block view for stuff you
3680 need to attend to at home.  The resulting agenda buffer will contain
3681 your agenda for the current week, all TODO items that carry the tag
3682 `HOME', and also all lines tagged with `GARDEN'.  Finally the command
3683 `C-c a o' provides a similar view for office tasks.
3685 \x1f
3686 File: org,  Node: Setting Options,  Next: Batch processing,  Prev: Block agenda,  Up: Custom agenda views
3688 8.6.3 Setting Options for custom commands
3689 -----------------------------------------
3691 Org-mode contains a number of variables regulating agenda construction
3692 and display.  The global variables define the behavior for all agenda
3693 commands, including the custom commands.  However, if you want to change
3694 some settings just for a single custom view, you can do so.  Setting
3695 options requires inserting a list of variable names and values at the
3696 right spot in `org-agenda-custom-commands'.  For example:
3698      (setq org-agenda-custom-commands
3699            '(("w" todo "WAITING"
3700               ((org-agenda-sorting-strategy '(priority-down))
3701                (org-agenda-prefix-format "  Mixed: ")))
3702              ("U" tags-tree "+BOSS-URGENT"
3703               ((org-show-following-heading nil)
3704                (org-show-hierarchy-above nil)))))
3706 Now the `C-c a w' command will sort the collected entries only by
3707 priority, and the prefix format is modified to just say `  Mixed:'
3708 instead of giving the category of the entry.  The sparse tags tree of
3709 `C-c a U' will now turn out ultra-compact, because neither the headline
3710 hierarchy above the match, nor the headline following the match will be
3711 shown.
3713    For command sets creating a block agenda,
3714 `org-agenda-custom-commands' has two separate spots for setting
3715 options.  You can add options that should be valid for just a single
3716 command in the set, and options that should be valid for all commands in
3717 the set.  The former are just added to the command entry, the latter
3718 must come after the list of command entries.  Going back to the block
3719 agenda example (*note Block agenda::), let's change the sorting strategy
3720 for the `C-c a h' commands to `priority-down', but let's sort the
3721 results for GARDEN tags query in the opposite order, `priority-up'.
3722 This would look like this:
3724      (setq org-agenda-custom-commands
3725            '(("h" "Agenda and Home-related tasks"
3726               ((agenda)
3727                (tags-todo "HOME")
3728                (tags "GARDEN" ((org-agenda-sorting-strategy '(priority-up)))))
3729               ((org-agenda-sorting-strategy '(priority-down))))
3730              ("o" "Agenda and Office-related tasks"
3731               ((agenda)
3732                (tags-todo "WORK")
3733                (tags "OFFICE")))))
3735    As you see, the values and parenthesis setting is a little complex.
3736 When in doubt, use the customize interface to set this variable - it
3737 fully supports its structure.  Just one caveat: When setting options in
3738 this interface, the _values_ are just lisp expressions.  So if the
3739 value is a string, you need to add the double quotes around the value
3740 yourself.
3742 \x1f
3743 File: org,  Node: Batch processing,  Prev: Setting Options,  Up: Custom agenda views
3745 8.6.4 Creating agenda views in batch processing
3746 -----------------------------------------------
3748 If you want to print or otherwise reprocess agenda views, it can be
3749 useful to create an agenda from the command line.  This is the purpose
3750 of the function `org-batch-agenda'.  It takes as a parameter one of the
3751 strings that are the keys in `org-agenda-custom-commands'.  For
3752 example, to directly print the current TODO list, you could use
3754      emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
3756 You may also modify parameters on the fly like this:
3758      emacs -batch -l ~/.emacs                                      \
3759         -eval '(org-batch-agenda "a"                               \
3760                  org-agenda-ndays 300                              \
3761                  org-agenda-include-diary nil                      \
3762                  org-agenda-files (quote ("~/org/project.org")))'  \
3763         | lpr
3765 which will produce a 300 day agenda, fully restricted to the Org file
3766 `~/org/projects.org', not even including the diary.
3768 \x1f
3769 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
3771 9 Embedded LaTeX
3772 ****************
3774 Plain ASCII is normally sufficient for almost all note taking.  One
3775 exception, however, are scientific notes which need to be able to
3776 contain mathematical symbols and the occasional formula.  LaTeX(1) is
3777 widely used to typeset scientific documents. Org-mode supports
3778 embedding LaTeX code into its files, because many academics are used to
3779 read LaTeX source code, and because it can be readily processed into
3780 images for HTML production.
3782    It is not necessary to mark LaTeX macros and code in any special way.
3783 If you observe a few conventions, Org-mode knows how to find it and what
3784 to do with it.
3786 * Menu:
3788 * Math symbols::                TeX macros for symbols and Greek letters
3789 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
3790 * LaTeX fragments::             Complex formulas made easy
3791 * Processing LaTeX fragments::  Previewing LaTeX processing
3792 * CDLaTeX mode::                Speed up entering of formulas
3794    ---------- Footnotes ----------
3796    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
3797 Many of the features described here as "LaTeX" are really from TeX, but
3798 for simplicity I am blurring this distinction.
3800 \x1f
3801 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
3803 9.1 Math symbols
3804 ================
3806 You can use LaTeX macros to insert special symbols like `\alpha' to
3807 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
3808 for these macros is available, just type `\' and maybe a few letters,
3809 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
3810 Org-mode allows these macros to be present without surrounding math
3811 delimiters, for example:
3813      Angles are written as Greek letters \alpha, \beta and \gamma.
3815    During HTML export (*note HTML export::), these symbols are
3816 translated into the proper syntax for HTML, for the above examples this
3817 is `&alpha;' and `&rarr;', respectively.
3819 \x1f
3820 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
3822 9.2 Subscripts and Superscripts
3823 ===============================
3825 Just like in LaTeX, `^' and `_' are used to indicate super- and
3826 subscripts.  Again, these can be used without embedding them in
3827 math-mode delimiters.  To increase the readability of ASCII text, it is
3828 not necessary (but OK) to surround multi-character sub- and superscripts
3829 with curly braces.  For example
3831      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
3832      the sun is R_{sun} = 6.96 x 10^8 m.
3834    To avoid interpretation as raised or lowered text, you can quote `^'
3835 and `_' with a backslash: `\_' and `\^'.
3837    During HTML export (*note HTML export::), subscript and superscripts
3838 are surrounded with `<sub>' and `<sup>' tags, respectively.
3840 \x1f
3841 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
3843 9.3 LaTeX fragments
3844 ===================
3846 With symbols, sub- and superscripts, HTML is pretty much at its end when
3847 it comes to representing mathematical formulas(1).  More complex
3848 expressions need a dedicated formula processor.  To this end, Org-mode
3849 can contain arbitrary LaTeX fragments.  It provides commands to preview
3850 the typeset result of these fragments, and upon export to HTML, all
3851 fragments will be converted to images and inlined into the HTML
3852 document.  For this to work you need to be on a system with a working
3853 LaTeX installation.  You also need the `dvipng' program, available at
3854 `http://sourceforge.net/projects/dvipng/'.
3856    LaTeX fragments don't need any special marking at all.  The following
3857 snippets will be identified as LaTeX source code:
3858    * Environments of any kind.  The only requirement is that the
3859      `\begin' statement appears on a new line, preceded by only
3860      whitespace.
3862    * Text within the usual LaTeX math delimiters.  To avoid conflicts
3863      with currency specifications, single `$' characters are only
3864      recognized as math delimiters if the enclosed text contains at
3865      most two line breaks, is directly attached to the `$' characters
3866      with no whitespace in between, and if the closing `$' is followed
3867      by whitespace or punctuation.  For the other delimiters, there is
3868      no such restriction, so when in doubt, use `\(...\)' as inline
3869      math delimiters.
3871 For example:
3873      \begin{equation}                          % arbitrary environments,
3874      x=\sqrt{b}                                % even tables, figures
3875      \end{equation}                            % etc
3877      If $a^2=b$ and \( b=2 \), then the solution must be
3878      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
3880 If you need any of the delimiter ASCII sequences for other purposes, you
3881 can configure the option `org-format-latex-options' to deselect the
3882 ones you do not wish to have interpreted by the LaTeX converter.
3884    ---------- Footnotes ----------
3886    (1) Yes, there is MathML, but that is not yet fully supported by
3887 many browsers, and there is no decent converter for turning LaTeX of
3888 ASCII representations of formulas into MathML.  So for the time being,
3889 converting formulas into images seems the way to go.
3891 \x1f
3892 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
3894 9.4 Processing LaTeX fragments
3895 ==============================
3897 LaTeX fragments can be processed to produce a preview images of the
3898 typeset expressions:
3900 `C-c C-x C-l'
3901      Produce a preview image of the LaTeX fragment at point and overlay
3902      it over the source code.  If there is no fragment at point,
3903      process all fragments in the current entry (between two
3904      headlines).  When called with a prefix argument, process the
3905      entire subtree.  When called with two prefix arguments, or when
3906      the cursor is before the first headline, process the entire buffer.  
3908 `C-c C-c'
3909      Remove the overlay preview images.
3911    During HTML export (*note HTML export::), all LaTeX fragments are
3912 converted into images and inlined into the document if the following
3913 setting is active:
3915      (setq org-export-with-LaTeX-fragments t)
3917 \x1f
3918 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
3920 9.5 Using CDLaTeX to enter math
3921 ===============================
3923 CDLaTeX-mode is a minor mode that is normally used in combination with a
3924 major LaTeX mode like AUCTeX in order to speed-up insertion of
3925 environments and math templates.  Inside Org-mode, you can make use of
3926 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
3927 and `texmathp.el' (the latter comes also with AUCTeX) from
3928 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
3929 cdlatex-mode itself under Org-mode, but use the light version
3930 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
3931 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
3932 with
3934      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
3936    When this mode is enabled, the following features are present (for
3937 more details see the documentation of cdlatex-mode):
3938    * Environment templates can be inserted with `C-c {'.
3940    * The <TAB> key will do template expansion if the cursor is inside a
3941      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
3942      `\frac{}{}' and position the cursor correctly inside the first
3943      brace.  Another <TAB> will get you into the second brace.  Even
3944      outside fragments, <TAB> will expand environment abbreviations at
3945      the beginning of a line.  For example, if you write `equ' at the
3946      beginning of a line and press <TAB>, this abbreviation will be
3947      expanded to an `equation' environment.  To get a list of all
3948      abbreviations, type `M-x cdlatex-command-help'.
3950    * Pressing `_' and `^' inside a LaTeX fragment will insert these
3951      characters together with a pair of braces.  If you use <TAB> to
3952      move out of the braces, and if the braces surround only a single
3953      character or macro, they are removed again (depending on the
3954      variable `cdlatex-simplify-sub-super-scripts').
3956    * Pressing the backquote ``' followed by a character inserts math
3957      macros, also outside LaTeX fragments.  If you wait more than 1.5
3958      seconds after the backquote, a help window will pop up.
3960    * Pressing the normal quote `'' followed by another character
3961      modifies the symbol before point with an accent or a font.  If you
3962      wait more than 1.5 seconds after the backquote, a help window will
3963      pop up.  Character modification will work only inside LaTeX
3964      fragments, outside the quote is normal.
3966    ---------- Footnotes ----------
3968    (1) Org-mode has a method to test if the cursor is inside such a
3969 fragment, see the documentation of the function
3970 `org-inside-LaTeX-fragment-p'.
3972 \x1f
3973 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
3975 10 Exporting
3976 ************
3978 Org-mode documents can be exported into a variety of other formats.  For
3979 printing and sharing of notes, ASCII export produces a readable and
3980 simple version of an Org-mode file.  HTML export allows you to publish a
3981 notes file on the web, while the XOXO format provides a solid base for
3982 exchange with a broad range of other applications.  To incorporate
3983 entries with associated times like deadlines or appointments into a
3984 desktop calendar program like iCal, Org-mode can also produce extracts
3985 in the iCalendar format.  Currently Org-mode only supports export, not
3986 import of these different formats.
3988    When exporting, Org-mode uses special conventions to enrich the
3989 output produced.  *Note Text interpretation::, for more details.
3991 `C-c C-e'
3992      Dispatcher for export and publishing commands.  Displays a
3993      help-window listing the additional key(s) needed to launch an
3994      export or publishing command.
3996 * Menu:
3998 * ASCII export::                Exporting to plain ASCII
3999 * HTML export::                 Exporting to HTML
4000 * XOXO export::                 Exporting to XOXO
4001 * iCalendar export::            Exporting in iCalendar format
4002 * Text interpretation::         How the exporter looks at the file
4004 \x1f
4005 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
4007 10.1 ASCII export
4008 =================
4010 ASCII export produces a simple and very readable version of an Org-mode
4011 file.
4013 `C-c C-e a'
4014      Export as ASCII file.  If there is an active region, only the
4015      region will be exported.  For an org file `myfile.org', the ASCII
4016      file will be `myfile.txt'.  The file will be overwritten without
4017      warning.  
4019 `C-c C-e v a'
4020      Export only the visible part of the document.
4022    In the exported version, the first 3 outline levels will become
4023 headlines, defining a general document structure.  Additional levels
4024 will be exported as itemized lists.  If you want that transition to
4025 occur at a different level, specify it with a prefix argument.  For
4026 example,
4028      C-1 C-c C-e a
4030 creates only top level headlines and does the rest as items.  When
4031 headlines are converted to items, the indentation of the text following
4032 the headline is changed to fit nicely under the item.  This is done with
4033 the assumption that the first bodyline indicates the base indentation of
4034 the body text.  Any indentation larger than this is adjusted to preserve
4035 the layout relative to the first line.  Should there be lines with less
4036 indentation than the first, these are left alone.
4038 \x1f
4039 File: org,  Node: HTML export,  Next: XOXO export,  Prev: ASCII export,  Up: Exporting
4041 10.2 HTML export
4042 ================
4044 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
4045 HTML formatting, in ways similar to John Grubers _markdown_ language,
4046 but with additional support for tables.
4048 `C-c C-e h'
4049      Export as HTML file `myfile.html'.  
4051 `C-c C-e b'
4052      Export as HTML file and open it with a browser.  
4054 `C-c C-e v h'
4056 `C-c C-e v b'
4057      Export only the visible part of the document.
4059    In the exported version, the first 3 outline levels will become
4060 headlines, defining a general document structure.  Additional levels
4061 will be exported as itemized lists.  If you want that transition to
4062 occur at a different level, specify it with a prefix argument.  For
4063 example,
4065      C-2 C-c C-e b
4067 creates two levels of headings and does the rest as items.
4069    If you want to include HTML tags which should be interpreted as such,
4070 mark them with `@' as in `@<b>bold text@</b>'.  Plain `<' and `>' are
4071 always transformed to `&lt;' and `&gt;' in HTML export.
4073    Internal links (*note Internal links::) will continue to work in HTML
4074 files only if they match a dedicated `<<target>>'.  Automatic links
4075 created by radio targets (*note Radio targets::) will also work in the
4076 HTML file.  Links to external files will still work if the HTML file is
4077 in the same directory as the Org-mode file.  Links to other `.org'
4078 files will be translated into HTML links under the assumption that an
4079 HTML version also exists of the linked file.  For information related to
4080 linking files while publishing them to a publishing directory see *Note
4081 Publishing links::.
4083    You can also give style information for the exported file.  The HTML
4084 exporter assigns the following CSS classes to appropriate parts of the
4085 document - your style specifications may change these:
4086      .todo           TODO keywords
4087      .done           the DONE keyword
4088      .timestamp      time stamp
4089      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
4090      .tag            tag in a headline
4091      .target         target for links
4093    The default style specification can be configured through the option
4094 `org-export-html-style'.  If you want to use a file-local style, you
4095 may use file variables, best wrapped into a COMMENT section at the end
4096 of the outline tree.  For example:
4098      * COMMENT HTML style specifications
4100      # Local Variables:
4101      # org-export-html-style: "   <style type=\"text/css\">
4102      #       p {font-weight: normal; color: gray; }
4103      #       h1 {color: black; }
4104      #   </style>"
4105      # End:
4107    Remember to execute `M-x normal-mode' after changing this to make
4108 the new style visible to Emacs.  This command restarts org-mode for the
4109 current buffer and forces Emacs to re-evaluate the local variables
4110 section in the buffer.
4112 \x1f
4113 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: HTML export,  Up: Exporting
4115 10.3 XOXO export
4116 ================
4118 Org-mode contains an exporter that produces XOXO-style output.
4119 Currently, this exporter only handles the general outline structure and
4120 does not interpret any additional Org-mode features.
4122 `C-c C-e x'
4123      Export as XOXO file `myfile.html'.  
4125 `C-c C-e v x'
4126      Export only the visible part of the document.
4128 \x1f
4129 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
4131 10.4 iCalendar export
4132 =====================
4134 Some people like to use Org-mode for keeping track of projects, but
4135 still prefer a standard calendar application for anniversaries and
4136 appointments.  In this case it can be useful to have deadlines and
4137 other time-stamped items in Org-mode files show up in the calendar
4138 application.  Org-mode can export calendar information in the standard
4139 iCalendar format.
4141 `C-c C-e i'
4142      Create iCalendar entries for the current file and store them in
4143      the same directory, using a file extension `.ics'.  
4145 `C-c C-e I'
4146      Like `C-c C-e i', but do this for all files in `org-agenda-files'.
4147      For each of these files, a separate iCalendar file will be
4148      written.  
4150 `C-c C-e c'
4151      Create a single large iCalendar file from all files in
4152      `org-agenda-files' and write it to the file given by
4153      `org-combined-agenda-icalendar-file'.
4155    How this calendar is best read and updated, depends on the
4156 application you are using.  For example, when using iCal under Apple
4157 MacOS X, you could create a new calendar `OrgMode' (the default name
4158 for the calendar created by `C-c C-e c', see the variables
4159 `org-icalendar-combined-name' and
4160 `org-combined-agenda-icalendar-file').  Then set Org-mode to overwrite
4161 the corresponding file `~/Library/Calendars/OrgMode.ics'.  You may even
4162 use AppleScript to make iCal re-read the calendar files each time a new
4163 version of `OrgMode.ics' is produced.  Here is the setup needed for
4164 this:
4166      (setq org-combined-agenda-icalendar-file
4167          "~/Library/Calendars/OrgMode.ics")
4168      (add-hook 'org-after-save-iCalendar-file-hook
4169       (lambda ()
4170        (shell-command
4171         "osascript -e 'tell application \"iCal\" to reload calendars'")))
4173 \x1f
4174 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
4176 10.5 Text interpretation by the exporter
4177 ========================================
4179 The exporter backends interpret additional structure in the Org-mode
4180 file in order to produce better output.
4182 * Menu:
4184 * Comment lines::               Some lines will not be exported
4185 * Enhancing text::              Subscripts, symbols and more
4186 * Export options::              How to influence the export settings
4188 \x1f
4189 File: org,  Node: Comment lines,  Next: Enhancing text,  Prev: Text interpretation,  Up: Text interpretation
4191 10.5.1 Comment lines
4192 --------------------
4194 Lines starting with `#' in column zero are treated as comments and will
4195 never be exported.  Also entire subtrees starting with the word
4196 `COMMENT' will never be exported.  Finally, any text before the first
4197 headline will not be exported either.
4199 `C-c ;'
4200      Toggle the COMMENT keyword at the beginning of an entry.
4202 \x1f
4203 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Comment lines,  Up: Text interpretation
4205 10.5.2 Enhancing text for export
4206 --------------------------------
4208 Some of the export backends of Org-mode allow for sophisticated text
4209 formatting, this is true in particular for the HTML backend.  Org-mode
4210 has a number of typing conventions that allow to produce a richly
4211 formatted output.
4213    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
4214      enumerator will be recognized and transformed if the backend
4215      supports lists.  See *Note Plain lists::.
4217    * You can make words *bold*, /italic/, _underlined_, `=code=', and
4218      `+strikethrough+'.
4220    * Many TeX macros and entire LaTeX fragments are converted into HTML
4221      entities or images (*note Embedded LaTeX::).
4223    * Tables are transformed into native tables under the exporter, if
4224      the export backend supports this. Data fields before the first
4225      horizontal separator line will be formatted as table header fields.
4227    * If a headline starts with the word `QUOTE', the text below the
4228      headline will be typeset as fixed-width, to allow quoting of
4229      computer codes etc.  Lines starting with `:' are also typeset in
4230      fixed-width font.
4231     `C-c :'
4232           Toggle fixed-width for entry (QUOTE) or region, see below.
4234    * A double backslash _at the end of a line_ enforces a line break at
4235      this position.
4237    If these conversions conflict with your habits of typing ASCII text,
4238 they can all be turned off with corresponding variables (see the
4239 customization group `org-export-general', and the following section
4240 which explains how to set export options with special lines in a buffer.
4242 \x1f
4243 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
4245 10.5.3 Export options
4246 ---------------------
4248 The exporter recognizes special lines in the buffer which provide
4249 additional information.  These lines may be put anywhere in the file.
4250 The whole set of lines can be inserted into the buffer with `C-c C-e
4251 t'.  For individual lines, a good way to make sure the keyword is
4252 correct is to type `#+' and then use `M-<TAB>' completion (*note
4253 Completion::).
4255 `C-c C-e t'
4256      Insert template with export options, see example below.
4258      #+TITLE:     the title to be shown (default is the buffer name)
4259      #+AUTHOR:    the author (default taken from `user-full-name')
4260      #+EMAIL:     his/her email address (default from `user-mail-address')
4261      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
4262      #+TEXT:      Some descriptive text to be inserted at the beginning.
4263      #+TEXT:      Several lines may be given.
4264      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t
4266 The OPTIONS line is a compact form to specify export settings.  Here
4267 you can: 
4268      H:      set the number of headline levels for export
4269      num:    turn on/off section-numbers
4270      toc:    turn on/off table of contents
4271      \n:     turn on/off linebreak-preservation
4272      @:      turn on/off quoted HTML tags
4273      ::      turn on/off fixed-width sections
4274      |:      turn on/off tables
4275      ^:      turn on/off TeX-like syntax for sub- and superscripts.
4276      *:      turn on/off emphasized text (bold, italic, underlined)
4277      TeX:    turn on/off simple TeX macros in plain text
4278      LaTeX:  turn on/off LaTeX fragments
4280 \x1f
4281 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
4283 11 Publishing
4284 *************
4286 Org-mode includes(1) a publishing management system that allows you to
4287 configure automatic HTML conversion of _projects_ composed of
4288 interlinked org files.  This system is called _org-publish_.  You can
4289 also configure org-publish to automatically upload your exported HTML
4290 pages and related attachments, such as images and source code files, to
4291 a web server.  Org-publish turns org-mode into a web-site authoring
4292 tool.
4294    Org-publish has been contributed to Org-mode by David O'Toole.
4296 * Menu:
4298 * Configuration::               Defining projects
4299 * Sample configuration::        Example projects
4300 * Triggering publication::      Publication commands
4302    ---------- Footnotes ----------
4304    (1) `org-publish.el' is not yet part of Emacs, so if you are using
4305 `org.el' as it comes with Emacs, you need to download this file
4306 separately.  Also make sure org.el is at least version 4.27.
4308 \x1f
4309 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
4311 11.1 Configuration
4312 ==================
4314 Publishing needs significant configuration to specify files, destination
4315 and many other properties of a project.
4317 * Menu:
4319 * Project alist::               The central configuration variable
4320 * Sources and destinations::    From here to there
4321 * Selecting files::             What files are part of the project?
4322 * Publishing action::           Setting the function doing the publishing
4323 * Publishing options::          Tweaking HTML export
4324 * Publishing links::            Which links keep working after publishing?
4325 * Project page index::          Publishing a list of project files
4327 \x1f
4328 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
4330 11.1.1 The variable `org-publish-project-alist'
4331 -----------------------------------------------
4333 Org-publish is configured almost entirely through setting the value of
4334 one variable, called `org-publish-project-alist'.  Each element of the
4335 list configures one project, and may be in one of the two following
4336 forms:
4338      ("project-name"  :property value :property value ...)
4340      or
4342      ("project-name"  :components ("project-name" "project-name" ...))
4344    In both cases, projects are configured by specifying property values.
4345 A project defines the set of files that will be published, as well as
4346 the publishing configuration to use when publishing those files.  When
4347 a project takes the second form listed above, the individual members of
4348 the "components" property are taken to be components of the project,
4349 which group together files requiring different publishing options. When
4350 you publish such a "meta-project" all the components will also publish.
4352 \x1f
4353 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
4355 11.1.2 Sources and destinations for files
4356 -----------------------------------------
4358 Most properties are optional, but some should always be set. In
4359 particular, org-publish needs to know where to look for source files,
4360 and where to put published files.
4362 `:base-directory'      Directory containing publishing source files
4363 `:publishing-directory'Directory (possibly remote) where output files
4364                        will be published.
4365 `:preparation-function'Function called before starting publishing
4366                        process, for example to run `make' for updating
4367                        files to be published.
4369 \x1f
4370 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
4372 11.1.3 Selecting files
4373 ----------------------
4375 By default, all files with extension `.org' in the base directory are
4376 considered part of the project.  This can be modified by setting the
4377 properties
4378 `:base-extension'  Extension (without the dot!) of source files.  This
4379                    actually is a regular expression.
4380 `:exclude'         Regular expression to match file names that should
4381                    not be published, even though they have been selected
4382                    on the basis of their extension.
4383 `:include'         List of files to be included regardless of
4384                    `:base-extension' and `:exclude'.
4386 \x1f
4387 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
4389 11.1.4 Publishing Action
4390 ------------------------
4392 Publishing means that a file is copied to the destination directory and
4393 possibly transformed in the process.  The default transformation is to
4394 export Org-mode files as HTML files, and this is done by the function
4395 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
4396 export::).  Other files like images only need to be copied to the
4397 publishing destination.  For non-Org-mode files, you need to specify
4398 the publishing function.
4400 `:publishing-function' Function executing the publication of a file.
4401                        This may also be a list of functions, which will
4402                        all be called in turn.
4404    The function must accept two arguments: a property list containing at
4405 least a `:publishing-directory' property, and the name of the file to
4406 be published.  It should take the specified file, make the necessary
4407 transformation (if any) and place the result into the destination
4408 folder.  You can write your own publishing function, but `org-publish'
4409 provides one for attachments (files that only need to be copied):
4410 `org-publish-attachment'.
4412 \x1f
4413 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
4415 11.1.5 Options for the HTML exporter
4416 ------------------------------------
4418 The property list can be used to set many export options for the HTML
4419 exporter.  In most cases, these properties correspond to user variables
4420 in Org-mode.  The table below lists these properties along with the
4421 variable they belong to.  See the documentation string for the
4422 respective variable for details.
4424 `:language'            `org-export-default-language'
4425 `:headline-levels'     `org-export-headline-levels'
4426 `:section-numbers'     `org-export-with-section-numbers'
4427 `:table-of-contents'   `org-export-with-toc'
4428 `:archived-trees'      `org-export-with-archived-trees'
4429 `:emphasize'           `org-export-with-emphasize'
4430 `:sub-superscript'     `org-export-with-sub-superscripts'
4431 `:TeX-macros'          `org-export-with-TeX-macros'
4432 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
4433 `:fixed-width'         `org-export-with-fixed-width'
4434 `:timestamps'          `org-export-with-timestamps'
4435  .                     
4436 `:tags'                `org-export-with-tags'
4437  .                     
4438 `:tables'              `org-export-with-tables'
4439 `:table-auto-headline' `org-export-highlight-first-table-line'
4440 `:style'               `org-export-html-style'
4441 `:convert-org-links'   `org-export-html-link-org-files-as-html'
4442 `:inline-images'       `org-export-html-inline-images'
4443 `:expand-quoted-html'  `org-export-html-expand'
4444 `:timestamp'           `org-export-html-with-timestamp'
4445 `:publishing-directory'`org-export-publishing-directory'
4446 `:preamble'            `org-export-html-preamble'
4447 `:postamble'           `org-export-html-postamble'
4448 `:auto-preamble'       `org-export-html-auto-preamble'
4449 `:auto-postamble'      `org-export-html-auto-postamble'
4450 `:author'              `user-full-name'
4451 `:email'               `user-mail-address'
4453    When a property is given a value in org-publish-project-alist, its
4454 setting overrides the value of the corresponding user variable (if any)
4455 during publishing.  options set within a file (*note Export options::),
4456 however, override everything.
4458 \x1f
4459 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
4461 11.1.6 Links between published files
4462 ------------------------------------
4464 To create a link from one Org-mode file to another, you would use
4465 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
4466 (*note Hyperlinks::).  Upon publishing this link becomes a link to
4467 `foo.html'.  In this way, you can interlink the pages of your "org web"
4468 project and the links will work as expected when you publish them to
4469 HTML.
4471    You may also link to related files, such as images. Provided you are
4472 careful with relative pathnames, and provided you have also configured
4473 org-publish to upload the related files, these links will work too.
4474 *Note Complex example:: for an example of this usage.
4476    Sometime an Org-mode file to be published may contain links that are
4477 only valid in your production environment, but not in the publishing
4478 location.  In this case, use the property
4480 `:link-validation-function'   Function to validate links
4482 to define a function for checking link validity.  This function must
4483 accept two arguments, the file name and a directory relative to which
4484 the file name is interpreted in the production environment.  If this
4485 function returns `nil', then the HTML generator will only insert a
4486 description into the HTML file, but no link.  One option for this
4487 function is `org-publish-validate-link' which checks if the given file
4488 is part of any project in `org-publish-project-alist'.
4490 \x1f
4491 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
4493 11.1.7 Project page index
4494 -------------------------
4496 The following properties may be used to control publishing of an index
4497 of files or summary page for a given project.
4499 `:auto-index'      When non-nil, publish an index during
4500                    org-publish-current-project or org-publish-all.
4501 `:index-filename'  Filename for output of index. Defaults to `index.org'
4502                    (which becomes `index.html').
4503 `:index-title'     Title of index page. Defaults to name of file.
4504 `:index-function'  Plugin function to use for generation of index.
4505                    Defaults to `org-publish-org-index', which generates
4506                    a plain list of links to all files in the project.
4508 \x1f
4509 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
4511 11.2 Sample configuration
4512 =========================
4514 Below we provide two example configurations.  The first one is a simple
4515 project publishing only a set of Org-mode files.  The second example is
4516 more complex, with a multi-component project.
4518 * Menu:
4520 * Simple example::              One-component publishing
4521 * Complex example::             A multi-component publishing example
4523 \x1f
4524 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
4526 11.2.1 Example: simple publishing configuration
4527 -----------------------------------------------
4529 This example publishes a set of Org-mode files to the `public_html'
4530 directory on the local machine.
4532      (setq org-publish-project-alist
4533            '(("org"
4534               :base-directory "~/org/"
4535               :publishing-directory "~/public_html"
4536               :section-numbers nil
4537               :table-of-contents nil
4538               :style "<link rel=stylesheet
4539                      href=\"../other/mystyle.css\"
4540                      type=\"text/css\">")))
4542 \x1f
4543 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
4545 11.2.2 Example: complex publishing configuration
4546 ------------------------------------------------
4548 This more complicated example publishes an entire website, including
4549 org files converted to HTML, image files, emacs lisp source code, and
4550 stylesheets. The publishing-directory is remote and private files are
4551 excluded.
4553    To ensure that links are preserved, care should be taken to replicate
4554 your directory structure on the web server, and to use relative file
4555 paths. For example, if your org files are kept in `~/org' and your
4556 publishable images in `~/images', you'd link to an image with
4557      file:../images/myimage.png
4558    On the web server, the relative path to the image should be the
4559 same. You can accomplish this by setting up an "images" folder in the
4560 right place on the webserver, and publishing images to it.
4562      (setq org-publish-project-alist
4563            '(("orgfiles"
4564                :base-directory "~/org/"
4565                :base-extension "org"
4566                :publishing-directory "/ssh:user@host:~/html/notebook/"
4567                :publishing-function org-publish-org-to-html
4568                :exclude "PrivatePage.org"   ;; regexp
4569                :headline-levels 3
4570                :section-numbers nil
4571                :table-of-contents nil
4572                :style "<link rel=stylesheet
4573                        href=\"../other/mystyle.css\" type=\"text/css\">"
4574                :auto-preamble t
4575                :auto-postamble nil)
4577               ("images"
4578                :base-directory "~/images/"
4579                :base-extension "jpg\\|gif\\|png"
4580                :publishing-directory "/ssh:user@host:~/html/images/"
4581                :publishing-function org-publish-attachment)
4583               ("other"
4584                :base-directory "~/other/"
4585                :base-extension "css\\|el"
4586                :publishing-directory "/ssh:user@host:~/html/other/"
4587                :publishing-function org-publish-attachment)
4588               ("website" :components ("orgfiles" "images" "other"))))
4590 \x1f
4591 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
4593 11.3 Triggering publication
4594 ===========================
4596 Once org-publish is properly configured, you can publish with the
4597 following functions:
4599 `C-c C-e c'
4600      Prompt for a specific project and publish all files that belong to
4601      it.
4603 `C-c C-e p'
4604      Publish the project containing the current file.
4606 `C-c C-e f'
4607      Publish only the current file.
4609 `C-c C-e a'
4610      Publish all projects.
4612    Org uses timestamps to track when a file has changed. The above
4613 functions normally only publish changed files. You can override this and
4614 force publishing of all files by giving a prefix argument.
4616 \x1f
4617 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
4619 12 Miscellaneous
4620 ****************
4622 * Menu:
4624 * Completion::                  M-TAB knows what you need
4625 * Customization::               Adapting Org-mode to your taste
4626 * In-buffer settings::          Overview of the #+KEYWORDS
4627 * The very busy C-c C-c key::   When in doubt, press C-c C-c
4628 * Clean view::                  Getting rid of leading stars in the outline
4629 * TTY keys::                    Using Org-mode on a tty
4630 * Interaction::                 Other Emacs packages
4631 * Bugs::                        Things which do not work perfectly
4633 \x1f
4634 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
4636 12.1 Completion
4637 ===============
4639 Org-mode supports in-buffer completion.  This type of completion does
4640 not make use of the minibuffer.  You simply type a few letters into the
4641 buffer and use the key to complete text right there.
4643 `M-<TAB>'
4644      Complete word at point
4645         * At the beginning of a headline, complete TODO keywords.
4647         * After `\', complete TeX symbols supported by the exporter.
4649         * After `*', complete headlines in the current buffer so that
4650           they can be used in search links like `[[*find this
4651           headline]]'.
4653         * After `:', complete tags.  The list of tags is taken from the
4654           variable `org-tag-alist' (possibly set through the `#+TAGS'
4655           in-buffer option, *note Setting tags::), or it is created
4656           dynamically from all tags used in the current buffer.
4658         * After `[', complete link abbreviations (*note Link
4659           abbreviations::).
4661         * After `#+', complete the special keywords like `TYP_TODO' or
4662           `OPTIONS' which set file-specific options for Org-mode.  When
4663           the option keyword is already complete, pressing `M-<TAB>'
4664           again will insert example settings for this keyword.
4666         * In the line after `#+STARTUP: ', complete startup keywords,
4667           i.e. valid keys for this line.
4669         * Elsewhere, complete dictionary words using ispell.
4671 \x1f
4672 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
4674 12.2 Customization
4675 ==================
4677 There are more than 170 variables that can be used to customize
4678 Org-mode.  For the sake of compactness of the manual, I am not
4679 describing the variables here.  A structured overview of customization
4680 variables is available with `M-x org-customize'.  Or select `Browse Org
4681 Group' from the `Org->Customization' menu.  Many settings can also be
4682 activated on a per-file basis, by putting special lines into the buffer
4683 (*note In-buffer settings::).
4685 \x1f
4686 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
4688 12.3 Summary of in-buffer settings
4689 ==================================
4691 Org-mode uses special lines in the buffer to define settings on a
4692 per-file basis.  These lines start with a `#+' followed by a keyword, a
4693 colon, and then individual words defining a setting.  Several setting
4694 words can be in the same line, but you can also have multiple lines for
4695 the keyword.  While these settings are described throughout the manual,
4696 here is a summary.  After changing any of those lines in the buffer,
4697 press `C-c C-c' with the cursor still in the line to activate the
4698 changes immediately.  Otherwise they become effective only when the
4699 file is visited again in a new Emacs session.
4701 `#+STARTUP:'
4702      This line sets options to be used at startup of org-mode, when an
4703      Org-mode file is being visited.  The first set of options deals
4704      with the initial visibility of the outline tree.  The
4705      corresponding variable for global default settings is
4706      `org-startup-folded', with a default value `t', which means
4707      `overview'.
4708           overview   top-level headlines only
4709           content    all headlines
4710           showall    no folding at all, show everything
4711      Then there are options for aligning tables upon visiting a file.
4712      This is useful in files containing narrowed table columns.  The
4713      corresponding variable is `org-startup-align-all-tables', with a
4714      default value `nil'.
4715           align      align all tables
4716           noalign    don't align tables on startup
4717      Logging when a TODO item is marked DONE (variable `org-log-done')
4718      can be configured using these options.
4719           logging    record a timestamp when an item is marked DONE
4720           nologging  don't record when items are marked DONE
4721      Here are the options for hiding leading stars in outline headings.
4722      The corresponding variables are `org-hide-leading-stars' and
4723      `org-odd-levels-only', both with a default setting `nil' (meaning
4724      `showstars' and `oddeven').
4725           hidestars  make all but one of the stars starting a headline invisible.
4726           showstars  show all stars starting a headline
4727           odd        allow only odd outline levels (1,3,...)
4728           oddeven    allow all outline levels
4729      To turn on custom format overlays over time stamps (variables
4730      `org-put-time-stamp-overlays' and
4731      `org-time-stamp-overlay-formats'), use
4732           customtime overlay custom time format
4734 `#+SEQ_TODO:   #+TYP_TODO:'
4735      These lines set the TODO keywords and their interpretation in the
4736      current file.  The corresponding variables are `org-todo-keywords'
4737      and `org-todo-interpretation'.
4739 `#+TAGS:  TAG1(c1) TAG2(c2)'
4740      These lines (several such lines are allowed) specify the legal
4741      tags in this file, and (potentially) the corresponding _fast tag
4742      selection_ keys.  The corresponding variable is `org-tag-alist'.
4744 `#+LINK:  linkword replace'
4745      These lines (several are allowed) specify link abbreviations.
4746      *Note Link abbreviations::.  The corresponding variable is
4747      `org-link-abbrev-alist'.
4749 `#+CATEGORY:'
4750      This line sets the category for the agenda file.  The category
4751      applies for all subsequent lines until the next `#+CATEGORY' line,
4752      or the end of the file.
4754 `#+TBLFM:'
4755      This line contains the formulas for the table directly above the
4756      line.
4758 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
4759      These lines provide settings for exporting files.  For more
4760      details see *Note Export options::.
4762 \x1f
4763 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
4765 12.4 The very busy C-c C-c key
4766 ==============================
4768 The key `C-c C-c' has many purposes in org-mode, which are all
4769 mentioned scattered throughout this manual.  One specific function of
4770 this key is to add _tags_ to a headline (*note Tags::).  In many other
4771 circumstances it means something like _Hey Org-mode, look here and
4772 update according to what you see here_.  Here is a summary of what this
4773 means in different contexts.
4775    - If there are highlights in the buffer from the creation of a sparse
4776      tree, or from clock display, remove these highlights.
4778    - If the cursor is in one of the special `#+KEYWORD' lines, this
4779      triggers scanning the buffer for these lines and updating the
4780      information.
4782    - If the cursor is inside a table, realign the table.  This command
4783      works even if the automatic table editor has been turned off.
4785    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
4786      entire table.
4788    - If the cursor is inside a table created by the `table.el' package,
4789      activate that table.
4791    - If the current buffer is a remember buffer, close the note and
4792      file it.  With a prefix argument, file it, without further
4793      interaction, to the default location.
4795    - If the cursor is on a `<<<target>>>', update radio targets and
4796      corresponding links in this buffer.
4798    - If the cursor is in a plain list item with a checkbox, toggle the
4799      status of the checkbox.
4801    - If the cursor is on a numbered item in a plain list, renumber the
4802      ordered list.
4804 \x1f
4805 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
4807 12.5 A cleaner outline view
4808 ===========================
4810 Some people find it noisy and distracting that the Org-mode headlines
4811 are starting with a potentially large number of stars.  For example the
4812 tree from *Note Headlines:::
4814      * Top level headline
4815      ** Second level
4816      *** 3rd level
4817          some text
4818      *** 3rd level
4819          more text
4820      * Another top level headline
4822 Unfortunately this is deeply ingrained into the code of Org-mode and
4823 cannot be easily changed.  You can, however, modify the display in such
4824 a way that all leading stars become invisible and the outline more easy
4825 to read.  To do this, customize the variable `org-hide-leading-stars'
4826 like this:
4828      (setq org-hide-leading-stars t)
4830 or change this on a per-file basis with one of the lines (anywhere in
4831 the buffer)
4833      #+STARTUP: showstars
4834      #+STARTUP: hidestars
4836 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
4837 modifications.
4839    With stars hidden, the tree becomes:
4841      * Top level headline
4842       * Second level
4843        * 3rd level
4844          some text
4845        * 3rd level
4846          more text
4847      * Another top level headline
4849 Note that the leading stars are not truly replaced by whitespace, they
4850 are only fontified with the face `org-hide' that uses the background
4851 color as font color.  If you are not using either white or black
4852 background, you may have to customize this face to get the wanted
4853 effect.  Another possibility is to set this font such that the extra
4854 stars are almost invisible, for example using the color `grey90' on a
4855 white background.
4857    Things become cleaner still if you skip all the even levels and use
4858 only odd levels 1, 3, 5..., effectively adding two stars to go from one
4859 outline level to the next:
4861      * Top level headline
4862        * Second level
4863          * 3rd level
4864            some text
4865          * 3rd level
4866            more text
4867      * Another top level headline
4869 In order to make the structure editing and export commands handle this
4870 convention correctly, use
4872      (setq org-odd-levels-only t)
4874 or set this on a per-file basis with one of the following lines (don't
4875 forget to press `C-c C-c' with the cursor in the startup line to
4876 activate changes immediately).
4878      #+STARTUP: odd
4879      #+STARTUP: oddeven
4881    You can convert an Org-mode file from single-star-per-level to the
4882 double-star-per-level convention with `M-x org-convert-to-odd-levels
4883 RET' in that file.  The reverse operation is `M-x
4884 org-convert-to-oddeven-levels'.
4886 \x1f
4887 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
4889 12.6 Using org-mode on a tty
4890 ============================
4892 Org-mode uses a number of keys that are not accessible on a tty.  This
4893 applies to most special keys like cursor keys, <TAB> and <RET>, when
4894 these are combined with modifier keys like <Meta> and/or <Shift>.
4895 Org-mode uses these bindings because it needs to provide keys for a
4896 large number of commands, and because these keys appeared particularly
4897 easy to remember.  In order to still be able to access the core
4898 functionality of Org-mode on a tty, alternative bindings are provided.
4899 Here is a complete list of these bindings, which are obviously more
4900 cumbersome to use.  Note that sometimes a work-around can be better.
4901 For example changing a time stamp is really only fun with `S-<cursor>'
4902 keys.  On a tty you would rather use `C-c .'  to re-insert the
4903 timestamp.
4905 Default     Alternative 1  Alternative 2
4906 `S-<TAB>'   `C-u <TAB>'    
4907 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
4908 `M-S-<left>'`C-c C-x L'    
4909 `M-<right>' `C-c C-x r'    `<Esc>
4910                            <right>'
4911 `M-S-<right>'`C-c C-x R'    
4912 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
4913 `M-S-<up>'  `C-c C-x U'    
4914 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
4915 `M-S-<down>'`C-c C-x D'    
4916 `S-<RET>'   `C-c C-x c'    
4917 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
4918 `M-S-<RET>' `C-c C-x M'    
4919 `S-<left>'  `C-c C-x       
4920             <left>'        
4921 `S-<right>' `C-c C-x       
4922             <right>'       
4923 `S-<up>'    `C-c C-x       
4924             <up>'          
4925 `S-<down>'  `C-c C-x       
4926             <down>'        
4928 \x1f
4929 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
4931 12.7 Interaction with other packages
4932 ====================================
4934 Org-mode lives in the world of GNU Emacs and interacts in various ways
4935 with other code out there.
4937 * Menu:
4939 * Cooperation::                 Packages Org-mode cooperates with
4940 * Conflicts::                   Packages that lead to conflicts
4942 \x1f
4943 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
4945 12.7.1 Packages that Org-mode cooperates with
4946 ---------------------------------------------
4948 `calc.el' by Dave Gillespie
4949      Org-mode uses the calc package for implementing spreadsheet
4950      functionality in its tables (*note Table calculations::).
4951      Org-modes checks for the availability of calc by looking for the
4952      function `calc-eval' which should be autoloaded in your setup if
4953      calc has been installed properly.  As of Emacs 22, calc is part of
4954      the Emacs distribution.  Another possibility for interaction
4955      between the two packages is using calc for embedded calculations.
4956      *Note Embedded Mode: (calc)Embedded Mode.  
4958 `constants.el' by Carsten Dominik
4959      In a table formula (*note Table calculations::), it is possible to
4960      use names for natural constants or units.  Instead of defining
4961      your own constants in the variable `org-table-formula-constants',
4962      install the `constants' package which defines a large number of
4963      constants and units, and lets you use unit prefixes like `M' for
4964      `Mega' etc.  You will need version 2.0 of this package, available
4965      at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
4966      the function `constants-get', which has to be autoloaded in your
4967      setup.  See the installation instructions in the file
4968      `constants.el'.
4970 `cdlatex.el' by Carsten Dominik
4971      Org-mode can make use of the cdlatex package to efficiently enter
4972      LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
4974 `remember.el' by John Wiegley
4975      Org mode cooperates with remember, see *Note Remember::.
4976      `Remember.el' is not part of Emacs, find it on the web.  
4978 `table.el' by Takaaki Ota
4979      Org mode cooperates with table.el, see *Note table.el::.
4980      `table.el' is part of Emacs 22.
4982 \x1f
4983 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
4985 12.7.2 Packages that lead to conflicts with Org-mode
4986 ----------------------------------------------------
4988 `allout.el' by Ken Manheimer
4989      Startup of Org-mode may fail with the error message
4990      `(wrong-type-argument keymapp nil)' when there is an outdated
4991      version `allout.el' on the load path, for example the version
4992      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
4993      will disappear.  If for some reason you cannot do this, make sure
4994      that org.el is loaded _before_ `allout.el', for example by putting
4995      `(require 'org)' early enough into your `.emacs' file.
4997 `CUA.el' by Kim. F. Storm
4998      Keybindings in Org-mode conflict with the `S-<cursor>' keys used
4999      by CUA-mode (as well as pc-select-mode and s-region-mode) to
5000      select and extend the region.  If you want to use one of these
5001      packages along with Org-mode, configure the variable
5002      `org-CUA-compatible'.  When set, Org-mode will move the following
5003      keybindings in org-mode files, and in the agenda buffer (but not
5004      during date selection).
5006           S-UP    -> M-p             S-DOWN  -> M-n
5007           S-LEFT  -> M--             S-RIGHT -> M-+
5008           S-RET   -> C-S-RET
5010      Yes, these are unfortunately more difficult to remember.  If you
5011      want to have other replacement keys, look at the variable
5012      `org-disputed-keys'.
5014 `windmove.el' by Hovav Shacham
5015      Also this package uses the `S-<cursor>' keys, so everything written
5016      in the paragraph above about CUA mode also applies here.
5018 \x1f
5019 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
5021 12.8 Bugs
5022 =========
5024 Here is a list of things that should work differently, but which I have
5025 found too hard to fix.
5027    * If a table field starts with a link, and if the corresponding table
5028      column is narrowed (*note Narrow columns::) to a width too small to
5029      display the link, the field would look entirely empty even though
5030      it is not.  To prevent this, Org-mode throws an error.  The
5031      work-around is to make the column wide enough to fit the link, or
5032      to add some text (at least 2 characters) before the link in the
5033      same field.
5035    * Narrowing table columns does not work on XEmacs, because the
5036      `format' function does not transport text properties.
5038    * Text in an entry protected with the `QUOTE' keyword should not
5039      autowrap.
5041    * When the application called by `C-c C-o' to open a file link fails
5042      (for example because the application does not exist or refuses to
5043      open the file), it does so silently.  No error message is
5044      displayed.
5046    * Recalculating a table line applies the formulas from left to right.
5047      If a formula uses _calculated_ fields further down the row,
5048      multiple recalculation may be needed to get all fields consistent.
5050    * A single letter cannot be made bold, for example `*a*'.
5052    * The exporters work well, but could be made more efficient.
5054 \x1f
5055 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
5057 Appendix A Extensions, Hooks and Hacking
5058 ****************************************
5060 This appendix lists extensions for Org-mode written by other authors.
5061 It also covers some aspects where users can extend the functionality of
5062 Org-mode.
5064 * Menu:
5066 * Extensions::                  Existing 3rd-part extensions
5067 * Dynamic blocks::              Automatically filled blocks
5068 * Special agenda views::
5070 \x1f
5071 File: org,  Node: Extensions,  Next: Dynamic blocks,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
5073 A.1 Third-party extensions for Org-mode
5074 =======================================
5076 The following extensions for Org-mode have been written by other people:
5078 `org-publish.el' by David O'Toole
5079      This package provides facilities for publishing related sets of
5080      Org-mode files together with linked files like images as a
5081      webpages.  It is highly configurable and can be used for other
5082      publishing purposes as well.  As of Org-mode version 4.30,
5083      `org-publish.el' is part of the Org-mode distribution.  It is not
5084      yet part of Emacs, however, a delay caused by the preparations for
5085      the 22.1 release.  In the mean time, `org-publish.el' can be
5086      downloaded from David's site:
5087      `http://dto.freeshell.org/e/org-publish.el'.  
5089 `org-mouse.el' by Piotr Zielinski
5090      This package implements extended mouse functionality for Org-mode.
5091      It allows you to cycle visibility and to edit the document
5092      structure with the mouse.  Best of all, it provides a
5093      context-sensitive menu on <mouse-3> that changes depending on the
5094      context of a mouse-click.  As of Org-mode version 4.53,
5095      `org-mouse.el' is part of the Org-mode distribution.  It is not
5096      yet part of Emacs, however, a delay caused by the preparations for
5097      the 22.1 release.  In the mean time, `org-mouse.el' can be
5098      downloaded from Piotr's site:
5099      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
5101 `org-blog.el' by David O'Toole
5102      A blogging plug-in for `org-publish.el'.
5103      `http://dto.freeshell.org/notebook/OrgMode.html'.  
5105 `blorg.el' by  Bastien Guerry
5106      Publish Org-mode files as blogs.
5107      `http://www.cognition.ens.fr/~guerry/blorg.html'.
5109 \x1f
5110 File: org,  Node: Dynamic blocks,  Next: Special agenda views,  Prev: Extensions,  Up: Extensions and Hacking
5112 A.2 Dynamic blocks
5113 ==================
5115 Org-mode documents can contain _dynamic blocks_.  These are specially
5116 marked regions that are updated by some user-written function.  A good
5117 example for such a block is the clock table inserted by the command
5118 `C-c C-x C-r' (*note Clocking work time::).
5120    Dynamic block are enclosed by a BEGIN-END structure that assigns a
5121 name to the block and can also specify parameters for the function
5122 producing the content of the block.
5124      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
5126      #+END:
5128    Dynamic blocks are updated with the following commands
5130 `C-c C-x C-u'
5131      Update dynamic block at point.  
5133 `C-u C-c C-x C-u'
5134      Update all dynamic blocks in the current file.
5136    Updating a dynamic block means to remove all the text between BEGIN
5137 and END, parse the BEGIN line for parameters and then call the specific
5138 writer function for this block to insert the new content.  For a block
5139 with name `myblock', the writer function is `org-dblock-write:myblock'
5140 with as only parameter a property list with the parameters given in the
5141 begin line.  Here is a trivial example of a block that keeps track of
5142 when the block update function was last run:
5144      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
5146      #+END:
5148 The corresponding block writer function could look like this:
5150      (defun org-dblock-write:block-update-time (params)
5151         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
5152           (insert "Last block update at: "
5153                   (format-time-string fmt (current-time)))))
5155    If you want to make sure that all dynamic blocks are always
5156 up-to-date, you could add the function `org-update-all-dblocks' to a
5157 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
5158 written in a way that is does nothing in buffers that are not in
5159 Org-mode.
5161 \x1f
5162 File: org,  Node: Special agenda views,  Prev: Dynamic blocks,  Up: Extensions and Hacking
5164 A.3 Special Agenda Views
5165 ========================
5167 Org-mode provides a special hook that can be used to narrow down the
5168 selection made by any of the agenda views.  You may specify a function
5169 that is used at each match to verify if the match should indeed be part
5170 of the agenda view, and if not, how much should be skipped.
5172    Let's say you want to produce a list of projects that contain a
5173 WAITING tag anywhere in the project tree.  Let's further assume that
5174 you have marked all tree headings that define a project with the todo
5175 keyword PROJECT.  In this case you would run a todo search for the
5176 keyword PROJECT, but skip the match unless there is a WAITING tag
5177 anywhere in the subtree belonging to the project line..
5179    To achieve this, you must write a function that searches the subtree
5180 for the tag.  If the tag is found, the function must return `nil' to
5181 indicate that this match should not be skipped.  If there is no such
5182 tag, return the location of the end of the subtree, to indicate that
5183 search should continue from there.
5185      (defun my-skip-unless-waiting ()
5186        "Skip trees that are not waiting"
5187        (let ((subtree-end (save-excursion (org-end-of-subtree t))))
5188          (if (re-search-forward ":WAITING:" subtree-end t)
5189              nil          ; tag found, do not skip
5190            subtree-end))) ; tag not found, continue after end of subtree
5192    Furthermore you must write a command that uses `let' to temporarily
5193 puts this function into the variable `org-agenda-skip-function', sets
5194 the header string for the agenda buffer, and calls the todo-list
5195 generator while asking for the specific TODO keyword PROJECT.  The
5196 function must also accept one argument MATCH, but it can choose to
5197 ignore it(1) (as we do in the example below).  Here is the example:
5199      (defun my-org-waiting-projects (&optional match)
5200        "Produce a list of projects that contain a WAITING tag.
5201      MATCH is being ignored."
5202        (interactive)
5203        (let ((org-agenda-skip-function 'my-skip-unless-waiting)
5204              (org-agenda-overriding-header "Projects waiting for something: "))
5205          ;; make the list
5206          (org-todo-list "PROJECT")))
5208    ---------- Footnotes ----------
5210    (1) MATCH must be present in case you want to define a custom
5211 command for producing this special list.  Custom commands always supply
5212 the MATCH argument, but it can be empty if you do not specify it while
5213 defining the command(*note Custom agenda views::).
5215 \x1f
5216 File: org,  Node: History and Acknowledgments,  Next: Index,  Prev: Extensions and Hacking,  Up: Top
5218 Appendix B History and Acknowledgments
5219 **************************************
5221 Org-mode was borne in 2003, out of frustration over the user interface
5222 of the Emacs outline-mode.  All I wanted was to make working with an
5223 outline tree possible without having to remember more than 10 commands
5224 just for hiding and unhiding parts of the outline tree, and to allow to
5225 restructure a tree easily.  Visibility cycling and structure editing
5226 were originally implemented in the package `outline-magic.el', but
5227 quickly moved to the more general `org.el'.  TODO entries, basic time
5228 stamps, and table support were added next, and highlight the two main
5229 goals that Org-mode still has today: To create a new, outline-based,
5230 plain text mode with innovative and intuitive editing features, and to
5231 incorporate project planning functionality directly into a notes file.
5233    Since the first release, hundreds of emails to me or on
5234 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
5235 feedback, new ideas, and sometimes even patches and add-on code.  Many
5236 thanks to everyone who has helped to improve this package.  I am trying
5237 to keep here a list of the people who had significant influence in
5238 shaping one or more aspects of Org-mode.  The list may not be complete,
5239 if I have forgotten someone, please accept my apologies and let me know.
5241    * Thomas Baumann contributed the code for links to the MH-E email
5242      system.
5244    * Alex Bochannek provided a patch for rounding time stamps.
5246    * Charles Cave's suggestion sparked the implementation of templates
5247      for Remember.
5249    * Pavel Chalmoviansky influenced the agenda treatment of items with
5250      specified time.
5252    * Gregory Chernov patched support for lisp forms into table
5253      calculations and improved XEmacs compatibility, in particular by
5254      porting `nouline.el' to XEmacs.
5256    * Sacha Chua suggested to copy some linking code from Planner.
5258    * Eddward DeVilla proposed and tested checkbox statistics.
5260    * Kees Dullemond inspired the use of narrowed tabled columns.
5262    * Christian Egli converted the documentation into TeXInfo format,
5263      patched CSS formatting into the HTML exporter, and inspired the
5264      agenda.
5266    * Nic Ferrier contributed mailcap and XOXO support.
5268    * Niels Giessen had the idea to automatically archive DONE trees.
5270    * Bastien Guerry provided extensive feedback.
5272    * Kai Grossjohann pointed out key-binding conflicts with other
5273      packages.
5275    * Leon Liu asked for embedded LaTeX and tested it.
5277    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
5278      happy.
5280    * Todd Neal provided patches for links to Info files and elisp forms.
5282    * Tim O'Callaghan suggested in-file links, search options for general
5283      file links, and TAGS.
5285    * Oliver Oppitz suggested multi-state TODO items.
5287    * Scott Otterson sparked the introduction of descriptive text for
5288      links, among other things.
5290    * Pete Phillips helped during the development of the TAGS feature,
5291      and provided frequent feedback.
5293    * T.V. Raman reported bugs and suggested improvements.
5295    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
5296      control.
5298    * Kevin Rogers contributed code to access VM files on remote hosts.
5300    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
5301      conflict with `allout.el'.
5303    * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
5305    * Philip Rooke created the Org-mode reference card and provided lots
5306      of feedback.
5308    * Christian Schlauer proposed angular brackets around links, among
5309      other things.
5311    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
5312      `organizer-mode.el'.
5314    * Daniel Sinder came up with the idea of internal archiving by
5315      locking subtrees.
5317    * Dale Smith proposed link abbreviations.
5319    * David O'Toole wrote `org-publish.el' and drafted the manual
5320      chapter about publishing.
5322    * Ju"rgen Vollmer contributed code generating the table of contents
5323      in HTML output.
5325    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
5327    * David Wainberg suggested archiving, and improvements to the linking
5328      system.
5330    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
5331      development of Org-mode was fully independent, and both systems are
5332      really different beasts in their basic ideas and implementation
5333      details.  I later looked at John's code, however, and learned from
5334      his implementation of (i) links where the link itself is hidden
5335      and only a description is shown, and (ii) popping up a calendar to
5336      select a date.
5338    * Carsten Wimmer suggested some changes and helped fix a bug in
5339      linking to GNUS.
5341    * Roland Winkler requested additional keybindings to make Org-mode
5342      work on a tty.
5344    * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
5345      contributed various ideas and code snippets.
5347 \x1f
5348 File: org,  Node: Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
5350 Index
5351 *****
5353 \0\b[index\0\b]
5354 * Menu:
5356 * abbreviation, links:                   Link abbreviations.  (line   6)
5357 * acknowledgments:                       History and Acknowledgments.
5358                                                               (line   6)
5359 * action, for publishing:                Publishing action.   (line   6)
5360 * activation:                            Activation.          (line   6)
5361 * active region <1>:                     HTML export.         (line  10)
5362 * active region <2>:                     ASCII export.        (line   9)
5363 * active region <3>:                     Built-in table editor.
5364                                                               (line 171)
5365 * active region:                         Structure editing.   (line  64)
5366 * agenda:                                Weekly/Daily agenda. (line   6)
5367 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
5368 * agenda files:                          Agenda files.        (line   6)
5369 * agenda files, removing buffers:        Agenda commands.     (line 231)
5370 * agenda views:                          Agenda views.        (line   6)
5371 * agenda views, custom:                  Custom agenda views. (line   6)
5372 * agenda, batch production:              Batch processing.    (line   6)
5373 * agenda, with block views:              Block agenda.        (line   6)
5374 * allout.el:                             Conflicts.           (line   6)
5375 * angular brackets, around links:        External links.      (line  38)
5376 * applescript, for calendar update:      iCalendar export.    (line  38)
5377 * archive locations:                     Moving subtrees.     (line  21)
5378 * archiving:                             Archiving.           (line   6)
5379 * ASCII export:                          ASCII export.        (line   6)
5380 * author:                                Feedback.            (line   6)
5381 * autoload:                              Activation.          (line   6)
5382 * backtrace of an error:                 Feedback.            (line  27)
5383 * BBDB links:                            External links.      (line   6)
5384 * block agenda:                          Block agenda.        (line   6)
5385 * blorg.el:                              Extensions.          (line  33)
5386 * bold text:                             Enhancing text.      (line  15)
5387 * Boolean logic, for tag searches:       Tag searches.        (line  23)
5388 * bug reports:                           Feedback.            (line   6)
5389 * bugs:                                  Bugs.                (line   6)
5390 * C-c C-c, overview:                     The very busy C-c C-c key.
5391                                                               (line   6)
5392 * calc package:                          Table calculations.  (line   6)
5393 * calc.el:                               Cooperation.         (line   6)
5394 * calculations, in tables <1>:           Table calculations.  (line   6)
5395 * calculations, in tables:               Built-in table editor.
5396                                                               (line 141)
5397 * calendar commands, from agenda:        Agenda commands.     (line 192)
5398 * calendar integration:                  Weekly/Daily agenda. (line  24)
5399 * calendar, for selecting date:          The date/time prompt.
5400                                                               (line  26)
5401 * CamelCase link completion:             Completion.          (line   6)
5402 * CamelCase links:                       Internal links.      (line   6)
5403 * CamelCase links, completion of:        CamelCase links.     (line   6)
5404 * category:                              Categories.          (line   6)
5405 * CDLaTeX:                               CDLaTeX mode.        (line   6)
5406 * cdlatex.el:                            Cooperation.         (line  29)
5407 * checkbox statistics:                   Checkboxes.          (line  23)
5408 * checkboxes:                            Checkboxes.          (line   6)
5409 * children, subtree visibility state:    Visibility cycling.  (line  10)
5410 * clean outline view:                    Clean view.          (line   6)
5411 * CLOCK keyword:                         Time stamps.         (line  71)
5412 * CLOSED keyword:                        Time stamps.         (line  65)
5413 * column formula:                        Column formulas.     (line   6)
5414 * commands, in agenda buffer:            Agenda commands.     (line   6)
5415 * comment lines:                         Comment lines.       (line   6)
5416 * completion, of CamelCase links <1>:    Completion.          (line   6)
5417 * completion, of CamelCase links:        CamelCase links.     (line   6)
5418 * completion, of dictionary words:       Completion.          (line   6)
5419 * completion, of file names:             Handling links.      (line  43)
5420 * completion, of links:                  Handling links.      (line  27)
5421 * completion, of option keywords <1>:    Completion.          (line   6)
5422 * completion, of option keywords:        Export options.      (line   6)
5423 * Completion, of option keywords:        Per file keywords.   (line  17)
5424 * completion, of tags <1>:               Completion.          (line   6)
5425 * completion, of tags:                   Setting tags.        (line  11)
5426 * completion, of TeX symbols:            Completion.          (line   6)
5427 * completion, of TODO keywords <1>:      Completion.          (line   6)
5428 * completion, of TODO keywords:          Workflow states.     (line  12)
5429 * constants, in calculations:            Formula syntax.      (line  26)
5430 * constants.el:                          Cooperation.         (line  14)
5431 * contents, global visibility state:     Visibility cycling.  (line  22)
5432 * copying, of subtrees:                  Structure editing.   (line   6)
5433 * creating timestamps:                   Creating timestamps. (line   6)
5434 * CUA.el:                                Conflicts.           (line  15)
5435 * custom agenda views:                   Custom agenda views. (line   6)
5436 * custom date/time format:               Custom time format.  (line   6)
5437 * custom search strings:                 Custom searches.     (line   6)
5438 * customization:                         Customization.       (line   6)
5439 * cutting, of subtrees:                  Structure editing.   (line   6)
5440 * cycling, of TODO states:               TODO basics.         (line  13)
5441 * cycling, visibility:                   Visibility cycling.  (line   6)
5442 * daily agenda:                          Weekly/Daily agenda. (line   6)
5443 * date format, custom:                   Custom time format.  (line   6)
5444 * date stamps <1>:                       Time stamps.         (line   6)
5445 * date stamps:                           Timestamps.          (line   6)
5446 * date, reading in minibuffer:           The date/time prompt.
5447                                                               (line   6)
5448 * DEADLINE keyword:                      Time stamps.         (line  53)
5449 * deadlines:                             Time stamps.         (line   6)
5450 * demotion, of subtrees:                 Structure editing.   (line   6)
5451 * diary entries, creating from agenda:   Agenda commands.     (line 199)
5452 * diary integration:                     Weekly/Daily agenda. (line  24)
5453 * dictionary word completion:            Completion.          (line   6)
5454 * directories, for publishing:           Sources and destinations.
5455                                                               (line   6)
5456 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
5457 * display changing, in agenda:           Agenda commands.     (line  66)
5458 * document structure:                    Document structure.  (line   6)
5459 * DONE, final TODO keyword:              Per file keywords.   (line  20)
5460 * editing tables:                        Tables.              (line   6)
5461 * editing, of table formulas:            Editing/debugging formulas.
5462                                                               (line   6)
5463 * elisp links:                           External links.      (line   6)
5464 * emphasized text:                       Export options.      (line  25)
5465 * enhancing text:                        Enhancing text.      (line   6)
5466 * evaluate time range:                   Creating timestamps. (line  66)
5467 * exporting:                             Exporting.           (line   6)
5468 * exporting, not:                        Comment lines.       (line   6)
5469 * extended TODO keywords:                TODO extensions.     (line   6)
5470 * external archiving:                    Moving subtrees.     (line   6)
5471 * external links:                        External links.      (line   6)
5472 * external links, in HTML export:        HTML export.         (line  35)
5473 * FAQ:                                   Summary.             (line  51)
5474 * feedback:                              Feedback.            (line   6)
5475 * file links:                            External links.      (line   6)
5476 * file links, searching:                 Search options.      (line   6)
5477 * file name completion:                  Handling links.      (line  43)
5478 * files for agenda:                      Agenda files.        (line   6)
5479 * files, adding to agenda list:          Agenda files.        (line  12)
5480 * files, selecting for publishing:       Selecting files.     (line   6)
5481 * fixed width:                           Enhancing text.      (line  25)
5482 * fixed-width sections:                  Export options.      (line  25)
5483 * folded, subtree visibility state:      Visibility cycling.  (line  10)
5484 * folding, sparse trees:                 Sparse trees.        (line   6)
5485 * following links:                       Handling links.      (line  58)
5486 * format specifier:                      Formula syntax.      (line  34)
5487 * format, of links:                      Link format.         (line   6)
5488 * formula editing:                       Editing/debugging formulas.
5489                                                               (line   6)
5490 * formula syntax:                        Formula syntax.      (line   6)
5491 * formula, for named table field:        Named-field formulas.
5492                                                               (line   6)
5493 * formula, for table column:             Column formulas.     (line   6)
5494 * formula, in tables:                    Built-in table editor.
5495                                                               (line 141)
5496 * global cycling:                        Visibility cycling.  (line  22)
5497 * global keybindings:                    Activation.          (line   6)
5498 * global TODO list:                      Global TODO list.    (line   6)
5499 * global visibility states:              Visibility cycling.  (line  22)
5500 * GNUS links:                            External links.      (line   6)
5501 * hand-formatted lists:                  Enhancing text.      (line  11)
5502 * headline levels:                       Export options.      (line  25)
5503 * headline levels, for exporting <1>:    HTML export.         (line  21)
5504 * headline levels, for exporting:        ASCII export.        (line  18)
5505 * headline navigation:                   Motion.              (line   6)
5506 * headline tagging:                      Tags.                (line   6)
5507 * headline, promotion and demotion:      Structure editing.   (line   6)
5508 * headlines:                             Headlines.           (line   6)
5509 * hide text:                             Visibility cycling.  (line   6)
5510 * hiding leading stars:                  Clean view.          (line   6)
5511 * history:                               History and Acknowledgments.
5512                                                               (line   6)
5513 * HTML export:                           HTML export.         (line   6)
5514 * hyperlinks:                            Hyperlinks.          (line   6)
5515 * iCalendar export:                      iCalendar export.    (line   6)
5516 * in-buffer settings:                    In-buffer settings.  (line   6)
5517 * inactive timestamp:                    Time stamps.         (line  24)
5518 * index, of published pages:             Project page index.  (line   6)
5519 * Info links:                            External links.      (line   6)
5520 * inheritance, of tags:                  Tag inheritance.     (line   6)
5521 * inserting links:                       Handling links.      (line  27)
5522 * installation:                          Installation.        (line   6)
5523 * internal archiving:                    ARCHIVE tag.         (line   6)
5524 * internal links:                        Internal links.      (line   6)
5525 * internal links, in HTML export:        HTML export.         (line  35)
5526 * introduction:                          Introduction.        (line   6)
5527 * italic text:                           Enhancing text.      (line  15)
5528 * jumping, to headlines:                 Motion.              (line   6)
5529 * keybindings, global:                   Activation.          (line   6)
5530 * keyword options:                       Per file keywords.   (line   6)
5531 * LaTeX fragments <1>:                   Export options.      (line  25)
5532 * LaTeX fragments:                       LaTeX fragments.     (line   6)
5533 * LaTeX fragments, export:               Enhancing text.      (line  18)
5534 * LaTeX fragments, preview:              Processing LaTeX fragments.
5535                                                               (line   6)
5536 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
5537 * level, require for tags match:         Tag searches.        (line  68)
5538 * linebreak preservation:                Export options.      (line  25)
5539 * linebreak, forced:                     Enhancing text.      (line  32)
5540 * link abbreviations:                    Link abbreviations.  (line   6)
5541 * link completion:                       Handling links.      (line  27)
5542 * link format:                           Link format.         (line   6)
5543 * links, external:                       External links.      (line   6)
5544 * links, handling:                       Handling links.      (line   6)
5545 * links, in HTML export:                 HTML export.         (line  35)
5546 * links, internal:                       Internal links.      (line   6)
5547 * links, publishing:                     Publishing links.    (line   6)
5548 * links, radio targets:                  Radio targets.       (line   6)
5549 * links, returning to:                   Handling links.      (line  85)
5550 * Lisp forms, as table formulas:         Lisp formulas.       (line   6)
5551 * lists, hand-formatted:                 Enhancing text.      (line  11)
5552 * lists, ordered:                        Plain lists.         (line   6)
5553 * lists, plain:                          Plain lists.         (line   6)
5554 * logging, of progress:                  Progress logging.    (line   6)
5555 * maintainer:                            Feedback.            (line   6)
5556 * mark ring:                             Handling links.      (line  81)
5557 * marking characters, tables:            Advanced features.   (line  34)
5558 * matching, of tags:                     Matching headline tags.
5559                                                               (line   6)
5560 * matching, tags:                        Tags.                (line   6)
5561 * math symbols:                          Math symbols.        (line   6)
5562 * MH-E links:                            External links.      (line   6)
5563 * minor mode for tables:                 orgtbl-mode.         (line   6)
5564 * mode, for calc:                        Formula syntax.      (line  34)
5565 * motion commands in agenda:             Agenda commands.     (line  19)
5566 * motion, between headlines:             Motion.              (line   6)
5567 * name, of column or field:              Formula syntax.      (line  26)
5568 * named field formula:                   Named-field formulas.
5569                                                               (line   6)
5570 * names as TODO keywords:                TODO types.          (line   6)
5571 * narrow columns in tables:              Narrow columns.      (line   6)
5572 * occur, command:                        Sparse trees.        (line   6)
5573 * option keyword completion:             Completion.          (line   6)
5574 * options, for custom agenda views:      Setting Options.     (line   6)
5575 * options, for customization:            Customization.       (line   6)
5576 * options, for export:                   Export options.      (line   6)
5577 * options, for publishing:               Publishing options.  (line   6)
5578 * ordered lists:                         Plain lists.         (line   6)
5579 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
5580 * org-blog.el:                           Extensions.          (line  29)
5581 * org-mode, turning on:                  Activation.          (line  22)
5582 * org-mouse.el:                          Extensions.          (line  17)
5583 * org-publish-project-alist:             Project alist.       (line   6)
5584 * org-publish.el:                        Extensions.          (line   8)
5585 * orgtbl-mode:                           orgtbl-mode.         (line   6)
5586 * outline tree:                          Headlines.           (line   6)
5587 * outline-mode:                          Outlines.            (line   6)
5588 * outlines:                              Outlines.            (line   6)
5589 * overview, global visibility state:     Visibility cycling.  (line  22)
5590 * packages, interaction with other:      Interaction.         (line   6)
5591 * pasting, of subtrees:                  Structure editing.   (line   6)
5592 * per file keywords:                     Per file keywords.   (line   6)
5593 * plain lists:                           Plain lists.         (line   6)
5594 * plain text external links:             External links.      (line  38)
5595 * presentation, of agenda items:         Presentation and sorting.
5596                                                               (line   6)
5597 * printing sparse trees:                 Sparse trees.        (line  41)
5598 * priorities:                            Priorities.          (line   6)
5599 * priorities, of agenda items:           Sorting of agenda items.
5600                                                               (line   6)
5601 * progress logging:                      Progress logging.    (line   6)
5602 * projects, for publishing:              Project alist.       (line   6)
5603 * promotion, of subtrees:                Structure editing.   (line   6)
5604 * publishing:                            Publishing.          (line   6)
5605 * quoted HTML tags:                      Export options.      (line  25)
5606 * radio targets:                         Radio targets.       (line   6)
5607 * ranges, time:                          Time stamps.         (line   6)
5608 * recomputing table fields:              Column formulas.     (line  27)
5609 * region, active <1>:                    HTML export.         (line  10)
5610 * region, active <2>:                    ASCII export.        (line   9)
5611 * region, active <3>:                    Built-in table editor.
5612                                                               (line 171)
5613 * region, active:                        Structure editing.   (line  64)
5614 * regular expressions, with tags search: Tag searches.        (line  63)
5615 * remember.el <1>:                       Cooperation.         (line  33)
5616 * remember.el:                           Remember.            (line   6)
5617 * remote editing, from agenda:           Agenda commands.     (line 107)
5618 * remote editing, undo:                  Agenda commands.     (line 110)
5619 * richer text:                           Enhancing text.      (line   6)
5620 * RMAIL links:                           External links.      (line   6)
5621 * SCHEDULED keyword:                     Time stamps.         (line  40)
5622 * scheduling:                            Time stamps.         (line   6)
5623 * search option in file links:           Search options.      (line   6)
5624 * search strings, custom:                Custom searches.     (line   6)
5625 * searching for tags:                    Tag searches.        (line   6)
5626 * section-numbers:                       Export options.      (line  25)
5627 * setting tags:                          Setting tags.        (line   6)
5628 * SHELL links:                           External links.      (line   6)
5629 * show all, command:                     Visibility cycling.  (line  31)
5630 * show all, global visibility state:     Visibility cycling.  (line  22)
5631 * show hidden text:                      Visibility cycling.  (line   6)
5632 * sorting, of agenda items:              Sorting of agenda items.
5633                                                               (line   6)
5634 * sparse tree, for deadlines:            Creating timestamps. (line  41)
5635 * sparse tree, for TODO:                 TODO basics.         (line  26)
5636 * sparse tree, tag based:                Tags.                (line   6)
5637 * sparse trees:                          Sparse trees.        (line   6)
5638 * special keywords:                      In-buffer settings.  (line   6)
5639 * spreadsheet capabilities:              Table calculations.  (line   6)
5640 * statistics, for checkboxes:            Checkboxes.          (line  23)
5641 * storing links:                         Handling links.      (line   9)
5642 * structure editing:                     Structure editing.   (line   6)
5643 * structure of document:                 Document structure.  (line   6)
5644 * sublevels, inclusion into tags match:  Tag inheritance.     (line   6)
5645 * sublevels, inclusion into todo list:   Global TODO list.    (line  33)
5646 * subscript:                             Subscripts and Superscripts.
5647                                                               (line   6)
5648 * subtree cycling:                       Visibility cycling.  (line  10)
5649 * subtree visibility states:             Visibility cycling.  (line  10)
5650 * subtree, cut and paste:                Structure editing.   (line   6)
5651 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
5652 * subtrees, cut and paste:               Structure editing.   (line   6)
5653 * summary:                               Summary.             (line   6)
5654 * superscript:                           Subscripts and Superscripts.
5655                                                               (line   6)
5656 * syntax, of formulas:                   Formula syntax.      (line   6)
5657 * table editor, builtin:                 Built-in table editor.
5658                                                               (line   6)
5659 * table editor, table.el:                table.el.            (line   6)
5660 * table of contents:                     Export options.      (line  25)
5661 * table.el <1>:                          Cooperation.         (line  34)
5662 * table.el:                              table.el.            (line   6)
5663 * tables <1>:                            Export options.      (line  25)
5664 * tables:                                Tables.              (line   6)
5665 * tables, export:                        Enhancing text.      (line  21)
5666 * tag completion:                        Completion.          (line   6)
5667 * tag searches:                          Tag searches.        (line   6)
5668 * tags:                                  Tags.                (line   6)
5669 * tags view:                             Matching headline tags.
5670                                                               (line   6)
5671 * tags, setting:                         Setting tags.        (line   6)
5672 * targets, for links:                    Internal links.      (line   6)
5673 * targets, radio:                        Radio targets.       (line   6)
5674 * tasks, breaking down:                  Breaking down tasks. (line   6)
5675 * templates, for remember:               Remember.            (line  23)
5676 * TeX interpretation:                    Embedded LaTeX.      (line   6)
5677 * TeX macros <1>:                        Export options.      (line  25)
5678 * TeX macros:                            Math symbols.        (line   6)
5679 * TeX macros, export:                    Enhancing text.      (line  18)
5680 * TeX symbol completion:                 Completion.          (line   6)
5681 * TeX-like syntax for sub- and superscripts: Export options.  (line  25)
5682 * thanks:                                History and Acknowledgments.
5683                                                               (line   6)
5684 * time format, custom:                   Custom time format.  (line   6)
5685 * time grid:                             Time-of-day specifications.
5686                                                               (line  26)
5687 * time stamps <1>:                       Time stamps.         (line   6)
5688 * time stamps:                           Timestamps.          (line   6)
5689 * time, reading in minibuffer:           The date/time prompt.
5690                                                               (line   6)
5691 * time-of-day specification:             Time-of-day specifications.
5692                                                               (line   6)
5693 * time-sorted view:                      Timeline.            (line   6)
5694 * timeline, single file:                 Timeline.            (line   6)
5695 * timerange:                             Time stamps.         (line  31)
5696 * timestamp:                             Time stamps.         (line  14)
5697 * timestamp, inactive:                   Time stamps.         (line  24)
5698 * timestamps, creating:                  Creating timestamps. (line   6)
5699 * TODO items:                            TODO items.          (line   6)
5700 * TODO keyword matching:                 Global TODO list.    (line  17)
5701 * TODO keyword matching, with tags search: Tag searches.      (line  40)
5702 * TODO keywords completion:              Completion.          (line   6)
5703 * TODO list, global:                     Global TODO list.    (line   6)
5704 * TODO types:                            TODO types.          (line   6)
5705 * TODO workflow:                         Workflow states.     (line   6)
5706 * transient-mark-mode <1>:               HTML export.         (line  10)
5707 * transient-mark-mode <2>:               ASCII export.        (line   9)
5708 * transient-mark-mode <3>:               Built-in table editor.
5709                                                               (line 171)
5710 * transient-mark-mode:                   Structure editing.   (line  64)
5711 * trees, sparse:                         Sparse trees.        (line   6)
5712 * trees, visibility:                     Visibility cycling.  (line   6)
5713 * tty keybindings:                       TTY keys.            (line   6)
5714 * types as TODO keywords:                TODO types.          (line   6)
5715 * underlined text:                       Enhancing text.      (line  15)
5716 * undoing remote-editing events:         Agenda commands.     (line 110)
5717 * URL links:                             External links.      (line   6)
5718 * USENET links:                          External links.      (line   6)
5719 * variables, for customization:          Customization.       (line   6)
5720 * vectors, in table calculations:        Formula syntax.      (line  23)
5721 * visibility cycling:                    Visibility cycling.  (line   6)
5722 * visible text, printing:                Sparse trees.        (line  41)
5723 * VM links:                              External links.      (line   6)
5724 * WANDERLUST links:                      External links.      (line   6)
5725 * weekly agenda:                         Weekly/Daily agenda. (line   6)
5726 * windmove.el:                           Conflicts.           (line  33)
5727 * workflow states as TODO keywords:      Workflow states.     (line   6)
5728 * XEmacs:                                Installation.        (line   6)
5729 * XOXO export:                           XOXO export.         (line   6)
5731 \x1f
5732 File: org,  Node: Key Index,  Prev: Index,  Up: Top
5734 Key Index
5735 *********
5737 \0\b[index\0\b]
5738 * Menu:
5740 * $:                                     Agenda commands.     (line 124)
5741 * ':                                     CDLaTeX mode.        (line  43)
5742 * +:                                     Agenda commands.     (line 146)
5743 * ,:                                     Agenda commands.     (line 138)
5744 * -:                                     Agenda commands.     (line 152)
5745 * .:                                     Agenda commands.     (line 101)
5746 * ::                                     Agenda commands.     (line 132)
5747 * <:                                     The date/time prompt.
5748                                                               (line  29)
5749 * <left>:                                Agenda commands.     (line  98)
5750 * <RET> <1>:                             Agenda commands.     (line  41)
5751 * <RET> <2>:                             Setting tags.        (line  76)
5752 * <RET> <3>:                             The date/time prompt.
5753                                                               (line  54)
5754 * <RET>:                                 Built-in table editor.
5755                                                               (line  64)
5756 * <right>:                               Agenda commands.     (line  93)
5757 * <SPC> <1>:                             Agenda commands.     (line  28)
5758 * <SPC>:                                 Setting tags.        (line  73)
5759 * <TAB> <1>:                             CDLaTeX mode.        (line  23)
5760 * <TAB> <2>:                             Agenda commands.     (line  35)
5761 * <TAB> <3>:                             Setting tags.        (line  68)
5762 * <TAB> <4>:                             Built-in table editor.
5763                                                               (line  57)
5764 * <TAB> <5>:                             Plain lists.         (line  37)
5765 * <TAB>:                                 Visibility cycling.  (line  10)
5766 * > <1>:                                 Agenda commands.     (line 174)
5767 * >:                                     The date/time prompt.
5768                                                               (line  30)
5769 * ^:                                     CDLaTeX mode.        (line  33)
5770 * _:                                     CDLaTeX mode.        (line  33)
5771 * `:                                     CDLaTeX mode.        (line  39)
5772 * a:                                     Agenda commands.     (line 135)
5773 * b:                                     Agenda commands.     (line  51)
5774 * C:                                     Agenda commands.     (line 214)
5775 * c:                                     Agenda commands.     (line 192)
5776 * C-#:                                   Built-in table editor.
5777                                                               (line 161)
5778 * C-,:                                   Agenda files.        (line  18)
5779 * C-_:                                   Agenda commands.     (line 110)
5780 * C-a a L:                               Timeline.            (line  10)
5781 * C-c !:                                 Creating timestamps. (line  21)
5782 * C-c #:                                 Checkboxes.          (line  56)
5783 * C-c $:                                 Moving subtrees.     (line  10)
5784 * C-c %:                                 Handling links.      (line  81)
5785 * C-c &:                                 Handling links.      (line  85)
5786 * C-c ' <1>:                             Editing/debugging formulas.
5787                                                               (line  20)
5788 * C-c ':                                 Built-in table editor.
5789                                                               (line 150)
5790 * C-c *:                                 Built-in table editor.
5791                                                               (line 154)
5792 * C-c +:                                 Built-in table editor.
5793                                                               (line 171)
5794 * C-c ,:                                 Priorities.          (line  18)
5795 * C-c -:                                 Built-in table editor.
5796                                                               (line  92)
5797 * C-c .:                                 Creating timestamps. (line  10)
5798 * C-c /:                                 Sparse trees.        (line  15)
5799 * C-c ::                                 Enhancing text.      (line  29)
5800 * C-c ;:                                 Comment lines.       (line  11)
5801 * C-c <:                                 Creating timestamps. (line  25)
5802 * C-c <TAB>:                             Built-in table editor.
5803                                                               (line 193)
5804 * C-c =:                                 Built-in table editor.
5805                                                               (line 141)
5806 * C-c >:                                 Creating timestamps. (line  29)
5807 * C-c ? <1>:                             Editing/debugging formulas.
5808                                                               (line  20)
5809 * C-c ?:                                 Built-in table editor.
5810                                                               (line 167)
5811 * C-c [:                                 Agenda files.        (line  12)
5812 * C-c \:                                 Tag searches.        (line   9)
5813 * C-c ]:                                 Agenda files.        (line  15)
5814 * C-c ^ <1>:                             Built-in table editor.
5815                                                               (line  96)
5816 * C-c ^:                                 Structure editing.   (line  52)
5817 * C-c `:                                 Built-in table editor.
5818                                                               (line 187)
5819 * C-c a !:                               Stuck projects.      (line  14)
5820 * C-c a #:                               Stuck projects.      (line  13)
5821 * C-c a a:                               Weekly/Daily agenda. (line   9)
5822 * C-c a C:                               Storing searches.    (line   9)
5823 * C-c a M:                               Matching headline tags.
5824                                                               (line  15)
5825 * C-c a m:                               Matching headline tags.
5826                                                               (line  10)
5827 * C-c a M:                               Tag searches.        (line  16)
5828 * C-c a m:                               Tag searches.        (line  12)
5829 * C-c a T:                               Global TODO list.    (line  14)
5830 * C-c a t <1>:                           Global TODO list.    (line   9)
5831 * C-c a t:                               TODO basics.         (line  33)
5832 * C-c C-a:                               Visibility cycling.  (line  31)
5833 * C-c C-b:                               Motion.              (line  15)
5834 * C-c C-c <1>:                           The very busy C-c C-c key.
5835                                                               (line   6)
5836 * C-c C-c <2>:                           Processing LaTeX fragments.
5837                                                               (line  15)
5838 * C-c C-c <3>:                           Setting tags.        (line  10)
5839 * C-c C-c <4>:                           Checkboxes.          (line  37)
5840 * C-c C-c <5>:                           table.el.            (line   6)
5841 * C-c C-c <6>:                           Editing/debugging formulas.
5842                                                               (line  16)
5843 * C-c C-c <7>:                           Built-in table editor.
5844                                                               (line  54)
5845 * C-c C-c:                               Plain lists.         (line  74)
5846 * C-c C-d <1>:                           Agenda commands.     (line 159)
5847 * C-c C-d:                               Creating timestamps. (line  37)
5848 * C-c C-e:                               Exporting.           (line  19)
5849 * C-c C-e a:                             ASCII export.        (line   9)
5850 * C-c C-e b:                             HTML export.         (line  11)
5851 * C-c C-e c:                             iCalendar export.    (line  20)
5852 * C-c C-e h:                             HTML export.         (line  10)
5853 * C-c C-e I:                             iCalendar export.    (line  15)
5854 * C-c C-e i:                             iCalendar export.    (line  13)
5855 * C-c C-e t:                             Export options.      (line  13)
5856 * C-c C-e v <1>:                         XOXO export.         (line  11)
5857 * C-c C-e v:                             Sparse trees.        (line  41)
5858 * C-c C-e v a:                           ASCII export.        (line  13)
5859 * C-c C-e v b:                           HTML export.         (line  14)
5860 * C-c C-e v h:                           HTML export.         (line  14)
5861 * C-c C-e x:                             XOXO export.         (line  10)
5862 * C-c C-f:                               Motion.              (line  12)
5863 * C-c C-j:                               Motion.              (line  21)
5864 * C-c C-l:                               Handling links.      (line  27)
5865 * C-c C-n:                               Motion.              (line   8)
5866 * C-c C-o <1>:                           Creating timestamps. (line  33)
5867 * C-c C-o:                               Handling links.      (line  58)
5868 * C-c C-p:                               Motion.              (line   9)
5869 * C-c C-q <1>:                           Editing/debugging formulas.
5870                                                               (line  20)
5871 * C-c C-q:                               Built-in table editor.
5872                                                               (line 125)
5873 * C-c C-r:                               Visibility cycling.  (line  32)
5874 * C-c C-s <1>:                           Agenda commands.     (line 156)
5875 * C-c C-s:                               Creating timestamps. (line  48)
5876 * C-c C-t <1>:                           Clocking work time.  (line  26)
5877 * C-c C-t:                               TODO basics.         (line  13)
5878 * C-c C-u:                               Motion.              (line  18)
5879 * C-c C-v:                               TODO basics.         (line  26)
5880 * C-c C-w:                               Creating timestamps. (line  41)
5881 * C-c C-x b:                             Visibility cycling.  (line  38)
5882 * C-c C-x C-a:                           ARCHIVE tag.         (line  28)
5883 * C-c C-x C-b:                           Checkboxes.          (line  38)
5884 * C-c C-x C-c:                           Agenda commands.     (line 221)
5885 * C-c C-x C-d:                           Clocking work time.  (line  34)
5886 * C-c C-x C-i:                           Clocking work time.  (line  12)
5887 * C-c C-x C-k:                           Structure editing.   (line  39)
5888 * C-c C-x C-l:                           Processing LaTeX fragments.
5889                                                               (line   9)
5890 * C-c C-x C-o:                           Clocking work time.  (line  14)
5891 * C-c C-x C-r:                           Clocking work time.  (line  42)
5892 * C-c C-x C-t:                           Custom time format.  (line  12)
5893 * C-c C-x C-u:                           Dynamic blocks.      (line  21)
5894 * C-c C-x C-w <1>:                       Built-in table editor.
5895                                                               (line 114)
5896 * C-c C-x C-w:                           Structure editing.   (line  39)
5897 * C-c C-x C-x:                           Clocking work time.  (line  30)
5898 * C-c C-x C-y <1>:                       Built-in table editor.
5899                                                               (line 118)
5900 * C-c C-x C-y:                           Structure editing.   (line  46)
5901 * C-c C-x M-w <1>:                       Built-in table editor.
5902                                                               (line 111)
5903 * C-c C-x M-w:                           Structure editing.   (line  43)
5904 * C-c C-y <1>:                           Clocking work time.  (line  21)
5905 * C-c C-y:                               Creating timestamps. (line  66)
5906 * C-c l:                                 Handling links.      (line   9)
5907 * C-c {:                                 CDLaTeX mode.        (line  21)
5908 * C-c |:                                 Built-in table editor.
5909                                                               (line  40)
5910 * C-c ~:                                 table.el.            (line  18)
5911 * C-k:                                   Agenda commands.     (line 118)
5912 * C-TAB:                                 ARCHIVE tag.         (line  38)
5913 * C-u C-c $:                             Moving subtrees.     (line  12)
5914 * C-u C-c .:                             Creating timestamps. (line  16)
5915 * C-u C-c =:                             Built-in table editor.
5916                                                               (line 145)
5917 * C-u C-c C-l:                           Handling links.      (line  43)
5918 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  31)
5919 * C-u C-c C-x C-u <1>:                   Dynamic blocks.      (line  22)
5920 * C-u C-c C-x C-u:                       Clocking work time.  (line  69)
5921 * D:                                     Agenda commands.     (line  75)
5922 * d:                                     Agenda commands.     (line  72)
5923 * f:                                     Agenda commands.     (line  44)
5924 * g:                                     Agenda commands.     (line  79)
5925 * H:                                     Agenda commands.     (line 218)
5926 * i:                                     Agenda commands.     (line 199)
5927 * I:                                     Agenda commands.     (line 179)
5928 * l:                                     Agenda commands.     (line  58)
5929 * L:                                     Agenda commands.     (line  32)
5930 * M:                                     Agenda commands.     (line 205)
5931 * M-<down>:                              Built-in table editor.
5932                                                               (line  82)
5933 * M-<left> <1>:                          Built-in table editor.
5934                                                               (line  72)
5935 * M-<left>:                              Structure editing.   (line  21)
5936 * M-<RET> <1>:                           Plain lists.         (line  42)
5937 * M-<RET>:                               Structure editing.   (line   6)
5938 * M-<right> <1>:                         Built-in table editor.
5939                                                               (line  72)
5940 * M-<right>:                             Structure editing.   (line  24)
5941 * M-<TAB> <1>:                           Completion.          (line  10)
5942 * M-<TAB> <2>:                           Setting tags.        (line   6)
5943 * M-<TAB>:                               Per file keywords.   (line  17)
5944 * M-<up>:                                Built-in table editor.
5945                                                               (line  82)
5946 * M-S-<down> <1>:                        Built-in table editor.
5947                                                               (line  89)
5948 * M-S-<down> <2>:                        Plain lists.         (line  59)
5949 * M-S-<down>:                            Structure editing.   (line  36)
5950 * M-S-<left> <1>:                        The date/time prompt.
5951                                                               (line  51)
5952 * M-S-<left> <2>:                        Built-in table editor.
5953                                                               (line  76)
5954 * M-S-<left> <3>:                        Plain lists.         (line  65)
5955 * M-S-<left>:                            Structure editing.   (line  27)
5956 * M-S-<RET> <1>:                         Checkboxes.          (line  53)
5957 * M-S-<RET> <2>:                         Plain lists.         (line  52)
5958 * M-S-<RET>:                             Structure editing.   (line  18)
5959 * M-S-<right> <1>:                       The date/time prompt.
5960                                                               (line  48)
5961 * M-S-<right> <2>:                       Built-in table editor.
5962                                                               (line  79)
5963 * M-S-<right> <3>:                       Plain lists.         (line  65)
5964 * M-S-<right>:                           Structure editing.   (line  30)
5965 * M-S-<up> <1>:                          Built-in table editor.
5966                                                               (line  86)
5967 * M-S-<up> <2>:                          Plain lists.         (line  59)
5968 * M-S-<up>:                              Structure editing.   (line  33)
5969 * mouse-1 <1>:                           Agenda commands.     (line  35)
5970 * mouse-1 <2>:                           The date/time prompt.
5971                                                               (line  33)
5972 * mouse-1:                               Handling links.      (line  72)
5973 * mouse-2 <1>:                           Agenda commands.     (line  35)
5974 * mouse-2:                               Handling links.      (line  72)
5975 * mouse-3 <1>:                           Agenda commands.     (line  28)
5976 * mouse-3:                               Handling links.      (line  77)
5977 * n:                                     Agenda commands.     (line  19)
5978 * O:                                     Agenda commands.     (line 181)
5979 * o:                                     Agenda commands.     (line  66)
5980 * P:                                     Agenda commands.     (line 143)
5981 * p:                                     Agenda commands.     (line  20)
5982 * q:                                     Agenda commands.     (line 228)
5983 * r <1>:                                 Agenda commands.     (line  83)
5984 * r:                                     Global TODO list.    (line  20)
5985 * S:                                     Agenda commands.     (line 209)
5986 * s:                                     Agenda commands.     (line  90)
5987 * S-<down> <1>:                          Agenda commands.     (line 152)
5988 * S-<down> <2>:                          The date/time prompt.
5989                                                               (line  42)
5990 * S-<down> <3>:                          Creating timestamps. (line  58)
5991 * S-<down> <4>:                          Priorities.          (line  25)
5992 * S-<down>:                              Plain lists.         (line  55)
5993 * S-<left> <1>:                          Agenda commands.     (line 170)
5994 * S-<left> <2>:                          The date/time prompt.
5995                                                               (line  39)
5996 * S-<left> <3>:                          Creating timestamps. (line  53)
5997 * S-<left>:                              TODO basics.         (line  20)
5998 * S-<RET>:                               Built-in table editor.
5999                                                               (line 176)
6000 * S-<right> <1>:                         Agenda commands.     (line 162)
6001 * S-<right> <2>:                         The date/time prompt.
6002                                                               (line  36)
6003 * S-<right> <3>:                         Creating timestamps. (line  53)
6004 * S-<right>:                             TODO basics.         (line  20)
6005 * S-<TAB> <1>:                           Built-in table editor.
6006                                                               (line  61)
6007 * S-<TAB>:                               Visibility cycling.  (line  22)
6008 * S-<up> <1>:                            Agenda commands.     (line 146)
6009 * S-<up> <2>:                            The date/time prompt.
6010                                                               (line  45)
6011 * S-<up> <3>:                            Creating timestamps. (line  58)
6012 * S-<up> <4>:                            Priorities.          (line  25)
6013 * S-<up>:                                Plain lists.         (line  55)
6014 * T:                                     Agenda commands.     (line 127)
6015 * t:                                     Agenda commands.     (line 114)
6016 * w:                                     Agenda commands.     (line  69)
6017 * x:                                     Agenda commands.     (line 231)
6018 * X:                                     Agenda commands.     (line 184)
6021 \x1f
6022 Tag Table:
6023 Node: Top\x7f964
6024 Node: Introduction\x7f10454
6025 Node: Summary\x7f10869
6026 Node: Installation\x7f13781
6027 Node: Activation\x7f15159
6028 Node: Feedback\x7f16408
6029 Node: Document structure\x7f18484
6030 Node: Outlines\x7f19258
6031 Node: Headlines\x7f19918
6032 Node: Visibility cycling\x7f20541
6033 Ref: Visibility cycling-Footnote-1\x7f22614
6034 Ref: Visibility cycling-Footnote-2\x7f22672
6035 Ref: Visibility cycling-Footnote-3\x7f22722
6036 Node: Motion\x7f22992
6037 Node: Structure editing\x7f23776
6038 Node: Archiving\x7f26602
6039 Node: ARCHIVE tag\x7f27160
6040 Node: Moving subtrees\x7f28953
6041 Node: Sparse trees\x7f29994
6042 Ref: Sparse trees-Footnote-1\x7f32125
6043 Ref: Sparse trees-Footnote-2\x7f32217
6044 Node: Plain lists\x7f32332
6045 Ref: Plain lists-Footnote-1\x7f35857
6046 Ref: Plain lists-Footnote-2\x7f36214
6047 Node: Tables\x7f36398
6048 Node: Built-in table editor\x7f36946
6049 Node: Narrow columns\x7f44974
6050 Ref: Narrow columns-Footnote-1\x7f46913
6051 Node: Table calculations\x7f46959
6052 Node: Formula syntax\x7f48279
6053 Ref: Formula syntax-Footnote-1\x7f51184
6054 Node: Lisp formulas\x7f51484
6055 Node: Column formulas\x7f52273
6056 Node: Advanced features\x7f54035
6057 Node: Named-field formulas\x7f57289
6058 Node: Editing/debugging formulas\x7f57929
6059 Node: Appetizer\x7f59687
6060 Node: orgtbl-mode\x7f60790
6061 Node: table.el\x7f61281
6062 Node: Hyperlinks\x7f62258
6063 Node: Link format\x7f63031
6064 Node: Internal links\x7f64324
6065 Ref: Internal links-Footnote-1\x7f66313
6066 Node: Radio targets\x7f66445
6067 Node: CamelCase links\x7f67160
6068 Node: External links\x7f67754
6069 Node: Handling links\x7f69885
6070 Ref: Handling links-Footnote-1\x7f74537
6071 Ref: Handling links-Footnote-2\x7f74774
6072 Node: Link abbreviations\x7f74848
6073 Node: Search options\x7f76527
6074 Ref: Search options-Footnote-1\x7f78307
6075 Node: Custom searches\x7f78388
6076 Node: Remember\x7f79436
6077 Node: TODO items\x7f83130
6078 Node: TODO basics\x7f84112
6079 Node: TODO extensions\x7f85639
6080 Node: Workflow states\x7f86434
6081 Node: TODO types\x7f87302
6082 Ref: TODO types-Footnote-1\x7f88960
6083 Node: Per file keywords\x7f89042
6084 Ref: Per file keywords-Footnote-1\x7f90496
6085 Node: Priorities\x7f90697
6086 Node: Breaking down tasks\x7f91941
6087 Ref: Breaking down tasks-Footnote-1\x7f92460
6088 Node: Checkboxes\x7f92556
6089 Node: Timestamps\x7f95311
6090 Node: Time stamps\x7f95772
6091 Ref: Time stamps-Footnote-1\x7f99266
6092 Ref: Time stamps-Footnote-2\x7f99382
6093 Node: Creating timestamps\x7f99537
6094 Node: The date/time prompt\x7f102163
6095 Ref: The date/time prompt-Footnote-1\x7f103929
6096 Node: Custom time format\x7f104035
6097 Node: Progress logging\x7f105594
6098 Node: Closing items\x7f106123
6099 Node: Clocking work time\x7f107027
6100 Ref: Clocking work time-Footnote-1\x7f110651
6101 Node: Tags\x7f110777
6102 Node: Tag inheritance\x7f111539
6103 Node: Setting tags\x7f112476
6104 Ref: Setting tags-Footnote-1\x7f116675
6105 Ref: Setting tags-Footnote-2\x7f116787
6106 Node: Tag searches\x7f116870
6107 Node: Agenda views\x7f119582
6108 Node: Agenda files\x7f121522
6109 Ref: Agenda files-Footnote-1\x7f122482
6110 Ref: Agenda files-Footnote-2\x7f122631
6111 Node: Agenda dispatcher\x7f122824
6112 Node: Built-in agenda views\x7f124515
6113 Node: Weekly/Daily agenda\x7f125093
6114 Node: Global TODO list\x7f127222
6115 Node: Matching headline tags\x7f129395
6116 Node: Timeline\x7f130466
6117 Node: Stuck projects\x7f131132
6118 Node: Presentation and sorting\x7f132831
6119 Node: Categories\x7f133622
6120 Node: Time-of-day specifications\x7f134286
6121 Node: Sorting of agenda items\x7f136257
6122 Node: Agenda commands\x7f137539
6123 Node: Custom agenda views\x7f144239
6124 Node: Storing searches\x7f144914
6125 Node: Block agenda\x7f146826
6126 Node: Setting Options\x7f148056
6127 Node: Batch processing\x7f150768
6128 Node: Embedded LaTeX\x7f151898
6129 Ref: Embedded LaTeX-Footnote-1\x7f152990
6130 Node: Math symbols\x7f153180
6131 Node: Subscripts and Superscripts\x7f153945
6132 Node: LaTeX fragments\x7f154789
6133 Ref: LaTeX fragments-Footnote-1\x7f156897
6134 Node: Processing LaTeX fragments\x7f157159
6135 Node: CDLaTeX mode\x7f158105
6136 Ref: CDLaTeX mode-Footnote-1\x7f160589
6137 Node: Exporting\x7f160737
6138 Node: ASCII export\x7f162051
6139 Node: HTML export\x7f163341
6140 Node: XOXO export\x7f166177
6141 Node: iCalendar export\x7f166616
6142 Node: Text interpretation\x7f168439
6143 Node: Comment lines\x7f168918
6144 Node: Enhancing text\x7f169389
6145 Node: Export options\x7f171081
6146 Node: Publishing\x7f172748
6147 Ref: Publishing-Footnote-1\x7f173544
6148 Node: Configuration\x7f173740
6149 Node: Project alist\x7f174458
6150 Node: Sources and destinations\x7f175524
6151 Node: Selecting files\x7f176254
6152 Node: Publishing action\x7f177002
6153 Node: Publishing options\x7f178235
6154 Node: Publishing links\x7f180387
6155 Node: Project page index\x7f181900
6156 Node: Sample configuration\x7f182678
6157 Node: Simple example\x7f183170
6158 Node: Complex example\x7f183843
6159 Node: Triggering publication\x7f185919
6160 Node: Miscellaneous\x7f186604
6161 Node: Completion\x7f187238
6162 Node: Customization\x7f188709
6163 Node: In-buffer settings\x7f189292
6164 Node: The very busy C-c C-c key\x7f192911
6165 Node: Clean view\x7f194555
6166 Node: TTY keys\x7f197132
6167 Node: Interaction\x7f198741
6168 Node: Cooperation\x7f199138
6169 Node: Conflicts\x7f201005
6170 Node: Bugs\x7f202597
6171 Node: Extensions and Hacking\x7f203991
6172 Node: Extensions\x7f204495
6173 Node: Dynamic blocks\x7f206282
6174 Node: Special agenda views\x7f208238
6175 Ref: Special agenda views-Footnote-1\x7f210519
6176 Node: History and Acknowledgments\x7f210779
6177 Node: Index\x7f215786
6178 Node: Key Index\x7f243028
6179 \x1f
6180 End Tag Table