Release 5.16a
[org-mode/org-tableheadings.git] / org
blobeb38455146aca9265c783a77f352576a616490d6
1 This is org, produced by makeinfo version 4.8 from org.texi.
3 INFO-DIR-SECTION Emacs
4 START-INFO-DIR-ENTRY
5 * Org Mode: (org).      Outline-based notes management and organizer
6 END-INFO-DIR-ENTRY
8    This manual is for Org-mode (version 5.16a).
10    Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
12      Permission is granted to copy, distribute and/or modify this
13      document under the terms of the GNU Free Documentation License,
14      Version 1.1 or any later version published by the Free Software
15      Foundation; with no Invariant Sections, with the Front-Cover texts
16      being "A GNU Manual," and with the Back-Cover Texts as in (a)
17      below.  A copy of the license is included in the section entitled
18      "GNU Free Documentation License."
20      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
21      modify this GNU Manual, like GNU software.  Copies published by
22      the Free Software Foundation raise funds for GNU development."
24 \x1f
25 File: org,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
27 Org Mode Manual
28 ***************
30 This manual is for Org-mode (version 5.16a).
32    Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
34      Permission is granted to copy, distribute and/or modify this
35      document under the terms of the GNU Free Documentation License,
36      Version 1.1 or any later version published by the Free Software
37      Foundation; with no Invariant Sections, with the Front-Cover texts
38      being "A GNU Manual," and with the Back-Cover Texts as in (a)
39      below.  A copy of the license is included in the section entitled
40      "GNU Free Documentation License."
42      (a) The FSF's Back-Cover Text is: "You have freedom to copy and
43      modify this GNU Manual, like GNU software.  Copies published by
44      the Free Software Foundation raise funds for GNU development."
46 * Menu:
48 * Introduction::                Getting started
49 * Document structure::          A tree works like your brain
50 * Tables::                      Pure magic for quick formatting
51 * Hyperlinks::                  Notes in context
52 * TODO items::                  Every tree branch can be a TODO item
53 * Tags::                        Tagging headlines and matching sets of tags
54 * Properties and columns::      Storing information about an entry
55 * Dates and times::             Making items useful for planning
56 * Remember::                    Quickly adding nodes to the outline tree
57 * Agenda views::                Collecting information into views
58 * Embedded LaTeX::              LaTeX fragments and formulas
59 * Exporting::                   Sharing and publishing of notes
60 * Publishing::                  Create a web site of linked Org-mode files
61 * Miscellaneous::               All the rest which did not fit elsewhere
62 * Extensions and Hacking::      It is possible to write add-on code
63 * History and Acknowledgments::  How Org-mode came into being
64 * Index::                       The fast road to specific information
65 * Key Index::                   Key bindings and where they are described
67  --- The Detailed Node Listing ---
69 Introduction
71 * Summary::                     Brief summary of what Org-mode does
72 * Installation::                How to install a downloaded version of Org-mode
73 * Activation::                  How to activate Org-mode for certain buffers.
74 * Feedback::                    Bug reports, ideas, patches etc.
75 * Conventions::                 Type-setting conventions in the manual
77 Document Structure
79 * Outlines::                    Org-mode is based on outline-mode
80 * Headlines::                   How to typeset org-tree headlines
81 * Visibility cycling::          Show and hide, much simplified
82 * Motion::                      Jumping to other headlines
83 * Structure editing::           Changing sequence and level of headlines
84 * Archiving::                   Move done task trees to a different place
85 * Sparse trees::                Matches embedded in context
86 * Plain lists::                 Additional structure within an entry
87 * Drawers::                     Tucking stuff away
88 * orgstruct-mode::              Structure editing outside Org-mode
90 Archiving
92 * ARCHIVE tag::                 Marking a tree as inactive
93 * Moving subtrees::             Moving a tree to an archive file
95 Tables
97 * Built-in table editor::       Simple tables
98 * Narrow columns::              Stop wasting space in tables
99 * Column groups::               Grouping to trigger vertical lines
100 * orgtbl-mode::                 The table editor as minor mode
101 * The spreadsheet::             The table editor has spreadsheet capabilities.
103 The spreadsheet
105 * References::                  How to refer to another field or range
106 * Formula syntax for Calc::     Using Calc to compute stuff
107 * Formula syntax for Lisp::     Writing formulas in Emacs Lisp
108 * Field formulas::              Formulas valid for a single field
109 * Column formulas::             Formulas valid for an entire column
110 * Editing and debugging formulas::  Fixing formulas
111 * Updating the table::          Recomputing all dependent fields
112 * Advanced features::           Field names, parameters and automatic recalc
114 Hyperlinks
116 * Link format::                 How links in Org-mode are formatted
117 * Internal links::              Links to other places in the current file
118 * External links::              URL-like links to the world
119 * Handling links::              Creating, inserting and following
120 * Using links outside Org-mode::  Linking from my C source code?
121 * Link abbreviations::          Shortcuts for writing complex links
122 * Search options::              Linking to a specific location
123 * Custom searches::             When the default search is not enough
125 Internal links
127 * Radio targets::               Make targets trigger links in plain text.
129 TODO items
131 * TODO basics::                 Marking and displaying TODO entries
132 * TODO extensions::             Workflow and assignments
133 * Progress logging::            Dates and notes for progress
134 * Priorities::                  Some things are more important than others
135 * Breaking down tasks::         Splitting a task into manageable pieces
136 * Checkboxes::                  Tick-off lists
138 Extended use of TODO keywords
140 * Workflow states::             From TODO to DONE in steps
141 * TODO types::                  I do this, Fred the rest
142 * Multiple sets in one file::   Mixing it all, and still finding your way
143 * Fast access to TODO states::  Single letter selection of a state
144 * Per file keywords::           Different files, different requirements
145 * Faces for TODO keywords::     Highlighting states
147 Progress Logging
149 * Closing items::               When was this entry marked DONE?
150 * Tracking TODO state changes::  When did the status change?
152 Tags
154 * Tag inheritance::             Tags use the tree structure of the outline
155 * Setting tags::                How to assign tags to a headline
156 * Tag searches::                Searching for combinations of tags
158 Properties and Columns
160 * Property syntax::             How properties are spelled out
161 * Special properties::          Access to other Org-mode features
162 * Property searches::           Matching property values
163 * Property inheritance::        Passing values down the tree
164 * Column view::                 Tabular viewing and editing
165 * Property API::                Properties for Lisp programmers
167 Column View
169 * Defining columns::            The COLUMNS format property
170 * Using column view::           How to create and use column view
171 * Capturing Column View::       A dynamic block for column view
173 Defining Columns
175 * Scope of column definitions::  Where defined, where valid?
176 * Column attributes::           Appearance and content of a column
178 Dates and Times
180 * Time stamps::                 Assigning a time to a tree entry
181 * Creating timestamps::         Commands which insert timestamps
182 * Deadlines and scheduling::    Planning your work
183 * Clocking work time::
185 Creating timestamps
187 * The date/time prompt::        How org-mode helps you entering date and time
188 * Custom time format::          Making dates look differently
190 Deadlines and Scheduling
192 * Inserting deadline/schedule::  Planning items
193 * Repeated tasks::              Items that show up again and again
195 Remember
197 * Setting up remember::         Some code for .emacs to get things going
198 * Remember templates::          Define the outline of different note types
199 * Storing notes::               Directly get the note to where it belongs
200 * Refiling notes::              Moving a note or task to a project
202 Agenda Views
204 * Agenda files::                Files being searched for agenda information
205 * Agenda dispatcher::           Keyboard access to agenda views
206 * Built-in agenda views::       What is available out of the box?
207 * Presentation and sorting::    How agenda items are prepared for display
208 * Agenda commands::             Remote editing of org trees
209 * Custom agenda views::         Defining special searches and views
211 The built-in agenda views
213 * Weekly/Daily agenda::         The calendar page with current tasks
214 * Global TODO list::            All unfinished action items
215 * Matching tags and properties::  Structured information with fine-tuned search
216 * Timeline::                    Time-sorted view for single file
217 * Stuck projects::              Find projects you need to review
219 Presentation and sorting
221 * Categories::                  Not all tasks are equal
222 * Time-of-day specifications::  How the agenda knows the time
223 * Sorting of agenda items::     The order of things
225 Custom agenda views
227 * Storing searches::            Type once, use often
228 * Block agenda::                All the stuff you need in a single buffer
229 * Setting Options::             Changing the rules
230 * Exporting Agenda Views::      Writing agendas to files.
231 * Extracting Agenda Information for other programs::
233 Embedded LaTeX
235 * Math symbols::                TeX macros for symbols and Greek letters
236 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
237 * LaTeX fragments::             Complex formulas made easy
238 * Processing LaTeX fragments::  Previewing LaTeX processing
239 * CDLaTeX mode::                Speed up entering of formulas
241 Exporting
243 * ASCII export::                Exporting to plain ASCII
244 * HTML export::                 Exporting to HTML
245 * LaTeX export::                Exporting to LaTeX
246 * XOXO export::                 Exporting to XOXO
247 * iCalendar export::            Exporting in iCalendar format
248 * Text interpretation::         How the exporter looks at the file
250 HTML export
252 * HTML Export commands::        How to invoke LaTeX export
253 * Quoting HTML tags::           Using direct HTML in Org-mode
254 * Links::                       Transformation of links for HTML
255 * Images::                      How to include images
256 * CSS support::                 Changing the appearence of the output
258 LaTeX export
260 * LaTeX export commands::       How to invoke LaTeX export
261 * Quoting LaTeX code::          Incorporating literal LaTeX code
262 * Sectioning structure::
264 Text interpretation by the exporter
266 * Comment lines::               Some lines will not be exported
267 * Initial text::                Text before the first headline
268 * Footnotes::                   Numbers like [1]
269 * Quoted examples::             Inserting quoted chnuks of text
270 * Enhancing text::              Subscripts, symbols and more
271 * Export options::              How to influence the export settings
273 Publishing
275 * Configuration::               Defining projects
276 * Sample configuration::        Example projects
277 * Triggering publication::      Publication commands
279 Configuration
281 * Project alist::               The central configuration variable
282 * Sources and destinations::    From here to there
283 * Selecting files::             What files are part of the project?
284 * Publishing action::           Setting the function doing the publishing
285 * Publishing options::          Tweaking HTML export
286 * Publishing links::            Which links keep working after publishing?
287 * Project page index::          Publishing a list of project files
289 Sample configuration
291 * Simple example::              One-component publishing
292 * Complex example::             A multi-component publishing example
294 Miscellaneous
296 * Completion::                  M-TAB knows what you need
297 * Customization::               Adapting Org-mode to your taste
298 * In-buffer settings::          Overview of the #+KEYWORDS
299 * The very busy C-c C-c key::   When in doubt, press C-c C-c
300 * Clean view::                  Getting rid of leading stars in the outline
301 * TTY keys::                    Using Org-mode on a tty
302 * Interaction::                 Other Emacs packages
303 * Bugs::                        Things which do not work perfectly
305 Interaction with other packages
307 * Cooperation::                 Packages Org-mode cooperates with
308 * Conflicts::                   Packages that lead to conflicts
310 Extensions, Hooks and Hacking
312 * Extensions::                  Existing 3rd-part extensions
313 * Adding hyperlink types::      New custom link types
314 * Tables in arbitrary syntax::  Orgtbl for LaTeX and other programs
315 * Dynamic blocks::              Automatically filled blocks
316 * Special agenda views::        Customized views
317 * Using the property API::      Writing programs that use entry properties
319 Tables and Lists in arbitrary syntax
321 * Radio tables::                Sending and receiving
322 * A LaTeX example::             Step by step, almost a tutorial
323 * Translator functions::        Copy and modify
324 * Radio lists::                 Doing the same for lists.
326 \x1f
327 File: org,  Node: Introduction,  Next: Document structure,  Prev: Top,  Up: Top
329 1 Introduction
330 **************
332 * Menu:
334 * Summary::                     Brief summary of what Org-mode does
335 * Installation::                How to install a downloaded version of Org-mode
336 * Activation::                  How to activate Org-mode for certain buffers.
337 * Feedback::                    Bug reports, ideas, patches etc.
338 * Conventions::                 Type-setting conventions in the manual
340 \x1f
341 File: org,  Node: Summary,  Next: Installation,  Prev: Introduction,  Up: Introduction
343 1.1 Summary
344 ===========
346 Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
347 project planning with a fast and effective plain-text system.
349    Org-mode develops organizational tasks around NOTES files that
350 contain lists or information about projects as plain text.  Org-mode is
351 implemented on top of outline-mode, which makes it possible to keep the
352 content of large files well structured.  Visibility cycling and
353 structure editing help to work with the tree.  Tables are easily created
354 with a built-in table editor.  Org-mode supports TODO items, deadlines,
355 time stamps, and scheduling.  It dynamically compiles entries into an
356 agenda that utilizes and smoothly integrates much of the Emacs calendar
357 and diary.  Plain text URL-like links connect to websites, emails,
358 Usenet messages, BBDB entries, and any files related to the projects.
359 For printing and sharing of notes, an Org-mode file can be exported as a
360 structured ASCII file, as HTML, or (todo and agenda items only) as an
361 iCalendar file.  It can also serve as a publishing tool for a set of
362 linked webpages.
364    An important design aspect that distinguishes Org-mode from for
365 example Planner/Muse is that it encourages to store every piece of
366 information only once.  In Planner, you have project pages, day pages
367 and possibly other files, duplicating some information such as tasks.
368 In Org-mode, you only have notes files.  In your notes you mark entries
369 as tasks, label them with tags and timestamps.  All necessary lists
370 like a schedule for the day, the agenda for a meeting, tasks lists
371 selected by tags etc are created dynamically when you need them.
373    Org-mode keeps simple things simple.  When first fired up, it should
374 feel like a straightforward, easy to use outliner.  Complexity is not
375 imposed, but a large amount of functionality is available when you need
376 it.  Org-mode is a toolbox and can be used in different ways, for
377 example as:
379      * outline extension with visibility cycling and structure editing
380      * ASCII system and table editor for taking structured notes
381      * ASCII table editor with spreadsheet-like capabilities
382      * TODO list editor
383      * full agenda and planner with deadlines and work scheduling
384      * environment to implement David Allen's GTD system
385      * a basic database application
386      * simple hypertext system, with HTML and LaTeX export
387      * publishing tool to create a set of interlinked webpages
389    Org-mode's automatic, context sensitive table editor with spreadsheet
390 capabilities can be integrated into any major mode by activating the
391 minor Orgtbl-mode.  Using a translation step, it can be used to maintain
392 tables in arbitrary file types, for example in LaTeX.  The structure
393 editing and list creation capabilities can be used outside Org-mode with
394 the minor Orgstruct-mode.
396    There is a website for Org-mode which provides links to the newest
397 version of Org-mode, as well as additional information, frequently asked
398 questions (FAQ), links to tutorials etc.  This page is located at
399 `http://orgmode.org'.
401 \x1f
402 File: org,  Node: Installation,  Next: Activation,  Prev: Summary,  Up: Introduction
404 1.2 Installation
405 ================
407 Important: If Org-mode is part of the Emacs distribution or an XEmacs
408 package, please skip this section and go directly to *Note Activation::.
410    If you have downloaded Org-mode from the Web, you must take the
411 following steps to install it: Go into the Org-mode distribution
412 directory and edit the top section of the file `Makefile'.  You must
413 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
414 and the paths to the directories where local Lisp and Info files are
415 kept.  If you don't have access to the system-wide directories, create
416 your own two directories for these files, enter them into the Makefile,
417 and make sure Emacs finds the Lisp files by adding the following line
418 to `.emacs':
420      (setq load-path (cons "~/path/to/lispdir" load-path))
422    XEmacs users now need to install the file `noutline.el' from the
423 `xemacs' subdirectory of the Org-mode distribution.  Use the command:
425      make install-noutline
427 Now byte-compile and install the Lisp files with the shell commands:
429      make
430      make install
432 If you want to install the info documentation, use this command:
434      make install-info
436 Then add to `.emacs':
438      ;; This line only if org-mode is not part of the X/Emacs distribution.
439      (require 'org-install)
441 \x1f
442 File: org,  Node: Activation,  Next: Feedback,  Prev: Installation,  Up: Introduction
444 1.3 Activation
445 ==============
447 Add the following lines to your `.emacs' file.  The last two lines
448 define _global_ keys for the commands `org-store-link' and `org-agenda'
449 - please choose suitable keys yourself.
451      ;; The following lines are always needed.  Choose your own keys.
452      (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
453      (global-set-key "\C-cl" 'org-store-link)
454      (global-set-key "\C-ca" 'org-agenda)
456    Furthermore, you must activate `font-lock-mode' in org-mode buffers,
457 because significant functionality depends on font-locking being active.
458 You can do this with either one of the following two lines (XEmacs
459 user must use the second option):
460      (global-font-lock-mode 1)                     ; for all buffers
461      (add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only
463    With this setup, all files with extension `.org' will be put into
464 Org-mode.  As an alternative, make the first line of a file look like
465 this:
467      MY PROJECTS    -*- mode: org; -*-
469 which will select Org-mode for this buffer no matter what the file's
470 name is.  See also the variable `org-insert-mode-line-in-empty-file'.
472 \x1f
473 File: org,  Node: Feedback,  Next: Conventions,  Prev: Activation,  Up: Introduction
475 1.4 Feedback
476 ============
478 If you find problems with Org-mode, or if you have questions, remarks,
479 or ideas about it, please contact the maintainer Carsten Dominik at
480 <carsten at orgmode dot org>.
482    For bug reports, please provide as much information as possible,
483 including the version information of Emacs (`C-h v emacs-version
484 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
485 Org-mode related setup in `.emacs'.  If an error occurs, a backtrace
486 can be very useful (see below on how to create one).  Often a small
487 example file helps, along with clear information about:
489   1. What exactly did you do?
491   2. What did you expect to happen?
493   3. What happened instead?
494         Thank you for helping to improve this mode.
496 How to create a useful backtrace
497 ................................
499 If working with Org-mode produces an error with a message you don't
500 understand, you may have hit a bug.  The best way to report this is by
501 providing, in addition to what was mentioned above, a _Backtrace_.
502 This is information from the built-in debugger about where and how the
503 error occurred.  Here is how to produce a useful backtrace:
505   1. Start a fresh Emacs or XEmacs, and make sure that it will load the
506      original Lisp code in `org.el' instead of the compiled version in
507      `org.elc'.  The backtrace contains much more information if it is
508      produced with uncompiled code.  To do this, either rename `org.elc'
509      to something else before starting Emacs, or ask Emacs explicitly
510      to load `org.el' by using the command line
511           emacs -l /path/to/org.el
513   2. Go to the `Options' menu and select `Enter Debugger on Error'
514      (XEmacs has this option in the `Troubleshooting' sub-menu).
516   3. Do whatever you have to do to hit the error.  Don't forget to
517      document the steps you take.
519   4. When you hit the error, a `*Backtrace*' buffer will appear on the
520      screen.  Save this buffer to a file (for example using `C-x C-w')
521      and attach it to your bug report.
523 \x1f
524 File: org,  Node: Conventions,  Prev: Feedback,  Up: Introduction
526 1.5 Typesetting conventions used in this manual
527 ===============================================
529 Org-mode has 3 types of keywords that are being used.  TODO keywords,
530 tags, and property names.  For this manual we are using the following
531 conventions:
533 `TODO'
534 `WAITING'
535      TODO keyword are written with all capitals, even if they are
536      user-defined.
538 `boss'
539 `ARCHIVE'
540      User-defined Tags are written in lowercase, built-in tags with
541      special meaning a all-caps.
543 `Release'
544 `PRIORITY'
545      User-defined properties are capitalized in all examples, while
546      built-in properties with special meaning are all-caps.
548 \x1f
549 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
551 2 Document Structure
552 ********************
554 Org-mode is based on outline mode and provides flexible commands to
555 edit the structure of the document.
557 * Menu:
559 * Outlines::                    Org-mode is based on outline-mode
560 * Headlines::                   How to typeset org-tree headlines
561 * Visibility cycling::          Show and hide, much simplified
562 * Motion::                      Jumping to other headlines
563 * Structure editing::           Changing sequence and level of headlines
564 * Archiving::                   Move done task trees to a different place
565 * Sparse trees::                Matches embedded in context
566 * Plain lists::                 Additional structure within an entry
567 * Drawers::                     Tucking stuff away
568 * orgstruct-mode::              Structure editing outside Org-mode
570 \x1f
571 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
573 2.1 Outlines
574 ============
576 Org-mode is implemented on top of outline-mode.  Outlines allow a
577 document to be organized in a hierarchical structure, which (at least
578 for me) is the best representation of notes and thoughts.  An overview
579 of this structure is achieved by folding (hiding) large parts of the
580 document to show only the general document structure and the parts
581 currently being worked on.  Org-mode greatly simplifies the use of
582 outlines by compressing the entire show/hide functionality into a single
583 command `org-cycle', which is bound to the <TAB> key.
585 \x1f
586 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
588 2.2 Headlines
589 =============
591 Headlines define the structure of an outline tree.  The headlines in
592 Org-mode start with one or more stars, on the left margin(1).  For
593 example:
595      * Top level headline
596      ** Second level
597      *** 3rd level
598          some text
599      *** 3rd level
600          more text
602      * Another top level headline
604 Some people find the many stars too noisy and would prefer an outline
605 that has whitespace followed by a single star as headline starters.
606 *Note Clean view:: describes a setup to realize this.
608    An empty line after the end of a subtree is considered part of it and
609 will be hidden when the subtree is folded.  However, if you leave at
610 least two empty lines, one empty line will remain visible after folding
611 the subtree, in order to structure the collapsed view.  See the
612 variable `org-cycle-separator-lines' to modify this behavior.
614    ---------- Footnotes ----------
616    (1) See the variable `org-special-ctrl-a/e' to configure special
617 behavior of `C-a' and `C-e' in headlines.
619 \x1f
620 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
622 2.3 Visibility cycling
623 ======================
625 Outlines make it possible to hide parts of the text in the buffer.
626 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
627 the visibility in the buffer.
629 `<TAB>'
630      _Subtree cycling_: Rotate current subtree among the states
632           ,-> FOLDED -> CHILDREN -> SUBTREE --.
633           '-----------------------------------'
635      The cursor must be on a headline for this to work(1).  When the
636      cursor is at the beginning of the buffer and the first line is not
637      a headline, then <TAB> actually runs global cycling (see
638      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
639      global cycling is invoked.
641 `S-<TAB>'
642 `C-u <TAB>'
643      _Global cycling_: Rotate the entire buffer among the states
645           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
646           '--------------------------------------'
648      When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
649      view up to headlines of level N will be shown.  Note that inside
650      tables, `S-<TAB>' jumps to the previous field.
652 `C-c C-a'
653      Show all.  
655 `C-c C-r'
656      Reveal context around point, showing the current entry, the
657      following heading and the hierarchy above.  Useful for working
658      near a location exposed by a sparse tree command (*note Sparse
659      trees::) or an agenda command (*note Agenda commands::).  With
660      prefix arg show, on each level, all sibling headings.  
662 `C-c C-x b'
663      Show the current subtree in an indirect buffer(3).  With numerical
664      prefix ARG, go up to this level and then take that tree.  If ARG is
665      negative, go up that many levels.  With `C-u' prefix, do not remove
666      the previously used indirect buffer.
668    When Emacs first visits an Org-mode file, the global state is set to
669 OVERVIEW, i.e. only the top level headlines are visible.  This can be
670 configured through the variable `org-startup-folded', or on a per-file
671 basis by adding one of the following lines anywhere in the buffer:
673      #+STARTUP: overview
674      #+STARTUP: content
675      #+STARTUP: showall
677    ---------- Footnotes ----------
679    (1) see, however, the option `org-cycle-emulate-tab'.
681    (2) see the option `org-cycle-global-at-bob'.
683    (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
684 Buffers.)  will contain the entire buffer, but will be narrowed to the
685 current tree.  Editing the indirect buffer will also change the
686 original buffer, but without affecting visibility in that buffer.
688 \x1f
689 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
691 2.4 Motion
692 ==========
694 The following commands jump to other headlines in the buffer.
696 `C-c C-n'
697      Next heading.  
699 `C-c C-p'
700      Previous heading.  
702 `C-c C-f'
703      Next heading same level.  
705 `C-c C-b'
706      Previous heading same level.  
708 `C-c C-u'
709      Backward to higher level heading.  
711 `C-c C-j'
712      Jump to a different place without changing the current outline
713      visibility.  Shows the document structure in a temporary buffer,
714      where you can use the following keys to find your destination:
715           <TAB>         Cycle visibility.
716           <down> / <up>   Next/previous visible headline.
717           n / p        Next/previous visible headline.
718           f / b        Next/previous headline same level.
719           u            One level up.
720           0-9          Digit argument.
721           <RET>         Select this location.
723 \x1f
724 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
726 2.5 Structure editing
727 =====================
729 `M-<RET>'
730      Insert new heading with same level as current.  If the cursor is
731      in a plain list item, a new item is created (*note Plain lists::).
732      To force creation of a new headline, use a prefix arg, or first
733      press <RET> to get to the beginning of the next line.  When this
734      command is used in the middle of a line, the line is split and the
735      rest of the line becomes the new headline.  If the command is used
736      at the beginning of a headline, the new headline is created before
737      the current line.  If at the beginning of any other line, the
738      content of that line is made the new heading.  If the command is
739      used at the end of a folded subtree (i.e. behind the ellipses at
740      the end of a headline), then a headline like the current one will
741      be inserted after the end of the subtree.  
743 `C-<RET>'
744      Insert a new heading after the current subtree, same level as the
745      current headline.  This command works from anywhere in the entry.  
747 `M-S-<RET>'
748      Insert new TODO entry with same level as current heading.  
750 `M-<left>'
751      Promote current heading by one level.  
753 `M-<right>'
754      Demote current heading by one level.  
756 `M-S-<left>'
757      Promote the current subtree by one level.  
759 `M-S-<right>'
760      Demote the current subtree by one level.  
762 `M-S-<up>'
763      Move subtree up (swap with previous subtree of same level).  
765 `M-S-<down>'
766      Move subtree down (swap with next subtree of same level).  
768 `C-c C-x C-w'
769 `C-c C-x C-k'
770      Kill subtree, i.e. remove it from buffer but save in kill ring.
771      With prefix arg, kill N sequential subtrees.  
773 `C-c C-x M-w'
774      Copy subtree to kill ring.  With prefix arg, copy N sequential
775      subtrees.  
777 `C-c C-x C-y'
778      Yank subtree from kill ring.  This does modify the level of the
779      subtree to make sure the tree fits in nicely at the yank position.
780      The yank level can also be specified with a prefix arg, or by
781      yanking after a headline marker like `****'.  
783 `C-c C-w'
784      Refile entry to a different location.  *Note Refiling notes::.  
786 `C-c ^'
787      Sort same-level entries.  When there is an active region, all
788      entries in the region will be sorted.  Otherwise the children of
789      the current headline are sorted.  The command prompts for the
790      sorting method, which can be alphabetically, numerically, by time
791      (using the first time stamp in each entry), by priority, and each
792      of these in reverse order.  You can also supply your own function
793      to extract the sorting key.  With a `C-u' prefix, sorting will be
794      case-sensitive.  With two `C-u C-u' prefixes, duplicate entries
795      will also be removed.
797    When there is an active region (transient-mark-mode), promotion and
798 demotion work on all headlines in the region.  To select a region of
799 headlines, it is best to place both point and mark at the beginning of a
800 line, mark at the beginning of the first headline, and point at the line
801 just after the last headline to change.  Note that when the cursor is
802 inside a table (*note Tables::), the Meta-Cursor keys have different
803 functionality.
805 \x1f
806 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
808 2.6 Archiving
809 =============
811 When a project represented by a (sub)tree is finished, you may want to
812 move the tree out of the way and to stop it from contributing to the
813 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
814 the ARCHIVE tag, or you can move an entire (sub)tree to a different
815 location.
817 * Menu:
819 * ARCHIVE tag::                 Marking a tree as inactive
820 * Moving subtrees::             Moving a tree to an archive file
822 \x1f
823 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
825 2.6.1 The ARCHIVE tag
826 ---------------------
828 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
829 its location in the outline tree, but behaves in the following way:
830    - It does not open when you attempt to do so with a visibility
831      cycling command (*note Visibility cycling::).  You can force
832      cycling archived subtrees with `C-<TAB>', or by setting the option
833      `org-cycle-open-archived-trees'.  Also normal outline commands like
834      `show-all' will open archived subtrees.
836    - During sparse tree construction (*note Sparse trees::), matches in
837      archived subtrees are not exposed, unless you configure the option
838      `org-sparse-tree-open-archived-trees'.
840    - During agenda view construction (*note Agenda views::), the
841      content of archived trees is ignored unless you configure the
842      option `org-agenda-skip-archived-trees'.
844    - Archived trees are not exported (*note Exporting::), only the
845      headline is.  Configure the details using the variable
846      `org-export-with-archived-trees'.
848    The following commands help managing the ARCHIVE tag:
850 `C-c C-x C-a'
851      Toggle the ARCHIVE tag for the current headline.  When the tag is
852      set, the headline changes to a shadowish face, and the subtree
853      below it is hidden.  
855 `C-u C-c C-x C-a'
856      Check if any direct children of the current headline should be
857      archived.  To do this, each subtree is checked for open TODO
858      entries.  If none are found, the command offers to set the ARCHIVE
859      tag for the child.  If the cursor is _not_ on a headline when this
860      command is invoked, the level 1 trees will be checked.  
862 `C-TAB'
863      Cycle a tree even if it is tagged with ARCHIVE.
865 \x1f
866 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
868 2.6.2 Moving subtrees
869 ---------------------
871 Once an entire project is finished, you may want to move it to a
872 different location, either in the current file, or even in a different
873 file, the archive file.
875 `C-c C-x C-s'
876      Archive the subtree starting at the cursor position to the location
877      given by `org-archive-location'.  Context information that could be
878      lost like the file name, the category, inherited tags, and the todo
879      state will be store as properties in the entry.  
881 `C-u C-c C-x C-s'
882      Check if any direct children of the current headline could be
883      moved to the archive.  To do this, each subtree is checked for
884      open TODO entries.  If none are found, the command offers to move
885      it to the archive location.  If the cursor is _not_ on a headline
886      when this command is invoked, the level 1 trees will be checked.
888    The default archive location is a file in the same directory as the
889 current file, with the name derived by appending `_archive' to the
890 current file name.  For information and examples on how to change this,
891 see the documentation string of the variable `org-archive-location'.
892 There is also an in-buffer option for setting this variable, for
893 example(1):
895      #+ARCHIVE: %s_done::
897 If you would like to have a special ARCHIVE location for a single entry
898 or a (sub)tree, give the entry an `:ARCHIVE:' property with the
899 location as the value (*note Properties and columns::).
901    ---------- Footnotes ----------
903    (1) For backward compatibility, the following also works: If there
904 are several such lines in a file, each specifies the archive location
905 for the text below it.  The first such line also applies to any text
906 before its definition.  However, using this method is _strongly_
907 deprecated as it is incompatible with the outline structure of the
908 document.  The correct method for setting multiple archive locations in
909 a buffer is using a property.
911 \x1f
912 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
914 2.7 Sparse trees
915 ================
917 An important feature of Org-mode is the ability to construct _sparse
918 trees_ for selected information in an outline tree.  A sparse tree
919 means that the entire document is folded as much as possible, but the
920 selected information is made visible along with the headline structure
921 above it(1).  Just try it out and you will see immediately how it works.
923    Org-mode contains several commands creating such trees, all these
924 commands can be accessed through a dispatcher:
926 `C-c /'
927      This prompts for an extra key to select a sparse-tree creating
928      command.  
930 `C-c / r'
931      Occur.  Prompts for a regexp and shows a sparse tree with all
932      matches.  If the match is in a headline, the headline is made
933      visible.  If the match is in the body of an entry, headline and
934      body are made visible.  In order to provide minimal context, also
935      the full hierarchy of headlines above the match is shown, as well
936      as the headline following the match.  Each match is also
937      highlighted; the highlights disappear when the buffer is changed
938      by an editing command, or by pressing `C-c C-c'.  When called with
939      a `C-u' prefix argument, previous highlights are kept, so several
940      calls to this command can be stacked.
941    For frequently used sparse trees of specific search strings, you can
942 use the variable `org-agenda-custom-commands' to define fast keyboard
943 access to specific sparse trees.  These commands will then be
944 accessible through the agenda dispatcher (*note Agenda dispatcher::).
945 For example:
947      (setq org-agenda-custom-commands
948            '(("f" occur-tree "FIXME")))
950 will define the key `C-c a f' as a shortcut for creating a sparse tree
951 matching the string `FIXME'.
953    The other sparse tree commands select headings based on TODO
954 keywords, tags, or properties and will be discussed later in this
955 manual.
957    To print a sparse tree, you can use the Emacs command
958 `ps-print-buffer-with-faces' which does not print invisible parts of
959 the document (2).  Or you can use the command `C-c C-e v' to export
960 only the visible part of the document and print the resulting file.
962    ---------- Footnotes ----------
964    (1) See also the variables `org-show-hierarchy-above',
965 `org-show-following-heading', and `org-show-siblings' for detailed
966 control on how much context is shown around each match.
968    (2) This does not work under XEmacs, because XEmacs uses selective
969 display for outlining, not text properties.
971 \x1f
972 File: org,  Node: Plain lists,  Next: Drawers,  Prev: Sparse trees,  Up: Document structure
974 2.8 Plain lists
975 ===============
977 Within an entry of the outline tree, hand-formatted lists can provide
978 additional structure.  They also provide a way to create lists of
979 checkboxes (*note Checkboxes::).  Org-mode supports editing such lists,
980 and the HTML exporter (*note Exporting::) does parse and format them.
982    Org-mode knows ordered and unordered lists.  Unordered list items
983 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
984 with `1.' or `1)'.  Items belonging to the same list must have the same
985 indentation on the first line.  In particular, if an ordered list
986 reaches number `10.', then the 2-digit numbers must be written
987 left-aligned with the other numbers in the list.  Indentation also
988 determines the end of a list item.  It ends before the next line that
989 is indented like the bullet/number, or less.  Empty lines are part of
990 the previous item, so you can have several paragraphs in one item.  If
991 you would like an empty line to terminate all currently open plain
992 lists, configure the variable `org-empty-line-terminates-plain-lists'.
993 Here is an example:
995      ** Lord of the Rings
996         My favorite scenes are (in this order)
997         1. The attack of the Rohirrim
998         2. Eowyns fight with the witch king
999            + this was already my favorite scene in the book
1000            + I really like Miranda Otto.
1001         3. Peter Jackson being shot by Legolas
1002             - on DVD only
1003            He makes a really funny face when it happens.
1004         But in the end, not individual scenes matter but the film as a whole.
1006    Org-mode supports these lists by tuning filling and wrapping
1007 commands to deal with them correctly(2).
1009    The following commands act on items when the cursor is in the first
1010 line of an item (the line with the bullet or number).
1012 `<TAB>'
1013      Items can be folded just like headline levels if you set the
1014      variable `org-cycle-include-plain-lists'.  The level of an item is
1015      then given by the indentation of the bullet/number.  Items are
1016      always subordinate to real headlines, however; the hierarchies
1017      remain completely separated.
1019      If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
1020      the indentation of the curent line in a heuristic way.  
1022 `M-<RET>'
1023      Insert new item at current level.  With prefix arg, force a new
1024      heading (*note Structure editing::).  If this command is used in
1025      the middle of a line, the line is _split_ and the rest of the line
1026      becomes the new item.  If this command is executed in the
1027      _whitespace before a bullet or number_, the new item is created
1028      _before_ the current item.  If the command is executed in the
1029      white space before the text that is part of an item but does not
1030      contain the bullet, a bullet is added to the current line.  
1032 `M-S-<RET>'
1033      Insert a new item with a checkbox (*note Checkboxes::).  
1035 `S-<up>'
1036 `S-<down>'
1037      Jump to the previous/next item in the current list.  
1039 `M-S-<up>'
1040 `M-S-<down>'
1041      Move the item including subitems up/down (swap with previous/next
1042      item of same indentation).  If the list is ordered, renumbering is
1043      automatic.  
1045 `M-S-<left>'
1046 `M-S-<right>'
1047      Decrease/increase the indentation of the item, including subitems.
1048      Initially, the item tree is selected based on current indentation.
1049      When these commands are executed several times in direct
1050      succession, the initially selected region is used, even if the new
1051      indentation would imply a different hierarchy.  To use the new
1052      hierarchy, break the command chain with a cursor motion or so.  
1054 `C-c C-c'
1055      If there is a checkbox (*note Checkboxes::) in the item line,
1056      toggle the state of the checkbox.  If not, make this command makes
1057      sure that all the items on this list level use the same bullet.
1058      Furthermore, if this is an ordered list, make sure the numbering
1059      is ok.  
1061 `C-c -'
1062      Cycle the entire list level through the different itemize/enumerate
1063      bullets (`-', `+', `*', `1.', `1)').  With prefix arg, select the
1064      nth bullet from this list.
1066    ---------- Footnotes ----------
1068    (1) When using `*' as a bullet, lines must be indented or they will
1069 be seen as top-level headlines.  Also, when you are hiding leading
1070 stars to get a clean outline view, plain list items starting with a
1071 star are visually indistinguishable from true headlines.  In short:
1072 even though `*' is supported, it may be better not to use it for plain
1073 list items.
1075    (2) Org-mode only changes the filling settings for Emacs.  For
1076 XEmacs, you should use Kyle E. Jones' `filladapt.el'.  To turn this on,
1077 put into `.emacs': `(require 'filladapt)'
1079 \x1f
1080 File: org,  Node: Drawers,  Next: orgstruct-mode,  Prev: Plain lists,  Up: Document structure
1082 2.9 Drawers
1083 ===========
1085 Sometimes you want to keep information associated with an entry, but you
1086 normally don't want to see it.  For this, Org-mode has _drawers_.
1087 Drawers need to be configured with the variable `org-drawers'(1), and
1088 look like this:
1090      ** This is a headline
1091         Still outside the drawer
1092         :DRAWERNAME:
1093            This is inside the drawer.
1094         :END:
1095         After the drawer.
1097    Visibility cycling (*note Visibility cycling::) on the headline will
1098 hide and show the entry, but keep the drawer collapsed to a single line.
1099 In order to look inside the drawer, you need to move the cursor to the
1100 drawer line and press <TAB> there.  Org-mode uses a drawer for storing
1101 properties (*note Properties and columns::).
1103    ---------- Footnotes ----------
1105    (1) You can define drawers on a per-file basis with a line like
1106 `#+DRAWERS: HIDDEN PROPPERTIES STATE'
1108 \x1f
1109 File: org,  Node: orgstruct-mode,  Prev: Drawers,  Up: Document structure
1111 2.10 The Orgstruct minor mode
1112 =============================
1114 If you like the intuitive way the Org-mode structure editing and list
1115 formatting works, you might want to use these commands in other modes
1116 like text-mode or mail-mode as well.  The minor mode Orgstruct-mode
1117 makes this possible.  You can always toggle the mode with `M-x
1118 orgstruct-mode'.  To turn it on by default, for example in mail mode,
1121      (add-hook 'mail-mode-hook 'turn-on-orgstruct)
1123    When this mode is active and the cursor is on a line that looks to
1124 Org-mode like a headline of the first line of a list item, most
1125 structure editing commands will work, even if the same keys normally
1126 have different functionality in the major mode you are using.  If the
1127 cursor is not in one of those special lines, Orgstruct-mode lurks
1128 silently in the shadow.
1130 \x1f
1131 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
1133 3 Tables
1134 ********
1136 Org-mode has a very fast and intuitive table editor built-in.
1137 Spreadsheet-like calculations are supported in connection with the
1138 Emacs `calc' package.
1140 * Menu:
1142 * Built-in table editor::       Simple tables
1143 * Narrow columns::              Stop wasting space in tables
1144 * Column groups::               Grouping to trigger vertical lines
1145 * orgtbl-mode::                 The table editor as minor mode
1146 * The spreadsheet::             The table editor has spreadsheet capabilities.
1148 \x1f
1149 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
1151 3.1 The built-in table editor
1152 =============================
1154 Org-mode makes it easy to format tables in plain ASCII.  Any line with
1155 `|' as the first non-whitespace character is considered part of a
1156 table.  `|' is also the column separator.  A table might look like this:
1158      | Name  | Phone | Age |
1159      |-------+-------+-----|
1160      | Peter |  1234 |  17 |
1161      | Anna  |  4321 |  25 |
1163    A table is re-aligned automatically each time you press <TAB> or
1164 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
1165 field (<RET> to the next row) and creates new table rows at the end of
1166 the table or before horizontal lines.  The indentation of the table is
1167 set by the first line.  Any line starting with `|-' is considered as a
1168 horizontal separator line and will be expanded on the next re-align to
1169 span the whole table width.  So, to create the above table, you would
1170 only type
1172      |Name|Phone|Age|
1173      |-
1175 and then press <TAB> to align the table and start filling in fields.
1177    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
1178 and all character keys in a special way, so that inserting and deleting
1179 avoids shifting other fields.  Also, when typing _immediately after the
1180 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
1181 the field is automatically made blank.  If this behavior is too
1182 unpredictable for you, configure the variables
1183 `org-enable-table-editor' and `org-table-auto-blank-field'.
1185 Creation and conversion
1186 .......................
1188 `C-c |'
1189      Convert the active region to table. If every line contains at
1190      least one TAB character, the function assumes that the material is
1191      tab separated.  If every line contains a comma, comma-separated
1192      values (CSV) are assumed.  If not, lines are split at whitespace
1193      into fields.  You can use a prefix argument to force a specific
1194      separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
1195      argument N indicates that at least N consequtive spaces, or
1196      alternatively a TAB will be the separator.
1197      If there is no active region, this command creates an empty
1198      Org-mode table.  But it's easier just to start typing, like
1199      `|Name|Phone|Age <RET> |- <TAB>'.
1201 Re-aligning and field motion
1202 ............................
1204 `C-c C-c'
1205      Re-align the table without moving the cursor.  
1207 `<TAB>'
1208      Re-align the table, move to the next field.  Creates a new row if
1209      necessary.  
1211 `S-<TAB>'
1212      Re-align, move to previous field.  
1214 `<RET>'
1215      Re-align the table and move down to next row.  Creates a new row if
1216      necessary.  At the beginning or end of a line, <RET> still does
1217      NEWLINE, so it can be used to split a table.
1219 Column and row editing
1220 ......................
1222 `M-<left>'
1223 `M-<right>'
1224      Move the current column left/right.  
1226 `M-S-<left>'
1227      Kill the current column.  
1229 `M-S-<right>'
1230      Insert a new column to the left of the cursor position.  
1232 `M-<up>'
1233 `M-<down>'
1234      Move the current row up/down.  
1236 `M-S-<up>'
1237      Kill the current row or horizontal line.  
1239 `M-S-<down>'
1240      Insert a new row above (with arg: below) the current row.  
1242 `C-c -'
1243      Insert a horizontal line below current row. With prefix arg, the
1244      line is created above the current line.  
1246 `C-c ^'
1247      Sort the table lines in the region.  The position of point
1248      indicates the column to be used for sorting, and the range of
1249      lines is the range between the nearest horizontal separator lines,
1250      or the entire table.  If point is before the first column, you
1251      will be prompted for the sorting column.  If there is an active
1252      region, the mark specifies the first line and the sorting column,
1253      while point should be in the last line to be included into the
1254      sorting.  The command prompts for the sorting type
1255      (alphabetically, numerically, or by time).  When called with a
1256      prefix argument, alphabetic sorting will be case-sensitive.
1258 Regions
1259 .......
1261 `C-c C-x M-w'
1262      Copy a rectangular region from a table to a special clipboard.
1263      Point and mark determine edge fields of the rectangle.  The
1264      process ignores horizontal separator lines.  
1266 `C-c C-x C-w'
1267      Copy a rectangular region from a table to a special clipboard, and
1268      blank all fields in the rectangle.  So this is the "cut" operation.  
1270 `C-c C-x C-y'
1271      Paste a rectangular region into a table.  The upper right corner
1272      ends up in the current field.  All involved fields will be
1273      overwritten.  If the rectangle does not fit into the present table,
1274      the table is enlarged as needed.  The process ignores horizontal
1275      separator lines.  
1277 `C-c C-q'
1278      Wrap several fields in a column like a paragraph.  If there is an
1279      active region, and both point and mark are in the same column, the
1280      text in the column is wrapped to minimum width for the given
1281      number of lines.  A prefix ARG may be used to change the number of
1282      desired lines.  If there is no region, the current field is split
1283      at the cursor position and the text fragment to the right of the
1284      cursor is prepended to the field one line down. If there is no
1285      region, but you specify a prefix ARG, the current field is made
1286      blank, and the content is appended to the field above.
1288 Calculations
1289 ............
1291 `C-c +'
1292      Sum the numbers in the current column, or in the rectangle defined
1293      by the active region.  The result is shown in the echo area and can
1294      be inserted with `C-y'.  
1296 `S-<RET>'
1297      When current field is empty, copy from first non-empty field above.
1298      When not empty, copy current field down to next row and move cursor
1299      along with it.  Depending on the variable
1300      `org-table-copy-increment', integer field values will be
1301      incremented during copy.  This key is also used by CUA-mode (*note
1302      Cooperation::).
1304 Miscellaneous
1305 .............
1307 `C-c `'
1308      Edit the current field in a separate window.  This is useful for
1309      fields that are not fully visible (*note Narrow columns::).  When
1310      called with a `C-u' prefix, just make the full field visible, so
1311      that it can be edited in place.  
1313 `C-c <TAB>'
1314      This is an alias for `C-u C-c `' to make the current field fully
1315      visible.
1317 `M-x org-table-import'
1318      Import a file as a table.  The table should be TAB- or whitespace
1319      separated.  Useful, for example, to import a spreadsheet table or
1320      data from a database, because these programs generally can write
1321      TAB-separated text files.  This command works by inserting the
1322      file into the buffer and then converting the region to a table.
1323      Any prefix argument is passed on to the converter, which uses it
1324      to determine the separator.
1326 `C-c |'
1327      Tables can also be imported by pasting tabular text into the
1328      org-mode buffer, selecting the pasted text with `C-x C-x' and then
1329      using the `C-c |' command (see above under Creation and conversion.
1331 `M-x org-table-export'
1332      Export the table as a TAB-separated file.  Useful for data
1333      exchange with, for example, spreadsheet or database programs.
1335    If you don't like the automatic table editor because it gets in your
1336 way on lines which you would like to start with `|', you can turn it
1337 off with
1339      (setq org-enable-table-editor nil)
1341 Then the only table command that still works is `C-c C-c' to do a
1342 manual re-align.
1344 \x1f
1345 File: org,  Node: Narrow columns,  Next: Column groups,  Prev: Built-in table editor,  Up: Tables
1347 3.2 Narrow columns
1348 ==================
1350 The width of columns is automatically determined by the table editor.
1351 Sometimes a single field or a few fields need to carry more text,
1352 leading to inconveniently wide columns.  To limit(1) the width of a
1353 column, one field anywhere in the column may contain just the string
1354 `<N>' where `N' is an integer specifying the width of the column in
1355 characters.  The next re-align will then set the width of this column
1356 to no more than this value.
1358      |---+------------------------------|               |---+--------|
1359      |   |                              |               |   | <6>    |
1360      | 1 | one                          |               | 1 | one    |
1361      | 2 | two                          |     ----\     | 2 | two    |
1362      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1363      | 4 | four                         |               | 4 | four   |
1364      |---+------------------------------|               |---+--------|
1366 Fields that are wider become clipped and end in the string `=>'.  Note
1367 that the full text is still in the buffer, it is only invisible.  To
1368 see the full text, hold the mouse over the field - a tool-tip window
1369 will show the full content.  To edit such a field, use the command `C-c
1370 `' (that is `C-c' followed by the backquote).  This will open a new
1371 window with the full field.  Edit it and finish with `C-c C-c'.
1373    When visiting a file containing a table with narrowed columns, the
1374 necessary character hiding has not yet happened, and the table needs to
1375 be aligned before it looks nice.  Setting the option
1376 `org-startup-align-all-tables' will realign all tables in a file upon
1377 visiting, but also slow down startup.  You can also set this option on
1378 a per-file basis with:
1380      #+STARTUP: align
1381      #+STARTUP: noalign
1383    ---------- Footnotes ----------
1385    (1) This feature does not work on XEmacs.
1387 \x1f
1388 File: org,  Node: Column groups,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1390 3.3 Column groups
1391 =================
1393 When Org-mode exports tables, it does so by default without vertical
1394 lines because that is visually more satisfying in general.  Occasionally
1395 however, vertical lines can be useful to structure a table into groups
1396 of columns, much like horizontal lines can do for groups of rows.  In
1397 order to specify column groups, you can use a special row where the
1398 first field contains only `/'.  The further fields can either contain
1399 `<' to indicate that this column should start a group, `>' to indicate
1400 the end of a column, or `<>' to make a column a group of its own.
1401 Boundaries between colum groups will upon export be marked with
1402 vertical lines.  Here is an example:
1404      |   |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1405      |---+----+-----+-----+-----+---------+------------|
1406      | / | <> |   < |     |   > |       < |          > |
1407      | # |  1 |   1 |   1 |   1 |       1 |          1 |
1408      | # |  2 |   4 |   8 |  16 |  1.4142 |     1.1892 |
1409      | # |  3 |   9 |  27 |  81 |  1.7321 |     1.3161 |
1410      |---+----+-----+-----+-----+---------+------------|
1411      #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
1413    It is also sufficient to just insert the colum group starters after
1414 every vertical line you'd like to have:
1416      |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1417      |----+-----+-----+-----+---------+------------|
1418      | /  | <   |     |     | <       |            |
1420 \x1f
1421 File: org,  Node: orgtbl-mode,  Next: The spreadsheet,  Prev: Column groups,  Up: Tables
1423 3.4 The Orgtbl minor mode
1424 =========================
1426 If you like the intuitive way the Org-mode table editor works, you
1427 might also want to use it in other modes like text-mode or mail-mode.
1428 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1429 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1430 in mail mode, use
1432      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1434    Furthermore, with some special setup, it is possible to maintain
1435 tables in arbitrary syntax with Orgtbl-mode.  For example, it is
1436 possible to construct LaTeX tables with the underlying ease and power of
1437 Orgtbl-mode, including spreadsheet capabilities.  For details, see
1438 *Note Tables in arbitrary syntax::.
1440 \x1f
1441 File: org,  Node: The spreadsheet,  Prev: orgtbl-mode,  Up: Tables
1443 3.5 The spreadsheet
1444 ===================
1446 The table editor makes use of the Emacs `calc' package to implement
1447 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1448 derive fields from other fields.  While fully featured, Org-mode's
1449 implementation is not identical to other spreadsheets.  For example,
1450 Org-mode knows the concept of a _column formula_ that will be applied
1451 to all non-header fields in a column without having to copy the formula
1452 to each relevant field.
1454 * Menu:
1456 * References::                  How to refer to another field or range
1457 * Formula syntax for Calc::     Using Calc to compute stuff
1458 * Formula syntax for Lisp::     Writing formulas in Emacs Lisp
1459 * Field formulas::              Formulas valid for a single field
1460 * Column formulas::             Formulas valid for an entire column
1461 * Editing and debugging formulas::  Fixing formulas
1462 * Updating the table::          Recomputing all dependent fields
1463 * Advanced features::           Field names, parameters and automatic recalc
1465 \x1f
1466 File: org,  Node: References,  Next: Formula syntax for Calc,  Prev: The spreadsheet,  Up: The spreadsheet
1468 3.5.1 References
1469 ----------------
1471 To compute fields in the table from other fields, formulas must
1472 reference other fields or ranges.  In Org-mode, fields can be referenced
1473 by name, by absolute coordinates, and by relative coordinates.  To find
1474 out what the coordinates of a field are, press `C-c ?' in that field,
1475 or press `C-c }' to toggle the display of a grid.
1477 Field references
1478 ................
1480 Formulas can reference the value of another field in two ways.  Like in
1481 any other spreadsheet, you may reference fields with a letter/number
1482 combination like `B3', meaning the 2nd field in the 3rd row.
1484 Org-mode also uses another, more general operator that looks like this:
1485      @row$column
1487 Column references can be absolute like `1', `2',...`N', or relative to
1488 the current column like `+1' or `-2'.
1490    The row specification only counts data lines and ignores horizontal
1491 separator lines (hlines).  You can use absolute row numbers `1'...`N',
1492 and row numbers relative to the current row like `+3' or `-1'.  Or
1493 specify the row relative to one of the hlines: `I' refers to the first
1494 hline(1), `II' to the second etc.  `-I' refers to the first such line
1495 above the current line, `+I' to the first such line below the current
1496 line.  You can also write `III+2' which is the second data line after
1497 the third hline in the table.  Relative row numbers like `-3' will not
1498 cross hlines if the current line is too close to the hline.  Instead,
1499 the value directly at the hline is used.
1501    `0' refers to the current row and column.  Also, if you omit either
1502 the column or the row part of the reference, the current row/column is
1503 implied.
1505    Org-mode's references with _unsigned_ numbers are fixed references
1506 in the sense that if you use the same reference in the formula for two
1507 different fields, the same field will be referenced each time.
1508 Org-mode's references with _signed_ numbers are floating references
1509 because the same reference operator can reference different fields
1510 depending on the field being calculated by the formula.
1512    Here are a few examples:
1514      @2$3      2nd row, 3rd column
1515      C2        same as previous
1516      $5        column 5 in the current row
1517      E&        same as previous
1518      @2        current column, row 2
1519      @-1$-3    the field one row up, three columns to the left
1520      @-I$2     field just under hline above current row, column 2
1522 Range references
1523 ................
1525 You may reference a rectangular range of fields by specifying two field
1526 references connected by two dots `..'.  If both fields are in the
1527 current row, you may simply use `$2..$7', but if at least one field is
1528 in a different row, you need to use the general `@row$column' format at
1529 least for the first field (i.e the reference must start with `@' in
1530 order to be interpreted correctly).  Examples:
1532      $1..$3        First three fields in the current row.
1533      $P..$Q        Range, using column names (see under Advanced)
1534      @2$1..@4$3    6 fields between these two fields.
1535      A2..C4        Same as above.
1536      @-1$-2..@-1   3 numbers from the column to the left, 2 up to current row
1538 Range references return a vector of values that can be fed into Calc
1539 vector functions.  Empty fields in ranges are normally suppressed, so
1540 that the vector contains only the non-empty fields (but see the `E'
1541 mode switch below).  If there are no non-empty fields, `[0]' is
1542 returned to avoid syntax errors in formulas.
1544 Named references
1545 ................
1547 `$name' is interpreted as the name of a column, parameter or constant.
1548 Constants are defined globally through the variable
1549 `org-table-formula-constants', and locally (for the file) through a
1550 line like
1552      #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
1554 Also properties (*note Properties and columns::) can be used as
1555 constants in table formulas: For a property `:XYZ:' use the name
1556 `$PROP_XYZ', and the property will be searched in the current outline
1557 entry and in the hierarchy above it.  If you have the `constants.el'
1558 package, it will also be used to resolve constants, including natural
1559 constants like `$h' for Planck's constant, and units like `$km' for
1560 kilometers(2).  Column names and parameters can be specified in special
1561 table lines.  These are described below, see *Note Advanced features::.
1562 All names must start with a letter, and further consist of letters and
1563 numbers.
1565    ---------- Footnotes ----------
1567    (1) Note that only hlines are counted that _separate_ table lines.
1568 If the table starts with a hline above the header, it does not count.
1570    (2) `Constant.el' can supply the values of constants in two
1571 different unit systems, `SI' and `cgs'.  Which one is used depends on
1572 the value of the variable `constants-unit-system'.  You can use the
1573 `#+STARTUP' options `constSI' and `constcgs' to set this value for the
1574 current buffer.
1576 \x1f
1577 File: org,  Node: Formula syntax for Calc,  Next: Formula syntax for Lisp,  Prev: References,  Up: The spreadsheet
1579 3.5.2 Formula syntax for Calc
1580 -----------------------------
1582 A formula can be any algebraic expression understood by the Emacs
1583 `Calc' package.  Note that `calc' has the non-standard convention that
1584 `/' has lower precedence than `*', so that `a/b*c' is interpreted as
1585 `a/(b*c)'.  Before evaluation by `calc-eval' (*note calc-eval:
1586 (calc)Calling Calc from Your Programs.), variable substitution takes
1587 place according to the rules described above.  The range vectors can be
1588 directly fed into the calc vector functions like `vmean' and `vsum'.
1590    A formula can contain an optional mode string after a semicolon.
1591 This string consists of flags to influence Calc and other modes during
1592 execution.  By default, Org-mode uses the standard calc modes (precision
1593 12, angular units degrees, fraction and symbolic modes off.  The display
1594 format, however, has been changed to `(float 5)' to keep tables
1595 compact.  The default settings can be configured using the variable
1596 `org-calc-default-modes'.
1598      p20           switch the internal precision to 20 digits
1599      n3 s3 e2 f4   normal, scientific, engineering, or fixed display format
1600      D R           angle modes: degrees, radians
1601      F S           fraction and symbolic modes
1602      N             interpret all fields as numbers, use 0 for non-numbers
1603      T             force text interpretation
1604      E             keep empty fields in ranges
1606 In addition, you may provide a `printf' format specifier to reformat
1607 the final result.  A few examples:
1609      $1+$2                Sum of first and second field
1610      $1+$2;%.2f           Same, format result to two decimals
1611      exp($2)+exp($1)      Math functions can be used
1612      $0;%.1f              Reformat current cell to 1 decimal
1613      ($3-32)*5/9          Degrees F -> C conversion
1614      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1615      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1616      sin($1);Dp3%.1e      Same, but use printf specifier for display
1617      vmean($2..$7)        Compute column range mean, using vector function
1618      vmean($2..$7);EN     Same, but treat empty fields as 0
1619      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1621    Calc also contains a complete set of logical operations.  For example
1623      if($1<20,teen,string(""))  "teen" if age $1 less than 20, else empty
1625 \x1f
1626 File: org,  Node: Formula syntax for Lisp,  Next: Field formulas,  Prev: Formula syntax for Calc,  Up: The spreadsheet
1628 3.5.3 Emacs Lisp forms as formulas
1629 ----------------------------------
1631 It is also possible to write a formula in Emacs Lisp; this can be useful
1632 for string manipulation and control structures, if the Calc's
1633 functionality is not enough.  If a formula starts with a single quote
1634 followed by an opening parenthesis, then it is evaluated as a lisp form.
1635 The evaluation should return either a string or a number.  Just as with
1636 `calc' formulas, you can specify modes and a printf format after a
1637 semicolon.  With Emacs Lisp forms, you need to be concious about the way
1638 field references are interpolated into the form.  By default, a
1639 reference will be interpolated as a Lisp string (in double quotes)
1640 containing the field.  If you provide the `N' mode switch, all
1641 referenced elements will be numbers (non-number fields will be zero) and
1642 interpolated as Lisp numbers, without quotes.  If you provide the `L'
1643 flag, all fields will be interpolated literally, without quotes.  I.e.,
1644 if you want a reference to be interpreted as a string by the Lisp form,
1645 enclode the reference operator itself in double quotes, like `"$3"'.
1646 Ranges are inserted as space-separated fields, so you can embed them in
1647 list or vector syntax.  A few examples, note how the `N' mode is used
1648 when we do computations in lisp.
1650      Swap the first two characters of the content of column 1
1651        '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
1652      Add columns 1 and 2, equivalent to the Calc's `$1+$2'
1653        '(+ $1 $2);N
1654      Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
1655        '(apply '+ '($1..$4));N
1657 \x1f
1658 File: org,  Node: Field formulas,  Next: Column formulas,  Prev: Formula syntax for Lisp,  Up: The spreadsheet
1660 3.5.4 Field formulas
1661 --------------------
1663 To assign a formula to a particular field, type it directly into the
1664 field, preceded by `:=', for example `:=$1+$2'.  When you press <TAB>
1665 or <RET> or `C-c C-c' with the cursor still in the field, the formula
1666 will be stored as the formula for this field, evaluated, and the
1667 current field replaced with the result.
1669    Formulas are stored in a special line starting with `#+TBLFM:'
1670 directly below the table.  If you typed the equation in the 4th field of
1671 the 3rd data line in the table, the formula will look like
1672 `@3$4=$1+$2'.  When inserting/deleting/swapping column and rows with
1673 the appropriate commands, absolute references (but not relative ones)
1674 in stored formulas are modified in order to still reference the same
1675 field.  Of cause this is not true if you edit the table structure with
1676 normal editing commands - then you must fix the equations yourself.
1678    Instead of typing an equation into the field, you may also use the
1679 following command
1681 `C-u C-c ='
1682      Install a new formula for the current field.  The command prompts
1683      for a formula, with default taken from the `#+TBLFM:' line, applies
1684      it to the current field and stores it.
1686 \x1f
1687 File: org,  Node: Column formulas,  Next: Editing and debugging formulas,  Prev: Field formulas,  Up: The spreadsheet
1689 3.5.5 Column formulas
1690 ---------------------
1692 Often in a table, the same formula should be used for all fields in a
1693 particular column.  Instead of having to copy the formula to all fields
1694 in that column, org-mode allows to assign a single formula to an entire
1695 column.  If the table contains horizontal separator hlines, everything
1696 before the first such line is considered part of the table _header_ and
1697 will not be modified by column formulas.
1699    To assign a formula to a column, type it directly into any field in
1700 the column, preceded by an equal sign, like `=$1+$2'.  When you press
1701 <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
1702 formula will be stored as the formula for the current column, evaluated
1703 and the current field replaced with the result.  If the field contains
1704 only `=', the previously stored formula for this column is used.  For
1705 each column, Org-mode will only remember the most recently used
1706 formula.  In the `TBLFM:' line, column formulas will look like
1707 `$4=$1+$2'.
1709    Instead of typing an equation into the field, you may also use the
1710 following command:
1712 `C-c ='
1713      Install a new formula for the current column and replace current
1714      field with the result of the formula.  The command prompts for a
1715      formula, with default taken from the `#+TBLFM' line, applies it to
1716      the current field and stores it.  With a numerical prefix (e.g.
1717      `C-5 C-c =') will apply it to that many consecutive fields in the
1718      current column.
1720 \x1f
1721 File: org,  Node: Editing and debugging formulas,  Next: Updating the table,  Prev: Column formulas,  Up: The spreadsheet
1723 3.5.6 Editing and Debugging formulas
1724 ------------------------------------
1726 You can edit individual formulas in the minibuffer or directly in the
1727 field.  Org-mode can also prepare a special buffer with all active
1728 formulas of a table.  When offering a formula for editing, Org-mode
1729 converts references to the standard format (like `B3' or `D&') if
1730 possible.  If you prefer to only work with the internal format (like
1731 `@3$2' or `$4'), configure the variable
1732 `org-table-use-standard-references'.
1734 `C-c ='
1735 `C-u C-c ='
1736      Edit the formula associated with the current column/field in the
1737      minibuffer.  See *Note Column formulas:: and *Note Field
1738      formulas::.  
1740 `C-u C-u C-c ='
1741      Re-insert the active formula (either a field formula, or a column
1742      formula) into the current field, so that you can edit it directly
1743      in the field.  The advantage over editing in the minibuffer is
1744      that you can use the command `C-c ?'.  
1746 `C-c ?'
1747      While editing a formula in a table field, highlight the field(s)
1748      referenced by the reference at the cursor position in the formula.  
1750 `C-c }'
1751      Toggle the display of row and column numbers for a table, using
1752      overlays.  These are updated each time the table is aligned, you
1753      can force it with `C-c C-c'.  
1755 `C-c {'
1756      Toggle the formula debugger on and off.  See below.  
1758 `C-c ''
1759      Edit all formulas for the current table in a special buffer, where
1760      the formulas will be displayed one per line.  If the current field
1761      has an active formula, the cursor in the formula editor will mark
1762      it.  While inside the special buffer, Org-mode will automatically
1763      highlight any field or range reference at the cursor position.
1764      You may edit, remove and add formulas, and use the following
1765      commands:
1766     `C-c C-c'
1767     `C-x C-s'
1768           Exit the formula editor and store the modified formulas.
1769           With `C-u' prefix, also apply the new formulas to the entire
1770           table.  
1772     `C-c C-q'
1773           Exit the formula editor without installing changes.  
1775     `C-c C-r'
1776           Toggle all references in the formula editor between standard
1777           (like `B3') and internal (like `@3$2').  
1779     `<TAB>'
1780           Pretty-print or indent lisp formula at point.  When in a line
1781           containing a lisp formula, format the formula according to
1782           Emacs Lisp rules.  Another <TAB> collapses the formula back
1783           again.  In the open formula, <TAB> re-indents just like in
1784           Emacs-lisp-mode.  
1786     `M-<TAB>'
1787           Complete Lisp symbols, just like in Emacs-lisp-mode.  
1789     `S-<up>/<down>/<left>/<right>'
1790           Shift the reference at point.  For example, if the reference
1791           is `B3' and you press `S-<right>', it will become `C3'.  This
1792           also works for relative references, and for hline references.  
1794     `M-S-<up>/<down>'
1795           Move the test line for column formulas in the Org-mode buffer
1796           up and down.  
1798     `M-<up>/<down>'
1799           Scroll the window displaying the table.  
1801     `C-c }'
1802           Turn the coordinate grid in the table on and off.
1804    Making a table field blank does not remove the formula associated
1805 with the field, because that is stored in a different line (the `TBLFM'
1806 line) - during the next recalculation the field will be filled again.
1807 To remove a formula from a field, you have to give an empty reply when
1808 prompted for the formula, or to edit the `#+TBLFM' line.
1810    You may edit the `#+TBLFM' directly and re-apply the changed
1811 equations with `C-c C-c' in that line, or with the normal recalculation
1812 commands in the table.
1814 Debugging formulas
1815 ..................
1817 When the evaluation of a formula leads to an error, the field content
1818 becomes the string `#ERROR'.  If you would like see what is going on
1819 during variable substitution and calculation in order to find a bug,
1820 turn on formula debugging in the `Tbl' menu and repeat the calculation,
1821 for example by pressing `C-u C-u C-c = <RET>' in a field.  Detailed
1822 information will be displayed.
1824 \x1f
1825 File: org,  Node: Updating the table,  Next: Advanced features,  Prev: Editing and debugging formulas,  Up: The spreadsheet
1827 3.5.7 Updating the Table
1828 ------------------------
1830 Recalculation of a table is normally not automatic, but needs to be
1831 triggered by a command.  See *Note Advanced features:: for a way to make
1832 recalculation at least semi-automatically.
1834    In order to recalculate a line of a table or the entire table, use
1835 the following commands:
1837 `C-c *'
1838      Recalculate the current row by first applying the stored column
1839      formulas from left to right, and all field formulas in the current
1840      row.  
1842 `C-u C-c *'
1843 `C-u C-c C-c'
1844      Recompute the entire table, line by line.  Any lines before the
1845      first hline are left alone, assuming that these are part of the
1846      table header.  
1848 `C-u C-u C-c *'
1849 `C-u C-u C-c C-c'
1850      Iterate the table by recomputing it until no further changes occur.
1851      This may be necessary if some computed fields use the value of
1852      other fields that are computed later in the calculation sequence.
1854 \x1f
1855 File: org,  Node: Advanced features,  Prev: Updating the table,  Up: The spreadsheet
1857 3.5.8 Advanced features
1858 -----------------------
1860 If you want the recalculation of fields to happen automatically, or if
1861 you want to be able to assign names to fields and columns, you need to
1862 reserve the first column of the table for special marking characters.
1863 `C-#'
1864      Rotate the calculation mark in first column through the states `',
1865      `#', `*', `!', `$'.  The meaning of these characters is discussed
1866      below.  When there is an active region, change all marks in the
1867      region.
1869    Here is an example of a table that collects exam results of students
1870 and makes use of these features:
1872      |---+---------+--------+--------+--------+-------+------|
1873      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1874      |---+---------+--------+--------+--------+-------+------|
1875      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1876      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1877      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1878      |---+---------+--------+--------+--------+-------+------|
1879      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1880      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1881      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1882      |---+---------+--------+--------+--------+-------+------|
1883      |   | Average |        |        |        |  29.7 |      |
1884      | ^ |         |        |        |        |    at |      |
1885      | $ | max=50  |        |        |        |       |      |
1886      |---+---------+--------+--------+--------+-------+------|
1887      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
1889 Important: Please note that for these special tables, recalculating the
1890 table with `C-u C-c *' will only affect rows that are marked `#' or
1891 `*', and fields that have a formula assigned to the field itself.  The
1892 column formulas are not applied in rows with empty first field.
1894    The marking characters have the following meaning:
1896      The fields in this line define names for the columns, so that you
1897      may refer to a column as `$Tot' instead of `$6'.
1900      This row defines names for the fields _above_ the row.  With such
1901      a definition, any formula in the table may use `$m1' to refer to
1902      the value `10'.  Also, if you assign a formula to a names field, it
1903      will be stored as `$name=...'.
1906      Similar to `^', but defines names for the fields in the row
1907      _below_.
1910      Fields in this row can define _parameters_ for formulas.  For
1911      example, if a field in a `$' row contains `max=50', then formulas
1912      in this table can refer to the value 50 using `$max'.  Parameters
1913      work exactly like constants, only that they can be defined on a
1914      per-table basis.
1917      Fields in this row are automatically recalculated when pressing
1918      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1919      selected for a global recalculation with `C-u C-c *'.  Unmarked
1920      lines will be left alone by this command.
1923      Selects this line for global recalculation with `C-u C-c *', but
1924      not for automatic recalculation.  Use this when automatic
1925      recalculation slows down editing too much.
1928      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1929      All lines that should be recalculated should be marked with `#' or
1930      `*'.
1933      Do not export this line.  Useful for lines that contain the
1934      narrowing `<N>' markers.
1936    Finally, just to whet your appetite on what can be done with the
1937 fantastic `calc' package, here is a table that computes the Taylor
1938 series of degree `n' at location `x' for a couple of functions
1939 (homework: try that with Excel :-)
1941      |---+-------------+---+-----+--------------------------------------|
1942      |   | Func        | n | x   | Result                               |
1943      |---+-------------+---+-----+--------------------------------------|
1944      | # | exp(x)      | 1 | x   | 1 + x                                |
1945      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1946      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1947      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1948      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1949      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1950      |---+-------------+---+-----+--------------------------------------|
1951      #+TBLFM: $5=taylor($2,$4,$3);n3
1953 \x1f
1954 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1956 4 Hyperlinks
1957 ************
1959 Just like HTML, Org-mode provides links inside a file, and external
1960 links to other files, Usenet articles, emails, and much more.
1962 * Menu:
1964 * Link format::                 How links in Org-mode are formatted
1965 * Internal links::              Links to other places in the current file
1966 * External links::              URL-like links to the world
1967 * Handling links::              Creating, inserting and following
1968 * Using links outside Org-mode::  Linking from my C source code?
1969 * Link abbreviations::          Shortcuts for writing complex links
1970 * Search options::              Linking to a specific location
1971 * Custom searches::             When the default search is not enough
1973 \x1f
1974 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1976 4.1 Link format
1977 ===============
1979 Org-mode will recognize plain URL-like links and activate them as
1980 clickable links.  The general link format, however, looks like this:
1982      [[link][description]]       or alternatively           [[link]]
1984    Once a link in the buffer is complete (all brackets present),
1985 Org-mode will change the display so that `description' is displayed
1986 instead of `[[link][description]]' and `link' is displayed instead of
1987 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1988 default is an underlined face.  You can directly edit the visible part
1989 of a link.  Note that this can be either the `link' part (if there is
1990 no description) or the `description' part.  To edit also the invisible
1991 `link' part, use `C-c C-l' with the cursor on the link.
1993    If you place the cursor at the beginning or just behind the end of
1994 the displayed text and press <BACKSPACE>, you will remove the
1995 (invisible) bracket at that location.  This makes the link incomplete
1996 and the internals are again displayed as plain text.  Inserting the
1997 missing bracket hides the link internals again.  To show the internal
1998 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1999 links'.
2001 \x1f
2002 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
2004 4.2 Internal links
2005 ==================
2007 If the link does not look like a URL, it is considered to be internal in
2008 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
2009 my target]]' lead to a text search in the current file.  The link can
2010 be followed with `C-c C-o' when the cursor is on the link, or with a
2011 mouse click (*note Handling links::).  The preferred match for such a
2012 link is a dedicated target: the same string in double angular brackets.
2013 Targets may be located anywhere; sometimes it is convenient to put
2014 them into a comment line. For example
2016      # <<My Target>>
2018 In HTML export (*note HTML export::), such targets will become named
2019 anchors for direct access through `http' links(1).
2021    If no dedicated target exists, Org-mode will search for the words in
2022 the link.  In the above example the search would be for `my target'.
2023 Links starting with a star like `*My Target' restrict the search to
2024 headlines.  When searching, Org-mode will first try an exact match, but
2025 then move on to more and more lenient searches.  For example, the link
2026 `[[*My Targets]]' will find any of the following:
2028      ** My targets
2029      ** TODO my targets are bright
2030      ** my 20 targets are
2032    To insert a link targeting a headline, in-buffer completion can be
2033 used.  Just type a star followed by a few optional letters into the
2034 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
2035 offered as completions.  *Note Handling links::, for more commands
2036 creating links.
2038    Following a link pushes a mark onto Org-mode's own mark ring.  You
2039 can return to the previous position with `C-c &'.  Using this command
2040 several times in direct succession goes back to positions recorded
2041 earlier.
2043 * Menu:
2045 * Radio targets::               Make targets trigger links in plain text.
2047    ---------- Footnotes ----------
2049    (1) Note that text before the first headline is usually not
2050 exported, so the first such target should be after the first headline.
2052 \x1f
2053 File: org,  Node: Radio targets,  Prev: Internal links,  Up: Internal links
2055 4.2.1 Radio targets
2056 -------------------
2058 Org-mode can automatically turn any occurrences of certain target names
2059 in normal text into a link.  So without explicitly creating a link, the
2060 text connects to the target radioing its position.  Radio targets are
2061 enclosed by triple angular brackets.  For example, a target `<<<My
2062 Target>>>' causes each occurrence of `my target' in normal text to
2063 become activated as a link.  The Org-mode file is scanned automatically
2064 for radio targets only when the file is first loaded into Emacs.  To
2065 update the target list during editing, press `C-c C-c' with the cursor
2066 on or at a target.
2068 \x1f
2069 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
2071 4.3 External links
2072 ==================
2074 Org-mode supports links to files, websites, Usenet and email messages,
2075 and BBDB database entries.  External links are URL-like locators.  They
2076 start with a short identifying string followed by a colon.  There can be
2077 no space after the colon.  The following list shows examples for each
2078 link type.
2080      http://www.astro.uva.nl/~dominik          on the web
2081      file:/home/dominik/images/jupiter.jpg     file, absolute path
2082      file:papers/last.pdf                      file, relative path
2083      news:comp.emacs                           Usenet link
2084      mailto:adent@galaxy.net                   Mail link
2085      vm:folder                                 VM folder link
2086      vm:folder#id                              VM message link
2087      vm://myself@some.where.org/folder#id      VM on remote machine
2088      wl:folder                                 WANDERLUST folder link
2089      wl:folder#id                              WANDERLUST message link
2090      mhe:folder                                MH-E folder link
2091      mhe:folder#id                             MH-E message link
2092      rmail:folder                              RMAIL folder link
2093      rmail:folder#id                           RMAIL message link
2094      gnus:group                                GNUS group link
2095      gnus:group#id                             GNUS article link
2096      bbdb:Richard Stallman                     BBDB link
2097      shell:ls *.org                            A shell command
2098      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
2100    A link should be enclosed in double brackets and may contain a
2101 descriptive text to be displayed instead of the url (*note Link
2102 format::), for example:
2104      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
2106 If the description is a file name or URL that points to an image, HTML
2107 export (*note HTML export::) will inline the image as a clickable
2108 button.  If there is no description at all and the link points to an
2109 image, that image will be inlined into the exported HTML file.
2111    Org-mode also finds external links in the normal text and activates
2112 them as links.  If spaces must be part of the link (for example in
2113 `bbdb:Richard Stallman'), or if you need to remove ambiguities about
2114 the end of the link, enclose them in angular brackets.
2116 \x1f
2117 File: org,  Node: Handling links,  Next: Using links outside Org-mode,  Prev: External links,  Up: Hyperlinks
2119 4.4 Handling links
2120 ==================
2122 Org-mode provides methods to create a link in the correct syntax, to
2123 insert it into an org-mode file, and to follow the link.
2125 `C-c l'
2126      Store a link to the current location.  This is a _global_ command
2127      which can be used in any buffer to create a link.  The link will be
2128      stored for later insertion into an Org-mode buffer (see below).
2129      For Org-mode files, if there is a `<<target>>' at the cursor, the
2130      link points to the target.  Otherwise it points to the current
2131      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
2132      the link will indicate the current article/entry.  For W3 and W3M
2133      buffers, the link goes to the current URL.  For any other files,
2134      the link will point to the file, with a search string (*note
2135      Search options::) pointing to the contents of the current line.
2136      If there is an active region, the selected words will form the
2137      basis of the search string.  If the automatically created link is
2138      not working correctly or accurately enough, you can write custom
2139      functions to select the search string and to do the search for
2140      particular file types - see *Note Custom searches::.  The key
2141      binding `C-c l' is only a suggestion - see *Note Installation::.  
2143 `C-c C-l'
2144      Insert a link.  This prompts for a link to be inserted into the
2145      buffer.  You can just type a link, using text for an internal
2146      link, or one of the link type prefixes mentioned in the examples
2147      above.  All links stored during the current session are part of
2148      the history for this prompt, so you can access them with <up> and
2149      <down> (or `M-p/n').  Completion, on the other hand, will help you
2150      to insert valid link prefixes like `http:' or `ftp:', including
2151      the prefixes defined through link abbreviations (*note Link
2152      abbreviations::).  The link will be inserted into the buffer(1),
2153      along with a descriptive text.  If some text was selected when
2154      this command is called, the selected text becomes the default
2155      description.
2156      Note that you don't have to use this command to insert a link.
2157      Links in Org-mode are plain text, and you can type or paste them
2158      straight into the buffer.  By using this command, the links are
2159      automatically enclosed in double brackets, and you will be asked
2160      for the optional descriptive text.  
2162 `C-u C-c C-l'
2163      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
2164      file will be inserted and you may use file name completion to
2165      select the name of the file.  The path to the file is inserted
2166      relative to the directory of the current org file, if the linked
2167      file is in the current directory or in a subdirectory of it, or if
2168      the path is written relative to the current directory using `../'.
2169      Otherwise an absolute path is used, if possible with `~/' for
2170      your home directory.  You can force an absolute path with two
2171      `C-u' prefixes.
2173 `C-c C-l (with cursor on existing link)'
2174      When the cursor is on an existing link, `C-c C-l' allows you to
2175      edit the link and description parts of the link.  
2177 `C-c C-o'
2178      Open link at point.  This will launch a web browser for URLs (using
2179      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
2180      the corresponding links, and execute the command in a shell link.
2181      When the cursor is on an internal link, this commands runs the
2182      corresponding search.  When the cursor is on a TAG list in a
2183      headline, it creates the corresponding TAGS view.  If the cursor
2184      is on a time stamp, it compiles the agenda for that date.
2185      Furthermore, it will visit text and remote files in `file:' links
2186      with Emacs and select a suitable application for local non-text
2187      files.  Classification of files is based on file extension only.
2188      See option `org-file-apps'.  If you want to override the default
2189      application and visit the file with Emacs, use a `C-u' prefix.  
2191 `mouse-2'
2192 `mouse-1'
2193      On links, `mouse-2' will open the link just as `C-c C-o' would.
2194      Under Emacs 22, also `mouse-1' will follow a link.  
2196 `mouse-3'
2197      Like `mouse-2', but force file links to be opened with Emacs, and
2198      internal links to be displayed in another window(2).  
2200 `C-c %'
2201      Push the current position onto the mark ring, to be able to return
2202      easily. Commands following an internal link do this automatically.  
2204 `C-c &'
2205      Jump back to a recorded position.  A position is recorded by the
2206      commands following internal links, and by `C-c %'.  Using this
2207      command several times in direct succession moves through a ring of
2208      previously recorded positions.  
2210 `C-c C-x C-n'
2211 `C-c C-x C-p'
2212      Move forward/backward to the next link in the buffer.  At the
2213      limit of the buffer, the search fails once, and then wraps around.
2214      The key bindings for this are really too long, you might want to
2215      bind this also to `C-n' and `C-p'
2216           (add-hook 'org-load-hook
2217             (lambda ()
2218               (define-key 'org-mode-map "\C-n" 'org-next-link)
2219               (define-key 'org-mode-map "\C-p" 'org-previous-link)))
2221    ---------- Footnotes ----------
2223    (1) After insertion of a stored link, the link will be removed from
2224 the list of stored links.  To keep it in the list later use, use a
2225 triple `C-u' prefix to `C-c C-l', or configure the option
2226 `org-keep-stored-link-after-insertion'.
2228    (2) See the variable `org-display-internal-link-with-indirect-buffer'
2230 \x1f
2231 File: org,  Node: Using links outside Org-mode,  Next: Link abbreviations,  Prev: Handling links,  Up: Hyperlinks
2233 4.5 Using links outside Org-mode
2234 ================================
2236 You can insert and follow links that have Org-mode syntax not only in
2237 Org-mode, but in any Emacs buffer.  For this, you should create two
2238 global commands, like this (please select suitable global keys
2239 yourself):
2241      (global-set-key "\C-c L" 'org-insert-link-global)
2242      (global-set-key "\C-c o" 'org-open-at-point-global)
2244 \x1f
2245 File: org,  Node: Link abbreviations,  Next: Search options,  Prev: Using links outside Org-mode,  Up: Hyperlinks
2247 4.6 Link abbreviations
2248 ======================
2250 Long URLs can be cumbersome to type, and often many similar links are
2251 needed in a document.  For this you can use link abbreviations.  An
2252 abbreviated link looks like this
2254      [[linkword:tag][description]]
2256 where the tag is optional.  Such abbreviations are resolved according to
2257 the information in the variable `org-link-abbrev-alist' that relates
2258 the linkwords to replacement text.  Here is an example:
2260      (setq org-link-abbrev-alist
2261        '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
2262          ("google"   . "http://www.google.com/search?q=")
2263          ("ads"      . "http://adsabs.harvard.edu/cgi-bin/
2264                         nph-abs_connect?author=%s&db_key=AST")))
2266    If the replacement text contains the string `%s', it will be
2267 replaced with the tag.  Otherwise the tag will be appended to the string
2268 in order to create the link.  You may also specify a function that will
2269 be called with the tag as the only argument to create the link.
2271    With the above setting, you could link to a specific bug with
2272 `[[bugzilla:129]]', search the web for `OrgMode' with
2273 `[[google:OrgMode]]' and find out what the Org-mode author is doing
2274 besides Emacs hacking with `[[ads:Dominik,C]]'.
2276    If you need special abbreviations just for a single Org-mode buffer,
2277 you can define them in the file with
2279      #+LINK: bugzilla  http://10.1.2.9/bugzilla/show_bug.cgi?id=
2280      #+LINK: google    http://www.google.com/search?q=%s
2282 In-buffer completion *note Completion:: can be used after `[' to
2283 complete link abbreviations.
2285 \x1f
2286 File: org,  Node: Search options,  Next: Custom searches,  Prev: Link abbreviations,  Up: Hyperlinks
2288 4.7 Search options in file links
2289 ================================
2291 File links can contain additional information to make Emacs jump to a
2292 particular location in the file when following a link.  This can be a
2293 line number or a search option after a double(1) colon. For example,
2294 when the command `C-c l' creates a link (*note Handling links::) to a
2295 file, it encodes the words in the current line as a search string that
2296 can be used to find this line back later when following the link with
2297 `C-c C-o'.
2299    Here is the syntax of the different ways to attach a search to a file
2300 link, together with an explanation:
2302      [[file:~/code/main.c::255]]
2303      [[file:~/xx.org::My Target]]
2304      [[file:~/xx.org::*My Target]]
2305      [[file:~/xx.org::/regexp/]]
2307 `255'
2308      Jump to line 255.
2310 `My Target'
2311      Search for a link target `<<My Target>>', or do a text search for
2312      `my target', similar to the search in internal links, see *Note
2313      Internal links::.  In HTML export (*note HTML export::), such a
2314      file link will become an HTML reference to the corresponding named
2315      anchor in the linked file.
2317 `*My Target'
2318      In an Org-mode file, restrict search to headlines.
2320 `/regexp/'
2321      Do a regular expression search for `regexp'.  This uses the Emacs
2322      command `occur' to list all matches in a separate window.  If the
2323      target file is in Org-mode, `org-occur' is used to create a sparse
2324      tree with the matches.
2326    As a degenerate case, a file link with an empty file name can be used
2327 to search the current file.  For example, `[[file:::find me]]' does a
2328 search for `find me' in the current file, just as `[[find me]]' would.
2330    ---------- Footnotes ----------
2332    (1) For backward compatibility, line numbers can also follow a
2333 single colon.
2335 \x1f
2336 File: org,  Node: Custom searches,  Prev: Search options,  Up: Hyperlinks
2338 4.8 Custom Searches
2339 ===================
2341 The default mechanism for creating search strings and for doing the
2342 actual search related to a file link may not work correctly in all
2343 cases.  For example, BibTeX database files have many entries like
2344 `year="1993"' which would not result in good search strings, because
2345 the only unique identification for a BibTeX entry is the citation key.
2347    If you come across such a problem, you can write custom functions to
2348 set the right search string for a particular file type, and to do the
2349 search for the string in the file.  Using `add-hook', these functions
2350 need to be added to the hook variables
2351 `org-create-file-search-functions' and
2352 `org-execute-file-search-functions'.  See the docstring for these
2353 variables for more information.  Org-mode actually uses this mechanism
2354 for BibTeX database files, and you can use the corresponding code as an
2355 implementation example.  Search for `BibTeX links' in the source file.
2357 \x1f
2358 File: org,  Node: TODO items,  Next: Tags,  Prev: Hyperlinks,  Up: Top
2360 5 TODO items
2361 ************
2363 Org-mode does not maintain TODO lists as a separate document.  TODO
2364 items are an integral part of the notes file, because TODO items
2365 usually come up while taking notes!  With Org-mode, you simply mark any
2366 entry in a tree as being a TODO item.  In this way, the information is
2367 not duplicated, and the entire context from which the item emerged is
2368 always present when you check.
2370    Of course, this technique causes TODO items to be scattered
2371 throughout your file.  Org-mode provides methods to give you an
2372 overview over all things you have to do.
2374 * Menu:
2376 * TODO basics::                 Marking and displaying TODO entries
2377 * TODO extensions::             Workflow and assignments
2378 * Progress logging::            Dates and notes for progress
2379 * Priorities::                  Some things are more important than others
2380 * Breaking down tasks::         Splitting a task into manageable pieces
2381 * Checkboxes::                  Tick-off lists
2383 \x1f
2384 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
2386 5.1 Basic TODO functionality
2387 ============================
2389 Any headline can become a TODO item by starting it with the word TODO,
2390 for example:
2392      *** TODO Write letter to Sam Fortune
2394 The most important commands to work with TODO entries are:
2396 `C-c C-t'
2397      Rotate the TODO state of the current item among
2399           ,-> (unmarked) -> TODO -> DONE --.
2400           '--------------------------------'
2402      The same rotation can also be done "remotely" from the timeline and
2403      agenda buffers with the `t' command key (*note Agenda commands::).
2405 `C-u C-c C-t'
2406      Select a specific keyword using completion of (if it has been set
2407      up) the fast selection interface.
2409 `S-<right>'
2410 `S-<left>'
2411      Select the following/preceding TODO state, similar to cycling.
2412      Mostly useful if more than two TODO states are possible (*note
2413      TODO extensions::).  
2415 `C-c C-c'
2416      Use the fast tag interface to quickly and directly select a
2417      specific TODO state.  For this you need to assign keys to TODO
2418      state, like this:
2419           #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
2420      See *Note Per file keywords:: and *Note Setting tags:: for more
2421      information.  
2423 `C-c C-v'
2424 `C-c / t'
2425      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
2426      the entire buffer, but shows all TODO items and the headings
2427      hierarchy above them.  With prefix arg, search for a specific
2428      TODO.  You will be prompted for the keyword, and you can also give
2429      a list of keywords like `kwd1|kwd2|...'.  With numerical prefix N,
2430      show the tree for the Nth keyword in the variable
2431      `org-todo-keywords'.  With two prefix args, find all TODO and DONE
2432      entries.  
2434 `C-c a t'
2435      Show the global TODO list.  This collects the TODO items from all
2436      agenda files (*note Agenda views::) into a single buffer.  The
2437      buffer is in `agenda-mode', so there are commands to examine and
2438      manipulate the TODO entries directly from that buffer (*note
2439      Agenda commands::).  *Note Global TODO list::, for more
2440      information.  
2442 `S-M-<RET>'
2443      Insert a new TODO entry below the current one.
2445 \x1f
2446 File: org,  Node: TODO extensions,  Next: Progress logging,  Prev: TODO basics,  Up: TODO items
2448 5.2 Extended use of TODO keywords
2449 =================================
2451 The default implementation of TODO entries is just two states: TODO and
2452 DONE.  You can use the TODO feature for more complicated things by
2453 configuring the variable `org-todo-keywords'.  With special setup, the
2454 TODO keyword system can work differently in different files.
2456    Note that tags are another way to classify headlines in general and
2457 TODO items in particular (*note Tags::).
2459 * Menu:
2461 * Workflow states::             From TODO to DONE in steps
2462 * TODO types::                  I do this, Fred the rest
2463 * Multiple sets in one file::   Mixing it all, and still finding your way
2464 * Fast access to TODO states::  Single letter selection of a state
2465 * Per file keywords::           Different files, different requirements
2466 * Faces for TODO keywords::     Highlighting states
2468 \x1f
2469 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
2471 5.2.1 TODO keywords as workflow states
2472 --------------------------------------
2474 You can use TODO keywords to indicate different _sequential_ states in
2475 the process of working on an item, for example(1):
2477      (setq org-todo-keywords
2478        '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
2480    The vertical bar separates the TODO keywords (states that _need
2481 action_) from the DONE states (which need _no further action_.  If you
2482 don't provide the separator bar, the last state is used as the DONE
2483 state.  With this setup, the command `C-c C-t' will cycle an entry from
2484 TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
2485 You may also use a prefix argument to quickly select a specific state.
2486 For example `C-3 C-c C-t' will change the state immediately to VERIFY.
2487 If you define many keywords, you can use in-buffer completion (see
2488 *Note Completion::) to insert these words into the buffer.  Changing a
2489 todo state can be logged with a timestamp, see *Note Tracking TODO
2490 state changes:: for more information.
2492    ---------- Footnotes ----------
2494    (1) Changing this variable only becomes effective after restarting
2495 Org-mode in a buffer.
2497 \x1f
2498 File: org,  Node: TODO types,  Next: Multiple sets in one file,  Prev: Workflow states,  Up: TODO extensions
2500 5.2.2 TODO keywords as types
2501 ----------------------------
2503 The second possibility is to use TODO keywords to indicate different
2504 _types_ of action items.  For example, you might want to indicate that
2505 items are for "work" or "home".  Or, when you work with several people
2506 on a single project, you might want to assign action items directly to
2507 persons, by using their names as TODO keywords.  This would be set up
2508 like this:
2510      (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
2512    In this case, different keywords do not indicate a sequence, but
2513 rather different types.  So the normal work flow would be to assign a
2514 task to a person, and later to mark it DONE.  Org-mode supports this
2515 style by adapting the workings of the command `C-c C-t'(1).  When used
2516 several times in succession, it will still cycle through all names, in
2517 order to first select the right type for a task.  But when you return
2518 to the item after some time and execute `C-c C-t' again, it will switch
2519 from any name directly to DONE.  Use prefix arguments or completion to
2520 quickly select a specific name.  You can also review the items of a
2521 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2522 C-v'.  For example, to see all things Lucy has to do, you would use
2523 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
2524 single buffer, you would use the prefix arg as well when creating the
2525 global todo list: `C-3 C-c t'.
2527    ---------- Footnotes ----------
2529    (1) This is also true for the `t' command in the timeline and agenda
2530 buffers.
2532 \x1f
2533 File: org,  Node: Multiple sets in one file,  Next: Fast access to TODO states,  Prev: TODO types,  Up: TODO extensions
2535 5.2.3 Multiple keyword sets in one file
2536 ---------------------------------------
2538 Sometimes you may want to use different sets of TODO keywords in
2539 parallel.  For example, you may want to have the basic `TODO'/`DONE',
2540 but also a workflow for bug fixing, and a separate state indicating
2541 that an item has been canceled (so it is not DONE, but also does not
2542 require action).  Your setup would then look like this:
2544      (setq org-todo-keywords
2545            '((sequence "TODO" "|" "DONE")
2546              (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
2547              (sequence "|" "CANCELED")))
2549    The keywords should all be different, this helps Org-mode to keep
2550 track of which subsequence should be used for a given entry.  In this
2551 setup, `C-c C-t' only operates within a subsequence, so it switches from
2552 `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
2553 `REPORT'.  Therefore you need a mechanism to initially select the
2554 correct sequence.  Besides the obvious ways like typing a keyword or
2555 using completion, you may also apply the following commands:
2557 `C-S-<right>'
2558 `C-S-<left>'
2559      These keys jump from one TODO subset to the next.  In the above
2560      example, `C-S-<right>' would jump from `TODO' or `DONE' to
2561      `REPORT', and any of the words in the second row to `CANCELED'.  
2563 `S-<right>'
2564 `S-<left>'
2565      `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
2566      from all sets, so for example `S-<<right>>' would switch from
2567      `DONE' to `REPORT' in the example above.
2569 \x1f
2570 File: org,  Node: Fast access to TODO states,  Next: Per file keywords,  Prev: Multiple sets in one file,  Up: TODO extensions
2572 5.2.4 Fast access to TODO states
2573 --------------------------------
2575 If you would like to quickly change an entry to an arbitrary TODO state
2576 instead of cycling through the states, you can set up keys for
2577 single-letter access to the states.  This is done by adding the section
2578 key after each keyword, in parenthesis.  For example:
2580      (setq org-todo-keywords
2581            '((sequence "TODO(t)" "|" "DONE(d)")
2582              (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
2583              (sequence "|" "CANCELED(c)")))
2585    If you then press `C-u C-c C-t' followed by the selection key, the
2586 entry will be switched to this state.  <SPC> can be used to remove any
2587 TODO keyword from an entry.  Should you like this way of selecting TODO
2588 states a lot, you might want to set the variable
2589 `org-use-fast-todo-selection' to `t' and make this behavior the
2590 default.  Check also the variable
2591 `org-fast-tag-selection-include-todo', it allows to change the TODO
2592 state through the tags interface (*note Setting tags::).
2594 \x1f
2595 File: org,  Node: Per file keywords,  Next: Faces for TODO keywords,  Prev: Fast access to TODO states,  Up: TODO extensions
2597 5.2.5 Setting up keywords for individual files
2598 ----------------------------------------------
2600 It can be very useful to use different aspects of the TODO mechanism in
2601 different files.  For file-local settings, you need to add special lines
2602 to the file which set the keywords and interpretation for that file
2603 only.  For example, to set one of the two examples discussed above, you
2604 need one of the following lines, starting in column zero anywhere in the
2605 file:
2607      #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
2608    or
2609      #+TYP_TODO: Fred Sara Lucy Mike | DONE
2611    A setup for using several sets in parallel would be:
2613      #+SEQ_TODO: TODO | DONE
2614      #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
2615      #+SEQ_TODO: | CANCELED
2617 To make sure you are using the correct keyword, type `#+' into the
2618 buffer and then use `M-<TAB>' completion.
2620    Remember that the keywords after the vertical bar (or the last
2621 keyword if no bar is there) must always mean that the item is DONE
2622 (although you may use a different word).  After changing one of these
2623 lines, use `C-c C-c' with the cursor still in the line to make the
2624 changes known to Org-mode(1).
2626    ---------- Footnotes ----------
2628    (1) Org-mode parses these lines only when Org-mode is activated
2629 after visiting a file.  `C-c C-c' with the cursor in a line starting
2630 with `#+' is simply restarting Org-mode for the current buffer.
2632 \x1f
2633 File: org,  Node: Faces for TODO keywords,  Prev: Per file keywords,  Up: TODO extensions
2635 5.2.6 Faces for TODO keywords
2636 -----------------------------
2638 Org-mode highlights TODO keywords with special faces: `org-todo' for
2639 keywords indicating that an item still has to be acted upon, and
2640 `org-done' for keywords indicating that an item is finished.  If you
2641 are using more than 2 different states, you might want to use special
2642 faces for some of them.  This can be done using the variable
2643 `org-todo-keyword-faces'.  For example:
2645      (setq org-todo-keyword-faces
2646            '(("TODO"      . org-warning)
2647              ("DEFERRED"  . shadow)
2648              ("CANCELED"  . (:foreground "blue" :weight bold))))
2650 \x1f
2651 File: org,  Node: Progress logging,  Next: Priorities,  Prev: TODO extensions,  Up: TODO items
2653 5.3 Progress Logging
2654 ====================
2656 Org-mode can automatically record a time stamp and even a note when you
2657 mark a TODO item as DONE, or even each time you change the state of a
2658 TODO item.
2660 * Menu:
2662 * Closing items::               When was this entry marked DONE?
2663 * Tracking TODO state changes::  When did the status change?
2665 \x1f
2666 File: org,  Node: Closing items,  Next: Tracking TODO state changes,  Prev: Progress logging,  Up: Progress logging
2668 5.3.1 Closing items
2669 -------------------
2671 If you want to keep track of _when_ a certain TODO item was finished,
2672 turn on logging with(1)
2674      (setq org-log-done t)
2676 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2677 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2678 [timestamp]' will be inserted just after the headline.  If you turn the
2679 entry back into a TODO item through further state cycling, that line
2680 will be removed again.  In the timeline (*note Timeline::) and in the
2681 agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
2682 display the TODO items closed on each day, giving you an overview of
2683 what has been done on a day.  If you want to record a note along with
2684 the timestamp, use(2)
2686      (setq org-log-done '(done))
2688    ---------- Footnotes ----------
2690    (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
2691 You may also set this for the scope of a subtree by adding a `LOGGING'
2692 property with one or more of the logging keywords in the value.
2694    (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
2696 \x1f
2697 File: org,  Node: Tracking TODO state changes,  Prev: Closing items,  Up: Progress logging
2699 5.3.2 Tracking TODO state changes
2700 ---------------------------------
2702 When TODO keywords are used as workflow states (*note Workflow
2703 states::), you might want to keep track of when a state change occurred
2704 and record a note about this change.  With the setting(1)
2706      (setq org-log-done '(state))
2708 each state change will prompt you for a note that will be attached to
2709 the current headline.  If you press `C-c C-c' without typing anything
2710 into the note buffer, only the time of the state change will be noted.
2711 Very likely you do not want this verbose tracking all the time, so it
2712 is probably better to configure this behavior with in-buffer options.
2713 For example, if you are tracking purchases, put these into a separate
2714 file that contains:
2716      #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
2717      #+STARTUP: lognotestate
2719    If you only need to take a note for some of the states, mark those
2720 states with an additional `@', like this:
2722      #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
2723      #+STARTUP: lognotestate
2725    ---------- Footnotes ----------
2727    (1) The corresponding in-buffer setting is: `#+STARTUP:
2728 lognotestate'.
2730 \x1f
2731 File: org,  Node: Priorities,  Next: Breaking down tasks,  Prev: Progress logging,  Up: TODO items
2733 5.4 Priorities
2734 ==============
2736 If you use Org-mode extensively to organize your work, you may end up
2737 with a number of TODO entries so large that you'd like to prioritize
2738 them.  This can be done by placing a _priority cookie_ into the
2739 headline, like this
2741      *** TODO [#A] Write letter to Sam Fortune
2743 With its standard setup, Org-mode supports priorities `A', `B', and
2744 `C'.  `A' is the highest priority.  An entry without a cookie is
2745 treated as priority `B'.  Priorities make a difference only in the
2746 agenda (*note Weekly/Daily agenda::).
2748 `C-c ,'
2749      Set the priority of the current headline.  The command prompts for
2750      a priority character `A', `B' or `C'.  When you press <SPC>
2751      instead, the priority cookie is removed from the headline.  The
2752      priorities can also be changed "remotely" from the timeline and
2753      agenda buffer with the `,' command (*note Agenda commands::).  
2755 `S-<up>'
2756 `S-<down>'
2757      Increase/decrease priority of current headline(1).  Note that these
2758      keys are also used to modify time stamps (*note Creating
2759      timestamps::).  Furthermore, these keys are also used by CUA-mode
2760      (*note Conflicts::).
2762    You can change the range of allowed priorities by setting the
2763 variables `org-highest-priority', `org-lowest-priority', and
2764 `org-default-priority'.  For an individual buffer, you may set these
2765 values (highest, lowest, default) like this (please make sure that the
2766 highest priority is earlier in the alphabet than the lowest priority):
2768      #+PRIORITIES: A C B
2770    ---------- Footnotes ----------
2772    (1) See also the option `org-priority-start-cycle-with-default''.
2774 \x1f
2775 File: org,  Node: Breaking down tasks,  Next: Checkboxes,  Prev: Priorities,  Up: TODO items
2777 5.5 Breaking tasks down into subtasks
2778 =====================================
2780 It is often advisable to break down large tasks into smaller, manageable
2781 subtasks.  You can do this by creating an outline tree below a TODO
2782 item, with detailed subtasks on the tree(1).  Another possibility is
2783 the use of checkboxes to identify (a hierarchy of) a large number of
2784 subtasks (*note Checkboxes::).
2786    ---------- Footnotes ----------
2788    (1) To keep subtasks out of the global TODO list, see the
2789 `org-agenda-todo-list-sublevels'.
2791 \x1f
2792 File: org,  Node: Checkboxes,  Prev: Breaking down tasks,  Up: TODO items
2794 5.6 Checkboxes
2795 ==============
2797 Every item in a plain list (*note Plain lists::) can be made a checkbox
2798 by starting it with the string `[ ]'.  This feature is similar to TODO
2799 items (*note TODO items::), but more lightweight.  Checkboxes are not
2800 included into the global TODO list, so they are often great to split a
2801 task into a number of simple steps.  Or you can use them in a shopping
2802 list.  To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
2803 `org-mouse.el'.  Here is an example of a checkbox list.
2805      * TODO Organize party [3/6]
2806        - call people [1/3]
2807          - [ ] Peter
2808          - [X] Sarah
2809          - [ ] Sam
2810        - [X] order food
2811        - [ ] think about what music to play
2812        - [X] talk to the neighbors
2814    The `[3/6]' and `[1/3]' in the first and second line are cookies
2815 indicating how many checkboxes are present in this entry, and how many
2816 of them have been checked off.  This can give you an idea on how many
2817 checkboxes remain, even without opening a folded entry.  The cookies
2818 can be placed into a headline or into (the first line of) a plain list
2819 item. Each cookie covers all checkboxes structurally below that
2820 headline/item.  You have to insert the cookie yourself by typing either
2821 `[/]' or `[%]'.  In the first case you get an `n out of m' result, in
2822 the second case you get information about the percentage of checkboxes
2823 checked (in the above example, this would be `[50%]' and `[33%],
2824 respectively').
2826 The following commands work with checkboxes:
2828 `C-c C-c'
2829      Toggle checkbox at point.  With prefix argument, set it to `[-]',
2830      which is considered to be an intermediate state.  
2832 `C-c C-x C-b'
2833      Toggle checkbox at point.
2834         - If there is an active region, toggle the first checkbox in
2835           the region and set all remaining boxes to the same status as
2836           the first.  If you want to toggle all boxes in the region
2837           independently, use a prefix argument.
2839         - If the cursor is in a headline, toggle checkboxes in the
2840           region between this headline and the next (so _not_ the
2841           entire subtree).
2843         - If there is no active region, just toggle the checkbox at
2844           point.
2845      
2846 `M-S-<RET>'
2847      Insert a new item with a checkbox.  This works only if the cursor
2848      is already in a plain list item (*note Plain lists::).  
2850 `C-c #'
2851      Update the checkbox statistics in the current outline entry.  When
2852      called with a `C-u' prefix, update the entire file.  Checkbox
2853      statistic cookies are updated automatically if you toggle
2854      checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'.  If
2855      you delete boxes or add/change them by hand, use this command to
2856      get things back into synch.  Or simply toggle any checkbox twice
2857      with `C-c C-c'.
2859 \x1f
2860 File: org,  Node: Tags,  Next: Properties and columns,  Prev: TODO items,  Up: Top
2862 6 Tags
2863 ******
2865 If you wish to implement a system of labels and contexts for
2866 cross-correlating information, an excellent way is to assign tags to
2867 headlines.  Org-mode has extensive support for using tags.
2869    Every headline can contain a list of tags, at the end of the
2870 headline.  Tags are normal words containing letters, numbers, `_', and
2871 `@'.  Tags must be preceded and followed by a single colon; like
2872 `:WORK:'.  Several tags can be specified like `:work:URGENT:'.
2874 * Menu:
2876 * Tag inheritance::             Tags use the tree structure of the outline
2877 * Setting tags::                How to assign tags to a headline
2878 * Tag searches::                Searching for combinations of tags
2880 \x1f
2881 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2883 6.1 Tag inheritance
2884 ===================
2886 Tags make use of the hierarchical structure of outline trees.  If a
2887 heading has a certain tag, all subheadings will inherit the tag as
2888 well.  For example, in the list
2890      * Meeting with the French group      :work:
2891      ** Summary by Frank                  :boss:notes:
2892      *** TODO Prepare slides for him      :action:
2894 the final heading will have the tags `:work:', `:boss:', `:notes:', and
2895 `:action:'.  When executing tag searches and Org-mode finds that a
2896 certain headline matches the search criterion, it will not check any
2897 sublevel headline, assuming that these likely also match, and that the
2898 list of matches can become very long.  This may not be what you want,
2899 however, and you can influence inheritance and searching using the
2900 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
2902 \x1f
2903 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2905 6.2 Setting tags
2906 ================
2908 Tags can simply be typed into the buffer at the end of a headline.
2909 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2910 special command for inserting tags:
2912 `C-c C-c'
2913      Enter new tags for the current headline.  Org-mode will either
2914      offer completion or a special single-key interface for setting
2915      tags, see below.  After pressing <RET>, the tags will be inserted
2916      and aligned to `org-tags-column'.  When called with a `C-u'
2917      prefix, all tags in the current buffer will be aligned to that
2918      column, just to make things look nice.  TAGS are automatically
2919      realigned after promotion, demotion, and TODO state changes (*note
2920      TODO basics::).
2922    Org will support tag insertion based on a _list of tags_.  By
2923 default this list is constructed dynamically, containing all tags
2924 currently used in the buffer.  You may also globally specify a hard list
2925 of tags with the variable `org-tag-alist'.  Finally you can set the
2926 default tags for a given file with lines like
2928      #+TAGS: @work @home @tennisclub
2929      #+TAGS: laptop car pc sailboat
2931    If you have globally defined your preferred set of tags using the
2932 variable `org-tag-alist', but would like to use a dynamic tag list in a
2933 specific file: Just add an empty TAGS option line to that file:
2935      #+TAGS:
2937    The default support method for entering tags is minibuffer
2938 completion.  However, Org-mode also implements a much better method:
2939 _fast tag selection_.  This method allows to select and deselect tags
2940 with a single key per tag.  To function efficiently, you should assign
2941 unique keys to most tags.  This can be done globally with
2943      (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" . ?l)))
2945 or on a per-file basis with
2947      #+TAGS: @work(w)  @home(h)  @tennisclub(t)  laptop(l)  pc(p)
2949 You can also group together tags that are mutually exclusive.  With
2950 curly braces(1)
2952      #+TAGS: { @work(w)  @home(h)  @tennisclub(t) }  laptop(l)  pc(p)
2954 you indicate that at most one of `@work', `@home', and `@tennisclub'
2955 should be selected.
2957 Don't forget to press `C-c C-c' with the cursor in one of these lines
2958 to activate any changes.
2960    If at least one tag has a selection key, pressing `C-c C-c' will
2961 automatically present you with a special interface, listing inherited
2962 tags, the tags of the current headline, and a list of all legal tags
2963 with corresponding keys(2).  In this interface, you can use the
2964 following keys:
2966 `a-z...'
2967      Pressing keys assigned to tags will add or remove them from the
2968      list of tags in the current line.  Selecting a tag in a group of
2969      mutually exclusive tags will turn off any other tags from that
2970      group.  
2972 `<TAB>'
2973      Enter a tag in the minibuffer, even if the tag is not in the
2974      predefined list.  You will be able to complete on all tags present
2975      in the buffer.  
2977 `<SPC>'
2978      Clear all tags for this line.  
2980 `<RET>'
2981      Accept the modified set.
2983 `C-g'
2984      Abort without installing changes.
2987      If `q' is not assigned to a tag, it aborts like `C-g'.
2990      Turn off groups of mutually exclusive tags.  Use this to (as an
2991      exception) assign several tags from such a group.
2993 `C-c'
2994      Toggle auto-exit after the next change (see below).  If you are
2995      using expert mode, the first `C-c' will display the selection
2996      window.
2998 This method lets you assign tags to a headline with very few keys.  With
2999 the above setup, you could clear the current tags and set `@home',
3000 `laptop' and `pc' tags with just the following keys: `C-c C-c <SPC> h l
3001 p <RET>'.  Switching from `@home' to `@work' would be done with `C-c
3002 C-c w <RET>' or alternatively with `C-c C-c C-c w'.  Adding the
3003 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
3004 <RET> <RET>'.
3006    If you find that most of the time, you need only a single keypress to
3007 modify your list of tags, set the variable
3008 `org-fast-tag-selection-single-key'.  Then you no longer have to press
3009 <RET> to exit fast tag selection - it will immediately exit after the
3010 first change.  If you then occasionally need more keys, press `C-c' to
3011 turn off auto-exit for the current tag selection process (in effect:
3012 start selection with `C-c C-c C-c' instead of `C-c C-c').  If you set
3013 the variable to the value `expert', the special window is not even
3014 shown for single-key tag selection, it comes up only when you press an
3015 extra `C-c'.
3017    ---------- Footnotes ----------
3019    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
3020 respectively.  Several groups are allowed.
3022    (2) Keys will automatically be assigned to tags which have no
3023 configured keys.
3025 \x1f
3026 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
3028 6.3 Tag searches
3029 ================
3031 Once a tags system has been set up, it can be used to collect related
3032 information into special lists.
3034 `C-c \'
3035 `C-c / T'
3036      Create a sparse tree with all headlines matching a tags search.
3037      With a `C-u' prefix argument, ignore headlines that are not a TODO
3038      line.  
3040 `C-c a m'
3041      Create a global list of tag matches from all agenda files.  *Note
3042      Matching tags and properties::.  
3044 `C-c a M'
3045      Create a global list of tag matches from all agenda files, but
3046      check only TODO items and force checking subitems (see variable
3047      `org-tags-match-list-sublevels').
3049    A tags search string can use Boolean operators `&' for AND and `|'
3050 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
3051 not implemented.  A tag may also be preceded by `-', to select against
3052 it, and `+' is syntactic sugar for positive selection.  The AND
3053 operator `&' is optional when `+' or `-' is present.  Examples:
3055 `+work-boss'
3056      Select headlines tagged `:work:', but discard those also tagged
3057      `:boss:'.
3059 `work|laptop'
3060      Selects lines tagged `:work:' or `:laptop:'.
3062 `work|laptop&night'
3063      Like before, but require the `:laptop:' lines to be tagged also
3064      `night'.
3066    If you are using multi-state TODO keywords (*note TODO
3067 extensions::), it can be useful to also match on the TODO keyword.
3068 This can be done by adding a condition after a slash to a tags match.
3069 The syntax is similar to the tag matches, but should be applied with
3070 consideration: For example, a positive selection on several TODO
3071 keywords can not meaningfully be combined with boolean AND.  However,
3072 _negative selection_ combined with AND can be meaningful.  To make sure
3073 that only lines are checked that actually have any TODO keyword, use
3074 `C-c a M', or equivalently start the todo part after the slash with `!'.
3075 Examples:
3077 `work/WAITING'
3078      Select `:work:'-tagged TODO lines with the specific TODO keyword
3079      `WAITING'.
3081 `work/!-WAITING-NEXT'
3082      Select `:work:'-tagged TODO lines that are neither `WAITING' nor
3083      `NEXT'
3085 `work/+WAITING|+NEXT'
3086      Select `:work:'-tagged TODO lines that are either `WAITING' or
3087      `NEXT'.
3089    Any element of the tag/todo match can be a regular expression - in
3090 this case it must be enclosed in curly braces.  For example,
3091 `work+{^boss.*}' matches headlines that contain the tag `work' and any
3092 tag starting with `boss'.
3094    You can also require a headline to be of a certain level or
3095 category, by writing instead of any TAG an expression like `LEVEL=3' or
3096 `CATEGORY="work"', respectively.  For example, a search
3097 `+LEVEL=3+boss/-DONE' lists all level three headlines that have the tag
3098 `boss' and are _not_ marked with the todo keyword DONE.
3100 \x1f
3101 File: org,  Node: Properties and columns,  Next: Dates and times,  Prev: Tags,  Up: Top
3103 7 Properties and Columns
3104 ************************
3106 Properties are a set of key-value pairs associated with an entry.  There
3107 are two main applications for properties in Org-mode.  First, properties
3108 are like tags, but with a value.  For example, in a file where you
3109 document bugs and plan releases of a piece of software, instead of using
3110 tags like `:release_1:', `:release_2:', it can be more efficient to use
3111 a property `Release' with a value `1.0' or `2.0'.  Second, you can use
3112 properties to implement (very basic) database capabilities in an
3113 Org-mode buffer, for example to create a list of Music CD's you own.
3114 You can edit and view properties conveniently in column view (*note
3115 Column view::).
3117 * Menu:
3119 * Property syntax::             How properties are spelled out
3120 * Special properties::          Access to other Org-mode features
3121 * Property searches::           Matching property values
3122 * Property inheritance::        Passing values down the tree
3123 * Column view::                 Tabular viewing and editing
3124 * Property API::                Properties for Lisp programmers
3126 \x1f
3127 File: org,  Node: Property syntax,  Next: Special properties,  Prev: Properties and columns,  Up: Properties and columns
3129 7.1 Property Syntax
3130 ===================
3132 Properties are key-value pairs.  They need to be inserted into a special
3133 drawer (*note Drawers::) with the name `PROPERTIES'.  Each property is
3134 specified on a single line, with the key (surrounded by colons) first,
3135 and the value after it.  Here is an example:
3137      * CD collection
3138      ** Classic
3139      *** Goldberg Variations
3140          :PROPERTIES:
3141          :Title:     Goldberg Variations
3142          :Composer:  J.S. Bach
3143          :Artist:    Glen Gould
3144          :Publisher: Deutsche Grammphon
3145          :NDisks:    1
3146          :END:
3148    You may define the allowed values for a particular property `Xyz' by
3149 setting a property `Xyz_ALL'.  This special property is _inherited_, so
3150 if you set it in a level 1 entry, it will apply to the entire tree.
3151 When allowed values are defined, setting the corresponding property
3152 becomes easier and is less prone to typing errors.  For the example
3153 with the CD collection, we can predefine publishers and the number of
3154 disks in a box like this:
3156      * CD collection
3157        :PROPERTIES:
3158        :NDisks_ALL:  1 2 3 4
3159        :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
3160        :END:
3162    If you want to set properties that can be inherited by any entry in a
3163 file, use a line like
3165      #+PROPERTY: NDisks_ALL 1 2 3 4
3167    Property values set with the global variable `org-global-properties'
3168 can be inherited by all entries in all Org-mode files.
3170 The following commands help to work with properties:
3172 `M-<TAB>'
3173      After an initial colon in a line, complete property keys.  All
3174      keys used in the current file will be offered as possible
3175      completions.  
3177 `C-c C-x p'
3178      Set a property.  This prompts for a property name and a value.  If
3179      necessary, the property drawer is created as well.
3181 `M-x org-insert-property-drawer'
3182      Insert a property drawer into the current entry.  The drawer will
3183      be inserted early in the entry, but after the lines with planning
3184      information like deadlines.  
3186 `C-c C-c'
3187      With the cursor in a property drawer, this executes property
3188      commands.
3190 `C-c C-c s'
3191      Set a property in the current entry.  Both the property and the
3192      value can be inserted using completion.  
3194 `S-<left>/<right>'
3195      Switch property at point to the next/previous allowed value.
3197 `C-c C-c d'
3198      Remove a property from the current entry.
3200 `C-c C-c D'
3201      Globally remove a property, from all entries in the current file.
3203 `C-c C-c c'
3204      Compute the property at point, using the operator and scope from
3205      the nearest column format definition.
3207 \x1f
3208 File: org,  Node: Special properties,  Next: Property searches,  Prev: Property syntax,  Up: Properties and columns
3210 7.2 Special Properties
3211 ======================
3213 Special properties provide alternative access method to Org-mode
3214 features discussed in the previous chapters, like the TODO state or the
3215 priority of an entry.  This interface exists so that you can include
3216 these states into columns view (*note Column view::), or to use them in
3217 queries.  The following property names are special and should not be
3218 used as keys in the properties drawer:
3220      TODO         The TODO keyword of the entry.
3221      TAGS         The tags defined directly in the headline.
3222      ALLTAGS      All tags, including inherited ones.
3223      PRIORITY     The priority of the entry, a string with a single letter.
3224      DEADLINE     The deadline time string, without the angular brackets.
3225      SCHEDULED    The scheduling time stamp, without the angular brackets.
3226      TIMESTAMP    The first keyword-less time stamp in the entry.
3227      TIMESTAMP_IA The first inactive time stamp in the entry.
3229 \x1f
3230 File: org,  Node: Property searches,  Next: Property inheritance,  Prev: Special properties,  Up: Properties and columns
3232 7.3 Property searches
3233 =====================
3235 To create sparse trees and special lists with selection based on
3236 properties, the same commands are used as for tag searches (*note Tag
3237 searches::), and the same logic applies.  For example, a search string
3239      +work-boss+PRIORITY="A"+Coffee="unlimited"+With={Sarah\|Denny}
3241 finds entries tagged `:work:' but not `:boss:', which also have a
3242 priority value `A', a `:Coffee:' property with the value `unlimited',
3243 and a `:With:' property that is matched by the regular expression
3244 `Sarah\|Denny'.
3246    You can configure Org-mode to use property inheritance during a
3247 search, see *Note Property inheritance:: for details.
3249    There is also a special command for creating sparse trees based on a
3250 single property:
3252 `C-c / p'
3253      Create a sparse tree based on the value of a property.  This first
3254      prompts for the name of a property, and then for a value.  A
3255      sparse tree is created with all entries that define this property
3256      with the given value.  If you enclose the value into curly braces,
3257      it is interpreted as a regular expression and matched against the
3258      property values.
3260 \x1f
3261 File: org,  Node: Property inheritance,  Next: Column view,  Prev: Property searches,  Up: Properties and columns
3263 7.4 Property Inheritance
3264 ========================
3266 The outline structure of Org-mode documents lends itself for an
3267 inheritance model of properties: If the parent in a tree has a certain
3268 property, the children can inherit this property.  Org-mode does not
3269 turn this on by default, because it can slow down property searches
3270 significantly and is often not needed.  However, if you find inheritance
3271 useful, you can turn it on by setting the variable
3272 `org-use-property-inheritance'.  It may be set to `t', to make all
3273 properties inherited from the parent, or to a list of properties that
3274 should be inherited.
3276    Org-mode has a few properties for which inheritance is hard-coded, at
3277 least for the special applications for which they are used:
3279 `COLUMNS'
3280      The column property defines the format of column view (*note
3281      Column view::).  It is inherited in the sense that the level where
3282      a `COLUMNS' property is defined is used as the starting point for a
3283      column view table, independently of the location in the subtree
3284      from where columns view is turned on.
3286 `CATEGORY'
3287      For agenda view, a category set through a `CATEGORY' property
3288      applies to the entire subtree.
3290 `ARCHIVE'
3291      For archiving, the `ARCHIVE' property may define the archive
3292      location for the entire subtree (*note Moving subtrees::).
3294 \x1f
3295 File: org,  Node: Column view,  Next: Property API,  Prev: Property inheritance,  Up: Properties and columns
3297 7.5 Column View
3298 ===============
3300 A great way to view and edit properties in an outline tree is _column
3301 view_.  In column view, each outline item is turned into a table row.
3302 Columns in this table provide access to properties of the entries.
3303 Org-mode implements columns by overlaying a tabular structure over the
3304 headline of each item.  While the headlines have been turned into a
3305 table row, you can still change the visibility of the outline tree.
3306 For example, you get a compact table by switching to CONTENTS view
3307 (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
3308 can still open, read, and edit the entry below each headline.  Or, you
3309 can switch to column view after executing a sparse tree command and in
3310 this way get a table only for the selected items.  Column view also
3311 works in agenda buffers (*note Agenda views::) where queries have
3312 collected selected items, possibly from a number of files.
3314 * Menu:
3316 * Defining columns::            The COLUMNS format property
3317 * Using column view::           How to create and use column view
3318 * Capturing Column View::       A dynamic block for column view
3320 \x1f
3321 File: org,  Node: Defining columns,  Next: Using column view,  Prev: Column view,  Up: Column view
3323 7.5.1 Defining Columns
3324 ----------------------
3326 Setting up a column view first requires defining the columns.  This is
3327 done by defining a column format line.
3329 * Menu:
3331 * Scope of column definitions::  Where defined, where valid?
3332 * Column attributes::           Appearance and content of a column
3334 \x1f
3335 File: org,  Node: Scope of column definitions,  Next: Column attributes,  Prev: Defining columns,  Up: Defining columns
3337 7.5.1.1 Scope of column definitions
3338 ...................................
3340 To define a column format for an entire file, use a line like
3342      #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3344    To specify a format that only applies to a specific tree, add a
3345 COLUMNS property to the top node of that tree, for example
3346      ** Top node for columns view
3347         :PROPERTIES:
3348         :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3349         :END:
3351    If a `COLUMNS' property is present in an entry, it defines columns
3352 for the entry itself, and for the entire subtree below it.  Since the
3353 column definition is part of the hierarchical structure of the document,
3354 you can define columns on level 1 that are general enough for all
3355 sublevels, and more specific columns further down, when you edit a
3356 deeper part of the tree.
3358 \x1f
3359 File: org,  Node: Column attributes,  Prev: Scope of column definitions,  Up: Defining columns
3361 7.5.1.2 Column attributes
3362 .........................
3364 A column definition sets the attributes of a column.  The general
3365 definition looks like this:
3367       %[width]property[(title)][{summary-type}]
3369 Except for the percent sign and the property name, all items are
3370 optional.  The individual parts have the following meaning:
3372      width           An integer specifying the width of the column in characters.
3373                      If omitted, the width will be determined automatically.
3374      property        The property that should be edited in this column.
3375      (title)         The header text for the column. If omitted, the
3376                      property name is used.
3377      {summary-type}  The summary type.  If specified, the column values for
3378                      parent nodes are computed from the children.
3379                      Supported summary types are:
3380                      {+}       Sum numbers in this column.
3381                      {+;%.1f}  Like `+', but format result with `%.1f'.
3382                      {$}       Currency, short for `+;%.2f'.
3383                      {:}       Sum times, HH:MM:SS, plain numbers are hours.
3384                      {X}       Checkbox status, [X] if all children are [X].
3386 Here is an example for a complete columns definition, along with allowed
3387 values.
3389      :COLUMNS:  %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
3390      :Owner_ALL:    Tammy Mark Karl Lisa Don
3391      :Status_ALL:   "In progress" "Not started yet" "Finished" ""
3392      :Approved_ALL: "[ ]" "[X]"
3394    The first column, `%25ITEM', means the first 25 characters of the
3395 item itself, i.e. of the headline.  You probably always should start the
3396 column definition with the ITEM specifier.  The other specifiers create
3397 columns `Owner' with a list of names as allowed values, for `Status'
3398 with four different possible values, and for a checkbox field
3399 `Approved'.  When no width is given after the `%' character, the column
3400 will be exactly as wide as it needs to be in order to fully display all
3401 values.  The `Approved' column does have a modified title (`Approved?',
3402 with a question mark).  Summaries will be created for the `Time_Spent'
3403 column by adding time duration expressions like HH:MM, and for the
3404 `Approved' column, by providing an `[X]' status if all children have
3405 been checked.
3407 \x1f
3408 File: org,  Node: Using column view,  Next: Capturing Column View,  Prev: Defining columns,  Up: Column view
3410 7.5.2 Using Column View
3411 -----------------------
3413 Turning column view on and off
3414 ..............................
3416 `C-c C-x C-c'
3417      Create the column view for the local environment.  This command
3418      searches the hierarchy, up from point, for a `COLUMNS' property
3419      that defines a format.  When one is found, the column view table
3420      is established for the entire tree, starting from the entry that
3421      contains the `COLUMNS' property.  If none is found, the format is
3422      taken from the `#+COLUMNS' line or from the variable
3423      `org-columns-default-format', and column view is established for
3424      the current entry and its subtree.  
3427      Exit column view.
3429 Editing values
3430 ..............
3432 `<left> <right> <up> <down>'
3433      Move through the column view from field to field.  
3435 `S-<left>/<right>'
3436      Switch to the next/previous allowed value of the field.  For this,
3437      you have to have specified allowed values for a property.  
3439 `n / p'
3440      Same as `S-<left>/<right>' 
3443      Edit the property at point.  For the special properties, this will
3444      invoke the same interface that you normally use to change that
3445      property.  For example, when editing a TAGS property, the tag
3446      completion or fast selection interface will pop up.  
3448 `C-c C-c'
3449      When there is a checkbox at point, toggle it.  
3452      View the full value of this property.  This is useful if the width
3453      of the column is smaller than that of the value.  
3456      Edit the list of allowed values for this property.  If the list is
3457      found in the hierarchy, the modified values is stored there.  If
3458      no list is found, the new value is stored in the first entry that
3459      is part of the current column view.
3461 Modifying the table structure
3462 .............................
3464 `< / >'
3465      Make the column narrower/wider by one character.  
3467 `S-M-<right>'
3468      Insert a new column, to the right of the current column.  
3470 `S-M-<left>'
3471      Delete the current column.
3473 \x1f
3474 File: org,  Node: Capturing Column View,  Prev: Using column view,  Up: Column view
3476 7.5.3 Capturing Column View
3477 ---------------------------
3479 Since column view is just an overlay over a buffer, it cannot be
3480 exported or printed directly.  If you want to capture a column view, use
3481 the dynamic block (*note Dynamic blocks::).  The frame of this block
3482 looks like this:
3484      * The column view
3485      #+BEGIN: columnview :hlines 1 :id "label"
3487      #+END:
3489 This dynamic block has the following parameters:
3491 `:id'
3492      This is most important parameter.  Column view is a feature that is
3493      often localized to a certain (sub)tree, and the capture block
3494      might be in a different location in the file.  To identify the
3495      tree whose view to capture, you can use 3 values:
3496           local     use the tree in which the capture block is located
3497           global    make a global view, including all headings in the file
3498           "label"   call column view in the tree that has and `:ID:'
3499                     property with the value label
3501 `:hlines'
3502      When `t', insert a hline after every line.  When a number N, insert
3503      a hline before each headline with level `<= N'.
3505 `:vlines'
3506      When set to `t', enforce column groups to get vertical lines.
3508 The following commands insert or update the dynamic block:
3510 `C-c C-x r'
3511      Insert a dynamic block capturing a column view.  You will be
3512      prompted for the scope or id of the view.  
3514 `C-c C-c'
3515 `C-c C-x C-u'
3516      Update dynamical block at point.  The cursor needs to be in the
3517      `#+BEGIN' line of the dynamic block.  
3519 `C-u C-c C-x C-u'
3520      Update all dynamic blocks (*note Dynamic blocks::).  This is
3521      useful if you have several clocktable blocks in a buffer.
3523 \x1f
3524 File: org,  Node: Property API,  Prev: Column view,  Up: Properties and columns
3526 7.6 The Property API
3527 ====================
3529 There is a full API for accessing and changing properties.  This API can
3530 be used by Emacs Lisp programs to work with properties and to implement
3531 features based on them.  For more information see *Note Using the
3532 property API::.
3534 \x1f
3535 File: org,  Node: Dates and times,  Next: Remember,  Prev: Properties and columns,  Up: Top
3537 8 Dates and Times
3538 *****************
3540 Items can be labeled with a date and/or a time to make them useful for
3541 project planning.  The specially formatted string carrying the date and
3542 time information is called a _timestamp_ in Org-mode.  This may be a
3543 little confusing because timestamp is often used as indicating when
3544 something was created or last changed.  However, in Org-mode this term
3545 is used in a much wider sense.
3547 * Menu:
3549 * Time stamps::                 Assigning a time to a tree entry
3550 * Creating timestamps::         Commands which insert timestamps
3551 * Deadlines and scheduling::    Planning your work
3552 * Clocking work time::
3554 \x1f
3555 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Dates and times,  Up: Dates and times
3557 8.1 Time stamps, deadlines and scheduling
3558 =========================================
3560 A time stamp is a specification of a date (possibly with time or a range
3561 of times) in a special format, either `<2003-09-16 Tue>' or
3562 `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1).  A time
3563 stamp can appear anywhere in the headline or body of an org-tree entry.
3564 Its presence causes entries to be shown on specific dates in the agenda
3565 (*note Weekly/Daily agenda::).  We distinguish:
3567 PLAIN TIME STAMP; EVENT; APPOINTMENT
3568      A simple time stamp just assigns a date/time to an item.  This is
3569      just like writing down an appointment or event in a paper agenda.
3570      In the timeline and agenda displays, the headline of an entry
3571      associated with a plain time stamp will be shown exactly on that
3572      date.
3574           * Meet Peter at the movies <2006-11-01 Wed 19:15>
3575           * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
3577 TIME STAMP WITH REPEATER INTERVAL
3578      A time stamp may contain a _repeater interval_, indicating that it
3579      applies not only on the given date, but again and again after a
3580      certain interval of N days (d), weeks (w), months(m), or years(y).
3581      The following will show up in the agenda every Wednesday:
3583           * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
3585 DIARY-STYLE SEXP ENTRIES
3586      For more complex date specifications, Org-mode supports using the
3587      special sexp diary entries implemented in the Emacs calendar/diary
3588      package.  For example
3590           * The nerd meeting on every 2nd Thursday of the month
3591             <%%(diary-float t 4 2)>
3593 TIME/DATE RANGE
3594      Two time stamps connected by `--' denote a range.  The headline
3595      will be shown on the first and last day of the range, and on any
3596      dates that are displayed and fall in the range.  Here is an
3597      example:
3599           ** Meeting in Amsterdam
3600              <2004-08-23 Mon>--<2004-08-26 Thu>
3602 INACTIVE TIME STAMP
3603      Just like a plain time stamp, but with square brackets instead of
3604      angular ones.  These time stamps are inactive in the sense that
3605      they do _not_ trigger an entry to show up in the agenda.
3607           * Gillian comes late for the fifth time [2006-11-01 Wed]
3610    ---------- Footnotes ----------
3612    (1) This is the standard ISO date/time format.  If you cannot get
3613 used to these, see *Note Custom time format::
3615 \x1f
3616 File: org,  Node: Creating timestamps,  Next: Deadlines and scheduling,  Prev: Time stamps,  Up: Dates and times
3618 8.2 Creating timestamps
3619 =======================
3621 For Org-mode to recognize time stamps, they need to be in the specific
3622 format.  All commands listed below produce time stamps in the correct
3623 format.
3625 `C-c .'
3626      Prompt for a date and insert a corresponding time stamp.  When the
3627      cursor is at a previously used time stamp, it is updated to NOW.
3628      When this command is used twice in succession, a time range is
3629      inserted.  
3631 `C-u C-c .'
3632      Like `C-c .', but use the alternative format which contains date
3633      and time.  The default time can be rounded to multiples of 5
3634      minutes, see the option `org-time-stamp-rounding-minutes'.  
3636 `C-c !'
3637      Like `C-c .', but insert an inactive time stamp that will not cause
3638      an agenda entry.  
3640 `C-c <'
3641      Insert a time stamp corresponding to the cursor date in the
3642      Calendar.  
3644 `C-c >'
3645      Access the Emacs calendar for the current date.  If there is a
3646      timestamp in the current line, goto the corresponding date instead.  
3648 `C-c C-o'
3649      Access the agenda for the date given by the time stamp or -range at
3650      point (*note Weekly/Daily agenda::).  
3652 `S-<left>'
3653 `S-<right>'
3654      Change date at cursor by one day.  These key bindings conflict with
3655      CUA-mode (*note Conflicts::).  
3657 `S-<up>'
3658 `S-<down>'
3659      Change the item under the cursor in a timestamp.  The cursor can
3660      be on a year, month, day, hour or minute.  Note that if the cursor
3661      is in a headline and not at a time stamp, these same keys modify
3662      the priority of an item.  (*note Priorities::). The key bindings
3663      also conflict with CUA-mode (*note Conflicts::).  
3665 `C-c C-y'
3666      Evaluate a time range by computing the difference between start and
3667      end.  With prefix arg, insert result after the time range (in a
3668      table: into the following column).
3670 * Menu:
3672 * The date/time prompt::        How org-mode helps you entering date and time
3673 * Custom time format::          Making dates look differently
3675 \x1f
3676 File: org,  Node: The date/time prompt,  Next: Custom time format,  Prev: Creating timestamps,  Up: Creating timestamps
3678 8.2.1 The date/time prompt
3679 --------------------------
3681 When Org-mode prompts for a date/time, the default is shown as an ISO
3682 date, and the prompt therefore seems to ask for an ISO date.  But it
3683 will in fact accept any string containing some date and/or time
3684 information, and it is really smart about interpreting your input.  You
3685 can, for example, use `C-y' to paste a (possibly multi-line) string
3686 copied from an email message.  Org-mode will find whatever information
3687 is in there and derive anything you have not specified from the
3688 _default date and time_.  The default is usually the current date and
3689 time, but when modifying an existing time stamp, or when entering the
3690 second stamp of a range, it is taken from the stamp in the buffer.
3691 When filling in information, Org-mode assumes that most of the time you
3692 will want to enter a date in the future: If you omit the month/year and
3693 the given day/month is before today, it will assume that you mean a
3694 future date(1).
3696    For example, lets assume that today is June 13, 2006.  Here is how
3697 various inputs will be interpreted, the items filled in by Org-mode are
3698 in bold.
3700      3-2-5         --> 2003-02-05
3701      14            --> 2006-06-14
3702      12            --> 2006-07-12
3703      Fri           --> nearest Friday (defaultdate or later)
3704      sep 15        --> 2006-11-15
3705      feb 15        --> 2007-02-15
3706      sep 12 9      --> 2009-09-12
3707      12:45         --> 2006-06-13 12:45
3708      22 sept 0:34  --> 2006-09-22 0:34
3710    Furthermore you can specify a relative date by giving, as the
3711 _first_ thing in the input: a plus/minus sign, a number and a letter
3712 [dwmy] to indicate change in days weeks, months, years.  With a single
3713 plus or minus, the date is always relative to today.  With a double
3714 plus or minus, it is relative to the default date.  If instead of a
3715 single letter, you use the abbreviation of day name, the date will be
3716 the nth such day.  E.g.
3718      +4d           --> four days from today
3719      +4            --> same as above
3720      +2w           --> two weeks from today
3721      ++5           --> five days from default date
3722      +2tue         --> second tuesday from now.
3724    The function understands English month and weekday abbreviations.  If
3725 you want to use unabbreviated names and/or other languages, configure
3726 the variables `parse-time-months' and `parse-time-weekdays'.
3728    Parallel to the minibuffer prompt, a calendar is popped up(2).  When
3729 you exit the date prompt, either by clicking on a date in the calendar,
3730 or by pressing <RET>, the date selected in the calendar will be
3731 combined with the information entered at the prompt.  You can control
3732 the calendar fully from the minibuffer:
3734      > / <          Scroll calendar forward/backward by one month.
3735      mouse-1        Select date by clicking on it.
3736      S-<right>/<left>     One day forward/backward.
3737      S-<down>/<up>     One week forward/backward.
3738      M-S-<right>/<left>   One month forward/backward.
3739      <RET>           Choose date in calendar.
3741    The actions of the date/time prompt may seem complex, but I asure you
3742 they will grow on you.  To help you understand what is going on, the
3743 current interpretation of your input will be displayed live in the
3744 minibuffer(3).
3746    ---------- Footnotes ----------
3748    (1) See the variable `org-read-date-prefer-future'.
3750    (2) If you don't need/want the calendar, configure the variable
3751 `org-popup-calendar-for-date-prompt'.
3753    (3) If you find this distracting, turn the display of with
3754 `org-read-date-display-live'.
3756 \x1f
3757 File: org,  Node: Custom time format,  Prev: The date/time prompt,  Up: Creating timestamps
3759 8.2.2 Custom time format
3760 ------------------------
3762 Org-mode uses the standard ISO notation for dates and times as it is
3763 defined in ISO 8601.  If you cannot get used to this and require another
3764 representation of date and time to keep you happy, you can get it by
3765 customizing the variables `org-display-custom-times' and
3766 `org-time-stamp-custom-formats'.
3768 `C-c C-x C-t'
3769      Toggle the display of custom formats for dates and times.
3771 Org-mode needs the default format for scanning, so the custom date/time
3772 format does not _replace_ the default format - instead it is put _over_
3773 the default format using text properties.  This has the following
3774 consequences:
3775    * You cannot place the cursor onto a time stamp anymore, only before
3776      or after.
3778    * The `S-<up>/<down>' keys can no longer be used to adjust each
3779      component of a time stamp.  If the cursor is at the beginning of
3780      the stamp, `S-<up>/<down>' will change the stamp by one day, just
3781      like `S-<left>/<right>'.  At the end of the stamp, the time will
3782      be changed by one minute.
3784    * If the time stamp contains a range of clock times or a repeater,
3785      these will not be overlayed, but remain in the buffer as they were.
3787    * When you delete a time stamp character-by-character, it will only
3788      disappear from the buffer after _all_ (invisible) characters
3789      belonging to the ISO timestamp have been removed.
3791    * If the custom time stamp format is longer than the default and you
3792      are using dates in tables, table alignment will be messed up.  If
3793      the custom format is shorter, things do work as expected.
3795 \x1f
3796 File: org,  Node: Deadlines and scheduling,  Next: Clocking work time,  Prev: Creating timestamps,  Up: Dates and times
3798 8.3 Deadlines and Scheduling
3799 ============================
3801 A time stamp may be preceded by special keywords to facilitate planning
3802 of work:
3804 DEADLINE
3805      The task (most likely a TODO item) is supposed to be finished on
3806      that date, and it will be listed then.  In addition, the
3807      compilation for _today_ will carry a warning about the approaching
3808      or missed deadline, starting `org-deadline-warning-days' before
3809      the due date, and continuing until the entry is marked DONE.  An
3810      example:
3812           *** TODO write article about the Earth for the Guide
3813               The editor in charge is [[bbdb:Ford Prefect]]
3814               DEADLINE: <2004-02-29 Sun>
3816      You can specify a different lead time for warnings for a specific
3817      deadlines using the following syntax.  Here is an example with a
3818      warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
3820 SCHEDULED
3821      You are planning to start working on that task on the given date.
3822      The headline will be listed under the given date(1).  In addition,
3823      a reminder that the scheduled date has passed will be present in
3824      the compilation for _today_, until the entry is marked DONE.
3825      I.e., the task will automatically be forwarded until completed.
3827           *** TODO Call Trillian for a date on New Years Eve.
3828               SCHEDULED: <2004-12-25 Sat>
3830      Important: Scheduling an item in Org-mode should not be understood
3831      like Scheduling a meeting.  Setting a date for a meeting is just a
3832      simple appointment, you should mark this entry with a simple plain
3833      time stamp, to get this item shown on the date where it applies.
3834      This is a frequent mis-understanding from Org-users.  In Org-mode,
3835      Scheduling means setting a date when you want to start working on
3836      an action item.
3838 * Menu:
3840 * Inserting deadline/schedule::  Planning items
3841 * Repeated tasks::              Items that show up again and again
3843    ---------- Footnotes ----------
3845    (1) It will still be listed on that date after it has been marked
3846 DONE.  If you don't like this, set the variable
3847 `org-agenda-skip-scheduled-if-done'.
3849 \x1f
3850 File: org,  Node: Inserting deadline/schedule,  Next: Repeated tasks,  Prev: Deadlines and scheduling,  Up: Deadlines and scheduling
3852 8.3.1 Inserting deadline/schedule
3853 ---------------------------------
3855 The following commands allow to quickly insert a deadline or to schedule
3856 an item:
3858 `C-c C-d'
3859      Insert `DEADLINE' keyword along with a stamp.  The insertion will
3860      happen in the line directly following the headline.  When called
3861      with a prefix arg, an existing deadline will be removed from the
3862      entry.  
3864 `C-c / d'
3865      Create a sparse tree with all deadlines that are either past-due,
3866      or which will become due within `org-deadline-warning-days'.  With
3867      `C-u' prefix, show all deadlines in the file.  With a numeric
3868      prefix, check that many days.  For example, `C-1 C-c / d' shows
3869      all deadlines due tomorrow.  
3871 `C-c C-s'
3872      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
3873      happen in the line directly following the headline.  Any CLOSED
3874      timestamp will be removed.  When called with a prefix argument,
3875      remove the scheduling date from the entry.
3877 \x1f
3878 File: org,  Node: Repeated tasks,  Prev: Inserting deadline/schedule,  Up: Deadlines and scheduling
3880 8.3.2 Repeated Tasks
3881 --------------------
3883 Some tasks need to be repeated again and again, and Org-mode therefore
3884 allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
3885 example:
3886      ** TODO Pay the rent
3887         DEADLINE: <2005-10-01 Sat +1m>
3889    Deadlines and scheduled items produce entries in the agenda when they
3890 are over-due, so it is important to be able to mark such an entry as
3891 completed once you have done so.  When you mark a DEADLINE or a SCHEDULE
3892 with the todo keyword DONE, it will no longer produce entries in the
3893 agenda. The problem with this is, however, that then also the _next_
3894 instance of the repeated entry will not be active.  Org-mode deals with
3895 this in the following way: When you try to mark such an entry DONE
3896 (using `C-c C-t'), it will shift the base date of the repeating time
3897 stamp by the repeater interval, and immediately set the entry state
3898 back to TODO.  In the example above, setting the state to DONE would
3899 actually switch the date like this:
3901      ** TODO Pay the rent
3902         DEADLINE: <2005-11-01 Tue +1m>
3904    You will also be prompted for a note(1) that will be put under the
3905 DEADLINE line to keep a record that you actually acted on the previous
3906 instance of this deadline.
3908    As a consequence of shifting the base date, this entry will no
3909 longer be visible in the agenda when checking past dates, but all
3910 future instances will be visible.
3912    You may have both scheduling and deadline information for a specific
3913 task - just make sure that the repeater intervals on both are the same.
3915    ---------- Footnotes ----------
3917    (1) You can change this using the option `org-log-repeat', or the
3918 `#+STARTUP' options `logrepeat' and `nologrepeat'.
3920 \x1f
3921 File: org,  Node: Clocking work time,  Prev: Deadlines and scheduling,  Up: Dates and times
3923 8.4 Clocking work time
3924 ======================
3926 Org-mode allows you to clock the time you spent on specific tasks in a
3927 project.  When you start working on an item, you can start the clock.
3928 When you stop working on that task, or when you mark the task done, the
3929 clock is stopped and the corresponding time interval is recorded.  It
3930 also computes the total time spent on each subtree of a project.
3932 `C-c C-x C-i'
3933      Start the clock on the current item (clock-in).  This inserts the
3934      CLOCK keyword together with a timestamp.  If this is not the first
3935      clocking of this item, the multiple CLOCK lines will be wrapped
3936      into a `:CLOCK:' drawer (see also the variable
3937      `org-clock-into-drawer'.  
3939 `C-c C-x C-o'
3940      Stop the clock (clock-out).  The inserts another timestamp at the
3941      same location where the clock was last started.  It also directly
3942      computes the resulting time in inserts it after the time range as
3943      `=> HH:MM'.  See the variable `org-log-done' for the possibility to
3944      record an additional note together with the clock-out time
3945      stamp(1).  
3947 `C-c C-y'
3948      Recompute the time interval after changing one of the time stamps.
3949      This is only necessary if you edit the time stamps directly.  If
3950      you change them with `S-<cursor>' keys, the update is automatic.  
3952 `C-c C-t'
3953      Changing the TODO state of an item to DONE automatically stops the
3954      clock if it is running in this same item.  
3956 `C-c C-x C-x'
3957      Cancel the current clock.  This is useful if a clock was started by
3958      mistake, or if you ended up working on something else.  
3960 `C-c C-x C-j'
3961      Jump to the entry that contains the currently running clock, an
3962      another window.  
3964 `C-c C-x C-d'
3965      Display time summaries for each subtree in the current buffer.
3966      This puts overlays at the end of each headline, showing the total
3967      time recorded under that heading, including the time of any
3968      subheadings. You can use visibility cycling to study the tree, but
3969      the overlays disappear when you change the buffer (see variable
3970      `org-remove-highlights-with-change') or press `C-c C-c'.  
3972 `C-c C-x C-r'
3973      Insert a dynamic block (*note Dynamic blocks::) containing a clock
3974      report as an org-mode table into the current file.  When the
3975      cursor is at an existing clock table, just update it.  When called
3976      with a prefix argument, jump to the first clock report in the
3977      current document and update it.
3978           #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
3980           #+END: clocktable
3981      If such a block already exists at point, its content is replaced
3982      by the new table.  The `BEGIN' line can specify options:
3983           :maxlevel    Maximum level depth to which times are listed in the table.
3984           :emphasize   When `t', emphasize level one and level two items
3985           :scope       The scope to consider.  This can be any of the following:
3986                        nil        the current buffer or narrowed region
3987                        file       the full current buffer
3988                        subtree    the subtree where the clocktable is located
3989                        treeN      the surrounding level N tree, for example `tree3'
3990                        tree       the surrounding level 1 tree
3991                        agenda     all agenda files
3992                        ("file"..) scan these files
3993           :block       The time block to consider.  This block is specified relative
3994                        to the current time and may be any of these keywords:
3995                        `today', `yesterday', `thisweek', `lastweek',
3996                        `thismonth', `lastmonth', `thisyear', or `lastyear'.
3997           :tstart      A time string specifying when to start considering times
3998           :tend        A time string specifying when to stop considering times
3999      So to get a clock summary of the current level 1 tree, for the
4000      current day, you could write
4001           #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
4003           #+END: clocktable
4004      and to use a specific time range you could write(2)
4005           #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
4006                               :tend "<2006-08-10 Thu 12:00>"
4008           #+END: clocktable
4009      
4010 `C-c C-c'
4011 `C-c C-x C-u'
4012      Update dynamical block at point.  The cursor needs to be in the
4013      `#+BEGIN' line of the dynamic block.  
4015 `C-u C-c C-x C-u'
4016      Update all dynamic blocks (*note Dynamic blocks::).  This is
4017      useful if you have several clocktable blocks in a buffer.
4019    The `l' key may be used in the timeline (*note Timeline::) and in
4020 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
4021 worked on or closed during a day.
4023    ---------- Footnotes ----------
4025    (1) The corresponding in-buffer setting is: `#+STARTUP:
4026 lognoteclock-out'
4028    (2) Note that all parameters must be specified in a single line -
4029 the line is broken here only to fit it onto the manual.
4031 \x1f
4032 File: org,  Node: Remember,  Next: Agenda views,  Prev: Dates and times,  Up: Top
4034 9 Remember
4035 **********
4037 The Remember package by John Wiegley lets you store quick notes with
4038 little interruption of your work flow.  See
4039 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
4040 information.  It is an excellent way to add new notes and tasks to
4041 Org-mode files.  Org-mode significantly expands the possibilities of
4042 remember: You may define templates for different note types, and
4043 associate target files and headlines with specific templates.  It also
4044 allows you to select the location where a note should be stored
4045 interactively, on the fly.
4047 * Menu:
4049 * Setting up remember::         Some code for .emacs to get things going
4050 * Remember templates::          Define the outline of different note types
4051 * Storing notes::               Directly get the note to where it belongs
4052 * Refiling notes::              Moving a note or task to a project
4054 \x1f
4055 File: org,  Node: Setting up remember,  Next: Remember templates,  Prev: Remember,  Up: Remember
4057 9.1 Setting up remember
4058 =======================
4060 The following customization will tell remember to use org files as
4061 target, and to create annotations compatible with Org-mode links.
4063      (org-remember-insinuate)
4064      (setq org-directory "~/path/to/my/orgfiles/")
4065      (setq org-default-notes-file (concat org-directory "/notes.org"))
4066      (define-key global-map "\C-cr" 'org-remember)
4068    The last line binds the command `org-remember' to a global key(1).
4069 `org-remember' basically just calls `remember', but it makes a few
4070 things easier: If there is an active region, it will automatically copy
4071 the region into the remember buffer.  It also allows to jump to the
4072 buffer and location where remember notes are being stored: Just call
4073 `org-remember' with a prefix argument.
4075    ---------- Footnotes ----------
4077    (1) Please select your own key, `C-c r' is only a suggestion.
4079 \x1f
4080 File: org,  Node: Remember templates,  Next: Storing notes,  Prev: Setting up remember,  Up: Remember
4082 9.2 Remember templates
4083 ======================
4085 In combination with Org-mode, you can use templates to generate
4086 different types of remember notes.  For example, if you would like to
4087 use one template to create general TODO entries, another one for
4088 journal entries, and a third one for collecting random ideas, you could
4089 use:
4091      (setq org-remember-templates
4092       '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org" "Tasks")
4093         ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")
4094         ("Idea" ?i "* %^{Title}\n  %i\n  %a" "~/org/JOURNAL.org" "New Ideas")))
4096 In these entries, the first string is just a name, and the character
4097 specifies how to select the template.  It is useful if the character is
4098 also the first letter of the name.  The next string specifies the
4099 template.  Two more (optional) strings give the file in which, and the
4100 headline under which the new note should be stored.  The file (if not
4101 present or `nil') defaults to `org-default-notes-file', the heading to
4102 `org-remember-default-headline'.
4104    When you call `M-x remember' (or `M-x org-remember') to remember
4105 something, org will prompt for a key to select the template (if you have
4106 more than one template) and then prepare the buffer like
4107      * TODO
4108        [[file:link to where you called remember]]
4110 During expansion of the template, special `%'-escapes allow dynamic
4111 insertion of content:
4112      %^{prompt}  prompt the user for a string and replace this sequence with it.
4113      %t          time stamp, date only
4114      %T          time stamp with date and time
4115      %u, %U      like the above, but inactive time stamps
4116      %^t         like `%t', but prompt for date.  Similarly `%^T', `%^u', `%^U'
4117                  You may define a prompt like `%^{Birthday}t'
4118      %n          user name (taken from `user-full-name')
4119      %a          annotation, normally the link created with `org-store-link'
4120      %A          like `%a', but prompt for the description part
4121      %i          initial content, the region when remember is called with C-u.
4122                  The entire text will be indented like `%i' itself.
4123      %c          Content of the clipboard, or current kill ring head.
4124      %^g         prompt for tags, with completion on tags in target file.
4125      %^G         prompt for tags, with completion all tags in all agenda files.
4126      %:keyword   specific information for certain link types, see below
4127      %[pathname] insert the contents of the file given by `pathname'
4128      %(sexp)     evaluate elisp `(sexp)' and replace with the result
4130 For specific link types, the following keywords will be defined(1):
4132      Link type          |  Available keywords
4133      -------------------+----------------------------------------------
4134      bbdb               |  %:name %:company
4135      vm, wl, mh, rmail  |  %:type %:subject %:message-id
4136                         |  %:from %:fromname %:fromaddress
4137                         |  %:to   %:toname   %:toaddress
4138                         |  %:fromto (either "to NAME" or "from NAME")(2)
4139      gnus               |  %:group, for messages also all email fields
4140      w3, w3m            |  %:url
4141      info               |  %:file %:node
4142      calendar           |  %:date"
4144 To place the cursor after template expansion use:
4146      %?          After completing the template, position cursor here.
4148 If you change you mind about which template to use, call `org-remember'
4149 in the remember buffer.  You may then select a new template that will
4150 be filled with the previous context information.
4152    ---------- Footnotes ----------
4154    (1) If you define your own link types (*note Adding hyperlink
4155 types::), any property you store with `org-store-link-props' can be
4156 accessed in remember templates in a similar way.
4158    (2) This will always be the other, not the user.  See the variable
4159 `org-from-is-user-regexp'.
4161 \x1f
4162 File: org,  Node: Storing notes,  Next: Refiling notes,  Prev: Remember templates,  Up: Remember
4164 9.3 Storing notes
4165 =================
4167 When you are finished preparing a note with remember, you have to press
4168 `C-c C-c' to file the note away.  The handler will store the note in
4169 the file and under the headline specified in the template, or it will
4170 use the default file and headlines.  The window configuration will be
4171 restored, and you are back in the working context before the call to
4172 `remember'.  To re-use the location found during the last call to
4173 `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
4174 specify a double prefix argument to `C-c C-c'.
4176    If you want to store the note directly to a different place, use
4177 `C-u C-c C-c' instead to exit remember(1).  The handler will then first
4178 prompt for a target file - if you press <RET>, the value specified for
4179 the template is used.  Then the command offers the headings tree of the
4180 selected file, with the cursor position at the default headline (if you
4181 had specified one in the template).  You can either immediately press
4182 <RET> to get the note placed there.  Or you can use the following keys
4183 to find a different location:
4184      <TAB>         Cycle visibility.
4185      <down> / <up>   Next/previous visible headline.
4186      n / p        Next/previous visible headline.
4187      f / b        Next/previous headline same level.
4188      u            One level up.
4189    Pressing <RET> or <left> or <right> then leads to the following
4190 result.
4192 Cursor         Key         Note gets inserted
4193 position                   
4194 on headline    <RET>       as sublevel of the heading at cursor, first or
4195                            last
4196                            depending on `org-reverse-note-order'.
4197                <left>/<right>as same level, before/after current heading
4198 buffer-start   <RET>       as level 2 heading at end of file or level 1
4199                            at beginning
4200                            depending on `org-reverse-note-order'.
4201 not on         <RET>       at cursor position, level taken from context.
4202 headline                   
4204    Before inserting the text into a tree, the function ensures that the
4205 text has a headline, i.e. a first line that starts with a `*'.  If not,
4206 a headline is constructed from the current date and some additional
4207 data.  If you have indented the text of the note below the headline, the
4208 indentation will be adapted if inserting the note into the tree requires
4209 demotion from level 1.
4211    ---------- Footnotes ----------
4213    (1) Configure the variable `org-remember-store-without-prompt' to
4214 make this behavior the default.
4216 \x1f
4217 File: org,  Node: Refiling notes,  Prev: Storing notes,  Up: Remember
4219 9.4 Refiling notes
4220 ==================
4222 Remember is usually used to quickly capture notes and tasks into one or
4223 a few capture lists.  When reviewing the captured data, you may want to
4224 refile some of the entries into a different list, for example into a
4225 project.  Cutting, finding the right location and then pasting the note
4226 is cumbersome.  To simplify this process, you can use the following
4227 special command:
4229 `C-c C-w'
4230      Refile the entry at point.  This command offers possible locations
4231      for refiling the entry and lets you select one with completion.
4232      The item is filed below the target heading as a subitem.
4233      Depending on `org-reverse-note-order', it will be either the first
4234      of last subitem, and you can toggle the value of this variable for
4235      the duration of the command by using a `C-u' prefix.
4236      By default, all level 1 headlines in the current buffer are
4237      considered to be targets, but you can have more complex
4238      definitions across a number of files.  See the variable
4239      `org-refile-targets' for details.  The list of targets is compiled
4240      upon first use, you can update it by using a double prefix
4241      argument (`C-u C-u') to this command.
4243 \x1f
4244 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Remember,  Up: Top
4246 10 Agenda Views
4247 ***************
4249 Due to the way Org-mode works, TODO items, time-stamped items, and
4250 tagged headlines can be scattered throughout a file or even a number of
4251 files.  To get an overview over open action items, or over events that
4252 are important for a particular date, this information must be collected,
4253 sorted and displayed in an organized way.
4255    Org-mode can select items based on various criteria, and display them
4256 in a separate buffer.  Six different view types are provided:
4258    * an _agenda_ that is like a calendar and shows information for
4259      specific dates,
4261    * a _TODO list_ that covers all unfinished action items,
4263    * a _tags view_, showings headlines based on the tags associated
4264      with them,
4266    * a _timeline view_ that shows all events in a single Org-mode file,
4267      in time-sorted view,
4269    * a _stuck projects view_ showing projects that currently don't move
4270      along, and
4272    * _custom views_ that are special tag/keyword searches and
4273      combinations of different views.
4275 The extracted information is displayed in a special _agenda buffer_.
4276 This buffer is read-only, but provides commands to visit the
4277 corresponding locations in the original Org-mode files, and even to
4278 edit these files remotely.
4280    Two variables control how the agenda buffer is displayed and whether
4281 the window configuration is restored when the agenda exits:
4282 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
4284 * Menu:
4286 * Agenda files::                Files being searched for agenda information
4287 * Agenda dispatcher::           Keyboard access to agenda views
4288 * Built-in agenda views::       What is available out of the box?
4289 * Presentation and sorting::    How agenda items are prepared for display
4290 * Agenda commands::             Remote editing of org trees
4291 * Custom agenda views::         Defining special searches and views
4293 \x1f
4294 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
4296 10.1 Agenda files
4297 =================
4299 The information to be shown is normally collected from all _agenda
4300 files_, the files listed in the variable `org-agenda-files'(1). If a
4301 directory is part of this list, all files with the extension `.org' in
4302 this directory will be part of the list.
4304    Thus even if you only work with a single Org-mode file, this file
4305 should be put into that list(2).  You can customize `org-agenda-files',
4306 but the easiest way to maintain it is through the following commands
4308 `C-c ['
4309      Add current file to the list of agenda files.  The file is added to
4310      the front of the list.  If it was already in the list, it is moved
4311      to the front.  With prefix arg, file is added/moved to the end.  
4313 `C-c ]'
4314      Remove current file from the list of agenda files.  
4316 `C-,'
4317 `C-''
4318      Cycle through agenda file list, visiting one file after the other.
4320 The Org menu contains the current list of files and can be used to
4321 visit any of them.
4323    If you would like to focus the agenda temporarily onto a file not in
4324 this list, or onto just one file in the list or even only a subtree in a
4325 file, this can be done in different ways.  For a single agenda command,
4326 you may press `<' once or several times in the dispatcher (*note Agenda
4327 dispatcher::).  To restrict the agenda scope for an extended period,
4328 use the following commands:
4330 `C-c C-x <'
4331      Permanently restrict the agenda to the current subtree.  When with
4332      a prefix argument, or with the cursor before the first headline in
4333      a file, the agenda scope is set to the entire file.  This
4334      restriction remains in effect until removed with `C-c C-x >', or
4335      by typing either `<' or `>' in the agenda dispatcher.  If there is
4336      a window displaying an agenda view, the new restriction takes
4337      effect immediately.  
4339 `C-c C-x <'
4340      Remove the permanent restriction created by `C-c C-x <'.
4342 When working with `Speedbar', you can use the following commands in the
4343 speedbar frame:
4344 `< in the speedbar frame'
4345      Permanently restrict the agenda to the item at the cursor in the
4346      speedbar frame, either an Org-mode file or a subtree in such a
4347      file.  If there is a window displaying an agenda view, the new
4348      restriction takes effect immediately.  
4350 `> in the speedbar frame'
4351      Lift the restriction again.
4353    ---------- Footnotes ----------
4355    (1) If the value of that variable is not a list, but a single file
4356 name, then the list of agenda files will be maintained in that external
4357 file.
4359    (2) When using the dispatcher, pressing `<' before selecting a
4360 command will actually limit the command to the current file, and ignore
4361 `org-agenda-files' until the next dispatcher command.
4363 \x1f
4364 File: org,  Node: Agenda dispatcher,  Next: Built-in agenda views,  Prev: Agenda files,  Up: Agenda views
4366 10.2 The agenda dispatcher
4367 ==========================
4369 The views are created through a dispatcher that should be bound to a
4370 global key, for example `C-c a' (*note Installation::).  In the
4371 following we will assume that `C-c a' is indeed how the dispatcher is
4372 accessed and list keyboard access to commands accordingly.  After
4373 pressing `C-c a', an additional letter is required to execute a
4374 command.  The dispatcher offers the following default commands:
4376      Create the calendar-like agenda (*note Weekly/Daily agenda::).
4378 `t / T'
4379      Create a list of all TODO items (*note Global TODO list::).
4381 `m / M'
4382      Create a list of headlines matching a TAGS expression (*note
4383      Matching tags and properties::).
4386      Create the timeline view for the current buffer (*note Timeline::).
4388 `# / !'
4389      Create a list of stuck projects (*note Stuck projects::).
4392      Search for a regular expression in all agenda files and
4393      additionally in the files listed in
4394      `org-agenda-multi-occur-extra-files'.  This uses the Emacs command
4395      `multi-occur'.  A prefix argument can be used to specify the
4396      number of context lines for each match, default is 1.
4399      Restrict an agenda command to the current buffer(1).  After
4400      pressing `<', you still need to press the character selecting the
4401      command.
4403 `< <'
4404      If there is an active region, restrict the following agenda
4405      command to the region.  Otherwise, restrict it to the current
4406      subtree(2).  After pressing `< <', you still need to press the
4407      character selecting the command.
4409    You can also define custom commands that will be accessible through
4410 the dispatcher, just like the default commands.  This includes the
4411 possibility to create extended agenda buffers that contain several
4412 blocks together, for example the weekly agenda, the global TODO list and
4413 a number of special tags matches.  *Note Custom agenda views::.
4415    ---------- Footnotes ----------
4417    (1) For backward compatibility, you can also press `1' to restrict
4418 to the current buffer.
4420    (2) For backward compatibility, you can also press `0' to restrict
4421 to the current buffer.
4423 \x1f
4424 File: org,  Node: Built-in agenda views,  Next: Presentation and sorting,  Prev: Agenda dispatcher,  Up: Agenda views
4426 10.3 The built-in agenda views
4427 ==============================
4429 In this section we describe the built-in views.
4431 * Menu:
4433 * Weekly/Daily agenda::         The calendar page with current tasks
4434 * Global TODO list::            All unfinished action items
4435 * Matching tags and properties::  Structured information with fine-tuned search
4436 * Timeline::                    Time-sorted view for single file
4437 * Stuck projects::              Find projects you need to review
4439 \x1f
4440 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Built-in agenda views,  Up: Built-in agenda views
4442 10.3.1 The weekly/daily agenda
4443 ------------------------------
4445 The purpose of the weekly/daily _agenda_ is to act like a page of a
4446 paper agenda, showing all the tasks for the current week or day.
4448 `C-c a a'
4449      Compile an agenda for the current week from a list of org files.
4450      The agenda shows the entries for each day.  With a numeric
4451      prefix(1)  (like `C-u 2 1 C-c a a') you may set the number of days
4452      to be displayed (see also the variable `org-agenda-ndays')
4454    Remote editing from the agenda buffer means, for example, that you
4455 can change the dates of deadlines and appointments from the agenda
4456 buffer.  The commands available in the Agenda buffer are listed in
4457 *Note Agenda commands::.
4459 Calendar/Diary integration
4460 ..........................
4462 Emacs contains the calendar and diary by Edward M. Reingold.  The
4463 calendar displays a three-month calendar with holidays from different
4464 countries and cultures.  The diary allows you to keep track of
4465 anniversaries, lunar phases, sunrise/set, recurrent appointments
4466 (weekly, monthly) and more.  In this way, it is quite complementary to
4467 Org-mode.  It can be very useful to combine output from Org-mode with
4468 the diary.
4470    In order to include entries from the Emacs diary into Org-mode's
4471 agenda, you only need to customize the variable
4473      (setq org-agenda-include-diary t)
4475 After that, everything will happen automatically.  All diary entries
4476 including holidays, anniversaries etc will be included in the agenda
4477 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
4478 the agenda buffer to jump to the diary file in order to edit existing
4479 diary entries.  The `i' command to insert new entries for the current
4480 date works in the agenda buffer, as well as the commands `S', `M', and
4481 `C' to display Sunrise/Sunset times, show lunar phases and to convert
4482 to other calendars, respectively.  `c' can be used to switch back and
4483 forth between calendar and agenda.
4485    If you are using the diary only for sexp entries and holidays, it is
4486 faster to not use the above setting, but instead to copy or even move
4487 the entries into an Org-mode file. Org-mode evaluates diary-style sexp
4488 entries, and does it faster because there is no overhead for first
4489 creating the diary display.  Note that the sexp entries must start at
4490 the left margin, no white space is allowed before them.  For example,
4491 the following segment of an Org-mode file will be processed and entries
4492 will be made in the agenda:
4494      * Birthdays and similar stuff
4495      #+CATEGORY: Holiday
4496      %%(org-calendar-holiday)   ; special function for holiday names
4497      #+CATEGORY: Ann
4498      %%(diary-anniversary 14  5 1956) Arthur Dent is %d years old
4499      %%(diary-anniversary  2 10 1869) Mahatma Gandhi would be %d years old
4501 Appointment reminders
4502 .....................
4504 Org can interact with Emacs appointments notification facility.
4506    To add all the appointments of your agenda files, use the command
4507 `org-agenda-to-appt'.  This commands also lets you filter through the
4508 list of your appointments and add only those belonging to a specific
4509 category or matching a regular expression. See the docstring for
4510 details.
4512    ---------- Footnotes ----------
4514    (1) For backward compatibility, the universal prefix `C-u' causes
4515 all TODO entries to be listed before the agenda.  This feature is
4516 deprecated, use the dedicated TODO list, or a block agenda instead.
4518 \x1f
4519 File: org,  Node: Global TODO list,  Next: Matching tags and properties,  Prev: Weekly/Daily agenda,  Up: Built-in agenda views
4521 10.3.2 The global TODO list
4522 ---------------------------
4524 The global TODO list contains all unfinished TODO items, formatted and
4525 collected into a single place.
4527 `C-c a t'
4528      Show the global TODO list.  This collects the TODO items from all
4529      agenda files (*note Agenda views::) into a single buffer.  The
4530      buffer is in `agenda-mode', so there are commands to examine and
4531      manipulate the TODO entries directly from that buffer (*note
4532      Agenda commands::).  
4534 `C-c a T'
4535      Like the above, but allows selection of a specific TODO keyword.
4536      You can also do this by specifying a prefix argument to `C-c a t'.
4537      With a `C-u' prefix you are prompted for a keyword, and you may
4538      also specify several keywords by separating them with `|' as
4539      boolean OR operator.  With a numeric prefix, the Nth keyword in
4540      `org-todo-keywords' is selected.  The `r' key in the agenda buffer
4541      regenerates it, and you can give a prefix argument to this command
4542      to change the selected TODO keyword, for example `3 r'.  If you
4543      often need a search for a specific keyword, define a custom
4544      command for it (*note Agenda dispatcher::).
4545      Matching specific TODO keywords can also be done as part of a tags
4546      search (*note Tag searches::).
4548    Remote editing of TODO items means that you can change the state of a
4549 TODO entry with a single key press.  The commands available in the TODO
4550 list are described in *Note Agenda commands::.
4552    Normally the global todo list simply shows all headlines with TODO
4553 keywords.  This list can become very long.  There are two ways to keep
4554 it more compact:
4555    - Some people view a TODO item that has been _scheduled_ for
4556      execution (*note Time stamps::) as no longer _open_.  Configure the
4557      variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
4558      items from the global TODO list.
4560    - TODO items may have sublevels to break up the task into subtasks.
4561      In such cases it may be enough to list only the highest level TODO
4562      headline and omit the sublevels from the global list.  Configure
4563      the variable `org-agenda-todo-list-sublevels' to get this behavior.
4565 \x1f
4566 File: org,  Node: Matching tags and properties,  Next: Timeline,  Prev: Global TODO list,  Up: Built-in agenda views
4568 10.3.3 Matching Tags and Properties
4569 -----------------------------------
4571 If headlines in the agenda files are marked with _tags_ (*note Tags::),
4572 you can select headlines based on the tags that apply to them and
4573 collect them into an agenda buffer.
4575 `C-c a m'
4576      Produce a list of all headlines that match a given set of tags.
4577      The command prompts for a selection criterion, which is a boolean
4578      logic expression with tags, like `+work+urgent-withboss' or
4579      `work|home' (*note Tags::).  If you often need a specific search,
4580      define a custom command for it (*note Agenda dispatcher::).  
4582 `C-c a M'
4583      Like `C-c a m', but only select headlines that are also TODO items
4584      and force checking subitems (see variable
4585      `org-tags-match-list-sublevels').  Matching specific todo keywords
4586      together with a tags match is also possible, see *Note Tag
4587      searches::.
4589    The commands available in the tags list are described in *Note
4590 Agenda commands::.
4592 \x1f
4593 File: org,  Node: Timeline,  Next: Stuck projects,  Prev: Matching tags and properties,  Up: Built-in agenda views
4595 10.3.4 Timeline for a single file
4596 ---------------------------------
4598 The timeline summarizes all time-stamped items from a single Org-mode
4599 file in a _time-sorted view_.  The main purpose of this command is to
4600 give an overview over events in a project.
4602 `C-c a L'
4603      Show a time-sorted view of the org file, with all time-stamped
4604      items.  When called with a `C-u' prefix, all unfinished TODO
4605      entries (scheduled or not) are also listed under the current date.
4607 The commands available in the timeline buffer are listed in *Note
4608 Agenda commands::.
4610 \x1f
4611 File: org,  Node: Stuck projects,  Prev: Timeline,  Up: Built-in agenda views
4613 10.3.5 Stuck projects
4614 ---------------------
4616 If you are following a system like David Allen's GTD to organize your
4617 work, one of the "duties" you have is a regular review to make sure
4618 that all projects move along.  A _stuck_ project is a project that has
4619 no defined next actions, so it will never show up in the TODO lists
4620 Org-mode produces.  During the review, you need to identify such
4621 projects and define next actions for them.
4623 `C-c a #'
4624      List projects that are stuck.  
4626 `C-c a !'
4627      Customize the variable `org-stuck-projects' to define what a stuck
4628      project is and how to find it.
4630    You almost certainly will have to configure this view before it will
4631 work for you.  The built-in default assumes that all your projects are
4632 level-2 headlines, and that a project is not stuck if it has at least
4633 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
4635    Lets assume that you, in your own way of using Org-mode, identify
4636 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
4637 indicate a project that should not be considered yet.  Lets further
4638 assume that the todo keyword DONE marks finished projects, and that NEXT
4639 and TODO indicate next actions.  The tag @SHOP indicates shopping and
4640 is a next action even without the NEXT tag.  Finally, if the project
4641 contains the special word IGNORE anywhere, it should not be listed
4642 either.  In this case you would start by identifying eligible projects
4643 with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
4644 NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
4645 not stuck.  The correct customization for this is
4647      (setq org-stuck-projects
4648            '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
4649                                     "\\<IGNORE\\>"))
4651 \x1f
4652 File: org,  Node: Presentation and sorting,  Next: Agenda commands,  Prev: Built-in agenda views,  Up: Agenda views
4654 10.4 Presentation and sorting
4655 =============================
4657 Before displaying items in an agenda view, Org-mode visually prepares
4658 the items and sorts them.  Each item occupies a single line.  The line
4659 starts with a _prefix_ that contains the _category_ (*note
4660 Categories::) of the item and other important information.  You can
4661 customize the prefix using the option `org-agenda-prefix-format'.  The
4662 prefix is followed by a cleaned-up version of the outline headline
4663 associated with the item.
4665 * Menu:
4667 * Categories::                  Not all tasks are equal
4668 * Time-of-day specifications::  How the agenda knows the time
4669 * Sorting of agenda items::     The order of things
4671 \x1f
4672 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Presentation and sorting,  Up: Presentation and sorting
4674 10.4.1 Categories
4675 -----------------
4677 The category is a broad label assigned to each agenda item.  By default,
4678 the category is simply derived from the file name, but you can also
4679 specify it with a special line in the buffer, like this(1):
4681      #+CATEGORY: Thesis
4683 If you would like to have a special CATEGORY for a single entry or a
4684 (sub)tree, give the entry a `:CATEGORY:' property with the location as
4685 the value (*note Properties and columns::).
4687 The display in the agenda buffer looks best if the category is not
4688 longer than 10 characters.
4690    ---------- Footnotes ----------
4692    (1) For backward compatibility, the following also works: If there
4693 are several such lines in a file, each specifies the category for the
4694 text below it.  The first category also applies to any text before the
4695 first CATEGORY line.  However, using this method is _strongly_
4696 deprecated as it is incompatible with the outline structure of the
4697 document.  The correct method for setting multiple categories in a
4698 buffer is using a property.
4700 \x1f
4701 File: org,  Node: Time-of-day specifications,  Next: Sorting of agenda items,  Prev: Categories,  Up: Presentation and sorting
4703 10.4.2 Time-of-Day Specifications
4704 ---------------------------------
4706 Org-mode checks each agenda item for a time-of-day specification.  The
4707 time can be part of the time stamp that triggered inclusion into the
4708 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
4709 specified with two time stamps, like
4710 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
4712    In the headline of the entry itself, a time(range) may also appear as
4713 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
4714 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
4715 entries are recognized as well.
4717    For agenda display, Org-mode extracts the time and displays it in a
4718 standard 24 hour format as part of the prefix.  The example times in
4719 the previous paragraphs would end up in the agenda like this:
4721          8:30-13:00 Arthur Dent lies in front of the bulldozer
4722         12:45...... Ford Prefect arrives and takes Arthur to the pub
4723         19:00...... The Vogon reads his poem
4724         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4726    If the agenda is in single-day mode, or for the display of today, the
4727 timed entries are embedded in a time grid, like
4729          8:00...... ------------------
4730          8:30-13:00 Arthur Dent lies in front of the bulldozer
4731         10:00...... ------------------
4732         12:00...... ------------------
4733         12:45...... Ford Prefect arrives and takes Arthur to the pub
4734         14:00...... ------------------
4735         16:00...... ------------------
4736         18:00...... ------------------
4737         19:00...... The Vogon reads his poem
4738         20:00...... ------------------
4739         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4741    The time grid can be turned on and off with the variable
4742 `org-agenda-use-time-grid', and can be configured with
4743 `org-agenda-time-grid'.
4745 \x1f
4746 File: org,  Node: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Presentation and sorting
4748 10.4.3 Sorting of agenda items
4749 ------------------------------
4751 Before being inserted into a view, the items are sorted.  How this is
4752 done depends on the type of view.
4753    * For the daily/weekly agenda, the items for each day are sorted.
4754      The default order is to first collect all items containing an
4755      explicit time-of-day specification.  These entries will be shown
4756      at the beginning of the list, as a _schedule_ for the day.  After
4757      that, items remain grouped in categories, in the sequence given by
4758      `org-agenda-files'.  Within each category, items are sorted by
4759      priority (*note Priorities::), which is composed of the base
4760      priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
4761      plus additional increments for overdue scheduled or deadline items.
4763    * For the TODO list, items remain in the order of categories, but
4764      within each category, sorting takes place according to priority
4765      (*note Priorities::).
4767    * For tags matches, items are not sorted at all, but just appear in
4768      the sequence in which they are found in the agenda files.
4770    Sorting can be customized using the variable
4771 `org-agenda-sorting-strategy'.
4773 \x1f
4774 File: org,  Node: Agenda commands,  Next: Custom agenda views,  Prev: Presentation and sorting,  Up: Agenda views
4776 10.5 Commands in the agenda buffer
4777 ==================================
4779 Entries in the agenda buffer are linked back to the org file or diary
4780 file where they originate.  You are not allowed to edit the agenda
4781 buffer itself, but commands are provided to show and jump to the
4782 original entry location, and to edit the org-files "remotely" from the
4783 agenda buffer.  In this way, all information is stored only once,
4784 removing the risk that your agenda and note files may diverge.
4786    Some commands can be executed with mouse clicks on agenda lines.  For
4787 the other commands, the cursor needs to be in the desired line.
4789 Motion
4790 ......
4793      Next line (same as <up> and `C-p').  
4796      Previous line (same as <down> and `C-n').
4798 View/GoTo org file
4799 ..................
4801 `mouse-3'
4802 `<SPC>'
4803      Display the original location of the item in another window.  
4806      Display original location and recenter that window.  
4808 `mouse-2'
4809 `mouse-1'
4810 `<TAB>'
4811      Go to the original location of the item in another window.  Under
4812      Emacs 22, `mouse-1' will also works for this.  
4814 `<RET>'
4815      Go to the original location of the item and delete other windows.  
4818      Toggle Follow mode.  In Follow mode, as you move the cursor through
4819      the agenda buffer, the other window always shows the corresponding
4820      location in the org file.  The initial setting for this mode in new
4821      agenda buffers can be set with the variable
4822      `org-agenda-start-with-follow-mode'.  
4825      Display the entire subtree of the current item in an indirect
4826      buffer.  With numerical prefix ARG, go up to this level and then
4827      take that tree.  If ARG is negative, go up that many levels.  With
4828      `C-u' prefix, do not remove the previously used indirect buffer.  
4831      Toggle Logbook mode.  In Logbook mode, entries that where marked
4832      DONE while logging was on (variable `org-log-done') are shown in
4833      the agenda, as are entries that have been clocked on that day.
4835 Change display
4836 ..............
4839      Delete other windows.  
4841 `d w m y'
4842      Switch to day/week/month/year view.  When switching to day or week
4843      view, this setting becomes the default for subseqent agenda
4844      commands.  Since month and year views are slow to create, the do
4845      not become the default.  
4848      Toggle the inclusion of diary entries.  See *Note Weekly/Daily
4849      agenda::.  
4852      Toggle the time grid on and off.  See also the variables
4853      `org-agenda-use-time-grid' and `org-agenda-time-grid'.  
4856      Recreate the agenda buffer, for example to reflect the changes
4857      after modification of the time stamps of items with S-<left> and
4858      S-<right>.  When the buffer is the global todo list, a prefix
4859      argument is interpreted to create a selective list for a specific
4860      TODO keyword.  
4863 `C-x C-s'
4864      Save all Org-mode buffers in the current Emacs session.  
4866 `<right>'
4867      Display the following `org-agenda-ndays' days.  For example, if
4868      the display covers a week, switch to the following week.  With
4869      prefix arg, go forward that many times `org-agenda-ndays' days.  
4871 `<left>'
4872      Display the previous dates.  
4875      Goto today.
4877 Remote editing
4878 ..............
4880 `0-9'
4881      Digit argument.  
4883 `C-_'
4884      Undo a change due to a remote editing command.  The change is
4885      undone both in the agenda buffer and in the remote buffer.  
4888      Change the TODO state of the item, both in the agenda and in the
4889      original org file.  
4891 `C-k'
4892      Delete the current agenda item along with the entire subtree
4893      belonging to it in the original Org-mode file.  If the text to be
4894      deleted remotely is longer than one line, the kill needs to be
4895      confirmed by the user.  See variable `org-agenda-confirm-kill'.  
4898      Archive the subtree corresponding to the current headline.  
4901      Show all tags associated with the current item.  Because of
4902      inheritance, this may be more than the tags listed in the line
4903      itself.  
4906      Set tags for the current headline.  If there is an active region
4907      in the agenda, change a tag for all headings in the region.  
4910      Toggle the ARCHIVE tag for the current headline.  
4913      Set the priority for the current item.  Org-mode prompts for the
4914      priority character. If you reply with <SPC>, the priority cookie
4915      is removed from the entry.  
4918      Display weighted priority of current item.  
4921 `S-<up>'
4922      Increase the priority of the current item.  The priority is
4923      changed in the original buffer, but the agenda is not resorted.
4924      Use the `r' key for this.  
4927 `S-<down>'
4928      Decrease the priority of the current item.  
4930 `C-c C-s'
4931      Schedule this item 
4933 `C-c C-d'
4934      Set a deadline for this item.  
4936 `S-<right>'
4937      Change the time stamp associated with the current line by one day
4938      into the future.  With prefix argument, change it by that many
4939      days.  For example, `3 6 5 S-<right>' will change it by a year.
4940      The stamp is changed in the original org file, but the change is
4941      not directly reflected in the agenda buffer.  Use the `r' key to
4942      update the buffer.  
4944 `S-<left>'
4945      Change the time stamp associated with the current line by one day
4946      into the past.  
4949      Change the time stamp associated with the current line to today.
4950      The key `>' has been chosen, because it is the same as `S-.' on my
4951      keyboard.  
4954      Start the clock on the current item.  If a clock is running
4955      already, it is stopped first.  
4958      Stop the previously started clock.  
4961      Cancel the currently running clock.
4964      Jump to the running clock in another window.
4966 Calendar commands
4967 .................
4970      Open the Emacs calendar and move to the date at the agenda cursor.
4973      When in the calendar, compute and show the Org-mode agenda for the
4974      date at the cursor.  
4977      Insert a new entry into the diary.  Prompts for the type of entry
4978      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
4979      new entry in the diary, just as `i d' etc. would do in the
4980      calendar.  The date is taken from the cursor position.  
4983      Show the phases of the moon for the three months around current
4984      date.  
4987      Show sunrise and sunset times.  The geographical location must be
4988      set with calendar variables, see documentation of the Emacs
4989      calendar.  
4992      Convert the date at cursor into many other cultural and historic
4993      calendars.  
4996      Show holidays for three month around the cursor date.  
4998 `C-c C-x C-c'
4999      Export a single iCalendar file containing entries from all agenda
5000      files.
5002 Exporting to a file
5003 ...................
5005 `C-x C-w'
5006      Write the agenda view to a file.  Depending on the extension of the
5007      selected file name, the view will be exported as HTML (extension
5008      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
5009      (any other extension).  Use the variable
5010      `org-agenda-exporter-settings' to set options for `ps-print' and
5011      for `htmlize' to be used during export.
5013 Quit and Exit
5014 .............
5017      Quit agenda, remove the agenda buffer.  
5020      Exit agenda, remove the agenda buffer and all buffers loaded by
5021      Emacs for the compilation of the agenda.  Buffers created by the
5022      user to visit org files will not be removed.
5024 \x1f
5025 File: org,  Node: Custom agenda views,  Prev: Agenda commands,  Up: Agenda views
5027 10.6 Custom agenda views
5028 ========================
5030 Custom agenda commands serve two purposes: to store and quickly access
5031 frequently used TODO and tags searches, and to create special composite
5032 agenda buffers.  Custom agenda commands will be accessible through the
5033 dispatcher (*note Agenda dispatcher::), just like the default commands.
5035 * Menu:
5037 * Storing searches::            Type once, use often
5038 * Block agenda::                All the stuff you need in a single buffer
5039 * Setting Options::             Changing the rules
5040 * Exporting Agenda Views::      Writing agendas to files.
5041 * Extracting Agenda Information for other programs::
5043 \x1f
5044 File: org,  Node: Storing searches,  Next: Block agenda,  Prev: Custom agenda views,  Up: Custom agenda views
5046 10.6.1 Storing searches
5047 -----------------------
5049 The first application of custom searches is the definition of keyboard
5050 shortcuts for frequently used searches, either creating an agenda
5051 buffer, or a sparse tree (the latter covering of course only the current
5052 buffer).  Custom commands are configured in the variable
5053 `org-agenda-custom-commands'.  You can customize this variable, for
5054 example by pressing `C-c a C'.  You can also directly set it with Emacs
5055 Lisp in `.emacs'.  The following example contains all valid search
5056 types:
5058      (setq org-agenda-custom-commands
5059            '(("w" todo "WAITING")
5060              ("W" todo-tree "WAITING")
5061              ("u" tags "+BOSS-URGENT")
5062              ("v" tags-todo "+BOSS-URGENT")
5063              ("U" tags-tree "+BOSS-URGENT")
5064              ("f" occur-tree "\\<FIXME\\>")
5065              ("h" . "HOME+Name tags searches") ; description for "h" prefix
5066              ("hl" tags "+HOME+Lisa")
5067              ("hp" tags "+HOME+Peter")
5068              ("hk" tags "+HOME+Kim")))
5070 The initial string in each entry defines the keys you have to press
5071 after the dispatcher command `C-c a' in order to access the command.
5072 Usually this will be just a single character, but if you have many
5073 similar commands, you can also define two-letter combinations where the
5074 first character is the same in several combinations and serves as a
5075 prefix key(1).  The second parameter is the search type, followed by
5076 the string or regular expression to be used for the matching.  The
5077 example above will therefore define:
5079 `C-c a w'
5080      as a global search for TODO entries with `WAITING' as the TODO
5081      keyword
5083 `C-c a W'
5084      as the same search, but only in the current buffer and displaying
5085      the results as a sparse tree
5087 `C-c a u'
5088      as a global tags search for headlines marked `:BOSS:' but not
5089      `:URGENT:'
5091 `C-c a v'
5092      as the same search as `C-c a u', but limiting the search to
5093      headlines that are also TODO items
5095 `C-c a U'
5096      as the same search as `C-c a u', but only in the current buffer and
5097      displaying the result as a sparse tree
5099 `C-c a f'
5100      to create a sparse tree (again: current buffer only) with all
5101      entries containing the word `FIXME'
5103 `C-c a h'
5104      as a prefix command for a HOME tags search where you have to press
5105      an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
5106      or Kim) as additional tag to match.
5108    ---------- Footnotes ----------
5110    (1) You can provide a description for a prefix key by inserting a
5111 cons cell with the prefix and the description.
5113 \x1f
5114 File: org,  Node: Block agenda,  Next: Setting Options,  Prev: Storing searches,  Up: Custom agenda views
5116 10.6.2 Block agenda
5117 -------------------
5119 Another possibility is the construction of agenda views that comprise
5120 the results of _several_ commands, each of which creates a block in the
5121 agenda buffer.  The available commands include `agenda' for the daily
5122 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
5123 todo list (as constructed with `C-c a t'), and the matching commands
5124 discussed above: `todo', `tags', and `tags-todo'.  Here are two
5125 examples:
5127      (setq org-agenda-custom-commands
5128            '(("h" "Agenda and Home-related tasks"
5129               ((agenda)
5130                (tags-todo "HOME")
5131                (tags "GARDEN")))
5132              ("o" "Agenda and Office-related tasks"
5133               ((agenda)
5134                (tags-todo "WORK")
5135                (tags "OFFICE")))))
5137 This will define `C-c a h' to create a multi-block view for stuff you
5138 need to attend to at home.  The resulting agenda buffer will contain
5139 your agenda for the current week, all TODO items that carry the tag
5140 `HOME', and also all lines tagged with `GARDEN'.  Finally the command
5141 `C-c a o' provides a similar view for office tasks.
5143 \x1f
5144 File: org,  Node: Setting Options,  Next: Exporting Agenda Views,  Prev: Block agenda,  Up: Custom agenda views
5146 10.6.3 Setting Options for custom commands
5147 ------------------------------------------
5149 Org-mode contains a number of variables regulating agenda construction
5150 and display.  The global variables define the behavior for all agenda
5151 commands, including the custom commands.  However, if you want to change
5152 some settings just for a single custom view, you can do so.  Setting
5153 options requires inserting a list of variable names and values at the
5154 right spot in `org-agenda-custom-commands'.  For example:
5156      (setq org-agenda-custom-commands
5157            '(("w" todo "WAITING"
5158               ((org-agenda-sorting-strategy '(priority-down))
5159                (org-agenda-prefix-format "  Mixed: ")))
5160              ("U" tags-tree "+BOSS-URGENT"
5161               ((org-show-following-heading nil)
5162                (org-show-hierarchy-above nil)))))
5164 Now the `C-c a w' command will sort the collected entries only by
5165 priority, and the prefix format is modified to just say `  Mixed:'
5166 instead of giving the category of the entry.  The sparse tags tree of
5167 `C-c a U' will now turn out ultra-compact, because neither the headline
5168 hierarchy above the match, nor the headline following the match will be
5169 shown.
5171    For command sets creating a block agenda,
5172 `org-agenda-custom-commands' has two separate spots for setting
5173 options.  You can add options that should be valid for just a single
5174 command in the set, and options that should be valid for all commands in
5175 the set.  The former are just added to the command entry, the latter
5176 must come after the list of command entries.  Going back to the block
5177 agenda example (*note Block agenda::), let's change the sorting strategy
5178 for the `C-c a h' commands to `priority-down', but let's sort the
5179 results for GARDEN tags query in the opposite order, `priority-up'.
5180 This would look like this:
5182      (setq org-agenda-custom-commands
5183            '(("h" "Agenda and Home-related tasks"
5184               ((agenda)
5185                (tags-todo "HOME")
5186                (tags "GARDEN"
5187                      ((org-agenda-sorting-strategy '(priority-up)))))
5188               ((org-agenda-sorting-strategy '(priority-down))))
5189              ("o" "Agenda and Office-related tasks"
5190               ((agenda)
5191                (tags-todo "WORK")
5192                (tags "OFFICE")))))
5194    As you see, the values and parenthesis setting is a little complex.
5195 When in doubt, use the customize interface to set this variable - it
5196 fully supports its structure.  Just one caveat: When setting options in
5197 this interface, the _values_ are just lisp expressions.  So if the
5198 value is a string, you need to add the double quotes around the value
5199 yourself.
5201 \x1f
5202 File: org,  Node: Exporting Agenda Views,  Next: Extracting Agenda Information for other programs,  Prev: Setting Options,  Up: Custom agenda views
5204 10.6.4 Exporting Agenda Views
5205 -----------------------------
5207 If you are away from your computer, it can be very useful to have a
5208 printed version of some agenda views to carry around.  Org-mode can
5209 export custom agenda views as plain text, HTML(1) and postscript.  If
5210 you want to do this only occasionally, use the command
5212 `C-x C-w'
5213      Write the agenda view to a file.  Depending on the extension of the
5214      selected file name, the view will be exported as HTML (extension
5215      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
5216      (any other extension).  Use the variable
5217      `org-agenda-exporter-settings' to set options for `ps-print' and
5218      for `htmlize' to be used during export, for example
5219           (setq org-agenda-exporter-settings
5220                 '((ps-number-of-columns 2)
5221                   (ps-landscape-mode t)
5222                   (htmlize-output-type 'css)))
5224    If you need to export certain agenda views frequently, you can
5225 associate any custom agenda command with a list of output file names
5226 (2).  Here is an example that first does define custom commands for the
5227 agenda and the global todo list, together with a number of files to
5228 which to export them.  Then we define two block agenda commands and
5229 specify filenames for them as well.  File names can be relative to the
5230 current working directory, or absolute.
5232      (setq org-agenda-custom-commands
5233            '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
5234              ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
5235              ("h" "Agenda and Home-related tasks"
5236               ((agenda)
5237                (tags-todo "HOME")
5238                (tags "GARDEN"))
5239               nil
5240               ("~/views/home.html"))
5241              ("o" "Agenda and Office-related tasks"
5242               ((agenda)
5243                (tags-todo "WORK")
5244                (tags "OFFICE"))
5245               nil
5246               ("~/views/office.ps"))))
5248    The extension of the file name determines the type of export.  If it
5249 is `.html', Org-mode will use the `htmlize.el' package to convert the
5250 buffer to HTML and save it to this file name.  If the extension is
5251 `.ps', `ps-print-buffer-with-faces' is used to produce postscript
5252 output.  Any other extension produces a plain ASCII file.
5254    The export files are _not_ created when you use one of those
5255 commands interactively.  Instead, there is a special command to produce
5256 _all_ specified files in one step:
5258 `C-c a e'
5259      Export all agenda views that have export filenames associated with
5260      them.
5262    You can use the options section of the custom agenda commands to also
5263 set options for the export commands.  For example:
5265      (setq org-agenda-custom-commands
5266            '(("X" agenda ""
5267               ((ps-number-of-columns 2)
5268                (ps-landscape-mode t)
5269                (org-agenda-prefix-format " [ ] ")
5270                (org-agenda-with-colors nil)
5271                (org-agenda-remove-tags t))
5272               ("theagenda.ps"))))
5274 This command sets two options for the postscript exporter, to make it
5275 print in two columns in landscape format - the resulting page can be cut
5276 in two and then used in a paper agenda.  The remaining settings modify
5277 the agenda prefix to omit category and scheduling information, and
5278 instead include a checkbox to check off items.  We also remove the tags
5279 to make the lines compact, and we don't want to use colors for the
5280 black-and-white printer.  Settings specified in
5281 `org-agenda-exporter-settings' will also apply, but the settings in
5282 `org-agenda-custom-commands' take precedence.
5284 From the command line you may also use
5285      emacs -f org-batch-store-agenda-views -kill
5286    or, if you need to modify some parameters
5287      emacs -eval '(org-batch-store-agenda-views                      \
5288                    org-agenda-ndays 30                               \
5289                    org-agenda-start-day "2007-11-01"                 \
5290                    org-agenda-include-diary nil                      \
5291                    org-agenda-files (quote ("~/org/project.org")))'  \
5292            -kill
5293    which will create the agenda views restricted to the file
5294 `~/org/project.org', without diary entries and with 30 days extent.
5296    ---------- Footnotes ----------
5298    (1) You need to install Hrvoje Niksic' `htmlize.el'.
5300    (2) If you want to store standard views like the weekly agenda or
5301 the global TODO list as well, you need to define custom commands for
5302 them in order to be able to specify filenames.
5304 \x1f
5305 File: org,  Node: Extracting Agenda Information for other programs,  Prev: Exporting Agenda Views,  Up: Custom agenda views
5307 10.6.5 Extracting Agenda Information for other programs
5308 -------------------------------------------------------
5310 Org-mode provides commands to access agenda information for the command
5311 line in emacs batch mode.  This extracted information can be sent
5312 directly to a printer, or it can be read by a program that does further
5313 processing of the data.  The first of these commands is the function
5314 `org-batch-agenda', that produces an agenda view and sends it as ASCII
5315 text to STDOUT.  The command takes a single string as parameter.  If
5316 the string has length 1, it is used as a key to one of the commands you
5317 have configured in `org-agenda-custom-commands', basically any key you
5318 can use after `C-c a'.  For example, to directly print the current TODO
5319 list, you could use
5321      emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
5323    If the parameter is a string with 2 or more characters, it is used
5324 as a tags/todo match string.  For example, to print your local shopping
5325 list (all items with the tag `shop', but excluding the tag `NewYork'),
5326 you could use
5328      emacs -batch -l ~/.emacs                                      \
5329            -eval '(org-batch-agenda "+shop-NewYork")' | lpr
5331 You may also modify parameters on the fly like this:
5333      emacs -batch -l ~/.emacs                                      \
5334         -eval '(org-batch-agenda "a"                               \
5335                  org-agenda-ndays 30                               \
5336                  org-agenda-include-diary nil                      \
5337                  org-agenda-files (quote ("~/org/project.org")))'  \
5338         | lpr
5340 which will produce a 30 day agenda, fully restricted to the Org file
5341 `~/org/projects.org', not even including the diary.
5343    If you want to process the agenda data in more sophisticated ways,
5344 you can use the command `org-batch-agenda-csv' to get a comma-separated
5345 list of values for each agenda item.  Each line in the output will
5346 contain a number of fields separated by commas.  The fields in a line
5347 are:
5349      category     The category of the item
5350      head         The headline, without TODO kwd, TAGS and PRIORITY
5351      type         The type of the agenda entry, can be
5352                      todo               selected in TODO match
5353                      tagsmatch          selected in tags match
5354                      diary              imported from diary
5355                      deadline           a deadline
5356                      scheduled          scheduled
5357                      timestamp          appointment, selected by timestamp
5358                      closed             entry was closed on date
5359                      upcoming-deadline  warning about nearing deadline
5360                      past-scheduled     forwarded scheduled item
5361                      block              entry has date block including date
5362      todo         The todo keyword, if any
5363      tags         All tags including inherited ones, separated by colons
5364      date         The relevant date, like 2007-2-14
5365      time         The time, like 15:00-16:50
5366      extra        String with extra planning info
5367      priority-l   The priority letter if any was given
5368      priority-n   The computed numerical priority
5370 Time and date will only be given if a timestamp (or deadline/scheduled)
5371 lead to the selection of the item.
5373    A CSV list like this is very easy to use in a post processing script.
5374 For example, here is a Perl program that gets the TODO list from
5375 Emacs/org-mode and prints all the items, preceded by a checkbox:
5377      #!/usr/bin/perl
5379      # define the Emacs command to run
5380      $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
5382      # run it and capture the output
5383      $agenda = qx{$cmd 2>/dev/null};
5385      # loop over all lines
5386      foreach $line (split(/\n/,$agenda)) {
5388        # get the individual values
5389        ($category,$head,$type,$todo,$tags,$date,$time,$extra,
5390         $priority_l,$priority_n) = split(/,/,$line);
5392        # proccess and print
5393        print "[ ] $head\n";
5394      }
5396 \x1f
5397 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
5399 11 Embedded LaTeX
5400 *****************
5402 Plain ASCII is normally sufficient for almost all note taking.  One
5403 exception, however, are scientific notes which need to be able to
5404 contain mathematical symbols and the occasional formula.  LaTeX(1) is
5405 widely used to typeset scientific documents. Org-mode supports
5406 embedding LaTeX code into its files, because many academics are used to
5407 read LaTeX source code, and because it can be readily processed into
5408 images for HTML production.
5410    It is not necessary to mark LaTeX macros and code in any special way.
5411 If you observe a few conventions, Org-mode knows how to find it and what
5412 to do with it.
5414 * Menu:
5416 * Math symbols::                TeX macros for symbols and Greek letters
5417 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
5418 * LaTeX fragments::             Complex formulas made easy
5419 * Processing LaTeX fragments::  Previewing LaTeX processing
5420 * CDLaTeX mode::                Speed up entering of formulas
5422    ---------- Footnotes ----------
5424    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
5425 Many of the features described here as "LaTeX" are really from TeX, but
5426 for simplicity I am blurring this distinction.
5428 \x1f
5429 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
5431 11.1 Math symbols
5432 =================
5434 You can use LaTeX macros to insert special symbols like `\alpha' to
5435 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
5436 for these macros is available, just type `\' and maybe a few letters,
5437 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
5438 Org-mode allows these macros to be present without surrounding math
5439 delimiters, for example:
5441      Angles are written as Greek letters \alpha, \beta and \gamma.
5443    During HTML export (*note HTML export::), these symbols are
5444 translated into the proper syntax for HTML, for the above examples this
5445 is `&alpha;' and `&rarr;', respectively.
5447 \x1f
5448 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
5450 11.2 Subscripts and Superscripts
5451 ================================
5453 Just like in LaTeX, `^' and `_' are used to indicate super- and
5454 subscripts.  Again, these can be used without embedding them in
5455 math-mode delimiters.  To increase the readability of ASCII text, it is
5456 not necessary (but OK) to surround multi-character sub- and superscripts
5457 with curly braces.  For example
5459      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
5460      the sun is R_{sun} = 6.96 x 10^8 m.
5462    To avoid interpretation as raised or lowered text, you can quote `^'
5463 and `_' with a backslash: `\_' and `\^'.
5465    During HTML export (*note HTML export::), subscript and superscripts
5466 are surrounded with `<sub>' and `<sup>' tags, respectively.
5468 \x1f
5469 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
5471 11.3 LaTeX fragments
5472 ====================
5474 With symbols, sub- and superscripts, HTML is pretty much at its end when
5475 it comes to representing mathematical formulas(1). More complex
5476 expressions need a dedicated formula processor. To this end, Org-mode
5477 can contain arbitrary LaTeX fragments. It provides commands to preview
5478 the typeset result of these fragments, and upon export to HTML, all
5479 fragments will be converted to images and inlined into the HTML
5480 document(2). For this to work you need to be on a system with a working
5481 LaTeX installation. You also need the `dvipng' program, available at
5482 `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
5483 be used when processing a fragment can be configured with the variable
5484 `org-format-latex-header'.
5486    LaTeX fragments don't need any special marking at all.  The following
5487 snippets will be identified as LaTeX source code:
5488    * Environments of any kind.  The only requirement is that the
5489      `\begin' statement appears on a new line, preceded by only
5490      whitespace.
5492    * Text within the usual LaTeX math delimiters.  To avoid conflicts
5493      with currency specifications, single `$' characters are only
5494      recognized as math delimiters if the enclosed text contains at
5495      most two line breaks, is directly attached to the `$' characters
5496      with no whitespace in between, and if the closing `$' is followed
5497      by whitespace or punctuation.  For the other delimiters, there is
5498      no such restriction, so when in doubt, use `\(...\)' as inline
5499      math delimiters.
5501 For example:
5503      \begin{equation}                          % arbitrary environments,
5504      x=\sqrt{b}                                % even tables, figures
5505      \end{equation}                            % etc
5507      If $a^2=b$ and \( b=2 \), then the solution must be
5508      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
5510 If you need any of the delimiter ASCII sequences for other purposes, you
5511 can configure the option `org-format-latex-options' to deselect the
5512 ones you do not wish to have interpreted by the LaTeX converter.
5514    ---------- Footnotes ----------
5516    (1) Yes, there is MathML, but that is not yet fully supported by
5517 many browsers, and there is no decent converter for turning LaTeX or
5518 ASCII representations of formulas into MathML. So for the time being,
5519 converting formulas into images seems the way to go.
5521    (2) The LaTeX export will not use images for displaying LaTeX
5522 fragments but include these fragments directly into the LaTeX code.
5524 \x1f
5525 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
5527 11.4 Processing LaTeX fragments
5528 ===============================
5530 LaTeX fragments can be processed to produce a preview images of the
5531 typeset expressions:
5533 `C-c C-x C-l'
5534      Produce a preview image of the LaTeX fragment at point and overlay
5535      it over the source code.  If there is no fragment at point,
5536      process all fragments in the current entry (between two
5537      headlines).  When called with a prefix argument, process the
5538      entire subtree.  When called with two prefix arguments, or when
5539      the cursor is before the first headline, process the entire buffer.  
5541 `C-c C-c'
5542      Remove the overlay preview images.
5544    During HTML export (*note HTML export::), all LaTeX fragments are
5545 converted into images and inlined into the document if the following
5546 setting is active:
5548      (setq org-export-with-LaTeX-fragments t)
5550 \x1f
5551 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
5553 11.5 Using CDLaTeX to enter math
5554 ================================
5556 CDLaTeX-mode is a minor mode that is normally used in combination with a
5557 major LaTeX mode like AUCTeX in order to speed-up insertion of
5558 environments and math templates.  Inside Org-mode, you can make use of
5559 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
5560 and `texmathp.el' (the latter comes also with AUCTeX) from
5561 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
5562 cdlatex-mode itself under Org-mode, but use the light version
5563 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
5564 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
5565 with
5567      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
5569    When this mode is enabled, the following features are present (for
5570 more details see the documentation of cdlatex-mode):
5571    * Environment templates can be inserted with `C-c {'.
5573    * The <TAB> key will do template expansion if the cursor is inside a
5574      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
5575      `\frac{}{}' and position the cursor correctly inside the first
5576      brace.  Another <TAB> will get you into the second brace.  Even
5577      outside fragments, <TAB> will expand environment abbreviations at
5578      the beginning of a line.  For example, if you write `equ' at the
5579      beginning of a line and press <TAB>, this abbreviation will be
5580      expanded to an `equation' environment.  To get a list of all
5581      abbreviations, type `M-x cdlatex-command-help'.
5583    * Pressing `_' and `^' inside a LaTeX fragment will insert these
5584      characters together with a pair of braces.  If you use <TAB> to
5585      move out of the braces, and if the braces surround only a single
5586      character or macro, they are removed again (depending on the
5587      variable `cdlatex-simplify-sub-super-scripts').
5589    * Pressing the backquote ``' followed by a character inserts math
5590      macros, also outside LaTeX fragments.  If you wait more than 1.5
5591      seconds after the backquote, a help window will pop up.
5593    * Pressing the normal quote `'' followed by another character
5594      modifies the symbol before point with an accent or a font.  If you
5595      wait more than 1.5 seconds after the backquote, a help window will
5596      pop up.  Character modification will work only inside LaTeX
5597      fragments, outside the quote is normal.
5599    ---------- Footnotes ----------
5601    (1) Org-mode has a method to test if the cursor is inside such a
5602 fragment, see the documentation of the function
5603 `org-inside-LaTeX-fragment-p'.
5605 \x1f
5606 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
5608 12 Exporting
5609 ************
5611 Org-mode documents can be exported into a variety of other formats.  For
5612 printing and sharing of notes, ASCII export produces a readable and
5613 simple version of an Org-mode file.  HTML export allows you to publish a
5614 notes file on the web, while the XOXO format provides a solid base for
5615 exchange with a broad range of other applications. LaTeX export lets
5616 you use Org-mode and its structured editing functions to easily create
5617 LaTeX files.  To incorporate entries with associated times like
5618 deadlines or appointments into a desktop calendar program like iCal,
5619 Org-mode can also produce extracts in the iCalendar format.  Currently
5620 Org-mode only supports export, not import of these different formats.
5622    When exporting, Org-mode uses special conventions to enrich the
5623 output produced.  *Note Text interpretation::, for more details.
5625 `C-c C-e'
5626      Dispatcher for export and publishing commands.  Displays a
5627      help-window listing the additional key(s) needed to launch an
5628      export or publishing command.
5630 * Menu:
5632 * ASCII export::                Exporting to plain ASCII
5633 * HTML export::                 Exporting to HTML
5634 * LaTeX export::                Exporting to LaTeX
5635 * XOXO export::                 Exporting to XOXO
5636 * iCalendar export::            Exporting in iCalendar format
5637 * Text interpretation::         How the exporter looks at the file
5639 \x1f
5640 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
5642 12.1 ASCII export
5643 =================
5645 ASCII export produces a simple and very readable version of an Org-mode
5646 file.
5648 `C-c C-e a'
5649      Export as ASCII file.  For an org file `myfile.org', the ASCII file
5650      will be `myfile.txt'.  The file will be overwritten without
5651      warning.  If there is an active region, only the region will be
5652      exported. If the selected region is a single tree, the tree head
5653      will become the document title.  If the tree head entry has or
5654      inherits an EXPORT_FILE_NAME property, that name will be used for
5655      the export.  
5657 `C-c C-e v a'
5658      Export only the visible part of the document.
5660    In the exported version, the first 3 outline levels will become
5661 headlines, defining a general document structure.  Additional levels
5662 will be exported as itemized lists.  If you want that transition to
5663 occur at a different level, specify it with a prefix argument.  For
5664 example,
5666      C-1 C-c C-e a
5668 creates only top level headlines and does the rest as items.  When
5669 headlines are converted to items, the indentation of the text following
5670 the headline is changed to fit nicely under the item.  This is done with
5671 the assumption that the first bodyline indicates the base indentation of
5672 the body text.  Any indentation larger than this is adjusted to preserve
5673 the layout relative to the first line.  Should there be lines with less
5674 indentation than the first, these are left alone.
5676 \x1f
5677 File: org,  Node: HTML export,  Next: LaTeX export,  Prev: ASCII export,  Up: Exporting
5679 12.2 HTML export
5680 ================
5682 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
5683 HTML formatting, in ways similar to John Grubers _markdown_ language,
5684 but with additional support for tables.
5686 * Menu:
5688 * HTML Export commands::        How to invoke LaTeX export
5689 * Quoting HTML tags::           Using direct HTML in Org-mode
5690 * Links::                       Transformation of links for HTML
5691 * Images::                      How to include images
5692 * CSS support::                 Changing the appearence of the output
5694 \x1f
5695 File: org,  Node: HTML Export commands,  Next: Quoting HTML tags,  Prev: HTML export,  Up: HTML export
5697 12.2.1 HTML export commands
5698 ---------------------------
5700 `C-c C-e h'
5701      Export as HTML file `myfile.html'.  For an org file `myfile.org',
5702      the ASCII file will be `myfile.html'.  The file will be
5703      overwritten without warning.  If there is an active region, only
5704      the region will be exported. If the selected region is a single
5705      tree, the tree head will become the document title.  If the tree
5706      head entry has or inherits an EXPORT_FILE_NAME property, that name
5707      will be used for the export.  
5709 `C-c C-e b'
5710      Export as HTML file and immediately open it with a browser.  
5712 `C-c C-e H'
5713      Export to a temporary buffer, do not create a file.  
5715 `C-c C-e R'
5716      Export the active region to a temporary buffer.  With prefix arg,
5717      do not produce file header and foot, but just the plain HTML
5718      section for the region.  This is good for cut-and-paste operations.  
5720 `C-c C-e v h'
5722 `C-c C-e v b'
5724 `C-c C-e v H'
5726 `C-c C-e v R'
5727      Export only the visible part of the document.
5729 `M-x org-export-region-as-html'
5730      Convert the region to HTML under the assumption that it was
5731      org-mode syntax before.  This is a global command that can be
5732      invoked in any buffer.
5734 `M-x org-replace-region-by-HTML'
5735      Replace the active region (assumed to be in Org-mode syntax) by
5736      HTML code.
5738    In the exported version, the first 3 outline levels will become
5739 headlines, defining a general document structure.  Additional levels
5740 will be exported as itemized lists.  If you want that transition to
5741 occur at a different level, specify it with a prefix argument.  For
5742 example,
5744      C-2 C-c C-e b
5746 creates two levels of headings and does the rest as items.
5748 \x1f
5749 File: org,  Node: Quoting HTML tags,  Next: Links,  Prev: HTML Export commands,  Up: HTML export
5751 12.2.2 Quoting HTML tags
5752 ------------------------
5754 Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
5755 export.  If you want to include simple HTML tags which should be
5756 interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
5757 Note that this really works only for simple tags.  For more extensive
5758 HTML that should be copied verbatim to the exported file use either
5760      #+HTML: Literal HTML code for export
5764      #+BEGIN_HTML
5765      All lines between these markers are exported literally
5766      #+END_HTML
5768 \x1f
5769 File: org,  Node: Links,  Next: Images,  Prev: Quoting HTML tags,  Up: HTML export
5771 12.2.3 Links
5772 ------------
5774 Internal links (*note Internal links::) will continue to work in HTML
5775 files only if they match a dedicated `<<target>>'.  Automatic links
5776 created by radio targets (*note Radio targets::) will also work in the
5777 HTML file.  Links to external files will still work if the HTML file is
5778 in the same directory as the Org-mode file.  Links to other `.org'
5779 files will be translated into HTML links under the assumption that an
5780 HTML version also exists of the linked file.  For information related to
5781 linking files while publishing them to a publishing directory see *Note
5782 Publishing links::.
5784 \x1f
5785 File: org,  Node: Images,  Next: CSS support,  Prev: Links,  Up: HTML export
5787 12.2.4 Images
5788 -------------
5790 HTML export can inline images given as links in the Org-mode file, and
5791 it can make an image the clickable part of a link.  By default(1),
5792 images are inlined if a link does not have a description.  So
5793 `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
5794 image]]' will just produce a link `the image' that points to the image.
5795 If the description part itself is a `file:' link or a `http:' URL
5796 pointing to an image, this image will be inlined and activated so that
5797 clicking on the image will activate the link.  For example, to include
5798 a thumbnail that will link to a high resolution version of the image,
5799 you could use:
5801      [[file:highres.jpg][file:thumb.jpg]]
5803 and you could use `http' addresses just as well.
5805    ---------- Footnotes ----------
5807    (1) but see the variable `org-export-html-inline-images'
5809 \x1f
5810 File: org,  Node: CSS support,  Prev: Images,  Up: HTML export
5812 12.2.5 CSS support
5813 ------------------
5815 You can also give style information for the exported file.  The HTML
5816 exporter assigns the following CSS classes to appropriate parts of the
5817 document - your style specifications may change these:
5818      .todo           TODO keywords
5819      .done           the DONE keyword
5820      .timestamp      time stamp
5821      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
5822      .tag            tag in a headline
5823      .target         target for links
5825    The default style specification can be configured through the option
5826 `org-export-html-style'.  If you want to use a file-local style, you
5827 may use file variables, best wrapped into a COMMENT section at the end
5828 of the outline tree.  For example(1):
5830      * COMMENT html style specifications
5832      # Local Variables:
5833      # org-export-html-style: "   <style type=\"text/css\">
5834      #       p {font-weight: normal; color: gray; }
5835      #       h1 {color: black; }
5836      #   </style>"
5837      # End:
5839    Remember to execute `M-x normal-mode' after changing this to make
5840 the new style visible to Emacs.  This command restarts org-mode for the
5841 current buffer and forces Emacs to re-evaluate the local variables
5842 section in the buffer.
5844    ---------- Footnotes ----------
5846    (1) Under Emacs 21, the continuation lines for a variable value
5847 should have no `#' at the start of the line.
5849 \x1f
5850 File: org,  Node: LaTeX export,  Next: XOXO export,  Prev: HTML export,  Up: Exporting
5852 12.3 LaTeX export
5853 =================
5855 Org-mode contains a LaTeX exporter written by Bastien Guerry.
5857 * Menu:
5859 * LaTeX export commands::       How to invoke LaTeX export
5860 * Quoting LaTeX code::          Incorporating literal LaTeX code
5861 * Sectioning structure::
5863 \x1f
5864 File: org,  Node: LaTeX export commands,  Next: Quoting LaTeX code,  Prev: LaTeX export,  Up: LaTeX export
5866 12.3.1 LaTeX export commands
5867 ----------------------------
5869 `C-c C-e l'
5870      Export as LaTeX file `myfile.tex'.  
5872 `C-c C-e L'
5873      Export to a temporary buffer, do not create a file.  
5875 `C-c C-e v l'
5877 `C-c C-e v L'
5878      Export only the visible part of the document.
5880 `M-x org-export-region-as-latex'
5881      Convert the region to LaTeX under the assumption that it was
5882      org-mode syntax before.  This is a global command that can be
5883      invoked in any buffer.
5885 `M-x org-replace-region-by-latex'
5886      Replace the active region (assumed to be in Org-mode syntax) by
5887      LaTeX code.
5889    In the exported version, the first 3 outline levels will become
5890 headlines, defining a general document structure.  Additional levels
5891 will be exported as description lists.  The exporter can ignore them or
5892 convert them to a custom string depending on `org-latex-low-levels'.
5894    If you want that transition to occur at a different level, specify it
5895 with a prefix argument. For example,
5897      C-2 C-c C-e l
5899 creates two levels of headings and does the rest as items.
5901 \x1f
5902 File: org,  Node: Quoting LaTeX code,  Next: Sectioning structure,  Prev: LaTeX export commands,  Up: LaTeX export
5904 12.3.2 Quoting LaTeX code
5905 -------------------------
5907 Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
5908 inserted into the LaTeX file.  Forthermore, you can add special code
5909 that should only be present in LaTeX export with the following
5910 constructs:
5912      #+LaTeX: Literal LaTeX code for export
5916      #+BEGIN_LaTeX
5917      All lines between these markers are exported literally
5918      #+END_LaTeX
5920 \x1f
5921 File: org,  Node: Sectioning structure,  Prev: Quoting LaTeX code,  Up: LaTeX export
5923 12.3.3 Sectioning structure
5924 ---------------------------
5926 By default, the LaTeX output uses the class `article'.
5928    You can change this globally by setting a different value for
5929 `org-export-latex-default-class' or locally by adding an option like
5930 `#+LaTeX_CLASS: myclass' in your file.  The class should be listed in
5931 `org-export-latex-classes', where you can also define the sectioning
5932 structure for each class.
5934 \x1f
5935 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: LaTeX export,  Up: Exporting
5937 12.4 XOXO export
5938 ================
5940 Org-mode contains an exporter that produces XOXO-style output.
5941 Currently, this exporter only handles the general outline structure and
5942 does not interpret any additional Org-mode features.
5944 `C-c C-e x'
5945      Export as XOXO file `myfile.html'.  
5947 `C-c C-e v x'
5948      Export only the visible part of the document.
5950 \x1f
5951 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
5953 12.5 iCalendar export
5954 =====================
5956 Some people like to use Org-mode for keeping track of projects, but
5957 still prefer a standard calendar application for anniversaries and
5958 appointments.  In this case it can be useful to have deadlines and
5959 other time-stamped items in Org-mode files show up in the calendar
5960 application.  Org-mode can export calendar information in the standard
5961 iCalendar format.  If you also want to have TODO entries included in the
5962 export, configure the variable `org-icalendar-include-todo'.
5964 `C-c C-e i'
5965      Create iCalendar entries for the current file and store them in
5966      the same directory, using a file extension `.ics'.  
5968 `C-c C-e I'
5969      Like `C-c C-e i', but do this for all files in `org-agenda-files'.
5970      For each of these files, a separate iCalendar file will be
5971      written.  
5973 `C-c C-e c'
5974      Create a single large iCalendar file from all files in
5975      `org-agenda-files' and write it to the file given by
5976      `org-combined-agenda-icalendar-file'.
5978    The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
5979 the selected entries have them.  If not, the summary will be derived
5980 from the headline, and the description from the body (limited to
5981 `org-icalendar-include-body' characters).
5983    How this calendar is best read and updated, depends on the
5984 application you are using.  The FAQ covers this issue.
5986 \x1f
5987 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
5989 12.6 Text interpretation by the exporter
5990 ========================================
5992 The exporter backends interpret additional structure in the Org-mode
5993 file in order to produce better output.
5995 * Menu:
5997 * Comment lines::               Some lines will not be exported
5998 * Initial text::                Text before the first headline
5999 * Footnotes::                   Numbers like [1]
6000 * Quoted examples::             Inserting quoted chnuks of text
6001 * Enhancing text::              Subscripts, symbols and more
6002 * Export options::              How to influence the export settings
6004 \x1f
6005 File: org,  Node: Comment lines,  Next: Initial text,  Prev: Text interpretation,  Up: Text interpretation
6007 12.6.1 Comment lines
6008 --------------------
6010 Lines starting with `#' in column zero are treated as comments and will
6011 never be exported.  Also entire subtrees starting with the word
6012 `COMMENT' will never be exported.
6014 `C-c ;'
6015      Toggle the COMMENT keyword at the beginning of an entry.
6017 \x1f
6018 File: org,  Node: Initial text,  Next: Footnotes,  Prev: Comment lines,  Up: Text interpretation
6020 12.6.2 Text before the first headline
6021 -------------------------------------
6023 Org-mode normally ignores any text before the first headline when
6024 exporting, leaving this region for internal links to speed up navigation
6025 etc.  However, in publishing-oriented files, you might want to have some
6026 text before the first headline, like a small introduction, special HTML
6027 code with a navigation bar, etc.  You can ask to have this part of the
6028 file exported as well by setting the variable
6029 `org-export-skip-text-before-1st-heading' to `nil'.  On a per-file
6030 basis, you can get the same effect with
6032      #+OPTIONS: skip:nil
6034    The text before the first headline will be fully processed (*note
6035 Enhancing text::), and the first non-comment line becomes the title of
6036 the exported document.  If you need to include literal HTML, use the
6037 special constructs described in *Note Quoting HTML tags::.  The table
6038 of contents is normally inserted directly before the first headline of
6039 the file.  If you would like to get it to a different location, insert
6040 the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
6041 location.
6043    Finally, if you want to use the space before the first headline for
6044 internal purposes, but _still_ want to place something before the first
6045 headline when exporting the file, you can use the `#+TEXT' construct:
6047      #+OPTIONS: skip:t
6048      #+TEXT: This text will go before the *first* headline.
6049      #+TEXT: We place the table of contents here:
6050      #+TEXT: [TABLE-OF-CONTENTS]
6051      #+TEXT: This goes between the table of contents and the first headline
6053 \x1f
6054 File: org,  Node: Footnotes,  Next: Quoted examples,  Prev: Initial text,  Up: Text interpretation
6056 12.6.3 Footnotes
6057 ----------------
6059 Numbers in square brackets are treated as footnotes, so that you can use
6060 the Emacs package `footnote.el' to create footnotes.  For example:
6062      The org-mode homepage[1] clearly needs help from
6063      a good web designer.
6065      [1] The link is: http://orgmode.org
6067 Note that the `footnote' package uses `C-c !' to invoke its commands.
6068 This binding conflicts with the org-mode command for inserting inactive
6069 time stamps.  You could use the variable `footnote-prefix' to switch
6070 footnotes commands to another key.  Or, if you are too used to this
6071 binding, you could use `org-replace-disputed-keys' and
6072 `org-disputed-keys' to change the settings in Org-mode.
6074 \x1f
6075 File: org,  Node: Quoted examples,  Next: Enhancing text,  Prev: Footnotes,  Up: Text interpretation
6077 12.6.4 Quoted examples
6078 ----------------------
6080 When writing technical documents, you often need to insert examples that
6081 are not further interpreted by Org-mode.  For historical reasons, there
6082 are several ways to do this:
6084    * If a headline starts with the word `QUOTE', the text below the
6085      headline will be typeset as fixed-width, to allow quoting of
6086      computer codes etc.
6088    * Lines starting with `:' are also typeset in fixed-width font.
6089     `C-c :'
6090           Toggle fixed-width for entry (QUOTE) or region, see below.
6092    * Finally, text between
6093           #+BEGIN_EXAMPLE
6094           quoted text
6095           #+END_EXAMPLE
6096      will also be exported in this way.
6098 \x1f
6099 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Quoted examples,  Up: Text interpretation
6101 12.6.5 Enhancing text for export
6102 --------------------------------
6104 Some of the export backends of Org-mode allow for sophisticated text
6105 formatting, this is true in particular for the HTML and LaTeX backends.
6106 Org-mode has a number of typing conventions that allow to produce a
6107 richly formatted output.
6109    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
6110      enumerator will be recognized and transformed if the backend
6111      supports lists.  See *Note Plain lists::.
6113    * You can make words *bold*, /italic/, _underlined_, `=code=' and
6114      `~verbatim~', and, if you must, `+strikethrough+'.  Text in the
6115      code and verbatim string is not processed for org-mode specific
6116      syntax, it is exported verbatim.
6118    * A line consisting of only dashes, and at least 5 of them, will be
6119      exported as a horizontal line (`<hr/>' in HTML).
6121    * Many TeX macros and entire LaTeX fragments are converted into HTML
6122      entities or images (*note Embedded LaTeX::).
6124    * Tables are transformed into native tables under the exporter, if
6125      the export backend supports this. Data fields before the first
6126      horizontal separator line will be formatted as table header fields.
6128    * If a headline starts with the word `QUOTE', the text below the
6129      headline will be typeset as fixed-width, to allow quoting of
6130      computer codes etc.  Lines starting with `:' are also typeset in
6131      fixed-width font.
6132     `C-c :'
6133           Toggle fixed-width for entry (QUOTE) or region, see below.
6134      Finally, text between
6135           #+BEGIN_EXAMPLE
6136           quoted text
6137           #+END_EXAMPLE
6138      will also be exported in this way.
6140    * A double backslash _at the end of a line_ enforces a line break at
6141      this position.
6143    * Strings like `\alpha' will be exported as `&alpha;', in the HTML
6144      output.  These strings are exported as `$\alpha$' in the LaTeX
6145      output.  Similarly, `\nbsp' will become `&nbsp;' in HTML and in
6146      LaTeX.  This applies for a long list of entities, see the variable
6147      `org-html-entities' for the complete list.
6149    If these conversions conflict with your habits of typing ASCII text,
6150 they can all be turned off with corresponding variables.  See the
6151 customization group `org-export-general', and the following section
6152 which explains how to set export options with special lines in a buffer.
6154 \x1f
6155 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
6157 12.6.6 Export options
6158 ---------------------
6160 The exporter recognizes special lines in the buffer which provide
6161 additional information.  These lines may be put anywhere in the file.
6162 The whole set of lines can be inserted into the buffer with `C-c C-e
6163 t'.  For individual lines, a good way to make sure the keyword is
6164 correct is to type `#+' and then use `M-<TAB>' completion (*note
6165 Completion::).
6167 `C-c C-e t'
6168      Insert template with export options, see example below.
6170      #+TITLE:     the title to be shown (default is the buffer name)
6171      #+AUTHOR:    the author (default taken from `user-full-name')
6172      #+DATE:      A date, fixed, of a format string for `format-time-string'
6173      #+EMAIL:     his/her email address (default from `user-mail-address')
6174      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
6175      #+TEXT:      Some descriptive text to be inserted at the beginning.
6176      #+TEXT:      Several lines may be given.
6177      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
6179 The OPTIONS line is a compact form to specify export settings.  Here
6180 you can: 
6181      H:         set the number of headline levels for export
6182      num:       turn on/off section-numbers
6183      toc:       turn on/off table of contents, or set level limit (integer)
6184      \n:        turn on/off linebreak-preservation
6185      @:         turn on/off quoted HTML tags
6186      ::         turn on/off fixed-width sections
6187      |:         turn on/off tables
6188      ^:         turn on/off TeX-like syntax for sub- and superscripts.  If
6189                 you write "^:{}", `a_{b}' will be interpreted, but
6190                 the simple `a_b' will be left as it is.
6191      -:         turn on/off conversion of special strings.
6192      f:         turn on/off foototes like this[1].
6193      *:         turn on/off emphasized text (bold, italic, underlined)
6194      TeX:       turn on/off simple TeX macros in plain text
6195      LaTeX:     turn on/off LaTeX fragments
6196      skip:      turn on/off skipping the text before the first heading
6197      author:    turn on/off inclusion of author name/email into exported file
6198      timestamp: turn on/off inclusion creation time into exported file
6199      d:         turn on/off inclusion of drawers
6201    These options take effect in both the HTML and LaTeX export, except
6202 for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
6203 LaTeX export.
6205 \x1f
6206 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
6208 13 Publishing
6209 *************
6211 Org-mode includes(1) a publishing management system that allows you to
6212 configure automatic HTML conversion of _projects_ composed of
6213 interlinked org files.  This system is called _org-publish_.  You can
6214 also configure org-publish to automatically upload your exported HTML
6215 pages and related attachments, such as images and source code files, to
6216 a web server. Org-publish turns org-mode into a web-site authoring tool.
6218    You can also use Org-publish to convert files into LaTeX, or even
6219 combine HTML and LaTeX conversion so that files are available in both
6220 formats on the server(2).
6222    Org-publish has been contributed to Org-mode by David O'Toole.
6224 * Menu:
6226 * Configuration::               Defining projects
6227 * Sample configuration::        Example projects
6228 * Triggering publication::      Publication commands
6230    ---------- Footnotes ----------
6232    (1) `org-publish.el' is not distributed with Emacs 21, if you are
6233 still using Emacs 21, you need you need to download this file
6234 separately.
6236    (2) Since LaTeX files on a server are not that helpful, you surely
6237 want to perform further conversion on them - e.g. convert them to `PDF'
6238 format.
6240 \x1f
6241 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
6243 13.1 Configuration
6244 ==================
6246 Publishing needs significant configuration to specify files, destination
6247 and many other properties of a project.
6249 * Menu:
6251 * Project alist::               The central configuration variable
6252 * Sources and destinations::    From here to there
6253 * Selecting files::             What files are part of the project?
6254 * Publishing action::           Setting the function doing the publishing
6255 * Publishing options::          Tweaking HTML export
6256 * Publishing links::            Which links keep working after publishing?
6257 * Project page index::          Publishing a list of project files
6259 \x1f
6260 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
6262 13.1.1 The variable `org-publish-project-alist'
6263 -----------------------------------------------
6265 Org-publish is configured almost entirely through setting the value of
6266 one variable, called `org-publish-project-alist'.  Each element of the
6267 list configures one project, and may be in one of the two following
6268 forms:
6270      ("project-name"  :property value :property value ...)
6272      or
6274      ("project-name"  :components ("project-name" "project-name" ...))
6276    In both cases, projects are configured by specifying property values.
6277 A project defines the set of files that will be published, as well as
6278 the publishing configuration to use when publishing those files.  When
6279 a project takes the second form listed above, the individual members of
6280 the "components" property are taken to be components of the project,
6281 which group together files requiring different publishing options. When
6282 you publish such a "meta-project" all the components will also publish.
6284 \x1f
6285 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
6287 13.1.2 Sources and destinations for files
6288 -----------------------------------------
6290 Most properties are optional, but some should always be set. In
6291 particular, org-publish needs to know where to look for source files,
6292 and where to put published files.
6294 `:base-directory'      Directory containing publishing source files
6295 `:publishing-directory'Directory (possibly remote) where output files
6296                        will be published.
6297 `:preparation-function'Function called before starting publishing
6298                        process, for example to run `make' for updating
6299                        files to be published.
6301 \x1f
6302 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
6304 13.1.3 Selecting files
6305 ----------------------
6307 By default, all files with extension `.org' in the base directory are
6308 considered part of the project.  This can be modified by setting the
6309 properties
6310 `:base-extension'  Extension (without the dot!) of source files.  This
6311                    actually is a regular expression.
6312 `:exclude'         Regular expression to match file names that should
6313                    not be published, even though they have been selected
6314                    on the basis of their extension.
6315 `:include'         List of files to be included regardless of
6316                    `:base-extension' and `:exclude'.
6318 \x1f
6319 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
6321 13.1.4 Publishing Action
6322 ------------------------
6324 Publishing means that a file is copied to the destination directory and
6325 possibly transformed in the process.  The default transformation is to
6326 export Org-mode files as HTML files, and this is done by the function
6327 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
6328 export::). But you also can publish your files in LaTeX by using the
6329 function `org-publish-org-to-latex' instead. Other files like images
6330 only need to be copied to the publishing destination. For non-Org-mode
6331 files, you need to specify the publishing function.
6333 `:publishing-function' Function executing the publication of a file.
6334                        This may also be a list of functions, which will
6335                        all be called in turn.
6337    The function must accept two arguments: a property list containing at
6338 least a `:publishing-directory' property, and the name of the file to
6339 be published.  It should take the specified file, make the necessary
6340 transformation (if any) and place the result into the destination
6341 folder.  You can write your own publishing function, but `org-publish'
6342 provides one for attachments (files that only need to be copied):
6343 `org-publish-attachment'.
6345 \x1f
6346 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
6348 13.1.5 Options for the HTML/LaTeX exporters
6349 -------------------------------------------
6351 The property list can be used to set many export options for the HTML
6352 and LaTeX exporters.  In most cases, these properties correspond to user
6353 variables in Org-mode.  The table below lists these properties along
6354 with the variable they belong to.  See the documentation string for the
6355 respective variable for details.
6357 `:language'            `org-export-default-language'
6358 `:headline-levels'     `org-export-headline-levels'
6359 `:section-numbers'     `org-export-with-section-numbers'
6360 `:table-of-contents'   `org-export-with-toc'
6361 `:archived-trees'      `org-export-with-archived-trees'
6362 `:emphasize'           `org-export-with-emphasize'
6363 `:sub-superscript'     `org-export-with-sub-superscripts'
6364 `:special-strings'     `org-export-with-special-strings'
6365 `:TeX-macros'          `org-export-with-TeX-macros'
6366 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
6367 `:fixed-width'         `org-export-with-fixed-width'
6368 `:timestamps'          `org-export-with-timestamps'
6369  .                     
6370 `:tags'                `org-export-with-tags'
6371  .                     
6372 `:tables'              `org-export-with-tables'
6373 `:table-auto-headline' `org-export-highlight-first-table-line'
6374 `:style'               `org-export-html-style'
6375 `:convert-org-links'   `org-export-html-link-org-files-as-html'
6376 `:inline-images'       `org-export-html-inline-images'
6377 `:expand-quoted-html'  `org-export-html-expand'
6378 `:timestamp'           `org-export-html-with-timestamp'
6379 `:publishing-directory'`org-export-publishing-directory'
6380 `:preamble'            `org-export-html-preamble'
6381 `:postamble'           `org-export-html-postamble'
6382 `:auto-preamble'       `org-export-html-auto-preamble'
6383 `:auto-postamble'      `org-export-html-auto-postamble'
6384 `:author'              `user-full-name'
6385 `:email'               `user-mail-address'
6387    If you use several email addresses, separate them by a semi-column.
6389    Most of the `org-export-with-*' variables have the same effect in
6390 both HTML and LaTeX exporters, except for `:TeX-macros' and
6391 `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
6393    When a property is given a value in `org-publish-project-alist', its
6394 setting overrides the value of the corresponding user variable (if any)
6395 during publishing.  Options set within a file (*note Export options::),
6396 however, override everything.
6398 \x1f
6399 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
6401 13.1.6 Links between published files
6402 ------------------------------------
6404 To create a link from one Org-mode file to another, you would use
6405 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
6406 (*note Hyperlinks::).  Upon publishing this link becomes a link to
6407 `foo.html'.  In this way, you can interlink the pages of your "org web"
6408 project and the links will work as expected when you publish them to
6409 HTML.
6411    You may also link to related files, such as images. Provided you are
6412 careful with relative pathnames, and provided you have also configured
6413 `org-publish' to upload the related files, these links will work too.
6414 *Note Complex example:: for an example of this usage.
6416    Sometime an Org-mode file to be published may contain links that are
6417 only valid in your production environment, but not in the publishing
6418 location.  In this case, use the property
6420 `:link-validation-function'   Function to validate links
6422 to define a function for checking link validity.  This function must
6423 accept two arguments, the file name and a directory relative to which
6424 the file name is interpreted in the production environment.  If this
6425 function returns `nil', then the HTML generator will only insert a
6426 description into the HTML file, but no link.  One option for this
6427 function is `org-publish-validate-link' which checks if the given file
6428 is part of any project in `org-publish-project-alist'.
6430 \x1f
6431 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
6433 13.1.7 Project page index
6434 -------------------------
6436 The following properties may be used to control publishing of an index
6437 of files or summary page for a given project.
6439 `:auto-index'      When non-nil, publish an index during
6440                    org-publish-current-project or org-publish-all.
6441 `:index-filename'  Filename for output of index. Defaults to `index.org'
6442                    (which becomes `index.html').
6443 `:index-title'     Title of index page. Defaults to name of file.
6444 `:index-function'  Plugin function to use for generation of index.
6445                    Defaults to `org-publish-org-index', which generates
6446                    a plain list of links to all files in the project.
6448 \x1f
6449 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
6451 13.2 Sample configuration
6452 =========================
6454 Below we provide two example configurations.  The first one is a simple
6455 project publishing only a set of Org-mode files.  The second example is
6456 more complex, with a multi-component project.
6458 * Menu:
6460 * Simple example::              One-component publishing
6461 * Complex example::             A multi-component publishing example
6463 \x1f
6464 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
6466 13.2.1 Example: simple publishing configuration
6467 -----------------------------------------------
6469 This example publishes a set of Org-mode files to the `public_html'
6470 directory on the local machine.
6472      (setq org-publish-project-alist
6473            '(("org"
6474               :base-directory "~/org/"
6475               :publishing-directory "~/public_html"
6476               :section-numbers nil
6477               :table-of-contents nil
6478               :style "<link rel=stylesheet
6479                      href=\"../other/mystyle.css\"
6480                      type=\"text/css\">")))
6482 \x1f
6483 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
6485 13.2.2 Example: complex publishing configuration
6486 ------------------------------------------------
6488 This more complicated example publishes an entire website, including
6489 org files converted to HTML, image files, emacs lisp source code, and
6490 stylesheets. The publishing-directory is remote and private files are
6491 excluded.
6493    To ensure that links are preserved, care should be taken to replicate
6494 your directory structure on the web server, and to use relative file
6495 paths. For example, if your org files are kept in `~/org' and your
6496 publishable images in `~/images', you'd link to an image with
6497      file:../images/myimage.png
6498    On the web server, the relative path to the image should be the
6499 same. You can accomplish this by setting up an "images" folder in the
6500 right place on the webserver, and publishing images to it.
6502      (setq org-publish-project-alist
6503            '(("orgfiles"
6504                :base-directory "~/org/"
6505                :base-extension "org"
6506                :publishing-directory "/ssh:user@host:~/html/notebook/"
6507                :publishing-function org-publish-org-to-html
6508                :exclude "PrivatePage.org"   ;; regexp
6509                :headline-levels 3
6510                :section-numbers nil
6511                :table-of-contents nil
6512                :style "<link rel=stylesheet
6513                        href=\"../other/mystyle.css\" type=\"text/css\">"
6514                :auto-preamble t
6515                :auto-postamble nil)
6517               ("images"
6518                :base-directory "~/images/"
6519                :base-extension "jpg\\|gif\\|png"
6520                :publishing-directory "/ssh:user@host:~/html/images/"
6521                :publishing-function org-publish-attachment)
6523               ("other"
6524                :base-directory "~/other/"
6525                :base-extension "css\\|el"
6526                :publishing-directory "/ssh:user@host:~/html/other/"
6527                :publishing-function org-publish-attachment)
6528               ("website" :components ("orgfiles" "images" "other"))))
6530 \x1f
6531 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
6533 13.3 Triggering publication
6534 ===========================
6536 Once org-publish is properly configured, you can publish with the
6537 following functions:
6539 `C-c C-e C'
6540      Prompt for a specific project and publish all files that belong to
6541      it.
6543 `C-c C-e P'
6544      Publish the project containing the current file.
6546 `C-c C-e F'
6547      Publish only the current file.
6549 `C-c C-e A'
6550      Publish all projects.
6552    Org uses timestamps to track when a file has changed. The above
6553 functions normally only publish changed files. You can override this and
6554 force publishing of all files by giving a prefix argument.
6556 \x1f
6557 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
6559 14 Miscellaneous
6560 ****************
6562 * Menu:
6564 * Completion::                  M-TAB knows what you need
6565 * Customization::               Adapting Org-mode to your taste
6566 * In-buffer settings::          Overview of the #+KEYWORDS
6567 * The very busy C-c C-c key::   When in doubt, press C-c C-c
6568 * Clean view::                  Getting rid of leading stars in the outline
6569 * TTY keys::                    Using Org-mode on a tty
6570 * Interaction::                 Other Emacs packages
6571 * Bugs::                        Things which do not work perfectly
6573 \x1f
6574 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
6576 14.1 Completion
6577 ===============
6579 Org-mode supports in-buffer completion.  This type of completion does
6580 not make use of the minibuffer.  You simply type a few letters into the
6581 buffer and use the key to complete text right there.
6583 `M-<TAB>'
6584      Complete word at point
6585         * At the beginning of a headline, complete TODO keywords.
6587         * After `\', complete TeX symbols supported by the exporter.
6589         * After `*', complete headlines in the current buffer so that
6590           they can be used in search links like `[[*find this
6591           headline]]'.
6593         * After `:' in a headline, complete tags.  The list of tags is
6594           taken from the variable `org-tag-alist' (possibly set through
6595           the `#+TAGS' in-buffer option, *note Setting tags::), or it
6596           is created dynamically from all tags used in the current
6597           buffer.
6599         * After `:' and not in a headline, complete property keys.  The
6600           list of keys is constructed dynamically from all keys used in
6601           the current buffer.
6603         * After `[', complete link abbreviations (*note Link
6604           abbreviations::).
6606         * After `#+', complete the special keywords like `TYP_TODO' or
6607           `OPTIONS' which set file-specific options for Org-mode.  When
6608           the option keyword is already complete, pressing `M-<TAB>'
6609           again will insert example settings for this keyword.
6611         * In the line after `#+STARTUP: ', complete startup keywords,
6612           i.e. valid keys for this line.
6614         * Elsewhere, complete dictionary words using ispell.
6616 \x1f
6617 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
6619 14.2 Customization
6620 ==================
6622 There are more than 180 variables that can be used to customize
6623 Org-mode.  For the sake of compactness of the manual, I am not
6624 describing the variables here.  A structured overview of customization
6625 variables is available with `M-x org-customize'.  Or select `Browse Org
6626 Group' from the `Org->Customization' menu.  Many settings can also be
6627 activated on a per-file basis, by putting special lines into the buffer
6628 (*note In-buffer settings::).
6630 \x1f
6631 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
6633 14.3 Summary of in-buffer settings
6634 ==================================
6636 Org-mode uses special lines in the buffer to define settings on a
6637 per-file basis.  These lines start with a `#+' followed by a keyword, a
6638 colon, and then individual words defining a setting.  Several setting
6639 words can be in the same line, but you can also have multiple lines for
6640 the keyword.  While these settings are described throughout the manual,
6641 here is a summary.  After changing any of those lines in the buffer,
6642 press `C-c C-c' with the cursor still in the line to activate the
6643 changes immediately.  Otherwise they become effective only when the
6644 file is visited again in a new Emacs session.
6646 `#+ARCHIVE: %s_done::'
6647      This line sets the archive location for the agenda file.  It
6648      applies for all subsequent lines until the next `#+ARCHIVE' line,
6649      or the end of the file.  The first such line also applies to any
6650      entries before it.  The corresponding variable is
6651      `org-archive-location'.
6653 `#+CATEGORY:'
6654      This line sets the category for the agenda file.  The category
6655      applies for all subsequent lines until the next `#+CATEGORY' line,
6656      or the end of the file.  The first such line also applies to any
6657      entries before it.
6659 `#+COLUMNS: %25ITEM .....'
6660      Set the default format for columns view.  This format applies when
6661      columns view is invoked in location where no COLUMNS property
6662      applies.
6664 `#+CONSTANTS: name1=value1 ...'
6665      Set file-local values for constants to be used in table formulas.
6666      This line set the local variable
6667      `org-table-formula-constants-local'.  The global version of this
6668      variable is `org-table-formula-constants'.
6670 `#+DRAWERS: NAME1 .....'
6671      Set the file-local set of drawers.  The corresponding global
6672      variable is `org-drawers'.
6674 `#+LINK:  linkword replace'
6675      These lines (several are allowed) specify link abbreviations.
6676      *Note Link abbreviations::.  The corresponding variable is
6677      `org-link-abbrev-alist'.
6679 `#+PRIORITIES: highest lowest default'
6680      This line sets the limits and the default for the priorities.  All
6681      three must be either letters A-Z or numbers 0-9.  The highest
6682      priority must have a lower ASCII number that the lowest priority.
6684 `#+PROPERTY: Property_Name Value'
6685      This line sets a default inheritance value for entries in the
6686      current buffer, most useful for specifying the allowed values of a
6687      property.
6689 `#+STARTUP:'
6690      This line sets options to be used at startup of Org-mode, when an
6691      Org-mode file is being visited.  The first set of options deals
6692      with the initial visibility of the outline tree.  The
6693      corresponding variable for global default settings is
6694      `org-startup-folded', with a default value `t', which means
6695      `overview'.  
6696           overview   top-level headlines only
6697           content    all headlines
6698           showall    no folding at all, show everything
6699      Then there are options for aligning tables upon visiting a file.
6700      This is useful in files containing narrowed table columns.  The
6701      corresponding variable is `org-startup-align-all-tables', with a
6702      default value `nil'.  
6703           align      align all tables
6704           noalign    don't align tables on startup
6705      Logging TODO state changes and clock intervals (variables
6706      `org-log-done' and `org-log-repeat') can be configured using these
6707      options.  
6708           logging          record a timestamp when an item is marked DONE
6709           nologging        don't record when items are marked DONE
6710           lognotedone      record timestamp and a note when DONE
6711           lognotestate     record timestamp and a note when TODO state changes
6712           logrepeat        record a note when re-instating a repeating item
6713           nologrepeat      do not record when re-instating repeating item
6714           lognoteclock-out record timestamp and a note when clocking out
6715      Here are the options for hiding leading stars in outline headings.
6716      The corresponding variables are `org-hide-leading-stars' and
6717      `org-odd-levels-only', both with a default setting `nil' (meaning
6718      `showstars' and `oddeven').  
6719           hidestars  make all but one of the stars starting a headline invisible.
6720           showstars  show all stars starting a headline
6721           odd        allow only odd outline levels (1,3,...)
6722           oddeven    allow all outline levels
6723      To turn on custom format overlays over time stamps (variables
6724      `org-put-time-stamp-overlays' and
6725      `org-time-stamp-overlay-formats'), use 
6726           customtime overlay custom time format
6727      The following options influence the table spreadsheet (variable
6728      `constants-unit-system').  
6729           constcgs   `constants.el' should use the c-g-s unit system
6730           constSI    `constants.el' should use the SI unit system
6732 `#+TAGS:  TAG1(c1) TAG2(c2)'
6733      These lines (several such lines are allowed) specify the legal
6734      tags in this file, and (potentially) the corresponding _fast tag
6735      selection_ keys.  The corresponding variable is `org-tag-alist'.
6737 `#+TBLFM:'
6738      This line contains the formulas for the table directly above the
6739      line.
6741 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
6742      These lines provide settings for exporting files.  For more
6743      details see *Note Export options::.
6745 `#+SEQ_TODO:   #+TYP_TODO:'
6746      These lines set the TODO keywords and their interpretation in the
6747      current file.  The corresponding variables are `org-todo-keywords'
6748      and `org-todo-interpretation'.
6750 \x1f
6751 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
6753 14.4 The very busy C-c C-c key
6754 ==============================
6756 The key `C-c C-c' has many purposes in org-mode, which are all
6757 mentioned scattered throughout this manual.  One specific function of
6758 this key is to add _tags_ to a headline (*note Tags::).  In many other
6759 circumstances it means something like _Hey Org-mode, look here and
6760 update according to what you see here_.  Here is a summary of what this
6761 means in different contexts.
6763    - If there are highlights in the buffer from the creation of a sparse
6764      tree, or from clock display, remove these highlights.
6766    - If the cursor is in one of the special `#+KEYWORD' lines, this
6767      triggers scanning the buffer for these lines and updating the
6768      information.
6770    - If the cursor is inside a table, realign the table.  This command
6771      works even if the automatic table editor has been turned off.
6773    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
6774      entire table.
6776    - If the cursor is inside a table created by the `table.el' package,
6777      activate that table.
6779    - If the current buffer is a remember buffer, close the note and
6780      file it.  With a prefix argument, file it, without further
6781      interaction, to the default location.
6783    - If the cursor is on a `<<<target>>>', update radio targets and
6784      corresponding links in this buffer.
6786    - If the cursor is in a property line or at the start or end of a
6787      property drawer, offer property commands.
6789    - If the cursor is in a plain list item with a checkbox, toggle the
6790      status of the checkbox.
6792    - If the cursor is on a numbered item in a plain list, renumber the
6793      ordered list.
6795    - If the cursor is on the `#+BEGIN' line of a dynamical block, the
6796      block is updated.
6798 \x1f
6799 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
6801 14.5 A cleaner outline view
6802 ===========================
6804 Some people find it noisy and distracting that the Org-mode headlines
6805 are starting with a potentially large number of stars.  For example the
6806 tree from *Note Headlines:::
6808      * Top level headline
6809      ** Second level
6810      *** 3rd level
6811          some text
6812      *** 3rd level
6813          more text
6814      * Another top level headline
6816 Unfortunately this is deeply ingrained into the code of Org-mode and
6817 cannot be easily changed.  You can, however, modify the display in such
6818 a way that all leading stars become invisible and the outline more easy
6819 to read.  To do this, customize the variable `org-hide-leading-stars'
6820 like this:
6822      (setq org-hide-leading-stars t)
6824 or change this on a per-file basis with one of the lines (anywhere in
6825 the buffer)
6827      #+STARTUP: showstars
6828      #+STARTUP: hidestars
6830 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
6831 modifications.
6833    With stars hidden, the tree becomes:
6835      * Top level headline
6836       * Second level
6837        * 3rd level
6838          some text
6839        * 3rd level
6840          more text
6841      * Another top level headline
6843 Note that the leading stars are not truly replaced by whitespace, they
6844 are only fontified with the face `org-hide' that uses the background
6845 color as font color.  If you are not using either white or black
6846 background, you may have to customize this face to get the wanted
6847 effect.  Another possibility is to set this font such that the extra
6848 stars are almost invisible, for example using the color `grey90' on a
6849 white background.
6851    Things become cleaner still if you skip all the even levels and use
6852 only odd levels 1, 3, 5..., effectively adding two stars to go from one
6853 outline level to the next:
6855      * Top level headline
6856        * Second level
6857          * 3rd level
6858            some text
6859          * 3rd level
6860            more text
6861      * Another top level headline
6863 In order to make the structure editing and export commands handle this
6864 convention correctly, use
6866      (setq org-odd-levels-only t)
6868 or set this on a per-file basis with one of the following lines (don't
6869 forget to press `C-c C-c' with the cursor in the startup line to
6870 activate changes immediately).
6872      #+STARTUP: odd
6873      #+STARTUP: oddeven
6875    You can convert an Org-mode file from single-star-per-level to the
6876 double-star-per-level convention with `M-x org-convert-to-odd-levels
6877 RET' in that file.  The reverse operation is `M-x
6878 org-convert-to-oddeven-levels'.
6880 \x1f
6881 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
6883 14.6 Using org-mode on a tty
6884 ============================
6886 Org-mode uses a number of keys that are not accessible on a tty.  This
6887 applies to most special keys like cursor keys, <TAB> and <RET>, when
6888 these are combined with modifier keys like <Meta> and/or <Shift>.
6889 Org-mode uses these bindings because it needs to provide keys for a
6890 large number of commands, and because these keys appeared particularly
6891 easy to remember.  In order to still be able to access the core
6892 functionality of Org-mode on a tty, alternative bindings are provided.
6893 Here is a complete list of these bindings, which are obviously more
6894 cumbersome to use.  Note that sometimes a work-around can be better.
6895 For example changing a time stamp is really only fun with `S-<cursor>'
6896 keys.  On a tty you would rather use `C-c .'  to re-insert the
6897 timestamp.
6899 Default     Alternative 1  Alternative 2
6900 `S-<TAB>'   `C-u <TAB>'    
6901 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
6902 `M-S-<left>'`C-c C-x L'    
6903 `M-<right>' `C-c C-x r'    `<Esc>
6904                            <right>'
6905 `M-S-<right>'`C-c C-x R'    
6906 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
6907 `M-S-<up>'  `C-c C-x U'    
6908 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
6909 `M-S-<down>'`C-c C-x D'    
6910 `S-<RET>'   `C-c C-x c'    
6911 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
6912 `M-S-<RET>' `C-c C-x M'    
6913 `S-<left>'  `C-c <left>'   
6914 `S-<right>' `C-c <right>'  
6915 `S-<up>'    `C-c <up>'     
6916 `S-<down>'  `C-c <down>'   
6917 `C-S-<left>'`C-c C-x       
6918             <left>'        
6919 `C-S-<right>'`C-c C-x       
6920             <right>'       
6922 \x1f
6923 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
6925 14.7 Interaction with other packages
6926 ====================================
6928 Org-mode lives in the world of GNU Emacs and interacts in various ways
6929 with other code out there.
6931 * Menu:
6933 * Cooperation::                 Packages Org-mode cooperates with
6934 * Conflicts::                   Packages that lead to conflicts
6936 \x1f
6937 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
6939 14.7.1 Packages that Org-mode cooperates with
6940 ---------------------------------------------
6942 `calc.el' by Dave Gillespie
6943      Org-mode uses the calc package for implementing spreadsheet
6944      functionality in its tables (*note The spreadsheet::).  Org-mode
6945      checks for the availability of calc by looking for the function
6946      `calc-eval' which should be autoloaded in your setup if calc has
6947      been installed properly.  As of Emacs 22, calc is part of the Emacs
6948      distribution.  Another possibility for interaction between the two
6949      packages is using calc for embedded calculations. *Note Embedded
6950      Mode: (calc)Embedded Mode.  
6952 `constants.el' by Carsten Dominik
6953      In a table formula (*note The spreadsheet::), it is possible to use
6954      names for natural constants or units.  Instead of defining your own
6955      constants in the variable `org-table-formula-constants', install
6956      the `constants' package which defines a large number of constants
6957      and units, and lets you use unit prefixes like `M' for `Mega' etc.
6958      You will need version 2.0 of this package, available at
6959      `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
6960      function `constants-get', which has to be autoloaded in your
6961      setup.  See the installation instructions in the file
6962      `constants.el'.
6964 `cdlatex.el' by Carsten Dominik
6965      Org-mode can make use of the cdlatex package to efficiently enter
6966      LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
6968 `imenu.el' by Ake Stenhoff and Lars Lindberg
6969      Imenu allows menu access to an index of items in a file.  Org-mode
6970      supports imenu - all you need to do to get the index is the
6971      following:
6972           (add-hook 'org-mode-hook
6973                     (lambda () 'imenu-add-to-menubar "Imenu"))
6974      By default the index is two levels deep - you can modify the depth
6975      using the option `org-imenu-depth'.
6977 `remember.el' by John Wiegley
6978      Org mode cooperates with remember, see *Note Remember::.
6979      `Remember.el' is not part of Emacs, find it on the web.
6981 `speedbar.el' by Eric M. Ludlam
6982      Speedbar is a package that creates a special frame displaying
6983      files and index items in files.  Org-mode supports speedbar and
6984      allows you to drill into Org-mode files directly from the
6985      speedbar.  It also allows to restrict the scope of agenda commands
6986      to a file or a subtree by using the command `<' in the speedbar
6987      frame.  
6989 `table.el' by Takaaki Ota
6990      Complex ASCII tables with automatic line wrapping, column- and
6991      row-spanning, and alignment can be created using the Emacs table
6992      package by Takaaki Ota (`http://sourceforge.net/projects/table',
6993      and also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in
6994      such a table, Org-mode will call `table-recognize-table' and move
6995      the cursor into the table.  Inside a table, the keymap of Org-mode
6996      is inactive.  In order to execute Org-mode-related commands, leave
6997      the table.
6999     `C-c C-c'
7000           Recognize `table.el' table.  Works when the cursor is in a
7001           table.el table.  
7003     `C-c ~'
7004           Insert a table.el table.  If there is already a table at
7005           point, this command converts it between the table.el format
7006           and the Org-mode format.  See the documentation string of the
7007           command `org-convert-table' for the restrictions under which
7008           this is possible.
7009      `table.el' is part of Emacs 22.  
7011 `footnote.el' by Steven L. Baur
7012      Org-mode recognizes numerical footnotes as provided by this package
7013      (*note Footnotes::).
7015 \x1f
7016 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
7018 14.7.2 Packages that lead to conflicts with Org-mode
7019 ----------------------------------------------------
7021 `allout.el' by Ken Manheimer
7022      Startup of Org-mode may fail with the error message
7023      `(wrong-type-argument keymapp nil)' when there is an outdated
7024      version `allout.el' on the load path, for example the version
7025      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
7026      will disappear.  If for some reason you cannot do this, make sure
7027      that org.el is loaded _before_ `allout.el', for example by putting
7028      `(require 'org)' early enough into your `.emacs' file.
7030 `CUA.el' by Kim. F. Storm
7031      Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
7032      CUA-mode (as well as pc-select-mode and s-region-mode) to select
7033      and extend the region.  If you want to use one of these packages
7034      along with Org-mode, configure the variable
7035      `org-replace-disputed-keys'.  When set, Org-mode will move the
7036      following keybindings in Org-mode files, and in the agenda buffer
7037      (but not during date selection).
7039           S-UP    -> M-p             S-DOWN  -> M-n
7040           S-LEFT  -> M--             S-RIGHT -> M-+
7042      Yes, these are unfortunately more difficult to remember.  If you
7043      want to have other replacement keys, look at the variable
7044      `org-disputed-keys'.
7046 `windmove.el' by Hovav Shacham
7047      Also this package uses the `S-<cursor>' keys, so everything written
7048      in the paragraph above about CUA mode also applies here.
7050 `footnote.el' by Steven L. Baur
7051      Org-mode supports the syntax of the footnote package, but only the
7052      numerical footnote markers.  Also, the default key for footnote
7053      commands, `C-c !' is already used by Org-mode.  You could use the
7054      variable `footnote-prefix' to switch footnotes commands to another
7055      key.  Or, you could use `org-replace-disputed-keys' and
7056      `org-disputed-keys' to change the settings in Org-mode.
7059 \x1f
7060 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
7062 14.8 Bugs
7063 =========
7065 Here is a list of things that should work differently, but which I have
7066 found too hard to fix.
7068    * If a table field starts with a link, and if the corresponding table
7069      column is narrowed (*note Narrow columns::) to a width too small to
7070      display the link, the field would look entirely empty even though
7071      it is not.  To prevent this, Org-mode throws an error.  The
7072      work-around is to make the column wide enough to fit the link, or
7073      to add some text (at least 2 characters) before the link in the
7074      same field.
7076    * Narrowing table columns does not work on XEmacs, because the
7077      `format' function does not transport text properties.
7079    * Text in an entry protected with the `QUOTE' keyword should not
7080      autowrap.
7082    * When the application called by `C-c C-o' to open a file link fails
7083      (for example because the application does not exist or refuses to
7084      open the file), it does so silently.  No error message is
7085      displayed.
7087    * Recalculating a table line applies the formulas from left to right.
7088      If a formula uses _calculated_ fields further down the row,
7089      multiple recalculation may be needed to get all fields consistent.
7090      You may use the command `org-table-iterate' (`C-u C-c *') to
7091      recalculate until convergence.
7093    * A single letter cannot be made bold, for example `*a*'.
7095    * The exporters work well, but could be made more efficient.
7097 \x1f
7098 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
7100 Appendix A Extensions, Hooks and Hacking
7101 ****************************************
7103 This appendix lists extensions for Org-mode written by other authors.
7104 It also covers some aspects where users can extend the functionality of
7105 Org-mode.
7107 * Menu:
7109 * Extensions::                  Existing 3rd-part extensions
7110 * Adding hyperlink types::      New custom link types
7111 * Tables in arbitrary syntax::  Orgtbl for LaTeX and other programs
7112 * Dynamic blocks::              Automatically filled blocks
7113 * Special agenda views::        Customized views
7114 * Using the property API::      Writing programs that use entry properties
7116 \x1f
7117 File: org,  Node: Extensions,  Next: Adding hyperlink types,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
7119 A.1 Third-party extensions for Org-mode
7120 =======================================
7122 The following extensions for Org-mode have been written by other people:
7124 `org-publish.el' by David O'Toole
7125      This package provides facilities for publishing related sets of
7126      Org-mode files together with linked files like images as webpages.
7127      It is highly configurable and can be used for other publishing
7128      purposes as well.  As of Org-mode version 4.30, `org-publish.el'
7129      is part of the Org-mode distribution.  It is not yet part of
7130      Emacs, however, a delay caused by the preparations for the 22.1
7131      release.  In the mean time, `org-publish.el' can be downloaded
7132      from David's site: `http://dto.freeshell.org/e/org-publish.el'.  
7134 `org-mouse.el' by Piotr Zielinski
7135      This package implements extended mouse functionality for Org-mode.
7136      It allows you to cycle visibility and to edit the document
7137      structure with the mouse.  Best of all, it provides a
7138      context-sensitive menu on <mouse-3> that changes depending on the
7139      context of a mouse-click.  As of Org-mode version 4.53,
7140      `org-mouse.el' is part of the Org-mode distribution.  It is not
7141      yet part of Emacs, however, a delay caused by the preparations for
7142      the 22.1 release.  In the mean time, `org-mouse.el' can be
7143      downloaded from Piotr's site:
7144      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
7146 `org-blog.el' by David O'Toole
7147      A blogging plug-in for `org-publish.el'.
7148      `http://dto.freeshell.org/notebook/OrgMode.html'.  
7150 `blorg.el' by Bastien Guerry
7151      Publish Org-mode files as blogs.
7152      `http://www.cognition.ens.fr/~guerry/blorg.html'.  
7154 `org2rem.el' by Bastien Guerry
7155      Translates Org-mode files into something readable by Remind.
7156      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
7158 `org-toc.el' by Bastien Guerry
7159      Produces a simple table of contents of an Org-mode file, for easy
7160      navigation. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
7162 `org-registry.el' by Bastien Guerry
7163      Find which Org-file link to a certain document.
7164      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
7166 \x1f
7167 File: org,  Node: Adding hyperlink types,  Next: Tables in arbitrary syntax,  Prev: Extensions,  Up: Extensions and Hacking
7169 A.2 Adding hyperlink types
7170 ==========================
7172 Org-mode has a large number of hyperlink types built-in (*note
7173 Hyperlinks::).  If you would like to add new link types, it provides an
7174 interface for doing so.  Lets look at an example file `org-man.el' that
7175 will add support for creating links like `[[man:printf][The printf
7176 manpage]]' to show unix manual pages inside emacs:
7178      ;;; org-man.el - Support for links to manpages in Org-mode
7180      (require 'org)
7182      (org-add-link-type "man" 'org-man-open)
7183      (add-hook 'org-store-link-functions 'org-man-store-link)
7185      (defcustom org-man-command 'man
7186        "The Emacs command to be used to display a man page."
7187        :group 'org-link
7188        :type '(choice (const man) (const woman)))
7190      (defun org-man-open (path)
7191        "Visit the manpage on PATH.
7192      PATH should be a topic that can be thrown at the man command."
7193        (funcall org-man-command path))
7195      (defun org-man-store-link ()
7196        "Store a link to a manpage."
7197        (when (memq major-mode '(Man-mode woman-mode))
7198          ;; This is a man page, we do make this link
7199          (let* ((page (org-man-get-page-name))
7200                 (link (concat "man:" page))
7201                 (description (format "Manpage for %s" page)))
7202            (org-store-link-props
7203             :type "man"
7204             :link link
7205             :description description))))
7207      (defun org-man-get-page-name ()
7208        "Extract the page name from the buffer name."
7209        ;; This works for both `Man-mode' and `woman-mode'.
7210        (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
7211            (match-string 1 (buffer-name))
7212          (error "Cannot create link to this man page")))
7214      (provide 'org-man)
7216      ;;; org-man.el ends here
7218 You would activate this new link type in `.emacs' with
7220      (require 'org-man)
7222 Lets go through the file and see what it does.
7223   1. It does `(require 'org)' to make sure that `org.el' has been
7224      loaded.
7226   2. The next line calls `org-add-link-type' to define a new link type
7227      with prefix `man'.  The call also contains the name of a function
7228      that will be called to follow such a link.
7230   3. The next line adds a function to `org-store-link-functions', in
7231      order to allow the command `C-c l' to record a useful link in a
7232      buffer displaying a man page.
7234    The rest of the file defines the necessary variables and functions.
7235 First there is a customization variable that determines which emacs
7236 command should be used to display manpages.  There are two options,
7237 `man' and `woman'.  Then the function to follow a link is defined.  It
7238 gets the link path as an argument - in this case the link path is just
7239 a topic for the manual command.  The function calls the value of
7240 `org-man-command' to display the man page.
7242    Finally the function `org-man-store-link' is defined.  When you try
7243 to store a link with `C-c l', also this function will be called to try
7244 to make a link.  The function must first decide if it is supposed to
7245 create the link for this buffer type, we do this by checking the value
7246 of the variable `major-mode'.  If not, the function must exit and
7247 retunr the value `nil'.  If yes, the link is created by getting the
7248 manual tpoic from the buffer name and prefixing it with the string
7249 `man:'.  Then it must call the command `org-store-link-props' and set
7250 the `:type' and `:link' properties.  Optionally you can also set the
7251 `:description' property to provide a default for the link description
7252 when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
7254 \x1f
7255 File: org,  Node: Tables in arbitrary syntax,  Next: Dynamic blocks,  Prev: Adding hyperlink types,  Up: Extensions and Hacking
7257 A.3 Tables and Lists in arbitrary syntax
7258 ========================================
7260 Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
7261 frequent feature request has been to make it work with native tables in
7262 specific languages, for example LaTeX.  However, this is extremely hard
7263 to do in a general way, would lead to a customization nightmare, and
7264 would take away much of the simplicity of the Orgtbl-mode table editor.
7266    This appendix describes a different approach.  We keep the
7267 Orgtbl-mode table in its native format (the source table), and use a
7268 custom function to translate the table to the correct syntax, and to
7269 install it in the right location (the target table).  This puts the
7270 burden of writing conversion functions on the user, but it allows for a
7271 very flexible system.
7273    Bastien added the ability to do the same with lists.  You can use
7274 Org's facilities to edit and structure lists by turning `orgstruct-mode'
7275 on, then locally exporting such lists in another format (HTML, LaTeX or
7276 TeXInfo.)
7278 * Menu:
7280 * Radio tables::                Sending and receiving
7281 * A LaTeX example::             Step by step, almost a tutorial
7282 * Translator functions::        Copy and modify
7283 * Radio lists::                 Doing the same for lists.
7285 \x1f
7286 File: org,  Node: Radio tables,  Next: A LaTeX example,  Prev: Tables in arbitrary syntax,  Up: Tables in arbitrary syntax
7288 A.3.1 Radio tables
7289 ------------------
7291 To define the location of the target table, you first need to create two
7292 lines that are comments in the current mode, but contain magic words for
7293 Orgtbl-mode to find.  Orgtbl-mode will insert the translated table
7294 between these lines, replacing whatever was there before.  For example:
7296      /* BEGIN RECEIVE ORGTBL table_name */
7297      /* END RECEIVE ORGTBL table_name */
7299 Just above the source table, we put a special line that tells
7300 Orgtbl-mode how to translate this table and where to install it.  For
7301 example:
7302      #+ORGTBL: SEND table_name translation_function arguments....
7304 `table_name' is the reference name for the table that is also used in
7305 the receiver lines. `translation_function' is the Lisp function that
7306 does the translation.  Furthermore, the line can contain a list of
7307 arguments (alternating key and value) at the end.  The arguments will be
7308 passed as a property list to the translation function for
7309 interpretation.  A few standard parameters are already recognized and
7310 acted upon before the translation function is called:
7312 `:skip N'
7313      Skip the first N lines of the table. Hlines do count!
7315 `:skipcols (n1 n2 ...)'
7316      List of columns that should be skipped.  If the table has a column
7317      with calculation marks, that column is automatically discarded as
7318      well.  Please note that the translator function sees the table
7319      _after_ the removal of these columns, the function never knows
7320      that there have been additional columns.
7322 The one problem remaining is how to keep the source table in the buffer
7323 without disturbing the normal workings of the file, for example during
7324 compilation of a C file or processing of a LaTeX file.  There are a
7325 number of different solutions:
7327    * The table could be placed in a block comment if that is supported
7328      by the language.  For example, in C-mode you could wrap the table
7329      between `/*' and `*/' lines.
7331    * Sometimes it is possible to put the table after some kind of END
7332      statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
7334    * You can just comment the table line by line whenever you want to
7335      process the file, and uncomment it whenever you need to edit the
7336      table.  This only sounds tedious - the command `M-x
7337      orgtbl-toggle-comment' does make this comment-toggling very easy,
7338      in particular if you bind it to a key.
7340 \x1f
7341 File: org,  Node: A LaTeX example,  Next: Translator functions,  Prev: Radio tables,  Up: Tables in arbitrary syntax
7343 A.3.2 A LaTeX example of radio tables
7344 -------------------------------------
7346 The best way to wrap the source table in LaTeX is to use the `comment'
7347 environment provided by `comment.sty'.  It has to be activated by
7348 placing `\usepackage{comment}' into the document header.  Orgtbl-mode
7349 can insert a radio table skeleton(1)  with the command `M-x
7350 orgtbl-insert-radio-table'.  You will be prompted for a table name,
7351 lets say we use `salesfigures'.  You will then get the following
7352 template:
7354      % BEGIN RECEIVE ORGTBL salesfigures
7355      % END RECEIVE ORGTBL salesfigures
7356      \begin{comment}
7357      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7358      | | |
7359      \end{comment}
7361 The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
7362 `orgtbl-to-latex' to convert the table into LaTeX and to put it into
7363 the receiver location with name `salesfigures'.  You may now fill in
7364 the table, feel free to use the spreadsheet features(2):
7366      % BEGIN RECEIVE ORGTBL salesfigures
7367      % END RECEIVE ORGTBL salesfigures
7368      \begin{comment}
7369      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7370      | Month | Days | Nr sold | per day |
7371      |-------+------+---------+---------|
7372      | Jan   |   23 |      55 |     2.4 |
7373      | Feb   |   21 |      16 |     0.8 |
7374      | March |   22 |     278 |    12.6 |
7375      #+TBLFM: $4=$3/$2;%.1f
7376      % $ (optional extra dollar to keep font-lock happy, see footnote)
7377      \end{comment}
7379 When you are done, press `C-c C-c' in the table to get the converted
7380 table inserted between the two marker lines.
7382    Now lets assume you want to make the table header by hand, because
7383 you want to control how columns are aligned etc.  In this case we make
7384 sure that the table translator does skip the first 2 lines of the source
7385 table, and tell the command to work as a splice, i.e. to not produce
7386 header and footer commands of the target table:
7388      \begin{tabular}{lrrr}
7389      Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
7390      % BEGIN RECEIVE ORGTBL salesfigures
7391      % END RECEIVE ORGTBL salesfigures
7392      \end{tabular}
7393      %
7394      \begin{comment}
7395      #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
7396      | Month | Days | Nr sold | per day |
7397      |-------+------+---------+---------|
7398      | Jan   |   23 |      55 |     2.4 |
7399      | Feb   |   21 |      16 |     0.8 |
7400      | March |   22 |     278 |    12.6 |
7401      #+TBLFM: $4=$3/$2;%.1f
7402      \end{comment}
7404    The LaTeX translator function `orgtbl-to-latex' is already part of
7405 Orgtbl-mode.  It uses a `tabular' environment to typeset the table and
7406 marks horizontal lines with `\hline'.  Furthermore, it interprets the
7407 following parameters:
7409 `:splice nil/t'
7410      When set to t, return only table body lines, don't wrap them into a
7411      tabular environment.  Default is nil.
7413 `:fmt fmt'
7414      A format to be used to wrap each field, should contain `%s' for the
7415      original field value.  For example, to wrap each field value in
7416      dollars, you could use `:fmt "$%s$"'.  This may also be a property
7417      list with column numbers and formats. for example `:fmt (2 "$%s$"
7418      4 "%s\\%%")'.
7420 `:efmt efmt'
7421      Use this format to print numbers with exponentials.  The format
7422      should have `%s' twice for inserting mantissa and exponent, for
7423      example `"%s\\times10^{%s}"'.  The default is `"%s\\,(%s)"'.  This
7424      may also be a property list with column numbers and formats, for
7425      example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
7426      After `efmt' has been applied to a value, `fmt' will also be
7427      applied.
7429    ---------- Footnotes ----------
7431    (1) By default this works only for LaTeX, HTML, and TeXInfo.
7432 Configure the variable `orgtbl-radio-tables' to install templates for
7433 other modes.
7435    (2) If the `#+TBLFM' line contains an odd number of dollar
7436 characters, this may cause problems with font-lock in latex-mode.  As
7437 shown in the example you can fix this by adding an extra line inside the
7438 `comment' environment that is used to balance the dollar expressions.
7439 If you are using AUCTeX with the font-latex library, a much better
7440 solution is to add the `comment' environment to the variable
7441 `LaTeX-verbatim-environments'.
7443 \x1f
7444 File: org,  Node: Translator functions,  Next: Radio lists,  Prev: A LaTeX example,  Up: Tables in arbitrary syntax
7446 A.3.3 Translator functions
7447 --------------------------
7449 Orgtbl-mode has several translator functions built-in:
7450 `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'.  Except
7451 for `orgtbl-to-html'(1), these all use a generic translator,
7452 `orgtbl-to-generic'.  For example, `orgtbl-to-latex' itself is a very
7453 short function that computes the column definitions for the `tabular'
7454 environment, defines a few field and line separators and then hands
7455 over to the generic translator.  Here is the entire code:
7457      (defun orgtbl-to-latex (table params)
7458        "Convert the orgtbl-mode TABLE to LaTeX."
7459        (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
7460                                     org-table-last-alignment ""))
7461               (params2
7462                (list
7463                 :tstart (concat "\\begin{tabular}{" alignment "}")
7464                 :tend "\\end{tabular}"
7465                 :lstart "" :lend " \\\\" :sep " & "
7466                 :efmt "%s\\,(%s)" :hline "\\hline")))
7467          (orgtbl-to-generic table (org-combine-plists params2 params))))
7469    As you can see, the properties passed into the function (variable
7470 PARAMS) are combined with the ones newly defined in the function
7471 (variable PARAMS2).  The ones passed into the function (i.e. the ones
7472 set by the `ORGTBL SEND' line) take precedence.  So if you would like
7473 to use the LaTeX translator, but wanted the line endings to be
7474 `\\[2mm]' instead of the default `\\', you could just overrule the
7475 default with
7477      #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
7479    For a new language, you can either write your own converter function
7480 in analogy with the LaTeX translator, or you can use the generic
7481 function directly.  For example, if you have a language where a table
7482 is started with `!BTBL!', ended with `!ETBL!', and where table lines are
7483 started with `!BL!', ended with `!EL!' and where the field separator is
7484 a TAB, you could call the generic translator like this (on a single
7485 line!):
7487      #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
7488                                    :lstart "!BL! " :lend " !EL!" :sep "\t"
7490 Please check the documentation string of the function
7491 `orgtbl-to-generic' for a full list of parameters understood by that
7492 function and remember that you can pass each of them into
7493 `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
7494 the generic function.
7496    Of course you can also write a completely new function doing
7497 complicated things the generic translator cannot do.  A translator
7498 function takes two arguments.  The first argument is the table, a list
7499 of lines, each line either the symbol `hline' or a list of fields.  The
7500 second argument is the property list containing all parameters
7501 specified in the `#+ORGTBL: SEND' line.  The function must return a
7502 single string containing the formatted table.  If you write a generally
7503 useful translator, please post it on `emacs-orgmode@gnu.org' so that
7504 others can benefit from your work.
7506    ---------- Footnotes ----------
7508    (1) The HTML translator uses the same code that produces tables
7509 during HTML export.
7511 \x1f
7512 File: org,  Node: Radio lists,  Prev: Translator functions,  Up: Tables in arbitrary syntax
7514 A.3.4 Radio lists
7515 -----------------
7517 Sending and receiving radio lists works exactly the same way than
7518 sending and receiving radio tables (*note Radio tables::) (1).  As for
7519 radio tables, you can insert radio lists templates in HTML, LaTeX and
7520 TeXInfo modes by calling `org-list-insert-radio-list'.
7522    Here are the differences with radio tables:
7524    - Use `ORGLST' instead of `ORGTBL'.
7526    - The available translation functions for radio lists don't take
7527      parameters.
7529    - `C-c C-c' will work when pressed on the first item of the list.
7531    Here is a LaTeX example.  Let's say that you have this in your LaTeX
7532 file:
7534      % BEGIN RECEIVE ORGLST to-buy
7535      % END RECEIVE ORGLST to-buy
7536      \begin{comment}
7537      #+ORGLIST: SEND to-buy orgtbl-to-latex
7538      - a new house
7539      - a new computer
7540        + a new keyboard
7541        + a new mouse
7542      - a new life
7543      \end{comment}
7545    Pressing `C-c C-c' on `a new house' and will insert the converted
7546 LaTeX list between the two marker lines.
7548    ---------- Footnotes ----------
7550    (1) You need to load the `org-export-latex.el' package to use radio
7551 lists since the relevant code is there for now.
7553 \x1f
7554 File: org,  Node: Dynamic blocks,  Next: Special agenda views,  Prev: Tables in arbitrary syntax,  Up: Extensions and Hacking
7556 A.4 Dynamic blocks
7557 ==================
7559 Org-mode documents can contain _dynamic blocks_.  These are specially
7560 marked regions that are updated by some user-written function.  A good
7561 example for such a block is the clock table inserted by the command
7562 `C-c C-x C-r' (*note Clocking work time::).
7564    Dynamic block are enclosed by a BEGIN-END structure that assigns a
7565 name to the block and can also specify parameters for the function
7566 producing the content of the block.
7568      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
7570      #+END:
7572    Dynamic blocks are updated with the following commands
7574 `C-c C-x C-u'
7575      Update dynamic block at point.  
7577 `C-u C-c C-x C-u'
7578      Update all dynamic blocks in the current file.
7580    Updating a dynamic block means to remove all the text between BEGIN
7581 and END, parse the BEGIN line for parameters and then call the specific
7582 writer function for this block to insert the new content.  For a block
7583 with name `myblock', the writer function is `org-dblock-write:myblock'
7584 with as only parameter a property list with the parameters given in the
7585 begin line.  Here is a trivial example of a block that keeps track of
7586 when the block update function was last run:
7588      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
7590      #+END:
7592 The corresponding block writer function could look like this:
7594      (defun org-dblock-write:block-update-time (params)
7595         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
7596           (insert "Last block update at: "
7597                   (format-time-string fmt (current-time)))))
7599    If you want to make sure that all dynamic blocks are always
7600 up-to-date, you could add the function `org-update-all-dblocks' to a
7601 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
7602 written in a way that is does nothing in buffers that are not in
7603 Org-mode.
7605 \x1f
7606 File: org,  Node: Special agenda views,  Next: Using the property API,  Prev: Dynamic blocks,  Up: Extensions and Hacking
7608 A.5 Special Agenda Views
7609 ========================
7611 Org-mode provides a special hook that can be used to narrow down the
7612 selection made by any of the agenda views.  You may specify a function
7613 that is used at each match to verify if the match should indeed be part
7614 of the agenda view, and if not, how much should be skipped.
7616    Let's say you want to produce a list of projects that contain a
7617 WAITING tag anywhere in the project tree.  Let's further assume that
7618 you have marked all tree headings that define a project with the todo
7619 keyword PROJECT.  In this case you would run a todo search for the
7620 keyword PROJECT, but skip the match unless there is a WAITING tag
7621 anywhere in the subtree belonging to the project line.
7623    To achieve this, you must write a function that searches the subtree
7624 for the tag.  If the tag is found, the function must return `nil' to
7625 indicate that this match should not be skipped.  If there is no such
7626 tag, return the location of the end of the subtree, to indicate that
7627 search should continue from there.
7629      (defun my-skip-unless-waiting ()
7630        "Skip trees that are not waiting"
7631        (let ((subtree-end (save-excursion (org-end-of-subtree t))))
7632          (if (re-search-forward ":WAITING:" subtree-end t)
7633              nil          ; tag found, do not skip
7634            subtree-end))) ; tag not found, continue after end of subtree
7636    Now you may use this function in an agenda custom command, for
7637 example like this:
7639      (org-add-agenda-custom-command
7640       '("b" todo "PROJECT"
7641         ((org-agenda-skip-function 'my-org-waiting-projects)
7642          (org-agenda-overriding-header "Projects waiting for something: "))))
7644    Note that this also binds `org-agenda-overriding-header' to get a
7645 meaningful header in the agenda view.
7647    You may also put a Lisp form into `org-agenda-skip-function'.  In
7648 particular, you may use the functions `org-agenda-skip-entry-if' and
7649 `org-agenda-skip-subtree-if' in this form, for example:
7651 `'(org-agenda-skip-entry-if 'scheduled)'
7652      Skip current entry if it has been scheduled.
7654 `'(org-agenda-skip-entry-if 'notscheduled)'
7655      Skip current entry if it has not been scheduled.
7657 `'(org-agenda-skip-entry-if 'deadline)'
7658      Skip current entry if it has a deadline.
7660 `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
7661      Skip current entry if it has a deadline, or if it is scheduled.
7663 `'(org-agenda-skip-entry 'regexp "regular expression")'
7664      Skip current entry if the regular expression matches in the entry.
7666 `'(org-agenda-skip-entry 'notregexp "regular expression")'
7667      Skip current entry unless the regular expression matches.
7669 `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
7670      Same as above, but check and skip the entire subtree.
7672    Therefore we could also have written the search for WAITING projects
7673 like this, even without defining a special function:
7675      (org-add-agenda-custom-command
7676       '("b" todo "PROJECT"
7677         ((org-agenda-skip-function '(org-agenda-skip-subtree-if
7678                                      'regexp ":WAITING:"))
7679          (org-agenda-overriding-header "Projects waiting for something: "))))
7681 \x1f
7682 File: org,  Node: Using the property API,  Prev: Special agenda views,  Up: Extensions and Hacking
7684 A.6 Using the property API
7685 ==========================
7687 Here is a description of the functions that can be used to work with
7688 properties.
7690  -- Function: org-entry-properties &optional pom which
7691      Get all properties of the entry at point-or-marker POM.  This
7692      includes the TODO keyword, the tags, time strings for deadline,
7693      scheduled, and clocking, and any additional properties defined in
7694      the entry.  The return value is an alist, keys may occur multiple
7695      times if the property key was used several times.  POM may also be
7696      nil, in which case the current entry is used.  If WHICH is nil or
7697      `all', get all properties.  If WHICH is `special' or `standard',
7698      only get that subclass.
7700  -- Function: org-entry-get pom property &optional inherit
7701      Get value of PROPERTY for entry at point-or-marker POM.  If
7702      INHERIT is non-nil and the entry does not have the property, then
7703      also check higher levels of the hierarchy.  This function ignores
7704      the value of `org-use-property-inheritance' and requires the
7705      explicit INHERIT flag.
7707  -- Function: org-entry-delete pom property
7708      Delete the property PROPERTY from entry at point-or-marker POM.
7710  -- Function: org-entry-put pom property value
7711      Set PROPERTY to VALUE for entry at point-or-marker POM.
7713  -- Function: org-buffer-property-keys &optional include-specials
7714      Get all property keys in the current buffer.
7716  -- Function: org-insert-property-drawer
7717      Insert a property drawer at point.
7719 \x1f
7720 File: org,  Node: History and Acknowledgments,  Next: Index,  Prev: Extensions and Hacking,  Up: Top
7722 Appendix B History and Acknowledgments
7723 **************************************
7725 Org-mode was borne in 2003, out of frustration over the user interface
7726 of the Emacs outline-mode.  I was trying to organize my notes and
7727 projects, and using Emacs seemed to be the natural way to go.  However,
7728 having to remember eleven different commands with two or three keys per
7729 command, only to hide and unhide parts of the outline tree, that seemed
7730 entirely unacceptable to me.  Also, when using outlines to take notes, I
7731 constantly want to restructure the tree, organizing it parallel to my
7732 thoughts and plans.  _Visibility cycling_ and _structure editing_ were
7733 originally implemented in the package `outline-magic.el', but quickly
7734 moved to the more general `org.el'.  As this environment became
7735 comfortable for project planning, the next step was adding _TODO
7736 entries_, basic _time stamps_, and _table support_.  These areas
7737 highlight the two main goals that Org-mode still has today: To create a
7738 new, outline-based, plain text mode with innovative and intuitive
7739 editing features, and to incorporate project planning functionality
7740 directly into a notes file.
7742    Since the first release, literally thousands of emails to me or on
7743 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
7744 feedback, new ideas, and sometimes patches and add-on code.  Many
7745 thanks to everyone who has helped to improve this package.  I am trying
7746 to keep here a list of the people who had significant influence in
7747 shaping one or more aspects of Org-mode.  The list may not be complete,
7748 if I have forgotten someone, please accept my apologies and let me know.
7750    * Russel Adams came up with the idea for drawers.
7752    * Thomas Baumann contributed the code for links to the MH-E email
7753      system.
7755    * Alex Bochannek provided a patch for rounding time stamps.
7757    * Charles Cave's suggestion sparked the implementation of templates
7758      for Remember.
7760    * Pavel Chalmoviansky influenced the agenda treatment of items with
7761      specified time.
7763    * Gregory Chernov patched support for lisp forms into table
7764      calculations and improved XEmacs compatibility, in particular by
7765      porting `nouline.el' to XEmacs.
7767    * Sacha Chua suggested to copy some linking code from Planner.
7769    * Eddward DeVilla proposed and tested checkbox statistics.  He also
7770      came up with the idea of properties, and that there should be an
7771      API for them.
7773    * Kees Dullemond used to edit projects lists directly in HTML and so
7774      inspired some of the early development, including HTML export.  He
7775      also asked for a way to narrow wide table columns.
7777    * Christian Egli converted the documentation into TeXInfo format,
7778      patched CSS formatting into the HTML exporter, and inspired the
7779      agenda.
7781    * David Emery provided a patch for custom CSS support in exported
7782      HTML agendas.
7784    * Nic Ferrier contributed mailcap and XOXO support.
7786    * John Foerch figured out how to make incremental search show context
7787      around a match in a hidden outline tree.
7789    * Niels Giesen had the idea to automatically archive DONE trees.
7791    * Bastien Guerry wrote the LaTeX exporter and has been prolific with
7792      patches, ideas, and bug reports.
7794    * Kai Grossjohann pointed out key-binding conflicts with other
7795      packages.
7797    * Scott Jaderholm proposed footnotes, control over whitespace between
7798      folded entries, and column view for properties.
7800    * Shidai Liu ("Leo") asked for embedded LaTeX and tested it.  He also
7801      provided frequent feedback and some patches.
7803    * Jason F. McBrayer suggested agenda export to CSV format.
7805    * Max Mikhanosha came up with the idea of refiling.
7807    * Dmitri Minaev sent a patch to set priority limits on a per-file
7808      basis.
7810    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
7811      happy.
7813    * Rick Moynihan proposed to allow multiple TODO sequences in a file
7814      and to be able to quickly restrict the agenda to a subtree.
7816    * Todd Neal provided patches for links to Info files and elisp forms.
7818    * Tim O'Callaghan suggested in-file links, search options for general
7819      file links, and TAGS.
7821    * Takeshi Okano translated the manual and David O'Toole's tutorial
7822      into Japanese.
7824    * Oliver Oppitz suggested multi-state TODO items.
7826    * Scott Otterson sparked the introduction of descriptive text for
7827      links, among other things.
7829    * Pete Phillips helped during the development of the TAGS feature,
7830      and provided frequent feedback.
7832    * T.V. Raman reported bugs and suggested improvements.
7834    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
7835      control.
7837    * Kevin Rogers contributed code to access VM files on remote hosts.
7839    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
7840      conflict with `allout.el'.
7842    * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
7844    * Philip Rooke created the Org-mode reference card and provided lots
7845      of feedback.
7847    * Christian Schlauer proposed angular brackets around links, among
7848      other things.
7850    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
7851      `organizer-mode.el'.
7853    * Daniel Sinder came up with the idea of internal archiving by
7854      locking subtrees.
7856    * Dale Smith proposed link abbreviations.
7858    * Adam Spiers asked for global linking commands and inspired the link
7859      extension system.  support mairix.
7861    * David O'Toole wrote `org-publish.el' and drafted the manual
7862      chapter about publishing.
7864    * Ju"rgen Vollmer contributed code generating the table of contents
7865      in HTML output.
7867    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
7869    * David Wainberg suggested archiving, and improvements to the linking
7870      system.
7872    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
7873      development of Org-mode was fully independent, and both systems are
7874      really different beasts in their basic ideas and implementation
7875      details.  I later looked at John's code, however, and learned from
7876      his implementation of (i) links where the link itself is hidden
7877      and only a description is shown, and (ii) popping up a calendar to
7878      select a date.  John has also contributed a number of great ideas
7879      directly to Org-mode.
7881    * Carsten Wimmer suggested some changes and helped fix a bug in
7882      linking to GNUS.
7884    * Roland Winkler requested additional keybindings to make Org-mode
7885      work on a tty.
7887    * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
7888      contributed various ideas and code snippets.
7890 \x1f
7891 File: org,  Node: Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
7893 Index
7894 *****
7896 \0\b[index\0\b]
7897 * Menu:
7899 * abbreviation, links:                   Link abbreviations.  (line   6)
7900 * acknowledgments:                       History and Acknowledgments.
7901                                                               (line   6)
7902 * action, for publishing:                Publishing action.   (line   6)
7903 * activation:                            Activation.          (line   6)
7904 * active region <1>:                     Built-in table editor.
7905                                                               (line 143)
7906 * active region <2>:                     HTML Export commands.
7907                                                               (line   6)
7908 * active region <3>:                     Structure editing.   (line  74)
7909 * active region:                         ASCII export.        (line   9)
7910 * agenda:                                Weekly/Daily agenda. (line   6)
7911 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
7912 * agenda files:                          Agenda files.        (line   6)
7913 * agenda files, removing buffers:        Agenda commands.     (line 244)
7914 * agenda views:                          Agenda views.        (line   6)
7915 * agenda views, custom:                  Custom agenda views. (line   6)
7916 * agenda views, exporting <1>:           Exporting Agenda Views.
7917                                                               (line   6)
7918 * agenda views, exporting <2>:           Agenda commands.     (line 233)
7919 * agenda views, exporting:               Exporting Agenda Views.
7920                                                               (line  12)
7921 * agenda views, user-defined:            Special agenda views.
7922                                                               (line   6)
7923 * agenda, pipe:                          Extracting Agenda Information for other programs.
7924                                                               (line   6)
7925 * agenda, with block views:              Block agenda.        (line   6)
7926 * align, STARTUP keyword:                In-buffer settings.  (line  72)
7927 * allout.el:                             Conflicts.           (line   6)
7928 * angular brackets, around links:        External links.      (line  43)
7929 * API, for properties <1>:               Using the property API.
7930                                                               (line   6)
7931 * API, for properties:                   Property API.        (line   6)
7932 * appointment reminders:                 Weekly/Daily agenda. (line  65)
7933 * appt.el:                               Weekly/Daily agenda. (line  65)
7934 * archive locations:                     Moving subtrees.     (line  23)
7935 * archiving:                             Archiving.           (line   6)
7936 * ASCII export:                          ASCII export.        (line   6)
7937 * author:                                Feedback.            (line   6)
7938 * author info, in export:                Export options.      (line  26)
7939 * autoload:                              Activation.          (line   6)
7940 * backtrace of an error:                 Feedback.            (line  27)
7941 * BBDB links:                            External links.      (line   6)
7942 * block agenda:                          Block agenda.        (line   6)
7943 * blorg.el:                              Extensions.          (line  32)
7944 * bold text:                             Enhancing text.      (line  15)
7945 * Boolean logic, for tag searches:       Tag searches.        (line  24)
7946 * bug reports:                           Feedback.            (line   6)
7947 * bugs:                                  Bugs.                (line   6)
7948 * C-c C-c, overview:                     The very busy C-c C-c key.
7949                                                               (line   6)
7950 * calc package:                          The spreadsheet.     (line   6)
7951 * calc.el:                               Cooperation.         (line   6)
7952 * calculations, in tables <1>:           The spreadsheet.     (line   6)
7953 * calculations, in tables:               Built-in table editor.
7954                                                               (line 143)
7955 * calendar commands, from agenda:        Agenda commands.     (line 196)
7956 * calendar integration:                  Weekly/Daily agenda. (line  23)
7957 * calendar, for selecting date:          The date/time prompt.
7958                                                               (line  53)
7959 * category:                              Categories.          (line   6)
7960 * category, require for tags/property match: Tag searches.    (line  69)
7961 * CDLaTeX:                               CDLaTeX mode.        (line   6)
7962 * cdlatex.el:                            Cooperation.         (line  29)
7963 * checkbox statistics:                   Checkboxes.          (line  23)
7964 * checkboxes:                            Checkboxes.          (line   6)
7965 * children, subtree visibility state:    Visibility cycling.  (line  10)
7966 * clean outline view:                    Clean view.          (line   6)
7967 * column formula:                        Column formulas.     (line   6)
7968 * column view, for properties:           Defining columns.    (line   6)
7969 * commands, in agenda buffer:            Agenda commands.     (line   6)
7970 * comment lines:                         Comment lines.       (line   6)
7971 * completion, of dictionary words:       Completion.          (line   6)
7972 * completion, of file names:             Handling links.      (line  44)
7973 * completion, of link abbreviations:     Completion.          (line   6)
7974 * completion, of links:                  Handling links.      (line  25)
7975 * completion, of option keywords <1>:    Completion.          (line   6)
7976 * completion, of option keywords <2>:    Per file keywords.   (line  23)
7977 * completion, of option keywords:        Export options.      (line   6)
7978 * completion, of property keys:          Completion.          (line   6)
7979 * completion, of tags <1>:               Completion.          (line   6)
7980 * completion, of tags:                   Setting tags.        (line  11)
7981 * completion, of TeX symbols:            Completion.          (line   6)
7982 * completion, of TODO keywords <1>:      Workflow states.     (line  15)
7983 * completion, of TODO keywords:          Completion.          (line   6)
7984 * constants, in calculations:            References.          (line  82)
7985 * constants.el:                          Cooperation.         (line  14)
7986 * constcgs, STARTUP keyword:             In-buffer settings.  (line  98)
7987 * constSI, STARTUP keyword:              In-buffer settings.  (line  98)
7988 * content, STARTUP keyword:              In-buffer settings.  (line  65)
7989 * contents, global visibility state:     Visibility cycling.  (line  22)
7990 * copying, of subtrees:                  Structure editing.   (line   6)
7991 * creating timestamps:                   Creating timestamps. (line   6)
7992 * CUA.el:                                Conflicts.           (line  15)
7993 * custom agenda views:                   Custom agenda views. (line   6)
7994 * custom date/time format:               Custom time format.  (line   6)
7995 * custom search strings:                 Custom searches.     (line   6)
7996 * customization:                         Customization.       (line   6)
7997 * customtime, STARTUP keyword:           In-buffer settings.  (line  95)
7998 * cutting, of subtrees:                  Structure editing.   (line   6)
7999 * cycling, of TODO states:               TODO basics.         (line  13)
8000 * cycling, visibility:                   Visibility cycling.  (line   6)
8001 * daily agenda:                          Weekly/Daily agenda. (line   6)
8002 * date format, custom:                   Custom time format.  (line   6)
8003 * date range:                            Time stamps.         (line  40)
8004 * date stamps <1>:                       Time stamps.         (line   6)
8005 * date stamps:                           Dates and times.     (line   6)
8006 * date, reading in minibuffer:           The date/time prompt.
8007                                                               (line   6)
8008 * dates:                                 Dates and times.     (line   6)
8009 * DEADLINE keyword:                      Deadlines and scheduling.
8010                                                               (line  10)
8011 * deadlines:                             Time stamps.         (line   6)
8012 * debugging, of table formulas:          Editing and debugging formulas.
8013                                                               (line  97)
8014 * demotion, of subtrees:                 Structure editing.   (line   6)
8015 * diary entries, creating from agenda:   Agenda commands.     (line 201)
8016 * diary integration:                     Weekly/Daily agenda. (line  23)
8017 * dictionary word completion:            Completion.          (line   6)
8018 * directories, for publishing:           Sources and destinations.
8019                                                               (line   6)
8020 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
8021 * display changing, in agenda:           Agenda commands.     (line  65)
8022 * document structure:                    Document structure.  (line   6)
8023 * DONE, final TODO keyword:              Per file keywords.   (line  26)
8024 * drawer, for properties:                Property syntax.     (line   6)
8025 * drawers:                               Drawers.             (line   6)
8026 * dynamic blocks:                        Dynamic blocks.      (line   6)
8027 * editing tables:                        Tables.              (line   6)
8028 * editing, of table formulas:            Editing and debugging formulas.
8029                                                               (line   6)
8030 * elisp links:                           External links.      (line   6)
8031 * emphasized text:                       Export options.      (line  26)
8032 * enhancing text:                        Enhancing text.      (line   6)
8033 * evaluate time range:                   Creating timestamps. (line  48)
8034 * even, STARTUP keyword:                 In-buffer settings.  (line  88)
8035 * examples, quoted:                      Quoted examples.     (line   6)
8036 * exporting:                             Exporting.           (line   6)
8037 * exporting agenda views <1>:            Agenda commands.     (line 233)
8038 * exporting agenda views:                Exporting Agenda Views.
8039                                                               (line  12)
8040 * exporting, not:                        Comment lines.       (line   6)
8041 * extended TODO keywords:                TODO extensions.     (line   6)
8042 * extension, third-party:                Extensions.          (line   6)
8043 * external archiving:                    Moving subtrees.     (line   6)
8044 * external links:                        External links.      (line   6)
8045 * external links, in HTML export:        Links.               (line   6)
8046 * faces, for TODO keywords:              Faces for TODO keywords.
8047                                                               (line   6)
8048 * FAQ:                                   Summary.             (line  56)
8049 * feedback:                              Feedback.            (line   6)
8050 * field formula:                         Field formulas.      (line   6)
8051 * field references:                      References.          (line  15)
8052 * file links:                            External links.      (line   6)
8053 * file links, searching:                 Search options.      (line   6)
8054 * file name completion:                  Handling links.      (line  44)
8055 * files for agenda:                      Agenda files.        (line   6)
8056 * files, adding to agenda list:          Agenda files.        (line  15)
8057 * files, selecting for publishing:       Selecting files.     (line   6)
8058 * fixed width:                           Enhancing text.      (line  30)
8059 * fixed width text:                      Quoted examples.     (line   6)
8060 * fixed-width sections:                  Export options.      (line  26)
8061 * folded, subtree visibility state:      Visibility cycling.  (line  10)
8062 * folding, sparse trees:                 Sparse trees.        (line   6)
8063 * following links:                       Handling links.      (line  59)
8064 * footnote.el <1>:                       Footnotes.           (line   6)
8065 * footnote.el <2>:                       Cooperation.         (line  73)
8066 * footnote.el:                           Conflicts.           (line  35)
8067 * footnotes <1>:                         Footnotes.           (line   6)
8068 * footnotes:                             Export options.      (line  26)
8069 * format specifier:                      Formula syntax for Calc.
8070                                                               (line  14)
8071 * format, of links:                      Link format.         (line   6)
8072 * formula debugging:                     Editing and debugging formulas.
8073                                                               (line  97)
8074 * formula editing:                       Editing and debugging formulas.
8075                                                               (line   6)
8076 * formula syntax, Calc:                  Formula syntax for Calc.
8077                                                               (line   6)
8078 * formula, for individual table field:   Field formulas.      (line   6)
8079 * formula, for table column:             Column formulas.     (line   6)
8080 * formula, in tables:                    Built-in table editor.
8081                                                               (line 143)
8082 * global cycling:                        Visibility cycling.  (line  22)
8083 * global keybindings:                    Activation.          (line   6)
8084 * global TODO list:                      Global TODO list.    (line   6)
8085 * global visibility states:              Visibility cycling.  (line  22)
8086 * GNUS links:                            External links.      (line   6)
8087 * grouping columns in tables:            Column groups.       (line   6)
8088 * hand-formatted lists:                  Enhancing text.      (line  11)
8089 * headline levels:                       Export options.      (line  26)
8090 * headline levels, for exporting <1>:    LaTeX export commands.
8091                                                               (line  26)
8092 * headline levels, for exporting <2>:    HTML Export commands.
8093                                                               (line  44)
8094 * headline levels, for exporting:        ASCII export.        (line  21)
8095 * headline navigation:                   Motion.              (line   6)
8096 * headline tagging:                      Tags.                (line   6)
8097 * headline, promotion and demotion:      Structure editing.   (line   6)
8098 * headlines:                             Headlines.           (line   6)
8099 * hide text:                             Visibility cycling.  (line   6)
8100 * hidestars, STARTUP keyword:            In-buffer settings.  (line  88)
8101 * hiding leading stars:                  Clean view.          (line   6)
8102 * history:                               History and Acknowledgments.
8103                                                               (line   6)
8104 * horizontal rules, in exported files:   Enhancing text.      (line  20)
8105 * HTML entities, LaTeX entities:         Enhancing text.      (line  45)
8106 * HTML export:                           HTML export.         (line   6)
8107 * HTML, and orgtbl-mode:                 Translator functions.
8108                                                               (line   6)
8109 * hyperlinks:                            Hyperlinks.          (line   6)
8110 * hyperlinks, adding new types:          Adding hyperlink types.
8111                                                               (line   6)
8112 * iCalendar export:                      iCalendar export.    (line   6)
8113 * images, inline in HTML:                Images.              (line   6)
8114 * imenu.el:                              Cooperation.         (line  33)
8115 * in-buffer settings:                    In-buffer settings.  (line   6)
8116 * inactive timestamp:                    Time stamps.         (line  49)
8117 * index, of published pages:             Project page index.  (line   6)
8118 * Info links:                            External links.      (line   6)
8119 * inheritance, of properties:            Property searches.   (line   6)
8120 * inheritance, of tags:                  Tag inheritance.     (line   6)
8121 * inlining images in HTML:               Images.              (line   6)
8122 * inserting links:                       Handling links.      (line  25)
8123 * installation:                          Installation.        (line   6)
8124 * internal archiving:                    ARCHIVE tag.         (line   6)
8125 * internal links:                        Internal links.      (line   6)
8126 * internal links, in HTML export:        Links.               (line   6)
8127 * introduction:                          Introduction.        (line   6)
8128 * italic text:                           Enhancing text.      (line  15)
8129 * jumping, to headlines:                 Motion.              (line   6)
8130 * keybindings, global:                   Activation.          (line   6)
8131 * keyword options:                       Per file keywords.   (line   6)
8132 * LaTeX class:                           Sectioning structure.
8133                                                               (line   6)
8134 * LaTeX export:                          LaTeX export.        (line   6)
8135 * LaTeX fragments <1>:                   Export options.      (line  26)
8136 * LaTeX fragments:                       LaTeX fragments.     (line   6)
8137 * LaTeX fragments, export:               Enhancing text.      (line  23)
8138 * LaTeX fragments, preview:              Processing LaTeX fragments.
8139                                                               (line   6)
8140 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
8141 * LaTeX sectioning structure:            Sectioning structure.
8142                                                               (line   6)
8143 * LaTeX, and orgtbl-mode:                A LaTeX example.     (line   6)
8144 * level, require for tags/property match: Tag searches.       (line  69)
8145 * linebreak preservation:                Export options.      (line  26)
8146 * linebreak, forced:                     Enhancing text.      (line  42)
8147 * link abbreviations:                    Link abbreviations.  (line   6)
8148 * link abbreviations, completion of:     Completion.          (line   6)
8149 * link completion:                       Handling links.      (line  25)
8150 * link format:                           Link format.         (line   6)
8151 * links, external:                       External links.      (line   6)
8152 * links, finding next/previous:          Handling links.      (line  92)
8153 * links, handling:                       Handling links.      (line   6)
8154 * links, in HTML export:                 Links.               (line   6)
8155 * links, internal:                       Internal links.      (line   6)
8156 * links, publishing:                     Publishing links.    (line   6)
8157 * links, radio targets:                  Radio targets.       (line   6)
8158 * links, returning to:                   Handling links.      (line  86)
8159 * Lisp forms, as table formulas:         Formula syntax for Lisp.
8160                                                               (line   6)
8161 * lists, hand-formatted:                 Enhancing text.      (line  11)
8162 * lists, in other modes:                 Tables in arbitrary syntax.
8163                                                               (line   6)
8164 * lists, ordered:                        Plain lists.         (line   6)
8165 * lists, plain:                          Plain lists.         (line   6)
8166 * logdone, STARTUP keyword:              In-buffer settings.  (line  77)
8167 * logging, of progress:                  Progress logging.    (line   6)
8168 * lognoteclock-out, STARTUP keyword:     In-buffer settings.  (line  77)
8169 * lognotedone, STARTUP keyword:          In-buffer settings.  (line  77)
8170 * lognotestate, STARTUP keyword:         In-buffer settings.  (line  77)
8171 * logrepeat, STARTUP keyword:            In-buffer settings.  (line  77)
8172 * maintainer:                            Feedback.            (line   6)
8173 * mark ring:                             Handling links.      (line  82)
8174 * marking characters, tables:            Advanced features.   (line  40)
8175 * matching, of properties:               Matching tags and properties.
8176                                                               (line   6)
8177 * matching, of tags:                     Matching tags and properties.
8178                                                               (line   6)
8179 * matching, tags:                        Tags.                (line   6)
8180 * math symbols:                          Math symbols.        (line   6)
8181 * MH-E links:                            External links.      (line   6)
8182 * minor mode for structure editing:      orgstruct-mode.      (line   6)
8183 * minor mode for tables:                 orgtbl-mode.         (line   6)
8184 * mode, for calc:                        Formula syntax for Calc.
8185                                                               (line  14)
8186 * motion commands in agenda:             Agenda commands.     (line  19)
8187 * motion, between headlines:             Motion.              (line   6)
8188 * name, of column or field:              References.          (line  82)
8189 * named references:                      References.          (line  82)
8190 * names as TODO keywords:                TODO types.          (line   6)
8191 * narrow columns in tables:              Narrow columns.      (line   6)
8192 * noalign, STARTUP keyword:              In-buffer settings.  (line  72)
8193 * nologging, STARTUP keyword:            In-buffer settings.  (line  77)
8194 * nologrepeat, STARTUP keyword:          In-buffer settings.  (line  77)
8195 * occur, command:                        Sparse trees.        (line   6)
8196 * odd, STARTUP keyword:                  In-buffer settings.  (line  88)
8197 * option keyword completion:             Completion.          (line   6)
8198 * options, for custom agenda views:      Setting Options.     (line   6)
8199 * options, for customization:            Customization.       (line   6)
8200 * options, for export:                   Export options.      (line   6)
8201 * options, for publishing:               Publishing options.  (line   6)
8202 * ordered lists:                         Plain lists.         (line   6)
8203 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
8204 * org-blog.el:                           Extensions.          (line  28)
8205 * org-list-insert-radio-list:            Radio lists.         (line   6)
8206 * org-mode, turning on:                  Activation.          (line  22)
8207 * org-mouse.el:                          Extensions.          (line  16)
8208 * org-publish-project-alist:             Project alist.       (line   6)
8209 * org-publish.el:                        Extensions.          (line   8)
8210 * org2rem.el:                            Extensions.          (line  36)
8211 * orgstruct-mode:                        orgstruct-mode.      (line   6)
8212 * orgtbl-mode <1>:                       orgtbl-mode.         (line   6)
8213 * orgtbl-mode:                           Tables in arbitrary syntax.
8214                                                               (line   6)
8215 * outline tree:                          Headlines.           (line   6)
8216 * outline-mode:                          Outlines.            (line   6)
8217 * outlines:                              Outlines.            (line   6)
8218 * overview, global visibility state:     Visibility cycling.  (line  22)
8219 * overview, STARTUP keyword:             In-buffer settings.  (line  65)
8220 * packages, interaction with other:      Interaction.         (line   6)
8221 * pasting, of subtrees:                  Structure editing.   (line   6)
8222 * per file keywords:                     Per file keywords.   (line   6)
8223 * plain lists:                           Plain lists.         (line   6)
8224 * plain text external links:             External links.      (line  43)
8225 * presentation, of agenda items:         Presentation and sorting.
8226                                                               (line   6)
8227 * printing sparse trees:                 Sparse trees.        (line  46)
8228 * priorities:                            Priorities.          (line   6)
8229 * priorities, of agenda items:           Sorting of agenda items.
8230                                                               (line   6)
8231 * progress logging:                      Progress logging.    (line   6)
8232 * projects, for publishing:              Project alist.       (line   6)
8233 * promotion, of subtrees:                Structure editing.   (line   6)
8234 * properties:                            Properties and columns.
8235                                                               (line   6)
8236 * properties, API <1>:                   Using the property API.
8237                                                               (line   6)
8238 * properties, API:                       Property API.        (line   6)
8239 * properties, column view:               Defining columns.    (line   6)
8240 * properties, inheritance:               Property searches.   (line   6)
8241 * properties, searching:                 Property searches.   (line   6)
8242 * properties, special:                   Special properties.  (line   6)
8243 * property syntax:                       Property syntax.     (line   6)
8244 * publishing:                            Publishing.          (line   6)
8245 * quoted examples:                       Quoted examples.     (line   6)
8246 * quoted HTML tags:                      Export options.      (line  26)
8247 * radio lists:                           Radio lists.         (line   6)
8248 * radio tables:                          Radio tables.        (line   6)
8249 * radio targets:                         Radio targets.       (line   6)
8250 * range references:                      References.          (line  60)
8251 * ranges, time:                          Time stamps.         (line   6)
8252 * recomputing table fields:              Updating the table.  (line   6)
8253 * references:                            References.          (line   6)
8254 * references, named:                     References.          (line  82)
8255 * references, to fields:                 References.          (line  15)
8256 * references, to ranges:                 References.          (line  60)
8257 * refiling notes:                        Refiling notes.      (line   6)
8258 * region, active <1>:                    HTML Export commands.
8259                                                               (line   6)
8260 * region, active <2>:                    Built-in table editor.
8261                                                               (line 143)
8262 * region, active <3>:                    ASCII export.        (line   9)
8263 * region, active:                        Structure editing.   (line  74)
8264 * regular expressions, with tags search: Tag searches.        (line  64)
8265 * remember.el <1>:                       Remember.            (line   6)
8266 * remember.el:                           Cooperation.         (line  42)
8267 * remote editing, from agenda:           Agenda commands.     (line 107)
8268 * remote editing, undo:                  Agenda commands.     (line 108)
8269 * richer text:                           Enhancing text.      (line   6)
8270 * RMAIL links:                           External links.      (line   6)
8271 * SCHEDULED keyword:                     Deadlines and scheduling.
8272                                                               (line  26)
8273 * scheduling:                            Time stamps.         (line   6)
8274 * Scripts, for agenda processing:        Extracting Agenda Information for other programs.
8275                                                               (line   6)
8276 * search option in file links:           Search options.      (line   6)
8277 * search strings, custom:                Custom searches.     (line   6)
8278 * searching for tags:                    Tag searches.        (line   6)
8279 * searching, of properties:              Property searches.   (line   6)
8280 * section-numbers:                       Export options.      (line  26)
8281 * setting tags:                          Setting tags.        (line   6)
8282 * SHELL links:                           External links.      (line   6)
8283 * show all, command:                     Visibility cycling.  (line  33)
8284 * show all, global visibility state:     Visibility cycling.  (line  22)
8285 * show hidden text:                      Visibility cycling.  (line   6)
8286 * showall, STARTUP keyword:              In-buffer settings.  (line  65)
8287 * showstars, STARTUP keyword:            In-buffer settings.  (line  88)
8288 * sorting, of agenda items:              Sorting of agenda items.
8289                                                               (line   6)
8290 * sparse tree, for deadlines:            Inserting deadline/schedule.
8291                                                               (line  13)
8292 * sparse tree, for TODO:                 TODO basics.         (line  38)
8293 * sparse tree, tag based:                Tags.                (line   6)
8294 * sparse trees:                          Sparse trees.        (line   6)
8295 * special keywords:                      In-buffer settings.  (line   6)
8296 * special strings:                       Export options.      (line  26)
8297 * speedbar.el:                           Cooperation.         (line  46)
8298 * spreadsheet capabilities:              The spreadsheet.     (line   6)
8299 * statistics, for checkboxes:            Checkboxes.          (line  23)
8300 * storing links:                         Handling links.      (line   9)
8301 * structure editing:                     Structure editing.   (line   6)
8302 * structure of document:                 Document structure.  (line   6)
8303 * sublevels, inclusion into tags match:  Tag inheritance.     (line   6)
8304 * sublevels, inclusion into todo list:   Global TODO list.    (line  34)
8305 * subscript:                             Subscripts and Superscripts.
8306                                                               (line   6)
8307 * subtree cycling:                       Visibility cycling.  (line  10)
8308 * subtree visibility states:             Visibility cycling.  (line  10)
8309 * subtree, cut and paste:                Structure editing.   (line   6)
8310 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
8311 * subtrees, cut and paste:               Structure editing.   (line   6)
8312 * summary:                               Summary.             (line   6)
8313 * superscript:                           Subscripts and Superscripts.
8314                                                               (line   6)
8315 * syntax, of formulas:                   Formula syntax for Calc.
8316                                                               (line   6)
8317 * table editor, built-in:                Built-in table editor.
8318                                                               (line   6)
8319 * table editor, table.el:                Cooperation.         (line  54)
8320 * table of contents:                     Export options.      (line  26)
8321 * table.el:                              Cooperation.         (line  51)
8322 * tables <1>:                            Tables.              (line   6)
8323 * tables:                                Export options.      (line  26)
8324 * tables, export:                        Enhancing text.      (line  26)
8325 * tables, in other modes:                Tables in arbitrary syntax.
8326                                                               (line   6)
8327 * tag completion:                        Completion.          (line   6)
8328 * tag inheritance:                       Tag inheritance.     (line   6)
8329 * tag searches:                          Tag searches.        (line   6)
8330 * tags:                                  Tags.                (line   6)
8331 * tags view:                             Matching tags and properties.
8332                                                               (line   6)
8333 * tags, setting:                         Setting tags.        (line   6)
8334 * targets, for links:                    Internal links.      (line   6)
8335 * targets, radio:                        Radio targets.       (line   6)
8336 * tasks, breaking down:                  Breaking down tasks. (line   6)
8337 * templates, for remember:               Remember templates.  (line   6)
8338 * TeX interpretation:                    Embedded LaTeX.      (line   6)
8339 * TeX macros <1>:                        Math symbols.        (line   6)
8340 * TeX macros:                            Export options.      (line  26)
8341 * TeX macros, export:                    Enhancing text.      (line  23)
8342 * TeX symbol completion:                 Completion.          (line   6)
8343 * TeX-like syntax for sub- and superscripts: Export options.  (line  26)
8344 * text, fixed width:                     Quoted examples.     (line   6)
8345 * thanks:                                History and Acknowledgments.
8346                                                               (line   6)
8347 * time format, custom:                   Custom time format.  (line   6)
8348 * time grid:                             Time-of-day specifications.
8349                                                               (line  26)
8350 * time info, in export:                  Export options.      (line  26)
8351 * time stamps <1>:                       Dates and times.     (line   6)
8352 * time stamps:                           Time stamps.         (line   6)
8353 * time, reading in minibuffer:           The date/time prompt.
8354                                                               (line   6)
8355 * time-of-day specification:             Time-of-day specifications.
8356                                                               (line   6)
8357 * time-sorted view:                      Timeline.            (line   6)
8358 * timeline, single file:                 Timeline.            (line   6)
8359 * timerange:                             Time stamps.         (line  40)
8360 * times:                                 Dates and times.     (line   6)
8361 * timestamp:                             Time stamps.         (line  14)
8362 * timestamp, inactive:                   Time stamps.         (line  49)
8363 * timestamp, with repeater interval:     Time stamps.         (line  24)
8364 * timestamps, creating:                  Creating timestamps. (line   6)
8365 * TODO items:                            TODO items.          (line   6)
8366 * TODO keyword matching:                 Global TODO list.    (line  17)
8367 * TODO keyword matching, with tags search: Tag searches.      (line  41)
8368 * todo keyword sets:                     Multiple sets in one file.
8369                                                               (line   6)
8370 * TODO keywords completion:              Completion.          (line   6)
8371 * TODO list, global:                     Global TODO list.    (line   6)
8372 * TODO types:                            TODO types.          (line   6)
8373 * TODO workflow:                         Workflow states.     (line   6)
8374 * transient-mark-mode <1>:               Built-in table editor.
8375                                                               (line 143)
8376 * transient-mark-mode <2>:               HTML Export commands.
8377                                                               (line   6)
8378 * transient-mark-mode <3>:               Structure editing.   (line  74)
8379 * transient-mark-mode:                   ASCII export.        (line   9)
8380 * translator function:                   Translator functions.
8381                                                               (line   6)
8382 * trees, sparse:                         Sparse trees.        (line   6)
8383 * trees, visibility:                     Visibility cycling.  (line   6)
8384 * tty keybindings:                       TTY keys.            (line   6)
8385 * types as TODO keywords:                TODO types.          (line   6)
8386 * underlined text:                       Enhancing text.      (line  15)
8387 * undoing remote-editing events:         Agenda commands.     (line 108)
8388 * updating, table:                       Updating the table.  (line   6)
8389 * URL links:                             External links.      (line   6)
8390 * USENET links:                          External links.      (line   6)
8391 * variables, for customization:          Customization.       (line   6)
8392 * vectors, in table calculations:        Formula syntax for Calc.
8393                                                               (line  11)
8394 * verbatim text:                         Enhancing text.      (line  15)
8395 * visibility cycling:                    Visibility cycling.  (line   6)
8396 * visibility cycling, drawers:           Drawers.             (line   6)
8397 * visible text, printing:                Sparse trees.        (line  46)
8398 * VM links:                              External links.      (line   6)
8399 * WANDERLUST links:                      External links.      (line   6)
8400 * weekly agenda:                         Weekly/Daily agenda. (line   6)
8401 * windmove.el:                           Conflicts.           (line  32)
8402 * workflow states as TODO keywords:      Workflow states.     (line   6)
8403 * XEmacs:                                Installation.        (line   6)
8404 * XOXO export:                           XOXO export.         (line   6)
8406 \x1f
8407 File: org,  Node: Key Index,  Prev: Index,  Up: Top
8409 Key Index
8410 *********
8412 \0\b[index\0\b]
8413 * Menu:
8415 * $:                                     Agenda commands.     (line 122)
8416 * ':                                     CDLaTeX mode.        (line  43)
8417 * +:                                     Agenda commands.     (line 145)
8418 * ,:                                     Agenda commands.     (line 137)
8419 * -:                                     Agenda commands.     (line 151)
8420 * .:                                     Agenda commands.     (line  99)
8421 * ::                                     Agenda commands.     (line 130)
8422 * < <1>:                                 The date/time prompt.
8423                                                               (line  59)
8424 * < <2>:                                 Agenda files.        (line  51)
8425 * <:                                     Using column view.   (line  57)
8426 * <left>:                                Agenda commands.     (line  96)
8427 * <RET> <1>:                             Setting tags.        (line  76)
8428 * <RET> <2>:                             Built-in table editor.
8429                                                               (line  64)
8430 * <RET> <3>:                             The date/time prompt.
8431                                                               (line  59)
8432 * <RET>:                                 Agenda commands.     (line  39)
8433 * <right>:                               Agenda commands.     (line  91)
8434 * <SPC> <1>:                             Setting tags.        (line  73)
8435 * <SPC>:                                 Agenda commands.     (line  28)
8436 * <TAB> <1>:                             Editing and debugging formulas.
8437                                                               (line  57)
8438 * <TAB> <2>:                             Visibility cycling.  (line  10)
8439 * <TAB> <3>:                             Plain lists.         (line  41)
8440 * <TAB> <4>:                             Agenda commands.     (line  33)
8441 * <TAB> <5>:                             Setting tags.        (line  68)
8442 * <TAB> <6>:                             Built-in table editor.
8443                                                               (line  57)
8444 * <TAB>:                                 CDLaTeX mode.        (line  23)
8445 * > <1>:                                 Agenda commands.     (line 173)
8446 * > <2>:                                 The date/time prompt.
8447                                                               (line  59)
8448 * >:                                     Using column view.   (line  57)
8449 * ^:                                     CDLaTeX mode.        (line  33)
8450 * _:                                     CDLaTeX mode.        (line  33)
8451 * `:                                     CDLaTeX mode.        (line  39)
8452 * a <1>:                                 Using column view.   (line  46)
8453 * a:                                     Agenda commands.     (line 134)
8454 * b:                                     Agenda commands.     (line  49)
8455 * c:                                     Agenda commands.     (line 196)
8456 * C:                                     Agenda commands.     (line 216)
8457 * C-#:                                   Advanced features.   (line   9)
8458 * C-':                                   Agenda files.        (line  21)
8459 * C-,:                                   Agenda files.        (line  21)
8460 * C-<RET>:                               Structure editing.   (line  18)
8461 * C-_:                                   Agenda commands.     (line 108)
8462 * C-c ! <1>:                             Creating timestamps. (line  19)
8463 * C-c !:                                 Footnotes.           (line  14)
8464 * C-c #:                                 Checkboxes.          (line  57)
8465 * C-c %:                                 Handling links.      (line  82)
8466 * C-c &:                                 Handling links.      (line  86)
8467 * C-c ':                                 Editing and debugging formulas.
8468                                                               (line  36)
8469 * C-c *:                                 Updating the table.  (line  13)
8470 * C-c +:                                 Built-in table editor.
8471                                                               (line 143)
8472 * C-c ,:                                 Priorities.          (line  18)
8473 * C-c - <1>:                             Plain lists.         (line  88)
8474 * C-c -:                                 Built-in table editor.
8475                                                               (line  92)
8476 * C-c .:                                 Creating timestamps. (line  10)
8477 * C-c /:                                 Sparse trees.        (line  15)
8478 * C-c / d:                               Inserting deadline/schedule.
8479                                                               (line  13)
8480 * C-c / p:                               Property searches.   (line  23)
8481 * C-c / r:                               Sparse trees.        (line  17)
8482 * C-c / T:                               Tag searches.        (line   9)
8483 * C-c / t:                               TODO basics.         (line  38)
8484 * C-c : <1>:                             Enhancing text.      (line  34)
8485 * C-c ::                                 Quoted examples.     (line  15)
8486 * C-c ;:                                 Comment lines.       (line  10)
8487 * C-c <:                                 Creating timestamps. (line  23)
8488 * C-c <TAB>:                             Built-in table editor.
8489                                                               (line 163)
8490 * C-c = <1>:                             Column formulas.     (line  26)
8491 * C-c =:                                 Editing and debugging formulas.
8492                                                               (line  14)
8493 * C-c >:                                 Creating timestamps. (line  27)
8494 * C-c ?:                                 Editing and debugging formulas.
8495                                                               (line  24)
8496 * C-c [:                                 Agenda files.        (line  15)
8497 * C-c \:                                 Tag searches.        (line   9)
8498 * C-c ]:                                 Agenda files.        (line  18)
8499 * C-c ^ <1>:                             Built-in table editor.
8500                                                               (line  96)
8501 * C-c ^:                                 Structure editing.   (line  61)
8502 * C-c `:                                 Built-in table editor.
8503                                                               (line 159)
8504 * C-c a !:                               Stuck projects.      (line  14)
8505 * C-c a #:                               Stuck projects.      (line  13)
8506 * C-c a a:                               Weekly/Daily agenda. (line   9)
8507 * C-c a C:                               Storing searches.    (line   9)
8508 * C-c a e:                               Exporting Agenda Views.
8509                                                               (line  57)
8510 * C-c a L:                               Timeline.            (line  10)
8511 * C-c a m:                               Tag searches.        (line  13)
8512 * C-c a M <1>:                           Matching tags and properties.
8513                                                               (line  15)
8514 * C-c a M:                               Tag searches.        (line  17)
8515 * C-c a m:                               Matching tags and properties.
8516                                                               (line  10)
8517 * C-c a t <1>:                           Global TODO list.    (line   9)
8518 * C-c a t:                               TODO basics.         (line  49)
8519 * C-c a T:                               Global TODO list.    (line  14)
8520 * C-c C-a:                               Visibility cycling.  (line  33)
8521 * C-c C-b:                               Motion.              (line  15)
8522 * C-c C-c <1>:                           Built-in table editor.
8523                                                               (line  56)
8524 * C-c C-c <2>:                           Property syntax.     (line  58)
8525 * C-c C-c <3>:                           Plain lists.         (line  81)
8526 * C-c C-c <4>:                           Processing LaTeX fragments.
8527                                                               (line  15)
8528 * C-c C-c <5>:                           Cooperation.         (line  63)
8529 * C-c C-c <6>:                           Checkboxes.          (line  37)
8530 * C-c C-c <7>:                           Cooperation.         (line  54)
8531 * C-c C-c <8>:                           The very busy C-c C-c key.
8532                                                               (line   6)
8533 * C-c C-c <9>:                           TODO basics.         (line  30)
8534 * C-c C-c <10>:                          Setting tags.        (line  10)
8535 * C-c C-c <11>:                          Editing and debugging formulas.
8536                                                               (line  46)
8537 * C-c C-c <12>:                          Capturing Column View.
8538                                                               (line  39)
8539 * C-c C-c <13>:                          Clocking work time.  (line  89)
8540 * C-c C-c <14>:                          Using column view.   (line  39)
8541 * C-c C-c:                               Editing and debugging formulas.
8542                                                               (line  90)
8543 * C-c C-d <1>:                           Agenda commands.     (line 158)
8544 * C-c C-d:                               Inserting deadline/schedule.
8545                                                               (line   9)
8546 * C-c C-e:                               Exporting.           (line  20)
8547 * C-c C-e a:                             ASCII export.        (line   9)
8548 * C-c C-e b:                             HTML Export commands.
8549                                                               (line  13)
8550 * C-c C-e c:                             iCalendar export.    (line  21)
8551 * C-c C-e h:                             HTML Export commands.
8552                                                               (line   6)
8553 * C-c C-e H:                             HTML Export commands.
8554                                                               (line  16)
8555 * C-c C-e I:                             iCalendar export.    (line  16)
8556 * C-c C-e i:                             iCalendar export.    (line  14)
8557 * C-c C-e l:                             LaTeX export commands.
8558                                                               (line   6)
8559 * C-c C-e L:                             LaTeX export commands.
8560                                                               (line   7)
8561 * C-c C-e R:                             HTML Export commands.
8562                                                               (line  19)
8563 * C-c C-e t:                             Export options.      (line  13)
8564 * C-c C-e v <1>:                         XOXO export.         (line  11)
8565 * C-c C-e v:                             Sparse trees.        (line  46)
8566 * C-c C-e v a:                           ASCII export.        (line  16)
8567 * C-c C-e v b:                           HTML Export commands.
8568                                                               (line  24)
8569 * C-c C-e v h:                           HTML Export commands.
8570                                                               (line  24)
8571 * C-c C-e v H:                           HTML Export commands.
8572                                                               (line  24)
8573 * C-c C-e v L:                           LaTeX export commands.
8574                                                               (line  10)
8575 * C-c C-e v l:                           LaTeX export commands.
8576                                                               (line  10)
8577 * C-c C-e v R:                           HTML Export commands.
8578                                                               (line  24)
8579 * C-c C-e x:                             XOXO export.         (line  10)
8580 * C-c C-f:                               Motion.              (line  12)
8581 * C-c C-j:                               Motion.              (line  21)
8582 * C-c C-l:                               Handling links.      (line  25)
8583 * C-c C-n:                               Motion.              (line   8)
8584 * C-c C-o <1>:                           Creating timestamps. (line  31)
8585 * C-c C-o:                               Handling links.      (line  59)
8586 * C-c C-p:                               Motion.              (line   9)
8587 * C-c C-q <1>:                           Built-in table editor.
8588                                                               (line 127)
8589 * C-c C-q:                               Editing and debugging formulas.
8590                                                               (line  50)
8591 * C-c C-r <1>:                           Visibility cycling.  (line  34)
8592 * C-c C-r:                               Editing and debugging formulas.
8593                                                               (line  53)
8594 * C-c C-s <1>:                           Agenda commands.     (line 155)
8595 * C-c C-s:                               Inserting deadline/schedule.
8596                                                               (line  20)
8597 * C-c C-t <1>:                           TODO basics.         (line  13)
8598 * C-c C-t:                               Clocking work time.  (line  30)
8599 * C-c C-u:                               Motion.              (line  18)
8600 * C-c C-v:                               TODO basics.         (line  38)
8601 * C-c C-w <1>:                           Refiling notes.      (line  13)
8602 * C-c C-w:                               Structure editing.   (line  58)
8603 * C-c C-x <:                             Agenda files.        (line  37)
8604 * C-c C-x b:                             Visibility cycling.  (line  41)
8605 * C-c C-x C-a:                           ARCHIVE tag.         (line  28)
8606 * C-c C-x C-b:                           Checkboxes.          (line  39)
8607 * C-c C-x C-c <1>:                       Using column view.   (line   9)
8608 * C-c C-x C-c:                           Agenda commands.     (line 223)
8609 * C-c C-x C-d:                           Clocking work time.  (line  42)
8610 * C-c C-x C-i:                           Clocking work time.  (line  12)
8611 * C-c C-x C-j:                           Clocking work time.  (line  38)
8612 * C-c C-x C-k:                           Structure editing.   (line  43)
8613 * C-c C-x C-l:                           Processing LaTeX fragments.
8614                                                               (line   9)
8615 * C-c C-x C-n:                           Handling links.      (line  92)
8616 * C-c C-x C-o:                           Clocking work time.  (line  17)
8617 * C-c C-x C-p:                           Handling links.      (line  92)
8618 * C-c C-x C-r:                           Clocking work time.  (line  50)
8619 * C-c C-x C-s:                           Moving subtrees.     (line  10)
8620 * C-c C-x C-t:                           Custom time format.  (line  12)
8621 * C-c C-x C-u <1>:                       Capturing Column View.
8622                                                               (line  42)
8623 * C-c C-x C-u <2>:                       Clocking work time.  (line  91)
8624 * C-c C-x C-u:                           Dynamic blocks.      (line  21)
8625 * C-c C-x C-w <1>:                       Structure editing.   (line  43)
8626 * C-c C-x C-w:                           Built-in table editor.
8627                                                               (line 116)
8628 * C-c C-x C-x:                           Clocking work time.  (line  34)
8629 * C-c C-x C-y <1>:                       Built-in table editor.
8630                                                               (line 120)
8631 * C-c C-x C-y:                           Structure editing.   (line  52)
8632 * C-c C-x M-w <1>:                       Built-in table editor.
8633                                                               (line 113)
8634 * C-c C-x M-w:                           Structure editing.   (line  48)
8635 * C-c C-x p:                             Property syntax.     (line  49)
8636 * C-c C-x r:                             Capturing Column View.
8637                                                               (line  37)
8638 * C-c C-y <1>:                           Clocking work time.  (line  25)
8639 * C-c C-y:                               Creating timestamps. (line  48)
8640 * C-c l:                                 Handling links.      (line   9)
8641 * C-c { <1>:                             CDLaTeX mode.        (line  21)
8642 * C-c {:                                 Editing and debugging formulas.
8643                                                               (line  33)
8644 * C-c |:                                 Built-in table editor.
8645                                                               (line  40)
8646 * C-c }:                                 Editing and debugging formulas.
8647                                                               (line  79)
8648 * C-c ~:                                 Cooperation.         (line  65)
8649 * C-k:                                   Agenda commands.     (line 116)
8650 * C-S-<left>:                            Multiple sets in one file.
8651                                                               (line  25)
8652 * C-S-<right>:                           Multiple sets in one file.
8653                                                               (line  25)
8654 * C-TAB:                                 ARCHIVE tag.         (line  38)
8655 * C-u C-c *:                             Updating the table.  (line  16)
8656 * C-u C-c .:                             Creating timestamps. (line  14)
8657 * C-u C-c = <1>:                         Field formulas.      (line  24)
8658 * C-u C-c =:                             Editing and debugging formulas.
8659                                                               (line  14)
8660 * C-u C-c C-c:                           Updating the table.  (line  19)
8661 * C-u C-c C-l:                           Handling links.      (line  44)
8662 * C-u C-c C-t:                           TODO basics.         (line  22)
8663 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  31)
8664 * C-u C-c C-x C-s:                       Moving subtrees.     (line  14)
8665 * C-u C-c C-x C-u <1>:                   Dynamic blocks.      (line  22)
8666 * C-u C-c C-x C-u <2>:                   Clocking work time.  (line  93)
8667 * C-u C-c C-x C-u:                       Capturing Column View.
8668                                                               (line  44)
8669 * C-u C-u C-c *:                         Updating the table.  (line  22)
8670 * C-u C-u C-c =:                         Editing and debugging formulas.
8671                                                               (line  18)
8672 * C-u C-u C-c C-c:                       Updating the table.  (line  22)
8673 * C-x C-s <1>:                           Agenda commands.     (line  87)
8674 * C-x C-s:                               Editing and debugging formulas.
8675                                                               (line  46)
8676 * C-x C-w <1>:                           Agenda commands.     (line 232)
8677 * C-x C-w:                               Exporting Agenda Views.
8678                                                               (line  11)
8679 * D:                                     Agenda commands.     (line  72)
8680 * d:                                     Agenda commands.     (line  66)
8681 * e:                                     Using column view.   (line  33)
8682 * f:                                     Agenda commands.     (line  42)
8683 * g:                                     Agenda commands.     (line  76)
8684 * H:                                     Agenda commands.     (line 220)
8685 * I:                                     Agenda commands.     (line 178)
8686 * i:                                     Agenda commands.     (line 201)
8687 * J:                                     Agenda commands.     (line 190)
8688 * L:                                     Agenda commands.     (line  30)
8689 * l:                                     Agenda commands.     (line  55)
8690 * M:                                     Agenda commands.     (line 207)
8691 * m:                                     Agenda commands.     (line  66)
8692 * M-<down> <1>:                          Editing and debugging formulas.
8693                                                               (line  76)
8694 * M-<down>:                              Built-in table editor.
8695                                                               (line  82)
8696 * M-<left> <1>:                          Structure editing.   (line  25)
8697 * M-<left>:                              Built-in table editor.
8698                                                               (line  74)
8699 * M-<RET> <1>:                           Plain lists.         (line  49)
8700 * M-<RET>:                               Structure editing.   (line   6)
8701 * M-<right> <1>:                         Structure editing.   (line  28)
8702 * M-<right>:                             Built-in table editor.
8703                                                               (line  74)
8704 * M-<TAB> <1>:                           Completion.          (line  10)
8705 * M-<TAB> <2>:                           Property syntax.     (line  46)
8706 * M-<TAB> <3>:                           Setting tags.        (line   6)
8707 * M-<TAB> <4>:                           Per file keywords.   (line  23)
8708 * M-<TAB>:                               Editing and debugging formulas.
8709                                                               (line  64)
8710 * M-<up> <1>:                            Built-in table editor.
8711                                                               (line  82)
8712 * M-<up>:                                Editing and debugging formulas.
8713                                                               (line  76)
8714 * M-S-<down> <1>:                        Built-in table editor.
8715                                                               (line  89)
8716 * M-S-<down> <2>:                        Editing and debugging formulas.
8717                                                               (line  72)
8718 * M-S-<down> <3>:                        Plain lists.         (line  66)
8719 * M-S-<down>:                            Structure editing.   (line  40)
8720 * M-S-<left> <1>:                        Plain lists.         (line  72)
8721 * M-S-<left> <2>:                        Built-in table editor.
8722                                                               (line  76)
8723 * M-S-<left> <3>:                        Structure editing.   (line  31)
8724 * M-S-<left>:                            The date/time prompt.
8725                                                               (line  59)
8726 * M-S-<RET> <1>:                         Checkboxes.          (line  54)
8727 * M-S-<RET> <2>:                         Plain lists.         (line  59)
8728 * M-S-<RET>:                             Structure editing.   (line  22)
8729 * M-S-<right> <1>:                       The date/time prompt.
8730                                                               (line  59)
8731 * M-S-<right> <2>:                       Plain lists.         (line  72)
8732 * M-S-<right> <3>:                       Structure editing.   (line  34)
8733 * M-S-<right>:                           Built-in table editor.
8734                                                               (line  79)
8735 * M-S-<up> <1>:                          Structure editing.   (line  37)
8736 * M-S-<up> <2>:                          Plain lists.         (line  66)
8737 * M-S-<up> <3>:                          Built-in table editor.
8738                                                               (line  86)
8739 * M-S-<up>:                              Editing and debugging formulas.
8740                                                               (line  72)
8741 * mouse-1 <1>:                           Agenda commands.     (line  33)
8742 * mouse-1 <2>:                           Handling links.      (line  73)
8743 * mouse-1:                               The date/time prompt.
8744                                                               (line  59)
8745 * mouse-2 <1>:                           Handling links.      (line  73)
8746 * mouse-2:                               Agenda commands.     (line  33)
8747 * mouse-3 <1>:                           Agenda commands.     (line  28)
8748 * mouse-3:                               Handling links.      (line  78)
8749 * n <1>:                                 Agenda commands.     (line  19)
8750 * n:                                     Using column view.   (line  30)
8751 * O:                                     Agenda commands.     (line 182)
8752 * o:                                     Agenda commands.     (line  65)
8753 * p <1>:                                 Using column view.   (line  30)
8754 * p:                                     Agenda commands.     (line  20)
8755 * P:                                     Agenda commands.     (line 142)
8756 * q <1>:                                 Agenda commands.     (line 243)
8757 * q:                                     Using column view.   (line  17)
8758 * r <1>:                                 Global TODO list.    (line  22)
8759 * r:                                     Agenda commands.     (line  80)
8760 * S:                                     Agenda commands.     (line 211)
8761 * s:                                     Agenda commands.     (line  87)
8762 * S-<down> <1>:                          The date/time prompt.
8763                                                               (line  59)
8764 * S-<down> <2>:                          Creating timestamps. (line  40)
8765 * S-<down> <3>:                          Plain lists.         (line  62)
8766 * S-<down> <4>:                          Editing and debugging formulas.
8767                                                               (line  67)
8768 * S-<down> <5>:                          Agenda commands.     (line 151)
8769 * S-<down>:                              Priorities.          (line  23)
8770 * S-<left> <1>:                          The date/time prompt.
8771                                                               (line  59)
8772 * S-<left> <2>:                          Agenda commands.     (line 169)
8773 * S-<left> <3>:                          Creating timestamps. (line  35)
8774 * S-<left> <4>:                          TODO basics.         (line  26)
8775 * S-<left> <5>:                          Multiple sets in one file.
8776                                                               (line  29)
8777 * S-<left> <6>:                          Using column view.   (line  26)
8778 * S-<left> <7>:                          Property syntax.     (line  66)
8779 * S-<left>:                              Editing and debugging formulas.
8780                                                               (line  67)
8781 * S-<RET>:                               Built-in table editor.
8782                                                               (line 146)
8783 * S-<right> <1>:                         Editing and debugging formulas.
8784                                                               (line  67)
8785 * S-<right> <2>:                         Multiple sets in one file.
8786                                                               (line  29)
8787 * S-<right> <3>:                         TODO basics.         (line  26)
8788 * S-<right> <4>:                         Creating timestamps. (line  35)
8789 * S-<right> <5>:                         Using column view.   (line  26)
8790 * S-<right> <6>:                         The date/time prompt.
8791                                                               (line  59)
8792 * S-<right> <7>:                         Agenda commands.     (line 161)
8793 * S-<right>:                             Property syntax.     (line  66)
8794 * S-<TAB> <1>:                           Visibility cycling.  (line  22)
8795 * S-<TAB>:                               Built-in table editor.
8796                                                               (line  61)
8797 * S-<up> <1>:                            Plain lists.         (line  62)
8798 * S-<up> <2>:                            The date/time prompt.
8799                                                               (line  59)
8800 * S-<up> <3>:                            Editing and debugging formulas.
8801                                                               (line  67)
8802 * S-<up> <4>:                            Creating timestamps. (line  40)
8803 * S-<up> <5>:                            Agenda commands.     (line 145)
8804 * S-<up>:                                Priorities.          (line  23)
8805 * S-M-<left>:                            Using column view.   (line  61)
8806 * S-M-<RET>:                             TODO basics.         (line  57)
8807 * S-M-<right>:                           Using column view.   (line  58)
8808 * T:                                     Agenda commands.     (line 125)
8809 * t:                                     Agenda commands.     (line 112)
8810 * v:                                     Using column view.   (line  42)
8811 * w:                                     Agenda commands.     (line  66)
8812 * x:                                     Agenda commands.     (line 244)
8813 * X:                                     Agenda commands.     (line 185)
8814 * y:                                     Agenda commands.     (line  66)
8817 \x1f
8818 Tag Table:
8819 Node: Top\x7f971
8820 Node: Introduction\x7f13511
8821 Node: Summary\x7f13997
8822 Node: Installation\x7f17134
8823 Node: Activation\x7f18512
8824 Node: Feedback\x7f19749
8825 Node: Conventions\x7f21838
8826 Node: Document structure\x7f22530
8827 Node: Outlines\x7f23422
8828 Node: Headlines\x7f24087
8829 Ref: Headlines-Footnote-1\x7f25091
8830 Node: Visibility cycling\x7f25202
8831 Ref: Visibility cycling-Footnote-1\x7f27412
8832 Ref: Visibility cycling-Footnote-2\x7f27470
8833 Ref: Visibility cycling-Footnote-3\x7f27520
8834 Node: Motion\x7f27790
8835 Node: Structure editing\x7f28744
8836 Node: Archiving\x7f31992
8837 Node: ARCHIVE tag\x7f32550
8838 Node: Moving subtrees\x7f34343
8839 Ref: Moving subtrees-Footnote-1\x7f35890
8840 Node: Sparse trees\x7f36334
8841 Ref: Sparse trees-Footnote-1\x7f38606
8842 Ref: Sparse trees-Footnote-2\x7f38788
8843 Node: Plain lists\x7f38903
8844 Ref: Plain lists-Footnote-1\x7f43100
8845 Ref: Plain lists-Footnote-2\x7f43458
8846 Node: Drawers\x7f43639
8847 Ref: Drawers-Footnote-1\x7f44516
8848 Node: orgstruct-mode\x7f44622
8849 Node: Tables\x7f45522
8850 Node: Built-in table editor\x7f46103
8851 Node: Narrow columns\x7f53520
8852 Ref: Narrow columns-Footnote-1\x7f55455
8853 Node: Column groups\x7f55501
8854 Node: orgtbl-mode\x7f57034
8855 Node: The spreadsheet\x7f57837
8856 Node: References\x7f58924
8857 Ref: References-Footnote-1\x7f63391
8858 Ref: References-Footnote-2\x7f63532
8859 Node: Formula syntax for Calc\x7f63821
8860 Node: Formula syntax for Lisp\x7f66278
8861 Node: Field formulas\x7f67996
8862 Node: Column formulas\x7f69304
8863 Node: Editing and debugging formulas\x7f70903
8864 Node: Updating the table\x7f75056
8865 Node: Advanced features\x7f76109
8866 Node: Hyperlinks\x7f80634
8867 Node: Link format\x7f81412
8868 Node: Internal links\x7f82705
8869 Ref: Internal links-Footnote-1\x7f84630
8870 Node: Radio targets\x7f84765
8871 Node: External links\x7f85465
8872 Node: Handling links\x7f87869
8873 Ref: Handling links-Footnote-1\x7f93185
8874 Ref: Handling links-Footnote-2\x7f93422
8875 Node: Using links outside Org-mode\x7f93496
8876 Node: Link abbreviations\x7f94006
8877 Node: Search options\x7f95699
8878 Ref: Search options-Footnote-1\x7f97479
8879 Node: Custom searches\x7f97560
8880 Node: TODO items\x7f98591
8881 Node: TODO basics\x7f99629
8882 Node: TODO extensions\x7f101844
8883 Node: Workflow states\x7f102788
8884 Ref: Workflow states-Footnote-1\x7f103963
8885 Node: TODO types\x7f104056
8886 Ref: TODO types-Footnote-1\x7f105639
8887 Node: Multiple sets in one file\x7f105721
8888 Node: Fast access to TODO states\x7f107341
8889 Node: Per file keywords\x7f108484
8890 Ref: Per file keywords-Footnote-1\x7f109786
8891 Node: Faces for TODO keywords\x7f109987
8892 Node: Progress logging\x7f110693
8893 Node: Closing items\x7f111124
8894 Ref: Closing items-Footnote-1\x7f112058
8895 Ref: Closing items-Footnote-2\x7f112263
8896 Node: Tracking TODO state changes\x7f112336
8897 Ref: Tracking TODO state changes-Footnote-1\x7f113521
8898 Node: Priorities\x7f113596
8899 Ref: Priorities-Footnote-1\x7f115246
8900 Node: Breaking down tasks\x7f115316
8901 Ref: Breaking down tasks-Footnote-1\x7f115836
8902 Node: Checkboxes\x7f115932
8903 Node: Tags\x7f118781
8904 Node: Tag inheritance\x7f119553
8905 Node: Setting tags\x7f120490
8906 Ref: Setting tags-Footnote-1\x7f125013
8907 Ref: Setting tags-Footnote-2\x7f125125
8908 Node: Tag searches\x7f125208
8909 Node: Properties and columns\x7f127984
8910 Node: Property syntax\x7f129155
8911 Node: Special properties\x7f131845
8912 Node: Property searches\x7f132916
8913 Node: Property inheritance\x7f134177
8914 Node: Column view\x7f135624
8915 Node: Defining columns\x7f136858
8916 Node: Scope of column definitions\x7f137256
8917 Node: Column attributes\x7f138178
8918 Node: Using column view\x7f140574
8919 Node: Capturing Column View\x7f142655
8920 Node: Property API\x7f144382
8921 Node: Dates and times\x7f144736
8922 Node: Time stamps\x7f145465
8923 Ref: Time stamps-Footnote-1\x7f147829
8924 Node: Creating timestamps\x7f147945
8925 Node: The date/time prompt\x7f150024
8926 Ref: The date/time prompt-Footnote-1\x7f153380
8927 Ref: The date/time prompt-Footnote-2\x7f153436
8928 Ref: The date/time prompt-Footnote-3\x7f153542
8929 Node: Custom time format\x7f153635
8930 Node: Deadlines and scheduling\x7f155327
8931 Ref: Deadlines and scheduling-Footnote-1\x7f157405
8932 Node: Inserting deadline/schedule\x7f157560
8933 Node: Repeated tasks\x7f158678
8934 Ref: Repeated tasks-Footnote-1\x7f160356
8935 Node: Clocking work time\x7f160477
8936 Ref: Clocking work time-Footnote-1\x7f165329
8937 Ref: Clocking work time-Footnote-2\x7f165407
8938 Node: Remember\x7f165533
8939 Node: Setting up remember\x7f166479
8940 Ref: Setting up remember-Footnote-1\x7f167388
8941 Node: Remember templates\x7f167454
8942 Ref: Remember templates-Footnote-1\x7f171093
8943 Ref: Remember templates-Footnote-2\x7f171276
8944 Node: Storing notes\x7f171374
8945 Ref: Storing notes-Footnote-1\x7f173885
8946 Node: Refiling notes\x7f173987
8947 Node: Agenda views\x7f175252
8948 Node: Agenda files\x7f177203
8949 Ref: Agenda files-Footnote-1\x7f179644
8950 Ref: Agenda files-Footnote-2\x7f179793
8951 Node: Agenda dispatcher\x7f179986
8952 Ref: Agenda dispatcher-Footnote-1\x7f182040
8953 Ref: Agenda dispatcher-Footnote-2\x7f182134
8954 Node: Built-in agenda views\x7f182228
8955 Node: Weekly/Daily agenda\x7f182810
8956 Ref: Weekly/Daily agenda-Footnote-1\x7f186108
8957 Node: Global TODO list\x7f186312
8958 Node: Matching tags and properties\x7f188592
8959 Node: Timeline\x7f189683
8960 Node: Stuck projects\x7f190357
8961 Node: Presentation and sorting\x7f192210
8962 Node: Categories\x7f193003
8963 Ref: Categories-Footnote-1\x7f193714
8964 Node: Time-of-day specifications\x7f194151
8965 Node: Sorting of agenda items\x7f196124
8966 Node: Agenda commands\x7f197408
8967 Node: Custom agenda views\x7f204871
8968 Node: Storing searches\x7f205592
8969 Ref: Storing searches-Footnote-1\x7f208126
8970 Node: Block agenda\x7f208243
8971 Node: Setting Options\x7f209475
8972 Node: Exporting Agenda Views\x7f212216
8973 Ref: Exporting Agenda Views-Footnote-1\x7f216573
8974 Ref: Exporting Agenda Views-Footnote-2\x7f216630
8975 Node: Extracting Agenda Information for other programs\x7f216816
8976 Node: Embedded LaTeX\x7f220944
8977 Ref: Embedded LaTeX-Footnote-1\x7f222038
8978 Node: Math symbols\x7f222228
8979 Node: Subscripts and Superscripts\x7f222995
8980 Node: LaTeX fragments\x7f223841
8981 Ref: LaTeX fragments-Footnote-1\x7f226074
8982 Ref: LaTeX fragments-Footnote-2\x7f226335
8983 Node: Processing LaTeX fragments\x7f226469
8984 Node: CDLaTeX mode\x7f227417
8985 Ref: CDLaTeX mode-Footnote-1\x7f229903
8986 Node: Exporting\x7f230051
8987 Node: ASCII export\x7f231518
8988 Node: HTML export\x7f233019
8989 Node: HTML Export commands\x7f233645
8990 Node: Quoting HTML tags\x7f235432
8991 Node: Links\x7f236067
8992 Node: Images\x7f236764
8993 Ref: Images-Footnote-1\x7f237635
8994 Node: CSS support\x7f237696
8995 Ref: CSS support-Footnote-1\x7f239015
8996 Node: LaTeX export\x7f239128
8997 Node: LaTeX export commands\x7f239477
8998 Node: Quoting LaTeX code\x7f240639
8999 Node: Sectioning structure\x7f241173
9000 Node: XOXO export\x7f241674
9001 Node: iCalendar export\x7f242114
9002 Node: Text interpretation\x7f243583
9003 Node: Comment lines\x7f244238
9004 Node: Initial text\x7f244633
9005 Node: Footnotes\x7f246302
9006 Node: Quoted examples\x7f247094
9007 Node: Enhancing text\x7f247869
9008 Node: Export options\x7f250318
9009 Node: Publishing\x7f252779
9010 Ref: Publishing-Footnote-1\x7f253740
9011 Ref: Publishing-Footnote-2\x7f253884
9012 Node: Configuration\x7f254035
9013 Node: Project alist\x7f254753
9014 Node: Sources and destinations\x7f255819
9015 Node: Selecting files\x7f256549
9016 Node: Publishing action\x7f257297
9017 Node: Publishing options\x7f258631
9018 Node: Publishing links\x7f261137
9019 Node: Project page index\x7f262652
9020 Node: Sample configuration\x7f263430
9021 Node: Simple example\x7f263922
9022 Node: Complex example\x7f264595
9023 Node: Triggering publication\x7f266671
9024 Node: Miscellaneous\x7f267356
9025 Node: Completion\x7f267990
9026 Node: Customization\x7f269660
9027 Node: In-buffer settings\x7f270243
9028 Node: The very busy C-c C-c key\x7f275913
9029 Node: Clean view\x7f277768
9030 Node: TTY keys\x7f280345
9031 Node: Interaction\x7f281955
9032 Node: Cooperation\x7f282352
9033 Node: Conflicts\x7f286023
9034 Node: Bugs\x7f288033
9035 Node: Extensions and Hacking\x7f289529
9036 Node: Extensions\x7f290254
9037 Node: Adding hyperlink types\x7f292516
9038 Node: Tables in arbitrary syntax\x7f296178
9039 Node: Radio tables\x7f297570
9040 Node: A LaTeX example\x7f300073
9041 Ref: A LaTeX example-Footnote-1\x7f303751
9042 Ref: A LaTeX example-Footnote-2\x7f303899
9043 Node: Translator functions\x7f304334
9044 Ref: Translator functions-Footnote-1\x7f307463
9045 Node: Radio lists\x7f307551
9046 Ref: Radio lists-Footnote-1\x7f308673
9047 Node: Dynamic blocks\x7f308793
9048 Node: Special agenda views\x7f310765
9049 Node: Using the property API\x7f314010
9050 Node: History and Acknowledgments\x7f315608
9051 Node: Index\x7f322289
9052 Node: Key Index\x7f359005
9053 \x1f
9054 End Tag Table