Makefile: create orgcard_letter.pdf
[org-mode.git] / org
blob00b06f798c8d9b3d4f806cc88da635fe2a8fd76f
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.20).
10    Copyright (C) 2004, 2005, 2006, 2007, 2008 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.20).
32    Copyright (C) 2004, 2005, 2006, 2007, 2008 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 * Main Index::
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 does 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 uses three types of keywords: TODO keywords, tags, and property
530 names.  In this manual we use the following conventions:
532 `TODO'
533 `WAITING'
534      TODO keywords are written with all capitals, even if they are
535      user-defined.
537 `boss'
538 `ARCHIVE'
539      User-defined tags are written in lowercase; built-in tags with
540      special meaning are written with all capitals.
542 `Release'
543 `PRIORITY'
544      User-defined properties are capitalized; built-in properties with
545      special meaning are written with all capitals.
547 \x1f
548 File: org,  Node: Document structure,  Next: Tables,  Prev: Introduction,  Up: Top
550 2 Document Structure
551 ********************
553 Org-mode is based on outline mode and provides flexible commands to
554 edit the structure of the document.
556 * Menu:
558 * Outlines::                    Org-mode is based on outline-mode
559 * Headlines::                   How to typeset org-tree headlines
560 * Visibility cycling::          Show and hide, much simplified
561 * Motion::                      Jumping to other headlines
562 * Structure editing::           Changing sequence and level of headlines
563 * Archiving::                   Move done task trees to a different place
564 * Sparse trees::                Matches embedded in context
565 * Plain lists::                 Additional structure within an entry
566 * Drawers::                     Tucking stuff away
567 * orgstruct-mode::              Structure editing outside Org-mode
569 \x1f
570 File: org,  Node: Outlines,  Next: Headlines,  Prev: Document structure,  Up: Document structure
572 2.1 Outlines
573 ============
575 Org-mode is implemented on top of outline-mode.  Outlines allow a
576 document to be organized in a hierarchical structure, which (at least
577 for me) is the best representation of notes and thoughts.  An overview
578 of this structure is achieved by folding (hiding) large parts of the
579 document to show only the general document structure and the parts
580 currently being worked on.  Org-mode greatly simplifies the use of
581 outlines by compressing the entire show/hide functionality into a single
582 command `org-cycle', which is bound to the <TAB> key.
584 \x1f
585 File: org,  Node: Headlines,  Next: Visibility cycling,  Prev: Outlines,  Up: Document structure
587 2.2 Headlines
588 =============
590 Headlines define the structure of an outline tree.  The headlines in
591 Org-mode start with one or more stars, on the left margin(1).  For
592 example:
594      * Top level headline
595      ** Second level
596      *** 3rd level
597          some text
598      *** 3rd level
599          more text
601      * Another top level headline
603 Some people find the many stars too noisy and would prefer an outline
604 that has whitespace followed by a single star as headline starters.
605 *Note Clean view:: describes a setup to realize this.
607    An empty line after the end of a subtree is considered part of it and
608 will be hidden when the subtree is folded.  However, if you leave at
609 least two empty lines, one empty line will remain visible after folding
610 the subtree, in order to structure the collapsed view.  See the
611 variable `org-cycle-separator-lines' to modify this behavior.
613    ---------- Footnotes ----------
615    (1) See the variable `org-special-ctrl-a/e' to configure special
616 behavior of `C-a' and `C-e' in headlines.
618 \x1f
619 File: org,  Node: Visibility cycling,  Next: Motion,  Prev: Headlines,  Up: Document structure
621 2.3 Visibility cycling
622 ======================
624 Outlines make it possible to hide parts of the text in the buffer.
625 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
626 the visibility in the buffer.
628 `<TAB>'
629      _Subtree cycling_: Rotate current subtree among the states
631           ,-> FOLDED -> CHILDREN -> SUBTREE --.
632           '-----------------------------------'
634      The cursor must be on a headline for this to work(1).  When the
635      cursor is at the beginning of the buffer and the first line is not
636      a headline, then <TAB> actually runs global cycling (see
637      below)(2).  Also when called with a prefix argument (`C-u <TAB>'),
638      global cycling is invoked.
640 `S-<TAB>'
641 `C-u <TAB>'
642      _Global cycling_: Rotate the entire buffer among the states
644           ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
645           '--------------------------------------'
647      When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
648      view up to headlines of level N will be shown.  Note that inside
649      tables, `S-<TAB>' jumps to the previous field.
651 `C-c C-a'
652      Show all.  
654 `C-c C-r'
655      Reveal context around point, showing the current entry, the
656      following heading and the hierarchy above.  Useful for working
657      near a location that has been exposed by a sparse tree command
658      (*note Sparse trees::) or an agenda command (*note Agenda
659      commands::).  With prefix arg show, on each
661      level, all sibling headings.  
663 `C-c C-x b'
664      Show the current subtree in an indirect buffer(3).  With numerical
665      prefix ARG, go up to this level and then take that tree.  If ARG is
666      negative, go up that many levels.  With `C-u' prefix, do not remove
667      the previously used indirect buffer.
669    When Emacs first visits an Org-mode file, the global state is set to
670 OVERVIEW, i.e. only the top level headlines are visible.  This can be
671 configured through the variable `org-startup-folded', or on a per-file
672 basis by adding one of the following lines anywhere in the buffer:
674      #+STARTUP: overview
675      #+STARTUP: content
676      #+STARTUP: showall
678    ---------- Footnotes ----------
680    (1) see, however, the option `org-cycle-emulate-tab'.
682    (2) see the option `org-cycle-global-at-bob'.
684    (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
685 Buffers.)  will contain the entire buffer, but will be narrowed to the
686 current tree.  Editing the indirect buffer will also change the
687 original buffer, but without affecting visibility in that buffer.
689 \x1f
690 File: org,  Node: Motion,  Next: Structure editing,  Prev: Visibility cycling,  Up: Document structure
692 2.4 Motion
693 ==========
695 The following commands jump to other headlines in the buffer.
697 `C-c C-n'
698      Next heading.  
700 `C-c C-p'
701      Previous heading.  
703 `C-c C-f'
704      Next heading same level.  
706 `C-c C-b'
707      Previous heading same level.  
709 `C-c C-u'
710      Backward to higher level heading.  
712 `C-c C-j'
713      Jump to a different place without changing the current outline
714      visibility.  Shows the document structure in a temporary buffer,
715      where you can use the following keys to find your destination:
716           <TAB>         Cycle visibility.
717           <down> / <up>   Next/previous visible headline.
718           n / p        Next/previous visible headline.
719           f / b        Next/previous headline same level.
720           u            One level up.
721           0-9          Digit argument.
722           <RET>         Select this location.
724 \x1f
725 File: org,  Node: Structure editing,  Next: Archiving,  Prev: Motion,  Up: Document structure
727 2.5 Structure editing
728 =====================
730 `M-<RET>'
731      Insert new heading with same level as current.  If the cursor is
732      in a plain list item, a new item is created (*note Plain lists::).
733      To force creation of a new headline, use a prefix arg, or first
734      press <RET> to get to the beginning of the next line.  When this
735      command is used in the middle of a line, the line is split and the
736      rest of the line becomes the new headline.  If the command is used
737      at the beginning of a headline, the new headline is created before
738      the current line.  If at the beginning of any other line, the
739      content of that line is made the new heading.  If the command is
740      used at the end of a folded subtree (i.e. behind the ellipses at
741      the end of a headline), then a headline like the current one will
742      be inserted after the end of the subtree.  
744 `C-<RET>'
745      Insert a new heading after the current subtree, same level as the
746      current headline.  This command works from anywhere in the entry.  
748 `M-S-<RET>'
749      Insert new TODO entry with same level as current heading.  
751 `M-<left>'
752      Promote current heading by one level.  
754 `M-<right>'
755      Demote current heading by one level.  
757 `M-S-<left>'
758      Promote the current subtree by one level.  
760 `M-S-<right>'
761      Demote the current subtree by one level.  
763 `M-S-<up>'
764      Move subtree up (swap with previous subtree of same level).  
766 `M-S-<down>'
767      Move subtree down (swap with next subtree of same level).  
769 `C-c C-x C-w'
770 `C-c C-x C-k'
771      Kill subtree, i.e. remove it from buffer but save in kill ring.
772      With prefix arg, kill N sequential subtrees.  
774 `C-c C-x M-w'
775      Copy subtree to kill ring.  With prefix arg, copy N sequential
776      subtrees.  
778 `C-c C-x C-y'
779      Yank subtree from kill ring.  This does modify the level of the
780      subtree to make sure the tree fits in nicely at the yank position.
781      The yank level can also be specified with a prefix arg, or by
782      yanking after a headline marker like `****'.  
784 `C-c C-w'
785      Refile entry to a different location.  *Note Refiling notes::.  
787 `C-c ^'
788      Sort same-level entries.  When there is an active region, all
789      entries in the region will be sorted.  Otherwise the children of
790      the current headline are sorted.  The command prompts for the
791      sorting method, which can be alphabetically, numerically, by time
792      (using the first time stamp in each entry), by priority, and each
793      of these in reverse order.  You can also supply your own function
794      to extract the sorting key.  With a `C-u' prefix, sorting will be
795      case-sensitive.  With two `C-u C-u' prefixes, duplicate entries
796      will also be removed.
798    When there is an active region (transient-mark-mode), promotion and
799 demotion work on all headlines in the region.  To select a region of
800 headlines, it is best to place both point and mark at the beginning of a
801 line, mark at the beginning of the first headline, and point at the line
802 just after the last headline to change.  Note that when the cursor is
803 inside a table (*note Tables::), the Meta-Cursor keys have different
804 functionality.
806 \x1f
807 File: org,  Node: Archiving,  Next: Sparse trees,  Prev: Structure editing,  Up: Document structure
809 2.6 Archiving
810 =============
812 When a project represented by a (sub)tree is finished, you may want to
813 move the tree out of the way and to stop it from contributing to the
814 agenda.  Org-mode knows two ways of archiving.  You can mark a tree with
815 the ARCHIVE tag, or you can move an entire (sub)tree to a different
816 location.
818 * Menu:
820 * ARCHIVE tag::                 Marking a tree as inactive
821 * Moving subtrees::             Moving a tree to an archive file
823 \x1f
824 File: org,  Node: ARCHIVE tag,  Next: Moving subtrees,  Prev: Archiving,  Up: Archiving
826 2.6.1 The ARCHIVE tag
827 ---------------------
829 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
830 its location in the outline tree, but behaves in the following way:
831    - It does not open when you attempt to do so with a visibility
832      cycling command (*note Visibility cycling::).  You can force
833      cycling archived subtrees with `C-<TAB>', or by setting the option
834      `org-cycle-open-archived-trees'.  Also normal outline commands like
835      `show-all' will open archived subtrees.
837    - During sparse tree construction (*note Sparse trees::), matches in
838      archived subtrees are not exposed, unless you configure the option
839      `org-sparse-tree-open-archived-trees'.
841    - During agenda view construction (*note Agenda views::), the
842      content of archived trees is ignored unless you configure the
843      option `org-agenda-skip-archived-trees'.
845    - Archived trees are not exported (*note Exporting::), only the
846      headline is.  Configure the details using the variable
847      `org-export-with-archived-trees'.
849    The following commands help managing the ARCHIVE tag:
851 `C-c C-x C-a'
852      Toggle the ARCHIVE tag for the current headline.  When the tag is
853      set, the headline changes to a shadowish face, and the subtree
854      below it is hidden.  
856 `C-u C-c C-x C-a'
857      Check if any direct children of the current headline should be
858      archived.  To do this, each subtree is checked for open TODO
859      entries.  If none are found, the command offers to set the ARCHIVE
860      tag for the child.  If the cursor is _not_ on a headline when this
861      command is invoked, the level 1 trees will be checked.  
863 `C-TAB'
864      Cycle a tree even if it is tagged with ARCHIVE.
866 \x1f
867 File: org,  Node: Moving subtrees,  Prev: ARCHIVE tag,  Up: Archiving
869 2.6.2 Moving subtrees
870 ---------------------
872 Once an entire project is finished, you may want to move it to a
873 different location, either in the current file, or even in a different
874 file, the archive file.
876 `C-c C-x C-s'
877      Archive the subtree starting at the cursor position to the location
878      given by `org-archive-location'.  Context information that could be
879      lost like the file name, the category, inherited tags, and the todo
880      state will be store as properties in the entry.  
882 `C-u C-c C-x C-s'
883      Check if any direct children of the current headline could be
884      moved to the archive.  To do this, each subtree is checked for
885      open TODO entries.  If none are found, the command offers to move
886      it to the archive location.  If the cursor is _not_ on a headline
887      when this command is invoked, the level 1 trees will be checked.
889    The default archive location is a file in the same directory as the
890 current file, with the name derived by appending `_archive' to the
891 current file name.  For information and examples on how to change this,
892 see the documentation string of the variable `org-archive-location'.
893 There is also an in-buffer option for setting this variable, for
894 example(1):
896      #+ARCHIVE: %s_done::
898 If you would like to have a special ARCHIVE location for a single entry
899 or a (sub)tree, give the entry an `:ARCHIVE:' property with the
900 location as the value (*note Properties and columns::).
902    ---------- Footnotes ----------
904    (1) For backward compatibility, the following also works: If there
905 are several such lines in a file, each specifies the archive location
906 for the text below it.  The first such line also applies to any text
907 before its definition.  However, using this method is _strongly_
908 deprecated as it is incompatible with the outline structure of the
909 document.  The correct method for setting multiple archive locations in
910 a buffer is using a property.
912 \x1f
913 File: org,  Node: Sparse trees,  Next: Plain lists,  Prev: Archiving,  Up: Document structure
915 2.7 Sparse trees
916 ================
918 An important feature of Org-mode is the ability to construct _sparse
919 trees_ for selected information in an outline tree, so that the entire
920 document is folded as much as possible, but the selected information is
921 made visible along with the headline structure above it(1).  Just try
922 it out and you will see immediately how it works.
924    Org-mode contains several commands creating such trees, all these
925 commands can be accessed through a dispatcher:
927 `C-c /'
928      This prompts for an extra key to select a sparse-tree creating
929      command.  
931 `C-c / r'
932      Occur.  Prompts for a regexp and shows a sparse tree with all
933      matches.  If the match is in a headline, the headline is made
934      visible.  If the match is in the body of an entry, headline and
935      body are made visible.  In order to provide minimal context, also
936      the full hierarchy of headlines above the match is shown, as well
937      as the headline following the match.  Each match is also
938      highlighted; the highlights disappear when the buffer is changed
939      by an editing command, or by pressing `C-c C-c'.  When called with
940      a `C-u' prefix argument, previous highlights are kept, so several
941      calls to this command can be stacked.
943 For frequently used sparse trees of specific search strings, you can
944 use the variable `org-agenda-custom-commands' to define fast keyboard
945 access to specific sparse trees.  These commands will then be
946 accessible through the agenda dispatcher (*note Agenda dispatcher::).
947 For example:
949      (setq org-agenda-custom-commands
950            '(("f" occur-tree "FIXME")))
952 will define the key `C-c a f' as a shortcut for creating a sparse tree
953 matching the string `FIXME'.
955    The other sparse tree commands select headings based on TODO
956 keywords, tags, or properties and will be discussed later in this
957 manual.
959    To print a sparse tree, you can use the Emacs command
960 `ps-print-buffer-with-faces' which does not print invisible parts of
961 the document (2).  Or you can use the command `C-c C-e v' to export
962 only the visible part of the document and print the resulting file.
964    ---------- Footnotes ----------
966    (1) See also the variables `org-show-hierarchy-above',
967 `org-show-following-heading', and `org-show-siblings' for detailed
968 control on how much context is shown around each match.
970    (2) This does not work under XEmacs, because XEmacs uses selective
971 display for outlining, not text properties.
973 \x1f
974 File: org,  Node: Plain lists,  Next: Drawers,  Prev: Sparse trees,  Up: Document structure
976 2.8 Plain lists
977 ===============
979 Within an entry of the outline tree, hand-formatted lists can provide
980 additional structure.  They also provide a way to create lists of
981 checkboxes (*note Checkboxes::).  Org-mode supports editing such lists,
982 and the HTML exporter (*note Exporting::) parses and formats them.
984    Org-mode knows ordered and unordered lists.  Unordered list items
985 start with `-', `+', or `*'(1) as bullets.  Ordered list items start
986 with a numeral followed by either a period or a right parenthesis, such
987 as `1.' or `1)'.  Items belonging to the same list must have the same
988 indentation on the first line.  In particular, if an ordered list
989 reaches number `10.', then the 2-digit numbers must be written
990 left-aligned with the other numbers in the list.  Indentation also
991 determines the end of a list item.  It ends before the next line that
992 is indented like the bullet/number, or less.  Empty lines are part of
993 the previous item, so you can have several paragraphs in one item.  If
994 you would like an empty line to terminate all currently open plain
995 lists, configure the variable `org-empty-line-terminates-plain-lists'.
996 Here is an example:
998      ** Lord of the Rings
999         My favorite scenes are (in this order)
1000         1. The attack of the Rohirrim
1001         2. Eowyns fight with the witch king
1002            + this was already my favorite scene in the book
1003            + I really like Miranda Otto.
1004         3. Peter Jackson being shot by Legolas
1005             - on DVD only
1006            He makes a really funny face when it happens.
1007         But in the end, not individual scenes matter but the film as a whole.
1009    Org-mode supports these lists by tuning filling and wrapping
1010 commands to deal with them correctly(2).
1012    The following commands act on items when the cursor is in the first
1013 line of an item (the line with the bullet or number).
1015 `<TAB>'
1016      Items can be folded just like headline levels if you set the
1017      variable `org-cycle-include-plain-lists'.  The level of an item is
1018      then given by the indentation of the bullet/number.  Items are
1019      always subordinate to real headlines, however; the hierarchies
1020      remain completely separated.
1022      If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
1023      the indentation of the curent line in a heuristic way.  
1025 `M-<RET>'
1026      Insert new item at current level.  With prefix arg, force a new
1027      heading (*note Structure editing::).  If this command is used in
1028      the middle of a line, the line is _split_ and the rest of the line
1029      becomes the new item.  If this command is executed in the
1030      _whitespace before a bullet or number_, the new item is created
1031      _before_ the current item.  If the command is executed in the
1032      white space before the text that is part of an item but does not
1033      contain the bullet, a bullet is added to the current line.  
1035 `M-S-<RET>'
1036      Insert a new item with a checkbox (*note Checkboxes::).  
1038 `S-<up>'
1039 `S-<down>'
1040      Jump to the previous/next item in the current list.  
1042 `M-S-<up>'
1043 `M-S-<down>'
1044      Move the item including subitems up/down (swap with previous/next
1045      item of same indentation).  If the list is ordered, renumbering is
1046      automatic.  
1048 `M-S-<left>'
1049 `M-S-<right>'
1050      Decrease/increase the indentation of the item, including subitems.
1051      Initially, the item tree is selected based on current indentation.
1052      When these commands are executed several times in direct
1053      succession, the initially selected region is used, even if the new
1054      indentation would imply a different hierarchy.  To use the new
1055      hierarchy, break the command chain with a cursor motion or so.  
1057 `C-c C-c'
1058      If there is a checkbox (*note Checkboxes::) in the item line,
1059      toggle the state of the checkbox.  If not, this command makes sure
1060      that all the items on this list level use the same bullet.
1061      Furthermore, if this is an ordered list, make sure the numbering
1062      is ok.  
1064 `C-c -'
1065      Cycle the entire list level through the different itemize/enumerate
1066      bullets (`-', `+', `*', `1.', `1)').  With prefix arg, select the
1067      nth bullet from this list.
1069    ---------- Footnotes ----------
1071    (1) When using `*' as a bullet, lines must be indented or they will
1072 be seen as top-level headlines.  Also, when you are hiding leading
1073 stars to get a clean outline view, plain list items starting with a
1074 star are visually indistinguishable from true headlines.  In short:
1075 even though `*' is supported, it may be better to not use it for plain
1076 list items.
1078    (2) Org-mode only changes the filling settings for Emacs.  For
1079 XEmacs, you should use Kyle E. Jones' `filladapt.el'.  To turn this on,
1080 put into `.emacs': `(require 'filladapt)'
1082 \x1f
1083 File: org,  Node: Drawers,  Next: orgstruct-mode,  Prev: Plain lists,  Up: Document structure
1085 2.9 Drawers
1086 ===========
1088 Sometimes you want to keep information associated with an entry, but you
1089 normally don't want to see it.  For this, Org-mode has _drawers_.
1090 Drawers need to be configured with the variable `org-drawers'(1).
1091 Drawers look like this:
1093      ** This is a headline
1094         Still outside the drawer
1095         :DRAWERNAME:
1096            This is inside the drawer.
1097         :END:
1098         After the drawer.
1100    Visibility cycling (*note Visibility cycling::) on the headline will
1101 hide and show the entry, but keep the drawer collapsed to a single line.
1102 In order to look inside the drawer, you need to move the cursor to the
1103 drawer line and press <TAB> there.  Org-mode uses a drawer for storing
1104 properties (*note Properties and columns::).
1106    ---------- Footnotes ----------
1108    (1) You can define drawers on a per-file basis with a line like
1109 `#+DRAWERS: HIDDEN PROPERTIES STATE'
1111 \x1f
1112 File: org,  Node: orgstruct-mode,  Prev: Drawers,  Up: Document structure
1114 2.10 The Orgstruct minor mode
1115 =============================
1117 If you like the intuitive way the Org-mode structure editing and list
1118 formatting works, you might want to use these commands in other modes
1119 like text-mode or mail-mode as well.  The minor mode Orgstruct-mode
1120 makes this possible.  You can always toggle the mode with `M-x
1121 orgstruct-mode'.  To turn it on by default, for example in mail mode,
1124      (add-hook 'mail-mode-hook 'turn-on-orgstruct)
1126    When this mode is active and the cursor is on a line that looks to
1127 Org-mode like a headline of the first line of a list item, most
1128 structure editing commands will work, even if the same keys normally
1129 have different functionality in the major mode you are using.  If the
1130 cursor is not in one of those special lines, Orgstruct-mode lurks
1131 silently in the shadow.
1133 \x1f
1134 File: org,  Node: Tables,  Next: Hyperlinks,  Prev: Document structure,  Up: Top
1136 3 Tables
1137 ********
1139 Org-mode comes with a fast and intuitive table editor.  Spreadsheet-like
1140 calculations are supported in connection with the Emacs `calc' package
1141 (*note Calc: (calc)Top.).
1143 * Menu:
1145 * Built-in table editor::       Simple tables
1146 * Narrow columns::              Stop wasting space in tables
1147 * Column groups::               Grouping to trigger vertical lines
1148 * orgtbl-mode::                 The table editor as minor mode
1149 * The spreadsheet::             The table editor has spreadsheet capabilities.
1151 \x1f
1152 File: org,  Node: Built-in table editor,  Next: Narrow columns,  Prev: Tables,  Up: Tables
1154 3.1 The built-in table editor
1155 =============================
1157 Org-mode makes it easy to format tables in plain ASCII.  Any line with
1158 `|' as the first non-whitespace character is considered part of a
1159 table.  `|' is also the column separator.  A table might look like this:
1161      | Name  | Phone | Age |
1162      |-------+-------+-----|
1163      | Peter |  1234 |  17 |
1164      | Anna  |  4321 |  25 |
1166    A table is re-aligned automatically each time you press <TAB> or
1167 <RET> or `C-c C-c' inside the table.  <TAB> also moves to the next
1168 field (<RET> to the next row) and creates new table rows at the end of
1169 the table or before horizontal lines.  The indentation of the table is
1170 set by the first line.  Any line starting with `|-' is considered as a
1171 horizontal separator line and will be expanded on the next re-align to
1172 span the whole table width.  So, to create the above table, you would
1173 only type
1175      |Name|Phone|Age|
1176      |-
1178 and then press <TAB> to align the table and start filling in fields.
1180    When typing text into a field, Org-mode treats <DEL>, <Backspace>,
1181 and all character keys in a special way, so that inserting and deleting
1182 avoids shifting other fields.  Also, when typing _immediately after the
1183 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
1184 the field is automatically made blank.  If this behavior is too
1185 unpredictable for you, configure the variables
1186 `org-enable-table-editor' and `org-table-auto-blank-field'.
1188 Creation and conversion
1189 .......................
1191 `C-c |'
1192      Convert the active region to table. If every line contains at
1193      least one TAB character, the function assumes that the material is
1194      tab separated.  If every line contains a comma, comma-separated
1195      values (CSV) are assumed.  If not, lines are split at whitespace
1196      into fields.  You can use a prefix argument to force a specific
1197      separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
1198      argument N indicates that at least N consequtive spaces, or
1199      alternatively a TAB will be the separator.
1200      If there is no active region, this command creates an empty
1201      Org-mode table.  But it's easier just to start typing, like
1202      `|Name|Phone|Age <RET> |- <TAB>'.
1204 Re-aligning and field motion
1205 ............................
1207 `C-c C-c'
1208      Re-align the table without moving the cursor.  
1210 `<TAB>'
1211      Re-align the table, move to the next field.  Creates a new row if
1212      necessary.  
1214 `S-<TAB>'
1215      Re-align, move to previous field.  
1217 `<RET>'
1218      Re-align the table and move down to next row.  Creates a new row if
1219      necessary.  At the beginning or end of a line, <RET> still does
1220      NEWLINE, so it can be used to split a table.
1222 Column and row editing
1223 ......................
1225 `M-<left>'
1226 `M-<right>'
1227      Move the current column left/right.  
1229 `M-S-<left>'
1230      Kill the current column.  
1232 `M-S-<right>'
1233      Insert a new column to the left of the cursor position.  
1235 `M-<up>'
1236 `M-<down>'
1237      Move the current row up/down.  
1239 `M-S-<up>'
1240      Kill the current row or horizontal line.  
1242 `M-S-<down>'
1243      Insert a new row above (with arg: below) the current row.  
1245 `C-c -'
1246      Insert a horizontal line below current row. With prefix arg, the
1247      line is created above the current line.  
1249 `C-c ^'
1250      Sort the table lines in the region.  The position of point
1251      indicates the column to be used for sorting, and the range of
1252      lines is the range between the nearest horizontal separator lines,
1253      or the entire table.  If point is before the first column, you
1254      will be prompted for the sorting column.  If there is an active
1255      region, the mark specifies the first line and the sorting column,
1256      while point should be in the last line to be included into the
1257      sorting.  The command prompts for the sorting type
1258      (alphabetically, numerically, or by time).  When called with a
1259      prefix argument, alphabetic sorting will be case-sensitive.
1261 Regions
1262 .......
1264 `C-c C-x M-w'
1265      Copy a rectangular region from a table to a special clipboard.
1266      Point and mark determine edge fields of the rectangle.  The
1267      process ignores horizontal separator lines.  
1269 `C-c C-x C-w'
1270      Copy a rectangular region from a table to a special clipboard, and
1271      blank all fields in the rectangle.  So this is the "cut" operation.  
1273 `C-c C-x C-y'
1274      Paste a rectangular region into a table.  The upper right corner
1275      ends up in the current field.  All involved fields will be
1276      overwritten.  If the rectangle does not fit into the present table,
1277      the table is enlarged as needed.  The process ignores horizontal
1278      separator lines.  
1280 `C-c C-q'
1281      Wrap several fields in a column like a paragraph.  If there is an
1282      active region, and both point and mark are in the same column, the
1283      text in the column is wrapped to minimum width for the given
1284      number of lines.  A prefix ARG may be used to change the number of
1285      desired lines.  If there is no region, the current field is split
1286      at the cursor position and the text fragment to the right of the
1287      cursor is prepended to the field one line down. If there is no
1288      region, but you specify a prefix ARG, the current field is made
1289      blank, and the content is appended to the field above.
1291 Calculations
1292 ............
1294 `C-c +'
1295      Sum the numbers in the current column, or in the rectangle defined
1296      by the active region.  The result is shown in the echo area and can
1297      be inserted with `C-y'.  
1299 `S-<RET>'
1300      When current field is empty, copy from first non-empty field above.
1301      When not empty, copy current field down to next row and move cursor
1302      along with it.  Depending on the variable
1303      `org-table-copy-increment', integer field values will be
1304      incremented during copy.  This key is also used by CUA-mode (*note
1305      Cooperation::).
1307 Miscellaneous
1308 .............
1310 `C-c `'
1311      Edit the current field in a separate window.  This is useful for
1312      fields that are not fully visible (*note Narrow columns::).  When
1313      called with a `C-u' prefix, just make the full field visible, so
1314      that it can be edited in place.
1316 `M-x org-table-import'
1317      Import a file as a table.  The table should be TAB- or whitespace
1318      separated.  Useful, for example, to import a spreadsheet table or
1319      data from a database, because these programs generally can write
1320      TAB-separated text files.  This command works by inserting the
1321      file into the buffer and then converting the region to a table.
1322      Any prefix argument is passed on to the converter, which uses it
1323      to determine the separator.
1325 `C-c |'
1326      Tables can also be imported by pasting tabular text into the
1327      org-mode buffer, selecting the pasted text with `C-x C-x' and then
1328      using the `C-c |' command (see above under Creation and conversion.
1330 `M-x org-table-export'
1331      Export the table as a TAB-separated file.  Useful for data
1332      exchange with, for example, spreadsheet or database programs.
1334    If you don't like the automatic table editor because it gets in your
1335 way on lines which you would like to start with `|', you can turn it
1336 off with
1338      (setq org-enable-table-editor nil)
1340 Then the only table command that still works is `C-c C-c' to do a
1341 manual re-align.
1343 \x1f
1344 File: org,  Node: Narrow columns,  Next: Column groups,  Prev: Built-in table editor,  Up: Tables
1346 3.2 Narrow columns
1347 ==================
1349 The width of columns is automatically determined by the table editor.
1350 Sometimes a single field or a few fields need to carry more text,
1351 leading to inconveniently wide columns.  To limit(1) the width of a
1352 column, one field anywhere in the column may contain just the string
1353 `<N>' where `N' is an integer specifying the width of the column in
1354 characters.  The next re-align will then set the width of this column
1355 to no more than this value.
1357      |---+------------------------------|               |---+--------|
1358      |   |                              |               |   | <6>    |
1359      | 1 | one                          |               | 1 | one    |
1360      | 2 | two                          |     ----\     | 2 | two    |
1361      | 3 | This is a long chunk of text |     ----/     | 3 | This=> |
1362      | 4 | four                         |               | 4 | four   |
1363      |---+------------------------------|               |---+--------|
1365 Fields that are wider become clipped and end in the string `=>'.  Note
1366 that the full text is still in the buffer, it is only invisible.  To
1367 see the full text, hold the mouse over the field - a tool-tip window
1368 will show the full content.  To edit such a field, use the command `C-c
1369 `' (that is `C-c' followed by the backquote).  This will open a new
1370 window with the full field.  Edit it and finish with `C-c C-c'.
1372    When visiting a file containing a table with narrowed columns, the
1373 necessary character hiding has not yet happened, and the table needs to
1374 be aligned before it looks nice.  Setting the option
1375 `org-startup-align-all-tables' will realign all tables in a file upon
1376 visiting, but also slow down startup.  You can also set this option on
1377 a per-file basis with:
1379      #+STARTUP: align
1380      #+STARTUP: noalign
1382    ---------- Footnotes ----------
1384    (1) This feature does not work on XEmacs.
1386 \x1f
1387 File: org,  Node: Column groups,  Next: orgtbl-mode,  Prev: Narrow columns,  Up: Tables
1389 3.3 Column groups
1390 =================
1392 When Org-mode exports tables, it does so by default without vertical
1393 lines because that is visually more satisfying in general.  Occasionally
1394 however, vertical lines can be useful to structure a table into groups
1395 of columns, much like horizontal lines can do for groups of rows.  In
1396 order to specify column groups, you can use a special row where the
1397 first field contains only `/'.  The further fields can either contain
1398 `<' to indicate that this column should start a group, `>' to indicate
1399 the end of a column, or `<>' to make a column a group of its own.
1400 Boundaries between colum groups will upon export be marked with
1401 vertical lines.  Here is an example:
1403      |   |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1404      |---+----+-----+-----+-----+---------+------------|
1405      | / | <> |   < |     |   > |       < |          > |
1406      | # |  1 |   1 |   1 |   1 |       1 |          1 |
1407      | # |  2 |   4 |   8 |  16 |  1.4142 |     1.1892 |
1408      | # |  3 |   9 |  27 |  81 |  1.7321 |     1.3161 |
1409      |---+----+-----+-----+-----+---------+------------|
1410      #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
1412    It is also sufficient to just insert the colum group starters after
1413 every vertical line you'd like to have:
1415      |  N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
1416      |----+-----+-----+-----+---------+------------|
1417      | /  | <   |     |     | <       |            |
1419 \x1f
1420 File: org,  Node: orgtbl-mode,  Next: The spreadsheet,  Prev: Column groups,  Up: Tables
1422 3.4 The Orgtbl minor mode
1423 =========================
1425 If you like the intuitive way the Org-mode table editor works, you
1426 might also want to use it in other modes like text-mode or mail-mode.
1427 The minor mode Orgtbl-mode makes this possible.  You can always toggle
1428 the mode with `M-x orgtbl-mode'.  To turn it on by default, for example
1429 in mail mode, use
1431      (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1433    Furthermore, with some special setup, it is possible to maintain
1434 tables in arbitrary syntax with Orgtbl-mode.  For example, it is
1435 possible to construct LaTeX tables with the underlying ease and power of
1436 Orgtbl-mode, including spreadsheet capabilities.  For details, see
1437 *Note Tables in arbitrary syntax::.
1439 \x1f
1440 File: org,  Node: The spreadsheet,  Prev: orgtbl-mode,  Up: Tables
1442 3.5 The spreadsheet
1443 ===================
1445 The table editor makes use of the Emacs `calc' package to implement
1446 spreadsheet-like capabilities.  It can also evaluate Emacs Lisp forms to
1447 derive fields from other fields.  While fully featured, Org-mode's
1448 implementation is not identical to other spreadsheets.  For example,
1449 Org-mode knows the concept of a _column formula_ that will be applied
1450 to all non-header fields in a column without having to copy the formula
1451 to each relevant field.
1453 * Menu:
1455 * References::                  How to refer to another field or range
1456 * Formula syntax for Calc::     Using Calc to compute stuff
1457 * Formula syntax for Lisp::     Writing formulas in Emacs Lisp
1458 * Field formulas::              Formulas valid for a single field
1459 * Column formulas::             Formulas valid for an entire column
1460 * Editing and debugging formulas::  Fixing formulas
1461 * Updating the table::          Recomputing all dependent fields
1462 * Advanced features::           Field names, parameters and automatic recalc
1464 \x1f
1465 File: org,  Node: References,  Next: Formula syntax for Calc,  Prev: The spreadsheet,  Up: The spreadsheet
1467 3.5.1 References
1468 ----------------
1470 To compute fields in the table from other fields, formulas must
1471 reference other fields or ranges.  In Org-mode, fields can be referenced
1472 by name, by absolute coordinates, and by relative coordinates.  To find
1473 out what the coordinates of a field are, press `C-c ?' in that field,
1474 or press `C-c }' to toggle the display of a grid.
1476 Field references
1477 ................
1479 Formulas can reference the value of another field in two ways.  Like in
1480 any other spreadsheet, you may reference fields with a letter/number
1481 combination like `B3', meaning the 2nd field in the 3rd row.
1483 Org-mode also uses another, more general operator that looks like this:
1484      @row$column
1486 Column references can be absolute like `1', `2',...`N', or relative to
1487 the current column like `+1' or `-2'.
1489    The row specification only counts data lines and ignores horizontal
1490 separator lines (hlines).  You can use absolute row numbers `1'...`N',
1491 and row numbers relative to the current row like `+3' or `-1'.  Or
1492 specify the row relative to one of the hlines: `I' refers to the first
1493 hline(1), `II' to the second etc.  `-I' refers to the first such line
1494 above the current line, `+I' to the first such line below the current
1495 line.  You can also write `III+2' which is the second data line after
1496 the third hline in the table.  Relative row numbers like `-3' will not
1497 cross hlines if the current line is too close to the hline.  Instead,
1498 the value directly at the hline is used.
1500    `0' refers to the current row and column.  Also, if you omit either
1501 the column or the row part of the reference, the current row/column is
1502 implied.
1504    Org-mode's references with _unsigned_ numbers are fixed references
1505 in the sense that if you use the same reference in the formula for two
1506 different fields, the same field will be referenced each time.
1507 Org-mode's references with _signed_ numbers are floating references
1508 because the same reference operator can reference different fields
1509 depending on the field being calculated by the formula.
1511    Here are a few examples:
1513      @2$3      2nd row, 3rd column
1514      C2        same as previous
1515      $5        column 5 in the current row
1516      E&        same as previous
1517      @2        current column, row 2
1518      @-1$-3    the field one row up, three columns to the left
1519      @-I$2     field just under hline above current row, column 2
1521 Range references
1522 ................
1524 You may reference a rectangular range of fields by specifying two field
1525 references connected by two dots `..'.  If both fields are in the
1526 current row, you may simply use `$2..$7', but if at least one field is
1527 in a different row, you need to use the general `@row$column' format at
1528 least for the first field (i.e the reference must start with `@' in
1529 order to be interpreted correctly).  Examples:
1531      $1..$3        First three fields in the current row.
1532      $P..$Q        Range, using column names (see under Advanced)
1533      @2$1..@4$3    6 fields between these two fields.
1534      A2..C4        Same as above.
1535      @-1$-2..@-1   3 numbers from the column to the left, 2 up to current row
1537 Range references return a vector of values that can be fed into Calc
1538 vector functions.  Empty fields in ranges are normally suppressed, so
1539 that the vector contains only the non-empty fields (but see the `E'
1540 mode switch below).  If there are no non-empty fields, `[0]' is
1541 returned to avoid syntax errors in formulas.
1543 Named references
1544 ................
1546 `$name' is interpreted as the name of a column, parameter or constant.
1547 Constants are defined globally through the variable
1548 `org-table-formula-constants', and locally (for the file) through a
1549 line like
1551      #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
1553 Also properties (*note Properties and columns::) can be used as
1554 constants in table formulas: For a property `:Xyz:' use the name
1555 `$PROP_Xyz', and the property will be searched in the current outline
1556 entry and in the hierarchy above it.  If you have the `constants.el'
1557 package, it will also be used to resolve constants, including natural
1558 constants like `$h' for Planck's constant, and units like `$km' for
1559 kilometers(2).  Column names and parameters can be specified in special
1560 table lines.  These are described below, see *Note Advanced features::.
1561 All names must start with a letter, and further consist of letters and
1562 numbers.
1564    ---------- Footnotes ----------
1566    (1) Note that only hlines are counted that _separate_ table lines.
1567 If the table starts with a hline above the header, it does not count.
1569    (2) `Constant.el' can supply the values of constants in two
1570 different unit systems, `SI' and `cgs'.  Which one is used depends on
1571 the value of the variable `constants-unit-system'.  You can use the
1572 `#+STARTUP' options `constSI' and `constcgs' to set this value for the
1573 current buffer.
1575 \x1f
1576 File: org,  Node: Formula syntax for Calc,  Next: Formula syntax for Lisp,  Prev: References,  Up: The spreadsheet
1578 3.5.2 Formula syntax for Calc
1579 -----------------------------
1581 A formula can be any algebraic expression understood by the Emacs
1582 `Calc' package.  Note that `calc' has the non-standard convention that
1583 `/' has lower precedence than `*', so that `a/b*c' is interpreted as
1584 `a/(b*c)'.  Before evaluation by `calc-eval' (*note calc-eval:
1585 (calc)Calling Calc from Your Programs.), variable substitution takes
1586 place according to the rules described above.  The range vectors can be
1587 directly fed into the calc vector functions like `vmean' and `vsum'.
1589    A formula can contain an optional mode string after a semicolon.
1590 This string consists of flags to influence Calc and other modes during
1591 execution.  By default, Org-mode uses the standard calc modes (precision
1592 12, angular units degrees, fraction and symbolic modes off.  The display
1593 format, however, has been changed to `(float 5)' to keep tables
1594 compact.  The default settings can be configured using the variable
1595 `org-calc-default-modes'.
1597      p20           switch the internal precision to 20 digits
1598      n3 s3 e2 f4   normal, scientific, engineering, or fixed display format
1599      D R           angle modes: degrees, radians
1600      F S           fraction and symbolic modes
1601      N             interpret all fields as numbers, use 0 for non-numbers
1602      T             force text interpretation
1603      E             keep empty fields in ranges
1605 In addition, you may provide a `printf' format specifier to reformat
1606 the final result.  A few examples:
1608      $1+$2                Sum of first and second field
1609      $1+$2;%.2f           Same, format result to two decimals
1610      exp($2)+exp($1)      Math functions can be used
1611      $0;%.1f              Reformat current cell to 1 decimal
1612      ($3-32)*5/9          Degrees F -> C conversion
1613      $c/$1/$cm            Hz -> cm conversion, using `constants.el'
1614      tan($1);Dp3s1        Compute in degrees, precision 3, display SCI 1
1615      sin($1);Dp3%.1e      Same, but use printf specifier for display
1616      vmean($2..$7)        Compute column range mean, using vector function
1617      vmean($2..$7);EN     Same, but treat empty fields as 0
1618      taylor($3,x=7,2)     taylor series of $3, at x=7, second degree
1620    Calc also contains a complete set of logical operations.  For example
1622      if($1<20,teen,string(""))  "teen" if age $1 less than 20, else empty
1624 \x1f
1625 File: org,  Node: Formula syntax for Lisp,  Next: Field formulas,  Prev: Formula syntax for Calc,  Up: The spreadsheet
1627 3.5.3 Emacs Lisp forms as formulas
1628 ----------------------------------
1630 It is also possible to write a formula in Emacs Lisp; this can be useful
1631 for string manipulation and control structures, if the Calc's
1632 functionality is not enough.  If a formula starts with a single quote
1633 followed by an opening parenthesis, then it is evaluated as a lisp form.
1634 The evaluation should return either a string or a number.  Just as with
1635 `calc' formulas, you can specify modes and a printf format after a
1636 semicolon.  With Emacs Lisp forms, you need to be concious about the way
1637 field references are interpolated into the form.  By default, a
1638 reference will be interpolated as a Lisp string (in double quotes)
1639 containing the field.  If you provide the `N' mode switch, all
1640 referenced elements will be numbers (non-number fields will be zero) and
1641 interpolated as Lisp numbers, without quotes.  If you provide the `L'
1642 flag, all fields will be interpolated literally, without quotes.  I.e.,
1643 if you want a reference to be interpreted as a string by the Lisp form,
1644 enclode the reference operator itself in double quotes, like `"$3"'.
1645 Ranges are inserted as space-separated fields, so you can embed them in
1646 list or vector syntax.  A few examples, note how the `N' mode is used
1647 when we do computations in lisp.
1649      Swap the first two characters of the content of column 1
1650        '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
1651      Add columns 1 and 2, equivalent to the Calc's `$1+$2'
1652        '(+ $1 $2);N
1653      Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
1654        '(apply '+ '($1..$4));N
1656 \x1f
1657 File: org,  Node: Field formulas,  Next: Column formulas,  Prev: Formula syntax for Lisp,  Up: The spreadsheet
1659 3.5.4 Field formulas
1660 --------------------
1662 To assign a formula to a particular field, type it directly into the
1663 field, preceded by `:=', for example `:=$1+$2'.  When you press <TAB>
1664 or <RET> or `C-c C-c' with the cursor still in the field, the formula
1665 will be stored as the formula for this field, evaluated, and the
1666 current field replaced with the result.
1668    Formulas are stored in a special line starting with `#+TBLFM:'
1669 directly below the table.  If you typed the equation in the 4th field of
1670 the 3rd data line in the table, the formula will look like
1671 `@3$4=$1+$2'.  When inserting/deleting/swapping column and rows with
1672 the appropriate commands, absolute references (but not relative ones)
1673 in stored formulas are modified in order to still reference the same
1674 field.  Of cause this is not true if you edit the table structure with
1675 normal editing commands - then you must fix the equations yourself.
1677    Instead of typing an equation into the field, you may also use the
1678 following command
1680 `C-u C-c ='
1681      Install a new formula for the current field.  The command prompts
1682      for a formula, with default taken from the `#+TBLFM:' line, applies
1683      it to the current field and stores it.
1685 \x1f
1686 File: org,  Node: Column formulas,  Next: Editing and debugging formulas,  Prev: Field formulas,  Up: The spreadsheet
1688 3.5.5 Column formulas
1689 ---------------------
1691 Often in a table, the same formula should be used for all fields in a
1692 particular column.  Instead of having to copy the formula to all fields
1693 in that column, org-mode allows to assign a single formula to an entire
1694 column.  If the table contains horizontal separator hlines, everything
1695 before the first such line is considered part of the table _header_ and
1696 will not be modified by column formulas.
1698    To assign a formula to a column, type it directly into any field in
1699 the column, preceded by an equal sign, like `=$1+$2'.  When you press
1700 <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
1701 formula will be stored as the formula for the current column, evaluated
1702 and the current field replaced with the result.  If the field contains
1703 only `=', the previously stored formula for this column is used.  For
1704 each column, Org-mode will only remember the most recently used
1705 formula.  In the `TBLFM:' line, column formulas will look like
1706 `$4=$1+$2'.
1708    Instead of typing an equation into the field, you may also use the
1709 following command:
1711 `C-c ='
1712      Install a new formula for the current column and replace current
1713      field with the result of the formula.  The command prompts for a
1714      formula, with default taken from the `#+TBLFM' line, applies it to
1715      the current field and stores it.  With a numerical prefix (e.g.
1716      `C-5 C-c =') will apply it to that many consecutive fields in the
1717      current column.
1719 \x1f
1720 File: org,  Node: Editing and debugging formulas,  Next: Updating the table,  Prev: Column formulas,  Up: The spreadsheet
1722 3.5.6 Editing and Debugging formulas
1723 ------------------------------------
1725 You can edit individual formulas in the minibuffer or directly in the
1726 field.  Org-mode can also prepare a special buffer with all active
1727 formulas of a table.  When offering a formula for editing, Org-mode
1728 converts references to the standard format (like `B3' or `D&') if
1729 possible.  If you prefer to only work with the internal format (like
1730 `@3$2' or `$4'), configure the variable
1731 `org-table-use-standard-references'.
1733 `C-c ='
1734 `C-u C-c ='
1735      Edit the formula associated with the current column/field in the
1736      minibuffer.  See *Note Column formulas:: and *Note Field
1737      formulas::.  
1739 `C-u C-u C-c ='
1740      Re-insert the active formula (either a field formula, or a column
1741      formula) into the current field, so that you can edit it directly
1742      in the field.  The advantage over editing in the minibuffer is
1743      that you can use the command `C-c ?'.  
1745 `C-c ?'
1746      While editing a formula in a table field, highlight the field(s)
1747      referenced by the reference at the cursor position in the formula.  
1749 `C-c }'
1750      Toggle the display of row and column numbers for a table, using
1751      overlays.  These are updated each time the table is aligned, you
1752      can force it with `C-c C-c'.  
1754 `C-c {'
1755      Toggle the formula debugger on and off.  See below.  
1757 `C-c ''
1758      Edit all formulas for the current table in a special buffer, where
1759      the formulas will be displayed one per line.  If the current field
1760      has an active formula, the cursor in the formula editor will mark
1761      it.  While inside the special buffer, Org-mode will automatically
1762      highlight any field or range reference at the cursor position.
1763      You may edit, remove and add formulas, and use the following
1764      commands:
1765     `C-c C-c'
1766     `C-x C-s'
1767           Exit the formula editor and store the modified formulas.
1768           With `C-u' prefix, also apply the new formulas to the entire
1769           table.  
1771     `C-c C-q'
1772           Exit the formula editor without installing changes.  
1774     `C-c C-r'
1775           Toggle all references in the formula editor between standard
1776           (like `B3') and internal (like `@3$2').  
1778     `<TAB>'
1779           Pretty-print or indent lisp formula at point.  When in a line
1780           containing a lisp formula, format the formula according to
1781           Emacs Lisp rules.  Another <TAB> collapses the formula back
1782           again.  In the open formula, <TAB> re-indents just like in
1783           Emacs-lisp-mode.  
1785     `M-<TAB>'
1786           Complete Lisp symbols, just like in Emacs-lisp-mode.  
1788     `S-<up>/<down>/<left>/<right>'
1789           Shift the reference at point.  For example, if the reference
1790           is `B3' and you press `S-<right>', it will become `C3'.  This
1791           also works for relative references, and for hline references.  
1793     `M-S-<up>/<down>'
1794           Move the test line for column formulas in the Org-mode buffer
1795           up and down.  
1797     `M-<up>/<down>'
1798           Scroll the window displaying the table.  
1800     `C-c }'
1801           Turn the coordinate grid in the table on and off.
1803    Making a table field blank does not remove the formula associated
1804 with the field, because that is stored in a different line (the `TBLFM'
1805 line) - during the next recalculation the field will be filled again.
1806 To remove a formula from a field, you have to give an empty reply when
1807 prompted for the formula, or to edit the `#+TBLFM' line.
1809    You may edit the `#+TBLFM' directly and re-apply the changed
1810 equations with `C-c C-c' in that line, or with the normal recalculation
1811 commands in the table.
1813 Debugging formulas
1814 ..................
1816 When the evaluation of a formula leads to an error, the field content
1817 becomes the string `#ERROR'.  If you would like see what is going on
1818 during variable substitution and calculation in order to find a bug,
1819 turn on formula debugging in the `Tbl' menu and repeat the calculation,
1820 for example by pressing `C-u C-u C-c = <RET>' in a field.  Detailed
1821 information will be displayed.
1823 \x1f
1824 File: org,  Node: Updating the table,  Next: Advanced features,  Prev: Editing and debugging formulas,  Up: The spreadsheet
1826 3.5.7 Updating the Table
1827 ------------------------
1829 Recalculation of a table is normally not automatic, but needs to be
1830 triggered by a command.  See *Note Advanced features:: for a way to make
1831 recalculation at least semi-automatically.
1833    In order to recalculate a line of a table or the entire table, use
1834 the following commands:
1836 `C-c *'
1837      Recalculate the current row by first applying the stored column
1838      formulas from left to right, and all field formulas in the current
1839      row.  
1841 `C-u C-c *'
1842 `C-u C-c C-c'
1843      Recompute the entire table, line by line.  Any lines before the
1844      first hline are left alone, assuming that these are part of the
1845      table header.  
1847 `C-u C-u C-c *'
1848 `C-u C-u C-c C-c'
1849      Iterate the table by recomputing it until no further changes occur.
1850      This may be necessary if some computed fields use the value of
1851      other fields that are computed later in the calculation sequence.
1853 \x1f
1854 File: org,  Node: Advanced features,  Prev: Updating the table,  Up: The spreadsheet
1856 3.5.8 Advanced features
1857 -----------------------
1859 If you want the recalculation of fields to happen automatically, or if
1860 you want to be able to assign names to fields and columns, you need to
1861 reserve the first column of the table for special marking characters.
1862 `C-#'
1863      Rotate the calculation mark in first column through the states `',
1864      `#', `*', `!', `$'.  The meaning of these characters is discussed
1865      below.  When there is an active region, change all marks in the
1866      region.
1868    Here is an example of a table that collects exam results of students
1869 and makes use of these features:
1871      |---+---------+--------+--------+--------+-------+------|
1872      |   | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1873      |---+---------+--------+--------+--------+-------+------|
1874      | ! |         |     P1 |     P2 |     P3 |   Tot |      |
1875      | # | Maximum |     10 |     15 |     25 |    50 | 10.0 |
1876      | ^ |         |     m1 |     m2 |     m3 |    mt |      |
1877      |---+---------+--------+--------+--------+-------+------|
1878      | # | Peter   |     10 |      8 |     23 |    41 |  8.2 |
1879      | # | Sara    |      6 |     14 |     19 |    39 |  7.8 |
1880      | # | Sam     |      2 |      4 |      3 |     9 |  1.8 |
1881      |---+---------+--------+--------+--------+-------+------|
1882      |   | Average |        |        |        |  29.7 |      |
1883      | ^ |         |        |        |        |    at |      |
1884      | $ | max=50  |        |        |        |       |      |
1885      |---+---------+--------+--------+--------+-------+------|
1886      #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
1888 Important: Please note that for these special tables, recalculating the
1889 table with `C-u C-c *' will only affect rows that are marked `#' or
1890 `*', and fields that have a formula assigned to the field itself.  The
1891 column formulas are not applied in rows with empty first field.
1893    The marking characters have the following meaning:
1895      The fields in this line define names for the columns, so that you
1896      may refer to a column as `$Tot' instead of `$6'.
1899      This row defines names for the fields _above_ the row.  With such
1900      a definition, any formula in the table may use `$m1' to refer to
1901      the value `10'.  Also, if you assign a formula to a names field, it
1902      will be stored as `$name=...'.
1905      Similar to `^', but defines names for the fields in the row
1906      _below_.
1909      Fields in this row can define _parameters_ for formulas.  For
1910      example, if a field in a `$' row contains `max=50', then formulas
1911      in this table can refer to the value 50 using `$max'.  Parameters
1912      work exactly like constants, only that they can be defined on a
1913      per-table basis.
1916      Fields in this row are automatically recalculated when pressing
1917      <TAB> or <RET> or `S-<TAB>' in this row.  Also, this row is
1918      selected for a global recalculation with `C-u C-c *'.  Unmarked
1919      lines will be left alone by this command.
1922      Selects this line for global recalculation with `C-u C-c *', but
1923      not for automatic recalculation.  Use this when automatic
1924      recalculation slows down editing too much.
1927      Unmarked lines are exempt from recalculation with `C-u C-c *'.
1928      All lines that should be recalculated should be marked with `#' or
1929      `*'.
1932      Do not export this line.  Useful for lines that contain the
1933      narrowing `<N>' markers.
1935    Finally, just to whet your appetite on what can be done with the
1936 fantastic `calc' package, here is a table that computes the Taylor
1937 series of degree `n' at location `x' for a couple of functions
1938 (homework: try that with Excel :-)
1940      |---+-------------+---+-----+--------------------------------------|
1941      |   | Func        | n | x   | Result                               |
1942      |---+-------------+---+-----+--------------------------------------|
1943      | # | exp(x)      | 1 | x   | 1 + x                                |
1944      | # | exp(x)      | 2 | x   | 1 + x + x^2 / 2                      |
1945      | # | exp(x)      | 3 | x   | 1 + x + x^2 / 2 + x^3 / 6            |
1946      | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1947      | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2    |
1948      | * | tan(x)      | 3 | x   | 0.0175 x + 1.77e-6 x^3               |
1949      |---+-------------+---+-----+--------------------------------------|
1950      #+TBLFM: $5=taylor($2,$4,$3);n3
1952 \x1f
1953 File: org,  Node: Hyperlinks,  Next: TODO items,  Prev: Tables,  Up: Top
1955 4 Hyperlinks
1956 ************
1958 Like HTML, Org-mode provides links inside a file, external links to
1959 other files, Usenet articles, emails, and much more.
1961 * Menu:
1963 * Link format::                 How links in Org-mode are formatted
1964 * Internal links::              Links to other places in the current file
1965 * External links::              URL-like links to the world
1966 * Handling links::              Creating, inserting and following
1967 * Using links outside Org-mode::  Linking from my C source code?
1968 * Link abbreviations::          Shortcuts for writing complex links
1969 * Search options::              Linking to a specific location
1970 * Custom searches::             When the default search is not enough
1972 \x1f
1973 File: org,  Node: Link format,  Next: Internal links,  Prev: Hyperlinks,  Up: Hyperlinks
1975 4.1 Link format
1976 ===============
1978 Org-mode will recognize plain URL-like links and activate them as
1979 clickable links.  The general link format, however, looks like this:
1981      [[link][description]]       or alternatively           [[link]]
1983    Once a link in the buffer is complete (all brackets present),
1984 Org-mode will change the display so that `description' is displayed
1985 instead of `[[link][description]]' and `link' is displayed instead of
1986 `[[link]]'.  Links will be highlighted in the face `org-link', which by
1987 default is an underlined face.  You can directly edit the visible part
1988 of a link.  Note that this can be either the `link' part (if there is
1989 no description) or the `description' part.  To edit also the invisible
1990 `link' part, use `C-c C-l' with the cursor on the link.
1992    If you place the cursor at the beginning or just behind the end of
1993 the displayed text and press <BACKSPACE>, you will remove the
1994 (invisible) bracket at that location.  This makes the link incomplete
1995 and the internals are again displayed as plain text.  Inserting the
1996 missing bracket hides the link internals again.  To show the internal
1997 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1998 links'.
2000 \x1f
2001 File: org,  Node: Internal links,  Next: External links,  Prev: Link format,  Up: Hyperlinks
2003 4.2 Internal links
2004 ==================
2006 If the link does not look like a URL, it is considered to be internal in
2007 the current file.  Links such as `[[My Target]]' or `[[My Target][Find
2008 my target]]' lead to a text search in the current file.  The link can
2009 be followed with `C-c C-o' when the cursor is on the link, or with a
2010 mouse click (*note Handling links::).  The preferred match for such a
2011 link is a dedicated target: the same string in double angular brackets.
2012 Targets may be located anywhere; sometimes it is convenient to put
2013 them into a comment line. For example
2015      # <<My Target>>
2017 In HTML export (*note HTML export::), such targets will become named
2018 anchors for direct access through `http' links(1).
2020    If no dedicated target exists, Org-mode will search for the words in
2021 the link.  In the above example the search would be for `my target'.
2022 Links starting with a star like `*My Target' restrict the search to
2023 headlines.  When searching, Org-mode will first try an exact match, but
2024 then move on to more and more lenient searches.  For example, the link
2025 `[[*My Targets]]' will find any of the following:
2027      ** My targets
2028      ** TODO my targets are bright
2029      ** my 20 targets are
2031    To insert a link targeting a headline, in-buffer completion can be
2032 used.  Just type a star followed by a few optional letters into the
2033 buffer and press `M-<TAB>'.  All headlines in the current buffer will be
2034 offered as completions.  *Note Handling links::, for more commands
2035 creating links.
2037    Following a link pushes a mark onto Org-mode's own mark ring.  You
2038 can return to the previous position with `C-c &'.  Using this command
2039 several times in direct succession goes back to positions recorded
2040 earlier.
2042 * Menu:
2044 * Radio targets::               Make targets trigger links in plain text.
2046    ---------- Footnotes ----------
2048    (1) Note that text before the first headline is usually not
2049 exported, so the first such target should be after the first headline.
2051 \x1f
2052 File: org,  Node: Radio targets,  Prev: Internal links,  Up: Internal links
2054 4.2.1 Radio targets
2055 -------------------
2057 Org-mode can automatically turn any occurrences of certain target names
2058 in normal text into a link.  So without explicitly creating a link, the
2059 text connects to the target radioing its position.  Radio targets are
2060 enclosed by triple angular brackets.  For example, a target `<<<My
2061 Target>>>' causes each occurrence of `my target' in normal text to
2062 become activated as a link.  The Org-mode file is scanned automatically
2063 for radio targets only when the file is first loaded into Emacs.  To
2064 update the target list during editing, press `C-c C-c' with the cursor
2065 on or at a target.
2067 \x1f
2068 File: org,  Node: External links,  Next: Handling links,  Prev: Internal links,  Up: Hyperlinks
2070 4.3 External links
2071 ==================
2073 Org-mode supports links to files, websites, Usenet and email messages,
2074 and BBDB database entries.  External links are URL-like locators.  They
2075 start with a short identifying string followed by a colon.  There can be
2076 no space after the colon.  The following list shows examples for each
2077 link type.
2079      http://www.astro.uva.nl/~dominik          on the web
2080      file:/home/dominik/images/jupiter.jpg     file, absolute path
2081      file:papers/last.pdf                      file, relative path
2082      news:comp.emacs                           Usenet link
2083      mailto:adent@galaxy.net                   Mail link
2084      vm:folder                                 VM folder link
2085      vm:folder#id                              VM message link
2086      vm://myself@some.where.org/folder#id      VM on remote machine
2087      wl:folder                                 WANDERLUST folder link
2088      wl:folder#id                              WANDERLUST message link
2089      mhe:folder                                MH-E folder link
2090      mhe:folder#id                             MH-E message link
2091      rmail:folder                              RMAIL folder link
2092      rmail:folder#id                           RMAIL message link
2093      gnus:group                                GNUS group link
2094      gnus:group#id                             GNUS article link
2095      bbdb:Richard Stallman                     BBDB link
2096      shell:ls *.org                            A shell command
2097      elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
2099    A link should be enclosed in double brackets and may contain a
2100 descriptive text to be displayed instead of the url (*note Link
2101 format::), for example:
2103      [[http://www.gnu.org/software/emacs/][GNU Emacs]]
2105 If the description is a file name or URL that points to an image, HTML
2106 export (*note HTML export::) will inline the image as a clickable
2107 button.  If there is no description at all and the link points to an
2108 image, that image will be inlined into the exported HTML file.
2110    Org-mode also finds external links in the normal text and activates
2111 them as links.  If spaces must be part of the link (for example in
2112 `bbdb:Richard Stallman'), or if you need to remove ambiguities about
2113 the end of the link, enclose them in angular brackets.
2115 \x1f
2116 File: org,  Node: Handling links,  Next: Using links outside Org-mode,  Prev: External links,  Up: Hyperlinks
2118 4.4 Handling links
2119 ==================
2121 Org-mode provides methods to create a link in the correct syntax, to
2122 insert it into an org-mode file, and to follow the link.
2124 `C-c l'
2125      Store a link to the current location.  This is a _global_ command
2126      which can be used in any buffer to create a link.  The link will be
2127      stored for later insertion into an Org-mode buffer (see below).
2128      For Org-mode files, if there is a `<<target>>' at the cursor, the
2129      link points to the target.  Otherwise it points to the current
2130      headline.  For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
2131      the link will indicate the current article/entry.  For W3 and W3M
2132      buffers, the link goes to the current URL.  For any other files,
2133      the link will point to the file, with a search string (*note
2134      Search options::) pointing to the contents of the current line.
2135      If there is an active region, the selected words will form the
2136      basis of the search string.  If the automatically created link is
2137      not working correctly or accurately enough, you can write custom
2138      functions to select the search string and to do the search for
2139      particular file types - see *Note Custom searches::.  The key
2140      binding `C-c l' is only a suggestion - see *Note Installation::.  
2142 `C-c C-l'
2143      Insert a link.  This prompts for a link to be inserted into the
2144      buffer.  You can just type a link, using text for an internal
2145      link, or one of the link type prefixes mentioned in the examples
2146      above.  All links stored during the current session are part of
2147      the history for this prompt, so you can access them with <up> and
2148      <down> (or `M-p/n').  Completion, on the other hand, will help you
2149      to insert valid link prefixes like `http:' or `ftp:', including
2150      the prefixes defined through link abbreviations (*note Link
2151      abbreviations::).  The link will be inserted into the buffer(1),
2152      along with a descriptive text.  If some text was selected when
2153      this command is called, the selected text becomes the default
2154      description.
2155      Note that you don't have to use this command to insert a link.
2156      Links in Org-mode are plain text, and you can type or paste them
2157      straight into the buffer.  By using this command, the links are
2158      automatically enclosed in double brackets, and you will be asked
2159      for the optional descriptive text.  
2161 `C-u C-c C-l'
2162      When `C-c C-l' is called with a `C-u' prefix argument, a link to a
2163      file will be inserted and you may use file name completion to
2164      select the name of the file.  The path to the file is inserted
2165      relative to the directory of the current org file, if the linked
2166      file is in the current directory or in a subdirectory of it, or if
2167      the path is written relative to the current directory using `../'.
2168      Otherwise an absolute path is used, if possible with `~/' for
2169      your home directory.  You can force an absolute path with two
2170      `C-u' prefixes.
2172 `C-c C-l (with cursor on existing link)'
2173      When the cursor is on an existing link, `C-c C-l' allows you to
2174      edit the link and description parts of the link.  
2176 `C-c C-o'
2177      Open link at point.  This will launch a web browser for URLs (using
2178      `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
2179      the corresponding links, and execute the command in a shell link.
2180      When the cursor is on an internal link, this commands runs the
2181      corresponding search.  When the cursor is on a TAG list in a
2182      headline, it creates the corresponding TAGS view.  If the cursor
2183      is on a time stamp, it compiles the agenda for that date.
2184      Furthermore, it will visit text and remote files in `file:' links
2185      with Emacs and select a suitable application for local non-text
2186      files.  Classification of files is based on file extension only.
2187      See option `org-file-apps'.  If you want to override the default
2188      application and visit the file with Emacs, use a `C-u' prefix.  
2190 `mouse-2'
2191 `mouse-1'
2192      On links, `mouse-2' will open the link just as `C-c C-o' would.
2193      Under Emacs 22, also `mouse-1' will follow a link.  
2195 `mouse-3'
2196      Like `mouse-2', but force file links to be opened with Emacs, and
2197      internal links to be displayed in another window(2).  
2199 `C-c %'
2200      Push the current position onto the mark ring, to be able to return
2201      easily. Commands following an internal link do this automatically.  
2203 `C-c &'
2204      Jump back to a recorded position.  A position is recorded by the
2205      commands following internal links, and by `C-c %'.  Using this
2206      command several times in direct succession moves through a ring of
2207      previously recorded positions.  
2209 `C-c C-x C-n'
2210 `C-c C-x C-p'
2211      Move forward/backward to the next link in the buffer.  At the
2212      limit of the buffer, the search fails once, and then wraps around.
2213      The key bindings for this are really too long, you might want to
2214      bind this also to `C-n' and `C-p'
2215           (add-hook 'org-load-hook
2216             (lambda ()
2217               (define-key 'org-mode-map "\C-n" 'org-next-link)
2218               (define-key 'org-mode-map "\C-p" 'org-previous-link)))
2220    ---------- Footnotes ----------
2222    (1) After insertion of a stored link, the link will be removed from
2223 the list of stored links.  To keep it in the list later use, use a
2224 triple `C-u' prefix to `C-c C-l', or configure the option
2225 `org-keep-stored-link-after-insertion'.
2227    (2) See the variable `org-display-internal-link-with-indirect-buffer'
2229 \x1f
2230 File: org,  Node: Using links outside Org-mode,  Next: Link abbreviations,  Prev: Handling links,  Up: Hyperlinks
2232 4.5 Using links outside Org-mode
2233 ================================
2235 You can insert and follow links that have Org-mode syntax not only in
2236 Org-mode, but in any Emacs buffer.  For this, you should create two
2237 global commands, like this (please select suitable global keys
2238 yourself):
2240      (global-set-key "\C-c L" 'org-insert-link-global)
2241      (global-set-key "\C-c o" 'org-open-at-point-global)
2243 \x1f
2244 File: org,  Node: Link abbreviations,  Next: Search options,  Prev: Using links outside Org-mode,  Up: Hyperlinks
2246 4.6 Link abbreviations
2247 ======================
2249 Long URLs can be cumbersome to type, and often many similar links are
2250 needed in a document.  For this you can use link abbreviations.  An
2251 abbreviated link looks like this
2253      [[linkword:tag][description]]
2255 where the tag is optional.  Such abbreviations are resolved according to
2256 the information in the variable `org-link-abbrev-alist' that relates
2257 the linkwords to replacement text.  Here is an example:
2259      (setq org-link-abbrev-alist
2260        '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
2261          ("google"   . "http://www.google.com/search?q=")
2262          ("ads"      . "http://adsabs.harvard.edu/cgi-bin/
2263                         nph-abs_connect?author=%s&db_key=AST")))
2265    If the replacement text contains the string `%s', it will be
2266 replaced with the tag.  Otherwise the tag will be appended to the string
2267 in order to create the link.  You may also specify a function that will
2268 be called with the tag as the only argument to create the link.
2270    With the above setting, you could link to a specific bug with
2271 `[[bugzilla:129]]', search the web for `OrgMode' with
2272 `[[google:OrgMode]]' and find out what the Org-mode author is doing
2273 besides Emacs hacking with `[[ads:Dominik,C]]'.
2275    If you need special abbreviations just for a single Org-mode buffer,
2276 you can define them in the file with
2278      #+LINK: bugzilla  http://10.1.2.9/bugzilla/show_bug.cgi?id=
2279      #+LINK: google    http://www.google.com/search?q=%s
2281 In-buffer completion *note Completion:: can be used after `[' to
2282 complete link abbreviations.
2284 \x1f
2285 File: org,  Node: Search options,  Next: Custom searches,  Prev: Link abbreviations,  Up: Hyperlinks
2287 4.7 Search options in file links
2288 ================================
2290 File links can contain additional information to make Emacs jump to a
2291 particular location in the file when following a link.  This can be a
2292 line number or a search option after a double(1) colon. For example,
2293 when the command `C-c l' creates a link (*note Handling links::) to a
2294 file, it encodes the words in the current line as a search string that
2295 can be used to find this line back later when following the link with
2296 `C-c C-o'.
2298    Here is the syntax of the different ways to attach a search to a file
2299 link, together with an explanation:
2301      [[file:~/code/main.c::255]]
2302      [[file:~/xx.org::My Target]]
2303      [[file:~/xx.org::*My Target]]
2304      [[file:~/xx.org::/regexp/]]
2306 `255'
2307      Jump to line 255.
2309 `My Target'
2310      Search for a link target `<<My Target>>', or do a text search for
2311      `my target', similar to the search in internal links, see *Note
2312      Internal links::.  In HTML export (*note HTML export::), such a
2313      file link will become an HTML reference to the corresponding named
2314      anchor in the linked file.
2316 `*My Target'
2317      In an Org-mode file, restrict search to headlines.
2319 `/regexp/'
2320      Do a regular expression search for `regexp'.  This uses the Emacs
2321      command `occur' to list all matches in a separate window.  If the
2322      target file is in Org-mode, `org-occur' is used to create a sparse
2323      tree with the matches.
2325    As a degenerate case, a file link with an empty file name can be used
2326 to search the current file.  For example, `[[file:::find me]]' does a
2327 search for `find me' in the current file, just as `[[find me]]' would.
2329    ---------- Footnotes ----------
2331    (1) For backward compatibility, line numbers can also follow a
2332 single colon.
2334 \x1f
2335 File: org,  Node: Custom searches,  Prev: Search options,  Up: Hyperlinks
2337 4.8 Custom Searches
2338 ===================
2340 The default mechanism for creating search strings and for doing the
2341 actual search related to a file link may not work correctly in all
2342 cases.  For example, BibTeX database files have many entries like
2343 `year="1993"' which would not result in good search strings, because
2344 the only unique identification for a BibTeX entry is the citation key.
2346    If you come across such a problem, you can write custom functions to
2347 set the right search string for a particular file type, and to do the
2348 search for the string in the file.  Using `add-hook', these functions
2349 need to be added to the hook variables
2350 `org-create-file-search-functions' and
2351 `org-execute-file-search-functions'.  See the docstring for these
2352 variables for more information.  Org-mode actually uses this mechanism
2353 for BibTeX database files, and you can use the corresponding code as an
2354 implementation example.  Search for `BibTeX links' in the source file.
2356 \x1f
2357 File: org,  Node: TODO items,  Next: Tags,  Prev: Hyperlinks,  Up: Top
2359 5 TODO items
2360 ************
2362 Org-mode does not maintain TODO lists as separate documents.  Instead,
2363 TODO items are an integral part of the notes file, because TODO items
2364 usually come up while taking notes!  With Org-mode, simply mark any
2365 entry in a tree as being a TODO item.  In this way, information is not
2366 duplicated, and the entire context from which the TODO item emerged is
2367 always present.
2369    Of course, this technique for managing TODO items scatters them
2370 throughout your notes file.  Org-mode compensates for this by providing
2371 methods to give you an overview of all the things that you have to do.
2373 * Menu:
2375 * TODO basics::                 Marking and displaying TODO entries
2376 * TODO extensions::             Workflow and assignments
2377 * Progress logging::            Dates and notes for progress
2378 * Priorities::                  Some things are more important than others
2379 * Breaking down tasks::         Splitting a task into manageable pieces
2380 * Checkboxes::                  Tick-off lists
2382 \x1f
2383 File: org,  Node: TODO basics,  Next: TODO extensions,  Prev: TODO items,  Up: TODO items
2385 5.1 Basic TODO functionality
2386 ============================
2388 Any headline becomes a TODO item when it starts with the word `TODO',
2389 for example:
2391      *** TODO Write letter to Sam Fortune
2393 The most important commands to work with TODO entries are:
2395 `C-c C-t'
2396      Rotate the TODO state of the current item among
2398           ,-> (unmarked) -> TODO -> DONE --.
2399           '--------------------------------'
2401      The same rotation can also be done "remotely" from the timeline and
2402      agenda buffers with the `t' command key (*note Agenda commands::).
2404 `C-u C-c C-t'
2405      Select a specific keyword using completion or (if it has been set
2406      up) the fast selection interface.
2408 `S-<right>'
2409 `S-<left>'
2410      Select the following/preceding TODO state, similar to cycling.
2411      Useful mostly if more than two TODO states are possible (*note
2412      TODO extensions::).  
2414 `C-c C-c'
2415      Use the fast tag interface to directly select a specific TODO
2416      state.  For this you need to assign keys to TODO states, like this:
2417           #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
2418      See *Note Per-file keywords:: and *Note Setting tags:: for more
2419      information.  
2421 `C-c C-v'
2422 `C-c / t'
2423      View TODO items in a _sparse tree_ (*note Sparse trees::).  Folds
2424      the entire buffer, but shows all TODO items and the headings
2425      hierarchy above them.  With prefix arg, search for a specific
2426      TODO.  You will be prompted for the keyword, and you can also give
2427      a list of keywords like `KWD1|KWD2|...'.  With numerical prefix N,
2428      show the tree for the Nth keyword in the variable
2429      `org-todo-keywords'.  With two prefix args, find all TODO and DONE
2430      entries.  
2432 `C-c a t'
2433      Show the global TODO list.  Collects the TODO items from all agenda
2434      files (*note Agenda views::) into a single buffer.  The new buffer
2435      will be in `agenda-mode', which provides commands to examine and
2436      manipulate the TODO entries from the new buffer (*note Agenda
2437      commands::).  *Note Global TODO list::, for more information.  
2439 `S-M-<RET>'
2440      Insert a new TODO entry below the current one.
2442 \x1f
2443 File: org,  Node: TODO extensions,  Next: Progress logging,  Prev: TODO basics,  Up: TODO items
2445 5.2 Extended use of TODO keywords
2446 =================================
2448 By default, marked TODO entries have one of only two states: TODO and
2449 DONE.  Org-mode allows you to classify TODO items in more complex ways
2450 with _TODO keywords_ (stored in `org-todo-keywords').  With special
2451 setup, the TODO keyword system can work differently in different files.
2453    Note that tags are another way to classify headlines in general and
2454 TODO items in particular (*note Tags::).
2456 * Menu:
2458 * Workflow states::             From TODO to DONE in steps
2459 * TODO types::                  I do this, Fred does the rest
2460 * Multiple sets in one file::   Mixing it all, and still finding your way
2461 * Fast access to TODO states::  Single letter selection of a state
2462 * Per-file keywords::           Different files, different requirements
2463 * Faces for TODO keywords::     Highlighting states
2465 \x1f
2466 File: org,  Node: Workflow states,  Next: TODO types,  Prev: TODO extensions,  Up: TODO extensions
2468 5.2.1 TODO keywords as workflow states
2469 --------------------------------------
2471 You can use TODO keywords to indicate different _sequential_ states in
2472 the process of working on an item, for example(1):
2474      (setq org-todo-keywords
2475        '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
2477    The vertical bar separates the TODO keywords (states that _need
2478 action_) from the DONE states (which need _no further action_.  If you
2479 don't provide the separator bar, the last state is used as the DONE
2480 state.  With this setup, the command `C-c C-t' will cycle an entry from
2481 TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
2482 You may also use a prefix argument to quickly select a specific state.
2483 For example `C-3 C-c C-t' will change the state immediately to VERIFY.
2484 If you define many keywords, you can use in-buffer completion (see
2485 *Note Completion::) to insert these words into the buffer.  Changing a
2486 todo state can be logged with a timestamp, see *Note Tracking TODO
2487 state changes:: for more information.
2489    ---------- Footnotes ----------
2491    (1) Changing this variable only becomes effective after restarting
2492 Org-mode in a buffer.
2494 \x1f
2495 File: org,  Node: TODO types,  Next: Multiple sets in one file,  Prev: Workflow states,  Up: TODO extensions
2497 5.2.2 TODO keywords as types
2498 ----------------------------
2500 The second possibility is to use TODO keywords to indicate different
2501 _types_ of action items.  For example, you might want to indicate that
2502 items are for "work" or "home".  Or, when you work with several people
2503 on a single project, you might want to assign action items directly to
2504 persons, by using their names as TODO keywords.  This would be set up
2505 like this:
2507      (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
2509    In this case, different keywords do not indicate a sequence, but
2510 rather different types.  So the normal work flow would be to assign a
2511 task to a person, and later to mark it DONE.  Org-mode supports this
2512 style by adapting the workings of the command `C-c C-t'(1).  When used
2513 several times in succession, it will still cycle through all names, in
2514 order to first select the right type for a task.  But when you return
2515 to the item after some time and execute `C-c C-t' again, it will switch
2516 from any name directly to DONE.  Use prefix arguments or completion to
2517 quickly select a specific name.  You can also review the items of a
2518 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2519 C-v'.  For example, to see all things Lucy has to do, you would use
2520 `C-3 C-c C-v'.  To collect Lucy's items from all agenda files into a
2521 single buffer, you would use the prefix arg as well when creating the
2522 global todo list: `C-3 C-c t'.
2524    ---------- Footnotes ----------
2526    (1) This is also true for the `t' command in the timeline and agenda
2527 buffers.
2529 \x1f
2530 File: org,  Node: Multiple sets in one file,  Next: Fast access to TODO states,  Prev: TODO types,  Up: TODO extensions
2532 5.2.3 Multiple keyword sets in one file
2533 ---------------------------------------
2535 Sometimes you may want to use different sets of TODO keywords in
2536 parallel.  For example, you may want to have the basic `TODO'/`DONE',
2537 but also a workflow for bug fixing, and a separate state indicating
2538 that an item has been canceled (so it is not DONE, but also does not
2539 require action).  Your setup would then look like this:
2541      (setq org-todo-keywords
2542            '((sequence "TODO" "|" "DONE")
2543              (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
2544              (sequence "|" "CANCELED")))
2546    The keywords should all be different, this helps Org-mode to keep
2547 track of which subsequence should be used for a given entry.  In this
2548 setup, `C-c C-t' only operates within a subsequence, so it switches from
2549 `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
2550 `REPORT'.  Therefore you need a mechanism to initially select the
2551 correct sequence.  Besides the obvious ways like typing a keyword or
2552 using completion, you may also apply the following commands:
2554 `C-S-<right>'
2555 `C-S-<left>'
2556      These keys jump from one TODO subset to the next.  In the above
2557      example, `C-S-<right>' would jump from `TODO' or `DONE' to
2558      `REPORT', and any of the words in the second row to `CANCELED'.  
2560 `S-<right>'
2561 `S-<left>'
2562      `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
2563      from all sets, so for example `S-<<right>>' would switch from
2564      `DONE' to `REPORT' in the example above.
2566 \x1f
2567 File: org,  Node: Fast access to TODO states,  Next: Per-file keywords,  Prev: Multiple sets in one file,  Up: TODO extensions
2569 5.2.4 Fast access to TODO states
2570 --------------------------------
2572 If you would like to quickly change an entry to an arbitrary TODO state
2573 instead of cycling through the states, you can set up keys for
2574 single-letter access to the states.  This is done by adding the section
2575 key after each keyword, in parenthesis.  For example:
2577      (setq org-todo-keywords
2578            '((sequence "TODO(t)" "|" "DONE(d)")
2579              (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
2580              (sequence "|" "CANCELED(c)")))
2582    If you then press `C-u C-c C-t' followed by the selection key, the
2583 entry will be switched to this state.  <SPC> can be used to remove any
2584 TODO keyword from an entry.  Should you like this way of selecting TODO
2585 states a lot, you might want to set the variable
2586 `org-use-fast-todo-selection' to `t' and make this behavior the
2587 default.  Check also the variable
2588 `org-fast-tag-selection-include-todo', it allows to change the TODO
2589 state through the tags interface (*note Setting tags::).
2591 \x1f
2592 File: org,  Node: Per-file keywords,  Next: Faces for TODO keywords,  Prev: Fast access to TODO states,  Up: TODO extensions
2594 5.2.5 Setting up keywords for individual files
2595 ----------------------------------------------
2597 It can be very useful to use different aspects of the TODO mechanism in
2598 different files.  For file-local settings, you need to add special lines
2599 to the file which set the keywords and interpretation for that file
2600 only.  For example, to set one of the two examples discussed above, you
2601 need one of the following lines, starting in column zero anywhere in the
2602 file:
2604      #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
2605    or
2606      #+TYP_TODO: Fred Sara Lucy Mike | DONE
2608    A setup for using several sets in parallel would be:
2610      #+SEQ_TODO: TODO | DONE
2611      #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
2612      #+SEQ_TODO: | CANCELED
2614 To make sure you are using the correct keyword, type `#+' into the
2615 buffer and then use `M-<TAB>' completion.
2617    Remember that the keywords after the vertical bar (or the last
2618 keyword if no bar is there) must always mean that the item is DONE
2619 (although you may use a different word).  After changing one of these
2620 lines, use `C-c C-c' with the cursor still in the line to make the
2621 changes known to Org-mode(1).
2623    ---------- Footnotes ----------
2625    (1) Org-mode parses these lines only when Org-mode is activated
2626 after visiting a file.  `C-c C-c' with the cursor in a line starting
2627 with `#+' is simply restarting Org-mode for the current buffer.
2629 \x1f
2630 File: org,  Node: Faces for TODO keywords,  Prev: Per-file keywords,  Up: TODO extensions
2632 5.2.6 Faces for TODO keywords
2633 -----------------------------
2635 Org-mode highlights TODO keywords with special faces: `org-todo' for
2636 keywords indicating that an item still has to be acted upon, and
2637 `org-done' for keywords indicating that an item is finished.  If you
2638 are using more than 2 different states, you might want to use special
2639 faces for some of them.  This can be done using the variable
2640 `org-todo-keyword-faces'.  For example:
2642      (setq org-todo-keyword-faces
2643            '(("TODO"      . org-warning)
2644              ("DEFERRED"  . shadow)
2645              ("CANCELED"  . (:foreground "blue" :weight bold))))
2647 \x1f
2648 File: org,  Node: Progress logging,  Next: Priorities,  Prev: TODO extensions,  Up: TODO items
2650 5.3 Progress Logging
2651 ====================
2653 Org-mode can automatically record a time stamp and even a note when you
2654 mark a TODO item as DONE, or even each time you change the state of a
2655 TODO item.
2657 * Menu:
2659 * Closing items::               When was this entry marked DONE?
2660 * Tracking TODO state changes::  When did the status change?
2662 \x1f
2663 File: org,  Node: Closing items,  Next: Tracking TODO state changes,  Prev: Progress logging,  Up: Progress logging
2665 5.3.1 Closing items
2666 -------------------
2668 If you want to keep track of _when_ a certain TODO item was finished,
2669 turn on logging with(1)
2671      (setq org-log-done t)
2673 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2674 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2675 [timestamp]' will be inserted just after the headline.  If you turn the
2676 entry back into a TODO item through further state cycling, that line
2677 will be removed again.  In the timeline (*note Timeline::) and in the
2678 agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
2679 display the TODO items closed on each day, giving you an overview of
2680 what has been done on a day.  If you want to record a note along with
2681 the timestamp, use(2)
2683      (setq org-log-done '(done))
2685    ---------- Footnotes ----------
2687    (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
2688 You may also set this for the scope of a subtree by adding a
2689 `:LOGGING:' property with one or more of the logging keywords in the
2690 value.
2692    (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
2694 \x1f
2695 File: org,  Node: Tracking TODO state changes,  Prev: Closing items,  Up: Progress logging
2697 5.3.2 Tracking TODO state changes
2698 ---------------------------------
2700 When TODO keywords are used as workflow states (*note Workflow
2701 states::), you might want to keep track of when a state change occurred
2702 and record a note about this change.  With the setting(1)
2704      (setq org-log-done '(state))
2706 each state change will prompt you for a note that will be attached to
2707 the current headline.  If you press `C-c C-c' without typing anything
2708 into the note buffer, only the time of the state change will be noted.
2709 Very likely you do not want this verbose tracking all the time, so it
2710 is probably better to configure this behavior with in-buffer options.
2711 For example, if you are tracking purchases, put these into a separate
2712 file that contains:
2714      #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
2715      #+STARTUP: lognotestate
2717    If you only need to take a note for some of the states, mark those
2718 states with an additional `@', like this:
2720      #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
2721      #+STARTUP: lognotestate
2723    ---------- Footnotes ----------
2725    (1) The corresponding in-buffer setting is: `#+STARTUP:
2726 lognotestate'.
2728 \x1f
2729 File: org,  Node: Priorities,  Next: Breaking down tasks,  Prev: Progress logging,  Up: TODO items
2731 5.4 Priorities
2732 ==============
2734 If you use Org-mode extensively, you may end up enough TODO items that
2735 it starts to make sense to prioritize them.  Prioritizing can be done by
2736 placing a _priority cookie_ into the headline of a TODO item, like this
2738      *** TODO [#A] Write letter to Sam Fortune
2740 By default, Org-mode supports three priorities: `A', `B', and `C'.  `A'
2741 is the highest priority.  An entry without a cookie is treated as
2742 priority `B'.  Priorities make a difference only in the agenda (*note
2743 Weekly/Daily agenda::); outside the agenda, they have no inherent
2744 meaning to Org-mode.
2746    Priorities can be attached to any outline tree entries; they do not
2747 need to be TODO items.
2749 `C-c ,'
2750      Set the priority of the current headline.  The command prompts for
2751      a priority character `A', `B' or `C'.  When you press <SPC>
2752      instead, the priority cookie is removed from the headline.  The
2753      priorities can also be changed "remotely" from the timeline and
2754      agenda buffer with the `,' command (*note Agenda commands::).  
2756 `S-<up>'
2757 `S-<down>'
2758      Increase/decrease priority of current headline(1).  Note that these
2759      keys are also used to modify time stamps (*note Creating
2760      timestamps::).  Furthermore, these keys are also used by CUA-mode
2761      (*note Conflicts::).
2763    You can change the range of allowed priorities by setting the
2764 variables `org-highest-priority', `org-lowest-priority', and
2765 `org-default-priority'.  For an individual buffer, you may set these
2766 values (highest, lowest, default) like this (please make sure that the
2767 highest priority is earlier in the alphabet than the lowest priority):
2769      #+PRIORITIES: A C B
2771    ---------- Footnotes ----------
2773    (1) See also the option `org-priority-start-cycle-with-default''.
2775 \x1f
2776 File: org,  Node: Breaking down tasks,  Next: Checkboxes,  Prev: Priorities,  Up: TODO items
2778 5.5 Breaking tasks down into subtasks
2779 =====================================
2781 It is often advisable to break down large tasks into smaller, manageable
2782 subtasks.  You can do this by creating an outline tree below a TODO
2783 item, with detailed subtasks on the tree(1).  Another possibility is
2784 the use of checkboxes to identify (a hierarchy of) a large number of
2785 subtasks (*note Checkboxes::).
2787    ---------- Footnotes ----------
2789    (1) To keep subtasks out of the global TODO list, see the
2790 `org-agenda-todo-list-sublevels'.
2792 \x1f
2793 File: org,  Node: Checkboxes,  Prev: Breaking down tasks,  Up: TODO items
2795 5.6 Checkboxes
2796 ==============
2798 Every item in a plain list (*note Plain lists::) can be made into a
2799 checkbox by starting it with the string `[ ]'.  This feature is similar
2800 to TODO items (*note TODO items::), but is more lightweight.
2801 Checkboxes are not included into the global TODO list, so they are often
2802 great to split a task into a number of simple steps.  Or you can use
2803 them in a shopping list.  To toggle a checkbox, use `C-c C-c', or use
2804 the mouse (thanks to Piotr Zielinski's `org-mouse.el').
2806    Here is an example of a checkbox list.
2808      * TODO Organize party [2/4]
2809        - [-] call people [1/3]
2810          - [ ] Peter
2811          - [X] Sarah
2812          - [ ] Sam
2813        - [X] order food
2814        - [ ] think about what music to play
2815        - [X] talk to the neighbors
2817    Checkboxes work hierarchically, so if a checkbox item has children
2818 that are checkboxes, toggling one of the children checkboxes will make
2819 the parent checkbox reflect if none, some, or all o the children are
2820 checked.
2822    The `[2/4]' and `[1/3]' in the first and second line are cookies
2823 indicating how many checkboxes present in this entry have been checked
2824 off, and the total number of checkboxes are present.  This can give you
2825 an idea on how many checkboxes remain, even without opening a folded
2826 entry.  The cookies can be placed into a headline or into (the first
2827 line of) a plain list item. Each cookie covers all checkboxes
2828 structurally below the headline/item on which the cookie appear.  You
2829 have to insert the cookie yourself by typing either `[/]' or `[%]'.
2830 With `[/]' you get an `n out of m' result, as in the examples above.
2831 With `[%]' you get information about the percentage of checkboxes
2832 checked (in the above example, this would be `[50%]' and `[33%]',
2833 respectively).
2835 The following commands work with checkboxes:
2837 `C-c C-c'
2838      Toggle checkbox at point.  With prefix argument, set it to `[-]',
2839      which is considered to be an intermediate state.  
2841 `C-c C-x C-b'
2842      Toggle checkbox at point.
2843         - If there is an active region, toggle the first checkbox in
2844           the region and set all remaining boxes to the same status as
2845           the first.  If you want to toggle all boxes in the region
2846           independently, use a prefix argument.
2848         - If the cursor is in a headline, toggle checkboxes in the
2849           region between this headline and the next (so _not_ the
2850           entire subtree).
2852         - If there is no active region, just toggle the checkbox at
2853           point.
2854      
2855 `M-S-<RET>'
2856      Insert a new item with a checkbox.  This works only if the cursor
2857      is already in a plain list item (*note Plain lists::).  
2859 `C-c #'
2860      Update the checkbox statistics in the current outline entry.  When
2861      called with a `C-u' prefix, update the entire file.  Checkbox
2862      statistic cookies are updated automatically if you toggle
2863      checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'.  If
2864      you delete boxes or add/change them by hand, use this command to
2865      get things back into synch.  Or simply toggle any checkbox twice
2866      with `C-c C-c'.
2868 \x1f
2869 File: org,  Node: Tags,  Next: Properties and columns,  Prev: TODO items,  Up: Top
2871 6 Tags
2872 ******
2874 An excellent way to implement labels and contexts for cross-correlating
2875 information is to assign tags to headlines.  Org-mode has extensive
2876 support for tags.
2878    Every headline can contain a list of tags; they occur at the end of
2879 the headline.  Tags are normal words containing letters, numbers, `_',
2880 and `@'.  Tags must be preceded and followed by a single colon, e.g.,
2881 `:WORK:'.  Several tags can be specified, as in `:work:URGENT:'.
2883 * Menu:
2885 * Tag inheritance::             Tags use the tree structure of the outline
2886 * Setting tags::                How to assign tags to a headline
2887 * Tag searches::                Searching for combinations of tags
2889 \x1f
2890 File: org,  Node: Tag inheritance,  Next: Setting tags,  Prev: Tags,  Up: Tags
2892 6.1 Tag inheritance
2893 ===================
2895 Tags make use of the hierarchical structure of outline trees.  If a
2896 heading has a certain tag, all subheadings will inherit the tag as
2897 well.  For example, in the list
2899      * Meeting with the French group      :work:
2900      ** Summary by Frank                  :boss:notes:
2901      *** TODO Prepare slides for him      :action:
2903 the final heading will have the tags `:work:', `:boss:', `:notes:', and
2904 `:action:' even though the final heading is not explicitly marked with
2905 those tags.  When executing tag searches and Org-mode finds that a
2906 certain headline matches the search criterion, it will not check any
2907 sublevel headline, assuming that these also match and that the list of
2908 matches could become very long because of that.  If you do want the
2909 subevels be tested and listed as well, you may set the variable
2910 `org-tags-match-list-sublevels'.  To turn off tag inheritance entirely,
2911 use the variable `org-use-tag-inheritance'.
2913 \x1f
2914 File: org,  Node: Setting tags,  Next: Tag searches,  Prev: Tag inheritance,  Up: Tags
2916 6.2 Setting tags
2917 ================
2919 Tags can simply be typed into the buffer at the end of a headline.
2920 After a colon, `M-<TAB>' offers completion on tags.  There is also a
2921 special command for inserting tags:
2923 `C-c C-c'
2924      Enter new tags for the current headline.  Org-mode will either
2925      offer completion or a special single-key interface for setting
2926      tags, see below.  After pressing <RET>, the tags will be inserted
2927      and aligned to `org-tags-column'.  When called with a `C-u'
2928      prefix, all tags in the current buffer will be aligned to that
2929      column, just to make things look nice.  TAGS are automatically
2930      realigned after promotion, demotion, and TODO state changes (*note
2931      TODO basics::).
2933    Org will support tag insertion based on a _list of tags_.  By
2934 default this list is constructed dynamically, containing all tags
2935 currently used in the buffer.  You may also globally specify a hard list
2936 of tags with the variable `org-tag-alist'.  Finally you can set the
2937 default tags for a given file with lines like
2939      #+TAGS: @work @home @tennisclub
2940      #+TAGS: laptop car pc sailboat
2942    If you have globally defined your preferred set of tags using the
2943 variable `org-tag-alist', but would like to use a dynamic tag list in a
2944 specific file, add an empty TAGS option line to that file:
2946      #+TAGS:
2948    The default support method for entering tags is minibuffer
2949 completion.  However, Org-mode also implements a much better method:
2950 _fast tag selection_.  This method allows to select and deselect tags
2951 with a single key per tag.  To function efficiently, you should assign
2952 unique keys to most tags.  This can be done globally with
2954      (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" . ?l)))
2956 or on a per-file basis with
2958      #+TAGS: @work(w)  @home(h)  @tennisclub(t)  laptop(l)  pc(p)
2960 You can also group together tags that are mutually exclusive.  With
2961 curly braces(1)
2963      #+TAGS: { @work(w)  @home(h)  @tennisclub(t) }  laptop(l)  pc(p)
2965 you indicate that at most one of `@work', `@home', and `@tennisclub'
2966 should be selected.
2968 Don't forget to press `C-c C-c' with the cursor in one of these lines
2969 to activate any changes.
2971    If at least one tag has a selection key, pressing `C-c C-c' will
2972 automatically present you with a special interface, listing inherited
2973 tags, the tags of the current headline, and a list of all legal tags
2974 with corresponding keys(2).  In this interface, you can use the
2975 following keys:
2977 `a-z...'
2978      Pressing keys assigned to tags will add or remove them from the
2979      list of tags in the current line.  Selecting a tag in a group of
2980      mutually exclusive tags will turn off any other tags from that
2981      group.  
2983 `<TAB>'
2984      Enter a tag in the minibuffer, even if the tag is not in the
2985      predefined list.  You will be able to complete on all tags present
2986      in the buffer.  
2988 `<SPC>'
2989      Clear all tags for this line.  
2991 `<RET>'
2992      Accept the modified set.
2994 `C-g'
2995      Abort without installing changes.
2998      If `q' is not assigned to a tag, it aborts like `C-g'.
3001      Turn off groups of mutually exclusive tags.  Use this to (as an
3002      exception) assign several tags from such a group.
3004 `C-c'
3005      Toggle auto-exit after the next change (see below).  If you are
3006      using expert mode, the first `C-c' will display the selection
3007      window.
3009 This method lets you assign tags to a headline with very few keys.  With
3010 the above setup, you could clear the current tags and set `@home',
3011 `laptop' and `pc' tags with just the following keys: `C-c C-c <SPC> h l
3012 p <RET>'.  Switching from `@home' to `@work' would be done with `C-c
3013 C-c w <RET>' or alternatively with `C-c C-c C-c w'.  Adding the
3014 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
3015 <RET> <RET>'.
3017    If you find that most of the time, you need only a single keypress to
3018 modify your list of tags, set the variable
3019 `org-fast-tag-selection-single-key'.  Then you no longer have to press
3020 <RET> to exit fast tag selection - it will immediately exit after the
3021 first change.  If you then occasionally need more keys, press `C-c' to
3022 turn off auto-exit for the current tag selection process (in effect:
3023 start selection with `C-c C-c C-c' instead of `C-c C-c').  If you set
3024 the variable to the value `expert', the special window is not even
3025 shown for single-key tag selection, it comes up only when you press an
3026 extra `C-c'.
3028    ---------- Footnotes ----------
3030    (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
3031 respectively.  Several groups are allowed.
3033    (2) Keys will automatically be assigned to tags which have no
3034 configured keys.
3036 \x1f
3037 File: org,  Node: Tag searches,  Prev: Setting tags,  Up: Tags
3039 6.3 Tag searches
3040 ================
3042 Once a system of tags has been set up, it can be used to collect related
3043 information into special lists.
3045 `C-c \'
3046 `C-c / T'
3047      Create a sparse tree with all headlines matching a tags search.
3048      With a `C-u' prefix argument, ignore headlines that are not a TODO
3049      line.  
3051 `C-c a m'
3052      Create a global list of tag matches from all agenda files.  *Note
3053      Matching tags and properties::.  
3055 `C-c a M'
3056      Create a global list of tag matches from all agenda files, but
3057      check only TODO items and force checking subitems (see variable
3058      `org-tags-match-list-sublevels').
3060    A tags search string can use Boolean operators `&' for AND and `|'
3061 for OR.  `&' binds more strongly than `|'.  Parenthesis are currently
3062 not implemented.  A tag may also be preceded by `-', to select against
3063 it, and `+' is syntactic sugar for positive selection.  The AND
3064 operator `&' is optional when `+' or `-' is present.  Examples:
3066 `+work-boss'
3067      Select headlines tagged `:work:', but discard those also tagged
3068      `:boss:'.
3070 `work|laptop'
3071      Selects lines tagged `:work:' or `:laptop:'.
3073 `work|laptop&night'
3074      Like before, but require the `:laptop:' lines to be tagged also
3075      `:night:'.
3077    If you are using multi-state TODO keywords (*note TODO
3078 extensions::), it can be useful to also match on the TODO keyword.
3079 This can be done by adding a condition after a slash to a tags match.
3080 The syntax is similar to the tag matches, but should be applied with
3081 consideration: For example, a positive selection on several TODO
3082 keywords can not meaningfully be combined with boolean AND.  However,
3083 _negative selection_ combined with AND can be meaningful.  To make sure
3084 that only lines are checked that actually have any TODO keyword, use
3085 `C-c a M', or equivalently start the todo part after the slash with `!'.
3086 Examples:
3088 `work/WAITING'
3089      Select `:work:'-tagged TODO lines with the specific TODO keyword
3090      `WAITING'.
3092 `work/!-WAITING-NEXT'
3093      Select `:work:'-tagged TODO lines that are neither `WAITING' nor
3094      `NEXT'
3096 `work/+WAITING|+NEXT'
3097      Select `:work:'-tagged TODO lines that are either `WAITING' or
3098      `NEXT'.
3100    Any element of the tag/todo match can be a regular expression - in
3101 this case it must be enclosed in curly braces.  For example,
3102 `work+{^boss.*}' matches headlines that contain the tag `:work:' and
3103 any tag starting with `boss'.
3105    You can also require a headline to be of a certain level or
3106 category, by writing instead of any TAG an expression like `LEVEL=3' or
3107 `CATEGORY="work"', respectively.  For example, a search
3108 `+LEVEL=3+boss/-DONE' lists all level three headlines that have the tag
3109 `boss' and are _not_ marked with the todo keyword DONE.
3111 \x1f
3112 File: org,  Node: Properties and columns,  Next: Dates and times,  Prev: Tags,  Up: Top
3114 7 Properties and Columns
3115 ************************
3117 Properties are a set of key-value pairs associated with an entry.  There
3118 are two main applications for properties in Org-mode.  First, properties
3119 are like tags, but with a value.  Second, you can use properties to
3120 implement (very basic) database capabilities in an Org-mode buffer.  For
3121 an example of the first application, imagine maintaining a file where
3122 you document bugs and plan releases of a piece of software.  Instead of
3123 using tags like `:release_1:', `:release_2:', one can use a property,
3124 say `:Release:', that in different subtrees has different values, such
3125 as `1.0' or `2.0'.  For an example of the second application of
3126 properties, imagine keeping track of one's music CD's, where properties
3127 could be things such as the album artist, date of release, number of
3128 tracks, and so on.
3130    Properties can be conveniently edited and viewed in column view
3131 (*note Column view::).
3133    Properties are like tags, but with a value.  For example, in a file
3134 where you document bugs and plan releases of a piece of software,
3135 instead of using tags like `:release_1:', `:release_2:', it can be more
3136 efficient to use a property `:Release:' with a value `1.0' or `2.0'.
3137 Second, you can use properties to implement (very basic) database
3138 capabilities in an Org-mode buffer, for example to create a list of
3139 Music CD's you own.  You can edit and view properties conveniently in
3140 column view (*note Column view::).
3142 * Menu:
3144 * Property syntax::             How properties are spelled out
3145 * Special properties::          Access to other Org-mode features
3146 * Property searches::           Matching property values
3147 * Property inheritance::        Passing values down the tree
3148 * Column view::                 Tabular viewing and editing
3149 * Property API::                Properties for Lisp programmers
3151 \x1f
3152 File: org,  Node: Property syntax,  Next: Special properties,  Prev: Properties and columns,  Up: Properties and columns
3154 7.1 Property Syntax
3155 ===================
3157 Properties are key-value pairs.  They need to be inserted into a special
3158 drawer (*note Drawers::) with the name `PROPERTIES'.  Each property is
3159 specified on a single line, with the key (surrounded by colons) first,
3160 and the value after it.  Here is an example:
3162      * CD collection
3163      ** Classic
3164      *** Goldberg Variations
3165          :PROPERTIES:
3166          :Title:     Goldberg Variations
3167          :Composer:  J.S. Bach
3168          :Artist:    Glen Gould
3169          :Publisher: Deutsche Grammphon
3170          :NDisks:    1
3171          :END:
3173    You may define the allowed values for a particular property `:Xyz:'
3174 by setting a property `:Xyz_ALL:'.  This special property is
3175 _inherited_, so if you set it in a level 1 entry, it will apply to the
3176 entire tree.  When allowed values are defined, setting the
3177 corresponding property becomes easier and is less prone to typing
3178 errors.  For the example with the CD collection, we can predefine
3179 publishers and the number of disks in a box like this:
3181      * CD collection
3182        :PROPERTIES:
3183        :NDisks_ALL:  1 2 3 4
3184        :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
3185        :END:
3187    If you want to set properties that can be inherited by any entry in a
3188 file, use a line like
3190      #+PROPERTY: NDisks_ALL 1 2 3 4
3192    Property values set with the global variable `org-global-properties'
3193 can be inherited by all entries in all Org-mode files.
3195 The following commands help to work with properties:
3197 `M-<TAB>'
3198      After an initial colon in a line, complete property keys.  All
3199      keys used in the current file will be offered as possible
3200      completions.  
3202 `C-c C-x p'
3203      Set a property.  This prompts for a property name and a value.  If
3204      necessary, the property drawer is created as well.
3206 `M-x org-insert-property-drawer'
3207      Insert a property drawer into the current entry.  The drawer will
3208      be inserted early in the entry, but after the lines with planning
3209      information like deadlines.  
3211 `C-c C-c'
3212      With the cursor in a property drawer, this executes property
3213      commands.
3215 `C-c C-c s'
3216      Set a property in the current entry.  Both the property and the
3217      value can be inserted using completion.  
3219 `S-<left>/<right>'
3220      Switch property at point to the next/previous allowed value.
3222 `C-c C-c d'
3223      Remove a property from the current entry.
3225 `C-c C-c D'
3226      Globally remove a property, from all entries in the current file.
3228 `C-c C-c c'
3229      Compute the property at point, using the operator and scope from
3230      the nearest column format definition.
3232 \x1f
3233 File: org,  Node: Special properties,  Next: Property searches,  Prev: Property syntax,  Up: Properties and columns
3235 7.2 Special Properties
3236 ======================
3238 Special properties provide alternative access method to Org-mode
3239 features discussed in the previous chapters, like the TODO state or the
3240 priority of an entry.  This interface exists so that you can include
3241 these states into columns view (*note Column view::), or to use them in
3242 queries.  The following property names are special and should not be
3243 used as keys in the properties drawer:
3245      TODO         The TODO keyword of the entry.
3246      TAGS         The tags defined directly in the headline.
3247      ALLTAGS      All tags, including inherited ones.
3248      PRIORITY     The priority of the entry, a string with a single letter.
3249      DEADLINE     The deadline time string, without the angular brackets.
3250      SCHEDULED    The scheduling time stamp, without the angular brackets.
3251      TIMESTAMP    The first keyword-less time stamp in the entry.
3252      TIMESTAMP_IA The first inactive time stamp in the entry.
3253      CLOCKSUM     The sum of CLOCK intervals in the subtree.  `org-clock-sum'
3254                   must be run first to compute the values.
3256 \x1f
3257 File: org,  Node: Property searches,  Next: Property inheritance,  Prev: Special properties,  Up: Properties and columns
3259 7.3 Property searches
3260 =====================
3262 To create sparse trees and special lists with selection based on
3263 properties, the same commands are used as for tag searches (*note Tag
3264 searches::), and the same logic applies.  For example, a search string
3266      +work-boss+PRIORITY="A"+Coffee="unlimited"+With={Sarah\|Denny}
3268 finds entries tagged `:work:' but not `:boss:', which also have a
3269 priority value `A', a `:Coffee:' property with the value `unlimited',
3270 and a `:With:' property that is matched by the regular expression
3271 `Sarah\|Denny'.
3273    You can configure Org-mode to use property inheritance during a
3274 search, see *Note Property inheritance:: for details.
3276    There is also a special command for creating sparse trees based on a
3277 single property:
3279 `C-c / p'
3280      Create a sparse tree based on the value of a property.  This first
3281      prompts for the name of a property, and then for a value.  A
3282      sparse tree is created with all entries that define this property
3283      with the given value.  If you enclose the value into curly braces,
3284      it is interpreted as a regular expression and matched against the
3285      property values.
3287 \x1f
3288 File: org,  Node: Property inheritance,  Next: Column view,  Prev: Property searches,  Up: Properties and columns
3290 7.4 Property Inheritance
3291 ========================
3293 The outline structure of Org-mode documents lends itself for an
3294 inheritance model of properties: If the parent in a tree has a certain
3295 property, the children can inherit this property.  Org-mode does not
3296 turn this on by default, because it can slow down property searches
3297 significantly and is often not needed.  However, if you find inheritance
3298 useful, you can turn it on by setting the variable
3299 `org-use-property-inheritance'.  It may be set to `t', to make all
3300 properties inherited from the parent, or to a list of properties that
3301 should be inherited.
3303    Org-mode has a few properties for which inheritance is hard-coded, at
3304 least for the special applications for which they are used:
3306 `COLUMNS'
3307      The `:COLUMNS:' property defines the format of column view (*note
3308      Column view::).  It is inherited in the sense that the level where
3309      a `:COLUMNS:' property is defined is used as the starting point
3310      for a column view table, independently of the location in the
3311      subtree from where columns view is turned on.
3313 `CATEGORY'
3314      For agenda view, a category set through a `:CATEGORY:' property
3315      applies to the entire subtree.
3317 `ARCHIVE'
3318      For archiving, the `:ARCHIVE:' property may define the archive
3319      location for the entire subtree (*note Moving subtrees::).
3321 \x1f
3322 File: org,  Node: Column view,  Next: Property API,  Prev: Property inheritance,  Up: Properties and columns
3324 7.5 Column View
3325 ===============
3327 A great way to view and edit properties in an outline tree is _column
3328 view_.  In column view, each outline item is turned into a table row.
3329 Columns in this table provide access to properties of the entries.
3330 Org-mode implements columns by overlaying a tabular structure over the
3331 headline of each item.  While the headlines have been turned into a
3332 table row, you can still change the visibility of the outline tree.
3333 For example, you get a compact table by switching to CONTENTS view
3334 (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
3335 can still open, read, and edit the entry below each headline.  Or, you
3336 can switch to column view after executing a sparse tree command and in
3337 this way get a table only for the selected items.  Column view also
3338 works in agenda buffers (*note Agenda views::) where queries have
3339 collected selected items, possibly from a number of files.
3341 * Menu:
3343 * Defining columns::            The COLUMNS format property
3344 * Using column view::           How to create and use column view
3345 * Capturing Column View::       A dynamic block for column view
3347 \x1f
3348 File: org,  Node: Defining columns,  Next: Using column view,  Prev: Column view,  Up: Column view
3350 7.5.1 Defining Columns
3351 ----------------------
3353 Setting up a column view first requires defining the columns.  This is
3354 done by defining a column format line.
3356 * Menu:
3358 * Scope of column definitions::  Where defined, where valid?
3359 * Column attributes::           Appearance and content of a column
3361 \x1f
3362 File: org,  Node: Scope of column definitions,  Next: Column attributes,  Prev: Defining columns,  Up: Defining columns
3364 7.5.1.1 Scope of column definitions
3365 ...................................
3367 To define a column format for an entire file, use a line like
3369      #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3371    To specify a format that only applies to a specific tree, add a
3372 `:COLUMNS:' property to the top node of that tree, for example:
3374      ** Top node for columns view
3375         :PROPERTIES:
3376         :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
3377         :END:
3379    If a `:COLUMNS:' property is present in an entry, it defines columns
3380 for the entry itself, and for the entire subtree below it.  Since the
3381 column definition is part of the hierarchical structure of the document,
3382 you can define columns on level 1 that are general enough for all
3383 sublevels, and more specific columns further down, when you edit a
3384 deeper part of the tree.
3386 \x1f
3387 File: org,  Node: Column attributes,  Prev: Scope of column definitions,  Up: Defining columns
3389 7.5.1.2 Column attributes
3390 .........................
3392 A column definition sets the attributes of a column.  The general
3393 definition looks like this:
3395       %[width]property[(title)][{summary-type}]
3397 Except for the percent sign and the property name, all items are
3398 optional.  The individual parts have the following meaning:
3400      width           An integer specifying the width of the column in characters.
3401                      If omitted, the width will be determined automatically.
3402      property        The property that should be edited in this column.
3403      (title)         The header text for the column. If omitted, the
3404                      property name is used.
3405      {summary-type}  The summary type.  If specified, the column values for
3406                      parent nodes are computed from the children.
3407                      Supported summary types are:
3408                      {+}       Sum numbers in this column.
3409                      {+;%.1f}  Like `+', but format result with `%.1f'.
3410                      {$}       Currency, short for `+;%.2f'.
3411                      {:}       Sum times, HH:MM:SS, plain numbers are hours.
3412                      {X}       Checkbox status, [X] if all children are [X].
3414 Here is an example for a complete columns definition, along with allowed
3415 values.
3417      :COLUMNS:  %20ITEM %9Approved(Approved?){X} %Owner %11Status \(1)
3418                         %10Time_Estimate{:} %CLOCKSUM
3419      :Owner_ALL:    Tammy Mark Karl Lisa Don
3420      :Status_ALL:   "In progress" "Not started yet" "Finished" ""
3421      :Approved_ALL: "[ ]" "[X]"
3423    The first column, `%25ITEM', means the first 25 characters of the
3424 item itself, i.e. of the headline.  You probably always should start the
3425 column definition with the ITEM specifier.  The other specifiers create
3426 columns `Owner' with a list of names as allowed values, for `Status'
3427 with four different possible values, and for a checkbox field
3428 `Approved'.  When no width is given after the `%' character, the column
3429 will be exactly as wide as it needs to be in order to fully display all
3430 values.  The `Approved' column does have a modified title (`Approved?',
3431 with a question mark).  Summaries will be created for the
3432 `Time_Estimate' column by adding time duration expressions like HH:MM,
3433 and for the `Approved' column, by providing an `[X]' status if all
3434 children have been checked.  The `CLOCKSUM' column is special, it lists
3435 the sum of CLOCK intervals in the subtree.
3437    ---------- Footnotes ----------
3439    (1) Please note that the COLUMNS definition must be on a single line
3440 - it is wrapped here only because of formatting constraints.
3442 \x1f
3443 File: org,  Node: Using column view,  Next: Capturing Column View,  Prev: Defining columns,  Up: Column view
3445 7.5.2 Using Column View
3446 -----------------------
3448 Turning column view on and off
3449 ..............................
3451 `C-c C-x C-c'
3452      Create the column view for the local environment.  This command
3453      searches the hierarchy, up from point, for a `:COLUMNS:' property
3454      that defines a format.  When one is found, the column view table
3455      is established for the entire tree, starting from the entry that
3456      contains the `:COLUMNS:' property.  If none is found, the format
3457      is taken from the `#+COLUMNS' line or from the variable
3458      `org-columns-default-format', and column view is established for
3459      the current entry and its subtree.  
3462      Recreate the column view, to included hanges happening in the
3463      buffer.  
3466      Same as `r'.  
3469      Exit column view.
3471 Editing values
3472 ..............
3474 `<left> <right> <up> <down>'
3475      Move through the column view from field to field.  
3477 `S-<left>/<right>'
3478      Switch to the next/previous allowed value of the field.  For this,
3479      you have to have specified allowed values for a property.  
3481 `n / p'
3482      Same as `S-<left>/<right>' 
3485      Edit the property at point.  For the special properties, this will
3486      invoke the same interface that you normally use to change that
3487      property.  For example, when editing a TAGS property, the tag
3488      completion or fast selection interface will pop up.  
3490 `C-c C-c'
3491      When there is a checkbox at point, toggle it.  
3494      View the full value of this property.  This is useful if the width
3495      of the column is smaller than that of the value.  
3498      Edit the list of allowed values for this property.  If the list is
3499      found in the hierarchy, the modified values is stored there.  If
3500      no list is found, the new value is stored in the first entry that
3501      is part of the current column view.
3503 Modifying the table structure
3504 .............................
3506 `< / >'
3507      Make the column narrower/wider by one character.  
3509 `S-M-<right>'
3510      Insert a new column, to the right of the current column.  
3512 `S-M-<left>'
3513      Delete the current column.
3515 \x1f
3516 File: org,  Node: Capturing Column View,  Prev: Using column view,  Up: Column view
3518 7.5.3 Capturing Column View
3519 ---------------------------
3521 Since column view is just an overlay over a buffer, it cannot be
3522 exported or printed directly.  If you want to capture a column view, use
3523 the dynamic block (*note Dynamic blocks::).  The frame of this block
3524 looks like this:
3526      * The column view
3527      #+BEGIN: columnview :hlines 1 :id "label"
3529      #+END:
3531 This dynamic block has the following parameters:
3533 `:id'
3534      This is most important parameter.  Column view is a feature that is
3535      often localized to a certain (sub)tree, and the capture block
3536      might be in a different location in the file.  To identify the
3537      tree whose view to capture, you can use 3 values:
3538           local     use the tree in which the capture block is located
3539           global    make a global view, including all headings in the file
3540           "label"   call column view in the tree that has and `:ID:'
3541                     property with the value label
3543 `:hlines'
3544      When `t', insert a hline after every line.  When a number N, insert
3545      a hline before each headline with level `<= N'.
3547 `:vlines'
3548      When set to `t', enforce column groups to get vertical lines.
3550 The following commands insert or update the dynamic block:
3552 `C-c C-x r'
3553      Insert a dynamic block capturing a column view.  You will be
3554      prompted for the scope or id of the view.  
3556 `C-c C-c'
3557 `C-c C-x C-u'
3558      Update dynamical block at point.  The cursor needs to be in the
3559      `#+BEGIN' line of the dynamic block.  
3561 `C-u C-c C-x C-u'
3562      Update all dynamic blocks (*note Dynamic blocks::).  This is
3563      useful if you have several clocktable blocks in a buffer.
3565 \x1f
3566 File: org,  Node: Property API,  Prev: Column view,  Up: Properties and columns
3568 7.6 The Property API
3569 ====================
3571 There is a full API for accessing and changing properties.  This API can
3572 be used by Emacs Lisp programs to work with properties and to implement
3573 features based on them.  For more information see *Note Using the
3574 property API::.
3576 \x1f
3577 File: org,  Node: Dates and times,  Next: Remember,  Prev: Properties and columns,  Up: Top
3579 8 Dates and Times
3580 *****************
3582 To assist project planning, TODO items can be labeled with a date and/or
3583 a time.  The specially formatted string carrying the date and time
3584 information is called a _timestamp_ in Org-mode.  This may be a little
3585 confusing because timestamp is often used as indicating when something
3586 was created or last changed.  However, in Org-mode this term is used in
3587 a much wider sense.
3589 * Menu:
3591 * Time stamps::                 Assigning a time to a tree entry
3592 * Creating timestamps::         Commands which insert timestamps
3593 * Deadlines and scheduling::    Planning your work
3594 * Clocking work time::
3596 \x1f
3597 File: org,  Node: Time stamps,  Next: Creating timestamps,  Prev: Dates and times,  Up: Dates and times
3599 8.1 Time stamps, deadlines and scheduling
3600 =========================================
3602 A time stamp is a specification of a date (possibly with time or a range
3603 of times) in a special format, either `<2003-09-16 Tue>' or
3604 `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1).  A time
3605 stamp can appear anywhere in the headline or body of an org-tree entry.
3606 Its presence causes entries to be shown on specific dates in the agenda
3607 (*note Weekly/Daily agenda::).  We distinguish:
3609 PLAIN TIME STAMP; EVENT; APPOINTMENT
3610      A simple time stamp just assigns a date/time to an item.  This is
3611      just like writing down an appointment or event in a paper agenda.
3612      In the timeline and agenda displays, the headline of an entry
3613      associated with a plain time stamp will be shown exactly on that
3614      date.
3616           * Meet Peter at the movies <2006-11-01 Wed 19:15>
3617           * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
3619 TIME STAMP WITH REPEATER INTERVAL
3620      A time stamp may contain a _repeater interval_, indicating that it
3621      applies not only on the given date, but again and again after a
3622      certain interval of N days (d), weeks (w), months(m), or years(y).
3623      The following will show up in the agenda every Wednesday:
3625           * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
3627 DIARY-STYLE SEXP ENTRIES
3628      For more complex date specifications, Org-mode supports using the
3629      special sexp diary entries implemented in the Emacs calendar/diary
3630      package.  For example
3632           * The nerd meeting on every 2nd Thursday of the month
3633             <%%(diary-float t 4 2)>
3635 TIME/DATE RANGE
3636      Two time stamps connected by `--' denote a range.  The headline
3637      will be shown on the first and last day of the range, and on any
3638      dates that are displayed and fall in the range.  Here is an
3639      example:
3641           ** Meeting in Amsterdam
3642              <2004-08-23 Mon>--<2004-08-26 Thu>
3644 INACTIVE TIME STAMP
3645      Just like a plain time stamp, but with square brackets instead of
3646      angular ones.  These time stamps are inactive in the sense that
3647      they do _not_ trigger an entry to show up in the agenda.
3649           * Gillian comes late for the fifth time [2006-11-01 Wed]
3652    ---------- Footnotes ----------
3654    (1) This is the standard ISO date/time format.  To use an
3655 alternative format, see *Note Custom time format::.
3657 \x1f
3658 File: org,  Node: Creating timestamps,  Next: Deadlines and scheduling,  Prev: Time stamps,  Up: Dates and times
3660 8.2 Creating timestamps
3661 =======================
3663 For Org-mode to recognize time stamps, they need to be in the specific
3664 format.  All commands listed below produce time stamps in the correct
3665 format.
3667 `C-c .'
3668      Prompt for a date and insert a corresponding time stamp.  When the
3669      cursor is at a previously used time stamp, it is updated to NOW.
3670      When this command is used twice in succession, a time range is
3671      inserted.  
3673 `C-u C-c .'
3674      Like `C-c .', but use the alternative format which contains date
3675      and time.  The default time can be rounded to multiples of 5
3676      minutes, see the option `org-time-stamp-rounding-minutes'.  
3678 `C-c !'
3679      Like `C-c .', but insert an inactive time stamp that will not cause
3680      an agenda entry.  
3682 `C-c <'
3683      Insert a time stamp corresponding to the cursor date in the
3684      Calendar.  
3686 `C-c >'
3687      Access the Emacs calendar for the current date.  If there is a
3688      timestamp in the current line, goto the corresponding date instead.  
3690 `C-c C-o'
3691      Access the agenda for the date given by the time stamp or -range at
3692      point (*note Weekly/Daily agenda::).  
3694 `S-<left>'
3695 `S-<right>'
3696      Change date at cursor by one day.  These key bindings conflict with
3697      CUA-mode (*note Conflicts::).  
3699 `S-<up>'
3700 `S-<down>'
3701      Change the item under the cursor in a timestamp.  The cursor can
3702      be on a year, month, day, hour or minute.  Note that if the cursor
3703      is in a headline and not at a time stamp, these same keys modify
3704      the priority of an item.  (*note Priorities::). The key bindings
3705      also conflict with CUA-mode (*note Conflicts::).  
3707 `C-c C-y'
3708      Evaluate a time range by computing the difference between start and
3709      end.  With prefix arg, insert result after the time range (in a
3710      table: into the following column).
3712 * Menu:
3714 * The date/time prompt::        How org-mode helps you entering date and time
3715 * Custom time format::          Making dates look differently
3717 \x1f
3718 File: org,  Node: The date/time prompt,  Next: Custom time format,  Prev: Creating timestamps,  Up: Creating timestamps
3720 8.2.1 The date/time prompt
3721 --------------------------
3723 When Org-mode prompts for a date/time, the default is shown as an ISO
3724 date, and the prompt therefore seems to ask for an ISO date.  But it
3725 will in fact accept any string containing some date and/or time
3726 information, and it is really smart about interpreting your input.  You
3727 can, for example, use `C-y' to paste a (possibly multi-line) string
3728 copied from an email message.  Org-mode will find whatever information
3729 is in there and derive anything you have not specified from the
3730 _default date and time_.  The default is usually the current date and
3731 time, but when modifying an existing time stamp, or when entering the
3732 second stamp of a range, it is taken from the stamp in the buffer.
3733 When filling in information, Org-mode assumes that most of the time you
3734 will want to enter a date in the future: If you omit the month/year and
3735 the given day/month is before today, it will assume that you mean a
3736 future date(1).
3738    For example, lets assume that today is June 13, 2006.  Here is how
3739 various inputs will be interpreted, the items filled in by Org-mode are
3740 in bold.
3742      3-2-5         --> 2003-02-05
3743      14            --> 2006-06-14
3744      12            --> 2006-07-12
3745      Fri           --> nearest Friday (defaultdate or later)
3746      sep 15        --> 2006-11-15
3747      feb 15        --> 2007-02-15
3748      sep 12 9      --> 2009-09-12
3749      12:45         --> 2006-06-13 12:45
3750      22 sept 0:34  --> 2006-09-22 0:34
3752    Furthermore you can specify a relative date by giving, as the
3753 _first_ thing in the input: a plus/minus sign, a number and a letter
3754 [dwmy] to indicate change in days weeks, months, years.  With a single
3755 plus or minus, the date is always relative to today.  With a double
3756 plus or minus, it is relative to the default date.  If instead of a
3757 single letter, you use the abbreviation of day name, the date will be
3758 the nth such day.  E.g.
3760      +4d           --> four days from today
3761      +4            --> same as above
3762      +2w           --> two weeks from today
3763      ++5           --> five days from default date
3764      +2tue         --> second tuesday from now.
3766    The function understands English month and weekday abbreviations.  If
3767 you want to use unabbreviated names and/or other languages, configure
3768 the variables `parse-time-months' and `parse-time-weekdays'.
3770    Parallel to the minibuffer prompt, a calendar is popped up(2).  When
3771 you exit the date prompt, either by clicking on a date in the calendar,
3772 or by pressing <RET>, the date selected in the calendar will be
3773 combined with the information entered at the prompt.  You can control
3774 the calendar fully from the minibuffer:
3776      > / <          Scroll calendar forward/backward by one month.
3777      mouse-1        Select date by clicking on it.
3778      S-<right>/<left>     One day forward/backward.
3779      S-<down>/<up>     One week forward/backward.
3780      M-S-<right>/<left>   One month forward/backward.
3781      <RET>           Choose date in calendar.
3783    The actions of the date/time prompt may seem complex, but I asure you
3784 they will grow on you.  To help you understand what is going on, the
3785 current interpretation of your input will be displayed live in the
3786 minibuffer(3).
3788    ---------- Footnotes ----------
3790    (1) See the variable `org-read-date-prefer-future'.
3792    (2) If you don't need/want the calendar, configure the variable
3793 `org-popup-calendar-for-date-prompt'.
3795    (3) If you find this distracting, turn the display of with
3796 `org-read-date-display-live'.
3798 \x1f
3799 File: org,  Node: Custom time format,  Prev: The date/time prompt,  Up: Creating timestamps
3801 8.2.2 Custom time format
3802 ------------------------
3804 Org-mode uses the standard ISO notation for dates and times as it is
3805 defined in ISO 8601.  If you cannot get used to this and require another
3806 representation of date and time to keep you happy, you can get it by
3807 customizing the variables `org-display-custom-times' and
3808 `org-time-stamp-custom-formats'.
3810 `C-c C-x C-t'
3811      Toggle the display of custom formats for dates and times.
3813 Org-mode needs the default format for scanning, so the custom date/time
3814 format does not _replace_ the default format - instead it is put _over_
3815 the default format using text properties.  This has the following
3816 consequences:
3817    * You cannot place the cursor onto a time stamp anymore, only before
3818      or after.
3820    * The `S-<up>/<down>' keys can no longer be used to adjust each
3821      component of a time stamp.  If the cursor is at the beginning of
3822      the stamp, `S-<up>/<down>' will change the stamp by one day, just
3823      like `S-<left>/<right>'.  At the end of the stamp, the time will
3824      be changed by one minute.
3826    * If the time stamp contains a range of clock times or a repeater,
3827      these will not be overlayed, but remain in the buffer as they were.
3829    * When you delete a time stamp character-by-character, it will only
3830      disappear from the buffer after _all_ (invisible) characters
3831      belonging to the ISO timestamp have been removed.
3833    * If the custom time stamp format is longer than the default and you
3834      are using dates in tables, table alignment will be messed up.  If
3835      the custom format is shorter, things do work as expected.
3837 \x1f
3838 File: org,  Node: Deadlines and scheduling,  Next: Clocking work time,  Prev: Creating timestamps,  Up: Dates and times
3840 8.3 Deadlines and Scheduling
3841 ============================
3843 A time stamp may be preceded by special keywords to facilitate planning:
3845 DEADLINE
3846      Meaning: the task (most likely a TODO item, though not
3847      necessarily) is supposed to be finished on that date.
3849      On the deadline date, the task will be listed in the agenda.  In
3850      addition, the agenda for _today_ will carry a warning about the
3851      approaching or missed deadline, starting
3852      `org-deadline-warning-days' before the due date, and continuing
3853      until the entry is marked DONE.  An example:
3855           *** TODO write article about the Earth for the Guide
3856               The editor in charge is [[bbdb:Ford Prefect]]
3857               DEADLINE: <2004-02-29 Sun>
3859      You can specify a different lead time for warnings for a specific
3860      deadlines using the following syntax.  Here is an example with a
3861      warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
3863 SCHEDULED
3864      Meaning: you are planning to start working on that task on the
3865      given date.
3867      The headline will be listed under the given date(1).  In addition,
3868      a reminder that the scheduled date has passed will be present in
3869      the compilation for _today_, until the entry is marked DONE.
3870      I.e., the task will automatically be forwarded until completed.
3872           *** TODO Call Trillian for a date on New Years Eve.
3873               SCHEDULED: <2004-12-25 Sat>
3875      Important: Scheduling an item in Org-mode should not be understood
3876      in the same way that we understand scheduling a meeting.  Setting
3877      a date for a meeting is just a simple appointment, you should mark
3878      this entry with a simple plain time stamp, to get this item shown
3879      on the date where it applies.  This is a frequent
3880      mis-understanding from Org-users.  In Org-mode, scheduling means
3881      setting a date when you want to start working on an action item.
3883    You may use time stamps with repeaters in scheduling and deadline
3884 entries.  Org-mode will issue early and late warnings based on the
3885 assumption that the time stamp represents the nearest instance of the
3886 repeater.  However, the use of diary sexp entries like `<%%(diary-float
3887 t 42)>' in scheduling and deadline timestamps is limited.  Org-mode
3888 does not know enough about the internals of each sexp function to issue
3889 early and late warnings.  However, it will show the item on each day
3890 where the sexp entry matches.
3892 * Menu:
3894 * Inserting deadline/schedule::  Planning items
3895 * Repeated tasks::              Items that show up again and again
3897    ---------- Footnotes ----------
3899    (1) It will still be listed on that date after it has been marked
3900 DONE.  If you don't like this, set the variable
3901 `org-agenda-skip-scheduled-if-done'.
3903 \x1f
3904 File: org,  Node: Inserting deadline/schedule,  Next: Repeated tasks,  Prev: Deadlines and scheduling,  Up: Deadlines and scheduling
3906 8.3.1 Inserting deadline/schedule
3907 ---------------------------------
3909 The following commands allow to quickly insert a deadline or to schedule
3910 an item:
3912 `C-c C-d'
3913      Insert `DEADLINE' keyword along with a stamp.  The insertion will
3914      happen in the line directly following the headline.  When called
3915      with a prefix arg, an existing deadline will be removed from the
3916      entry.  
3918 `C-c / d'
3919      Create a sparse tree with all deadlines that are either past-due,
3920      or which will become due within `org-deadline-warning-days'.  With
3921      `C-u' prefix, show all deadlines in the file.  With a numeric
3922      prefix, check that many days.  For example, `C-1 C-c / d' shows
3923      all deadlines due tomorrow.  
3925 `C-c C-s'
3926      Insert `SCHEDULED' keyword along with a stamp.  The insertion will
3927      happen in the line directly following the headline.  Any CLOSED
3928      timestamp will be removed.  When called with a prefix argument,
3929      remove the scheduling date from the entry.
3931 \x1f
3932 File: org,  Node: Repeated tasks,  Prev: Inserting deadline/schedule,  Up: Deadlines and scheduling
3934 8.3.2 Repeated Tasks
3935 --------------------
3937 Some tasks need to be repeated again and again.  Org-mode helps to
3938 organize such tasks using a so-called repeater in a DEADLINE, SCHEDULED,
3939 or plain time stamp.  In the following example
3940      ** TODO Pay the rent
3941         DEADLINE: <2005-10-01 Sat +1m>
3942    the `+1m' is a repeater; the intended interpretation is that the
3943 task has a deadline on <2005-10-01> and repeats itself every (one) month
3944 starting from that time.
3946    Deadlines and scheduled items produce entries in the agenda when they
3947 are over-due, so it is important to be able to mark such an entry as
3948 completed once you have done so.  When you mark a DEADLINE or a SCHEDULE
3949 with the todo keyword DONE, it will no longer produce entries in the
3950 agenda.  The problem with this is, however, that then also the _next_
3951 instance of the repeated entry will not be active.  Org-mode deals with
3952 this in the following way: When you try to mark such an entry DONE
3953 (using `C-c C-t'), it will shift the base date of the repeating time
3954 stamp by the repeater interval, and immediately set the entry state
3955 back to TODO.  In the example above, setting the state to DONE would
3956 actually switch the date like this:
3958      ** TODO Pay the rent
3959         DEADLINE: <2005-11-01 Tue +1m>
3961    You will also be prompted for a note(1) that will be put under the
3962 DEADLINE line to keep a record that you actually acted on the previous
3963 instance of this deadline.
3965    As a consequence of shifting the base date, this entry will no
3966 longer be visible in the agenda when checking past dates, but all
3967 future instances will be visible.
3969    You may have both scheduling and deadline information for a specific
3970 task - just make sure that the repeater intervals on both are the same.
3972    ---------- Footnotes ----------
3974    (1) You can change this using the option `org-log-repeat', or the
3975 `#+STARTUP' options `logrepeat' and `nologrepeat'.
3977 \x1f
3978 File: org,  Node: Clocking work time,  Prev: Deadlines and scheduling,  Up: Dates and times
3980 8.4 Clocking work time
3981 ======================
3983 Org-mode allows you to clock the time you spent on specific tasks in a
3984 project.  When you start working on an item, you can start the clock.
3985 When you stop working on that task, or when you mark the task done, the
3986 clock is stopped and the corresponding time interval is recorded.  It
3987 also computes the total time spent on each subtree of a project.
3989 `C-c C-x C-i'
3990      Start the clock on the current item (clock-in).  This inserts the
3991      CLOCK keyword together with a timestamp.  If this is not the first
3992      clocking of this item, the multiple CLOCK lines will be wrapped
3993      into a `:CLOCK:' drawer (see also the variable
3994      `org-clock-into-drawer'.  
3996 `C-c C-x C-o'
3997      Stop the clock (clock-out).  The inserts another timestamp at the
3998      same location where the clock was last started.  It also directly
3999      computes the resulting time in inserts it after the time range as
4000      `=> HH:MM'.  See the variable `org-log-done' for the possibility to
4001      record an additional note together with the clock-out time
4002      stamp(1).  
4004 `C-c C-y'
4005      Recompute the time interval after changing one of the time stamps.
4006      This is only necessary if you edit the time stamps directly.  If
4007      you change them with `S-<cursor>' keys, the update is automatic.  
4009 `C-c C-t'
4010      Changing the TODO state of an item to DONE automatically stops the
4011      clock if it is running in this same item.  
4013 `C-c C-x C-x'
4014      Cancel the current clock.  This is useful if a clock was started by
4015      mistake, or if you ended up working on something else.  
4017 `C-c C-x C-j'
4018      Jump to the entry that contains the currently running clock, an
4019      another window.  
4021 `C-c C-x C-d'
4022      Display time summaries for each subtree in the current buffer.
4023      This puts overlays at the end of each headline, showing the total
4024      time recorded under that heading, including the time of any
4025      subheadings. You can use visibility cycling to study the tree, but
4026      the overlays disappear when you change the buffer (see variable
4027      `org-remove-highlights-with-change') or press `C-c C-c'.  
4029 `C-c C-x C-r'
4030      Insert a dynamic block (*note Dynamic blocks::) containing a clock
4031      report as an org-mode table into the current file.  When the
4032      cursor is at an existing clock table, just update it.  When called
4033      with a prefix argument, jump to the first clock report in the
4034      current document and update it.
4035           #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
4037           #+END: clocktable
4038      If such a block already exists at point, its content is replaced
4039      by the new table.  The `BEGIN' line can specify options:
4040           :maxlevel    Maximum level depth to which times are listed in the table.
4041           :emphasize   When `t', emphasize level one and level two items
4042           :scope       The scope to consider.  This can be any of the following:
4043                        nil        the current buffer or narrowed region
4044                        file       the full current buffer
4045                        subtree    the subtree where the clocktable is located
4046                        treeN      the surrounding level N tree, for example `tree3'
4047                        tree       the surrounding level 1 tree
4048                        agenda     all agenda files
4049                        ("file"..) scan these files
4050           :block       The time block to consider.  This block is specified relative
4051                        to the current time and may be any of these keywords:
4052                        `today', `yesterday', `thisweek', `lastweek',
4053                        `thismonth', `lastmonth', `thisyear', or `lastyear'.
4054           :tstart      A time string specifying when to start considering times
4055           :tend        A time string specifying when to stop considering times
4056           :step        `week' or `day', to split the table into chunks
4057      So to get a clock summary of the current level 1 tree, for the
4058      current day, you could write
4059           #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
4061           #+END: clocktable
4062      and to use a specific time range you could write(2)
4063           #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
4064                               :tend "<2006-08-10 Thu 12:00>"
4066           #+END: clocktable
4067      
4068 `C-c C-c'
4069 `C-c C-x C-u'
4070      Update dynamical block at point.  The cursor needs to be in the
4071      `#+BEGIN' line of the dynamic block.  
4073 `C-u C-c C-x C-u'
4074      Update all dynamic blocks (*note Dynamic blocks::).  This is
4075      useful if you have several clocktable blocks in a buffer.
4077    The `l' key may be used in the timeline (*note Timeline::) and in
4078 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
4079 worked on or closed during a day.
4081    ---------- Footnotes ----------
4083    (1) The corresponding in-buffer setting is: `#+STARTUP:
4084 lognoteclock-out'
4086    (2) Note that all parameters must be specified in a single line -
4087 the line is broken here only to fit it onto the manual.
4089 \x1f
4090 File: org,  Node: Remember,  Next: Agenda views,  Prev: Dates and times,  Up: Top
4092 9 Remember
4093 **********
4095 The Remember package by John Wiegley lets you store quick notes with
4096 little interruption of your work flow.  See
4097 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
4098 information.  It is an excellent way to add new notes and tasks to
4099 Org-mode files.  Org-mode significantly expands the possibilities of
4100 remember: You may define templates for different note types, and
4101 associate target files and headlines with specific templates.  It also
4102 allows you to select the location where a note should be stored
4103 interactively, on the fly.
4105 * Menu:
4107 * Setting up remember::         Some code for .emacs to get things going
4108 * Remember templates::          Define the outline of different note types
4109 * Storing notes::               Directly get the note to where it belongs
4110 * Refiling notes::              Moving a note or task to a project
4112 \x1f
4113 File: org,  Node: Setting up remember,  Next: Remember templates,  Prev: Remember,  Up: Remember
4115 9.1 Setting up remember
4116 =======================
4118 The following customization will tell remember to use org files as
4119 target, and to create annotations compatible with Org-mode links.
4121      (org-remember-insinuate)
4122      (setq org-directory "~/path/to/my/orgfiles/")
4123      (setq org-default-notes-file (concat org-directory "/notes.org"))
4124      (define-key global-map "\C-cr" 'org-remember)
4126    The last line binds the command `org-remember' to a global key(1).
4127 `org-remember' basically just calls `remember', but it makes a few
4128 things easier: If there is an active region, it will automatically copy
4129 the region into the remember buffer.  It also allows to jump to the
4130 buffer and location where remember notes are being stored: Just call
4131 `org-remember' with a prefix argument.  If you use two prefix
4132 arguments, Org-mode jumps to the location where the last remember note
4133 was stored.
4135    ---------- Footnotes ----------
4137    (1) Please select your own key, `C-c r' is only a suggestion.
4139 \x1f
4140 File: org,  Node: Remember templates,  Next: Storing notes,  Prev: Setting up remember,  Up: Remember
4142 9.2 Remember templates
4143 ======================
4145 In combination with Org-mode, you can use templates to generate
4146 different types of remember notes.  For example, if you would like to
4147 use one template to create general TODO entries, another one for
4148 journal entries, and a third one for collecting random ideas, you could
4149 use:
4151      (setq org-remember-templates
4152       '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org" "Tasks")
4153         ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")
4154         ("Idea" ?i "* %^{Title}\n  %i\n  %a" "~/org/JOURNAL.org" "New Ideas")))
4156 In these entries, the first string is just a name, and the character
4157 specifies how to select the template.  It is useful if the character is
4158 also the first letter of the name.  The next string specifies the
4159 template.  Two more (optional) strings give the file in which, and the
4160 headline under which the new note should be stored.  The file (if not
4161 present or `nil') defaults to `org-default-notes-file', the heading to
4162 `org-remember-default-headline'.
4164    When you call `M-x remember' (or `M-x org-remember') to remember
4165 something, org will prompt for a key to select the template (if you have
4166 more than one template) and then prepare the buffer like
4167      * TODO
4168        [[file:link to where you called remember]]
4170 During expansion of the template, special `%'-escapes allow dynamic
4171 insertion of content:
4172      %^{prompt}  prompt the user for a string and replace this sequence with it.
4173                  You may specify a default value and a completion table with
4174                  %^{prompt|default|completion2|completion3...}
4175                  The arrow keys access a prompt-specific history.
4176      %t          time stamp, date only
4177      %T          time stamp with date and time
4178      %u, %U      like the above, but inactive time stamps
4179      %^t         like `%t', but prompt for date.  Similarly `%^T', `%^u', `%^U'
4180                  You may define a prompt like `%^{Birthday}t'
4181      %n          user name (taken from `user-full-name')
4182      %a          annotation, normally the link created with `org-store-link'
4183      %A          like `%a', but prompt for the description part
4184      %i          initial content, the region when remember is called with C-u.
4185                  The entire text will be indented like `%i' itself.
4186      %c          Content of the clipboard, or current kill ring head.
4187      %^g         prompt for tags, with completion on tags in target file.
4188      %^G         prompt for tags, with completion all tags in all agenda files.
4189      %:keyword   specific information for certain link types, see below
4190      %[pathname] insert the contents of the file given by `pathname'
4191      %(sexp)     evaluate elisp `(sexp)' and replace with the result
4192      %!          immediately store note after completing the template
4193                  (skipping the `C-c C-c' that normally triggers storing)
4195 For specific link types, the following keywords will be defined(1):
4197      Link type          |  Available keywords
4198      -------------------+----------------------------------------------
4199      bbdb               |  %:name %:company
4200      vm, wl, mh, rmail  |  %:type %:subject %:message-id
4201                         |  %:from %:fromname %:fromaddress
4202                         |  %:to   %:toname   %:toaddress
4203                         |  %:fromto (either "to NAME" or "from NAME")(2)
4204      gnus               |  %:group, for messages also all email fields
4205      w3, w3m            |  %:url
4206      info               |  %:file %:node
4207      calendar           |  %:date"
4209 To place the cursor after template expansion use:
4211      %?          After completing the template, position cursor here.
4213 If you change you mind about which template to use, call `org-remember'
4214 in the remember buffer.  You may then select a new template that will
4215 be filled with the previous context information.
4217    ---------- Footnotes ----------
4219    (1) If you define your own link types (*note Adding hyperlink
4220 types::), any property you store with `org-store-link-props' can be
4221 accessed in remember templates in a similar way.
4223    (2) This will always be the other, not the user.  See the variable
4224 `org-from-is-user-regexp'.
4226 \x1f
4227 File: org,  Node: Storing notes,  Next: Refiling notes,  Prev: Remember templates,  Up: Remember
4229 9.3 Storing notes
4230 =================
4232 When you are finished preparing a note with remember, you have to press
4233 `C-c C-c' to file the note away.  The handler will store the note in
4234 the file and under the headline specified in the template, or it will
4235 use the default file and headlines.  The window configuration will be
4236 restored, sending you back to the working context before the call to
4237 `remember'.  To re-use the location found during the last call to
4238 `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
4239 specify a double prefix argument to `C-c C-c'.
4241    If you want to store the note directly to a different place, use
4242 `C-u C-c C-c' instead to exit remember(1).  The handler will then first
4243 prompt for a target file - if you press <RET>, the value specified for
4244 the template is used.  Then the command offers the headings tree of the
4245 selected file, with the cursor position at the default headline (if you
4246 had specified one in the template).  You can either immediately press
4247 <RET> to get the note placed there.  Or you can use the following keys
4248 to find a different location:
4249      <TAB>         Cycle visibility.
4250      <down> / <up>   Next/previous visible headline.
4251      n / p        Next/previous visible headline.
4252      f / b        Next/previous headline same level.
4253      u            One level up.
4254    Pressing <RET> or <left> or <right> then leads to the following
4255 result.
4257 Cursor         Key         Note gets inserted
4258 position                   
4259 on headline    <RET>       as sublevel of the heading at cursor, first or
4260                            last
4261                            depending on `org-reverse-note-order'.
4262                <left>/<right>as same level, before/after current heading
4263 buffer-start   <RET>       as level 2 heading at end of file or level 1
4264                            at beginning
4265                            depending on `org-reverse-note-order'.
4266 not on         <RET>       at cursor position, level taken from context.
4267 headline                   
4269    Before inserting the text into a tree, the function ensures that the
4270 text has a headline, i.e. a first line that starts with a `*'.  If not,
4271 a headline is constructed from the current date and some additional
4272 data.  If you have indented the text of the note below the headline, the
4273 indentation will be adapted if inserting the note into the tree requires
4274 demotion from level 1.
4276    ---------- Footnotes ----------
4278    (1) Configure the variable `org-remember-store-without-prompt' to
4279 make this behavior the default.
4281 \x1f
4282 File: org,  Node: Refiling notes,  Prev: Storing notes,  Up: Remember
4284 9.4 Refiling notes
4285 ==================
4287 Remember is usually used to quickly capture notes and tasks into one or
4288 a few capture lists.  When reviewing the captured data, you may want to
4289 refile some of the entries into a different list, for example into a
4290 project.  Cutting, finding the right location and then pasting the note
4291 is cumbersome.  To simplify this process, you can use the following
4292 special command:
4294 `C-c C-w'
4295      Refile the entry at point.  This command offers possible locations
4296      for refiling the entry and lets you select one with completion.
4297      The item is filed below the target heading as a subitem.
4298      Depending on `org-reverse-note-order', it will be either the first
4299      of last subitem.
4300      By default, all level 1 headlines in the current buffer are
4301      considered to be targets, but you can have more complex definitions
4302      across a number of files.  See the variable `org-refile-targets'
4303      for details.  
4305 `C-u C-c C-w'
4306      Use the refile interface to jump to a heading.  
4308 `C- C-u C-c C-w'
4309      Jump to the location where `org-refile' last moved a tree to.
4311 \x1f
4312 File: org,  Node: Agenda views,  Next: Embedded LaTeX,  Prev: Remember,  Up: Top
4314 10 Agenda Views
4315 ***************
4317 Due to the way Org-mode works, TODO items, time-stamped items, and
4318 tagged headlines can be scattered throughout a file or even a number of
4319 files.  To get an overview of open action items, or of events that are
4320 important for a particular date, this information must be collected,
4321 sorted and displayed in an organized way.
4323    Org-mode can select items based on various criteria, and display them
4324 in a separate buffer.  Six different view types are provided:
4326    * an _agenda_ that is like a calendar and shows information for
4327      specific dates,
4329    * a _TODO list_ that covers all unfinished action items,
4331    * a _tags view_, showings headlines based on the tags associated
4332      with them,
4334    * a _timeline view_ that shows all events in a single Org-mode file,
4335      in time-sorted view,
4337    * a _stuck projects view_ showing projects that currently don't move
4338      along, and
4340    * _custom views_ that are special tag/keyword searches and
4341      combinations of different views.
4343 The extracted information is displayed in a special _agenda buffer_.
4344 This buffer is read-only, but provides commands to visit the
4345 corresponding locations in the original Org-mode files, and even to
4346 edit these files remotely.
4348    Two variables control how the agenda buffer is displayed and whether
4349 the window configuration is restored when the agenda exits:
4350 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
4352 * Menu:
4354 * Agenda files::                Files being searched for agenda information
4355 * Agenda dispatcher::           Keyboard access to agenda views
4356 * Built-in agenda views::       What is available out of the box?
4357 * Presentation and sorting::    How agenda items are prepared for display
4358 * Agenda commands::             Remote editing of org trees
4359 * Custom agenda views::         Defining special searches and views
4361 \x1f
4362 File: org,  Node: Agenda files,  Next: Agenda dispatcher,  Prev: Agenda views,  Up: Agenda views
4364 10.1 Agenda files
4365 =================
4367 The information to be shown is normally collected from all _agenda
4368 files_, the files listed in the variable `org-agenda-files'(1). If a
4369 directory is part of this list, all files with the extension `.org' in
4370 this directory will be part of the list.
4372    Thus even if you only work with a single Org-mode file, this file
4373 should be put into that list(2).  You can customize `org-agenda-files',
4374 but the easiest way to maintain it is through the following commands
4376 `C-c ['
4377      Add current file to the list of agenda files.  The file is added to
4378      the front of the list.  If it was already in the list, it is moved
4379      to the front.  With prefix arg, file is added/moved to the end.  
4381 `C-c ]'
4382      Remove current file from the list of agenda files.  
4384 `C-,'
4385 `C-''
4386      Cycle through agenda file list, visiting one file after the other.
4388 The Org menu contains the current list of files and can be used to
4389 visit any of them.
4391    If you would like to focus the agenda temporarily onto a file not in
4392 this list, or onto just one file in the list or even only a subtree in a
4393 file, this can be done in different ways.  For a single agenda command,
4394 you may press `<' once or several times in the dispatcher (*note Agenda
4395 dispatcher::).  To restrict the agenda scope for an extended period,
4396 use the following commands:
4398 `C-c C-x <'
4399      Permanently restrict the agenda to the current subtree.  When with
4400      a prefix argument, or with the cursor before the first headline in
4401      a file, the agenda scope is set to the entire file.  This
4402      restriction remains in effect until removed with `C-c C-x >', or
4403      by typing either `<' or `>' in the agenda dispatcher.  If there is
4404      a window displaying an agenda view, the new restriction takes
4405      effect immediately.  
4407 `C-c C-x <'
4408      Remove the permanent restriction created by `C-c C-x <'.
4410 When working with `Speedbar', you can use the following commands in the
4411 speedbar frame:
4412 `< in the speedbar frame'
4413      Permanently restrict the agenda to the item at the cursor in the
4414      speedbar frame, either an Org-mode file or a subtree in such a
4415      file.  If there is a window displaying an agenda view, the new
4416      restriction takes effect immediately.  
4418 `> in the speedbar frame'
4419      Lift the restriction again.
4421    ---------- Footnotes ----------
4423    (1) If the value of that variable is not a list, but a single file
4424 name, then the list of agenda files will be maintained in that external
4425 file.
4427    (2) When using the dispatcher, pressing `<' before selecting a
4428 command will actually limit the command to the current file, and ignore
4429 `org-agenda-files' until the next dispatcher command.
4431 \x1f
4432 File: org,  Node: Agenda dispatcher,  Next: Built-in agenda views,  Prev: Agenda files,  Up: Agenda views
4434 10.2 The agenda dispatcher
4435 ==========================
4437 The views are created through a dispatcher that should be bound to a
4438 global key, for example `C-c a' (*note Installation::).  In the
4439 following we will assume that `C-c a' is indeed how the dispatcher is
4440 accessed and list keyboard access to commands accordingly.  After
4441 pressing `C-c a', an additional letter is required to execute a
4442 command.  The dispatcher offers the following default commands:
4444      Create the calendar-like agenda (*note Weekly/Daily agenda::).
4446 `t / T'
4447      Create a list of all TODO items (*note Global TODO list::).
4449 `m / M'
4450      Create a list of headlines matching a TAGS expression (*note
4451      Matching tags and properties::).
4454      Create the timeline view for the current buffer (*note Timeline::).
4456 `# / !'
4457      Create a list of stuck projects (*note Stuck projects::).
4460      Search for a regular expression in all agenda files and
4461      additionally in the files listed in
4462      `org-agenda-multi-occur-extra-files'.  This uses the Emacs command
4463      `multi-occur'.  A prefix argument can be used to specify the
4464      number of context lines for each match, default is 1.
4467      Restrict an agenda command to the current buffer(1).  After
4468      pressing `<', you still need to press the character selecting the
4469      command.
4471 `< <'
4472      If there is an active region, restrict the following agenda
4473      command to the region.  Otherwise, restrict it to the current
4474      subtree(2).  After pressing `< <', you still need to press the
4475      character selecting the command.
4477    You can also define custom commands that will be accessible through
4478 the dispatcher, just like the default commands.  This includes the
4479 possibility to create extended agenda buffers that contain several
4480 blocks together, for example the weekly agenda, the global TODO list and
4481 a number of special tags matches.  *Note Custom agenda views::.
4483    ---------- Footnotes ----------
4485    (1) For backward compatibility, you can also press `1' to restrict
4486 to the current buffer.
4488    (2) For backward compatibility, you can also press `0' to restrict
4489 to the current buffer.
4491 \x1f
4492 File: org,  Node: Built-in agenda views,  Next: Presentation and sorting,  Prev: Agenda dispatcher,  Up: Agenda views
4494 10.3 The built-in agenda views
4495 ==============================
4497 In this section we describe the built-in views.
4499 * Menu:
4501 * Weekly/Daily agenda::         The calendar page with current tasks
4502 * Global TODO list::            All unfinished action items
4503 * Matching tags and properties::  Structured information with fine-tuned search
4504 * Timeline::                    Time-sorted view for single file
4505 * Stuck projects::              Find projects you need to review
4507 \x1f
4508 File: org,  Node: Weekly/Daily agenda,  Next: Global TODO list,  Prev: Built-in agenda views,  Up: Built-in agenda views
4510 10.3.1 The weekly/daily agenda
4511 ------------------------------
4513 The purpose of the weekly/daily _agenda_ is to act like a page of a
4514 paper agenda, showing all the tasks for the current week or day.
4516 `C-c a a'
4517      Compile an agenda for the current week from a list of org files.
4518      The agenda shows the entries for each day.  With a numeric
4519      prefix(1)  (like `C-u 2 1 C-c a a') you may set the number of days
4520      to be displayed (see also the variable `org-agenda-ndays')
4522    Remote editing from the agenda buffer means, for example, that you
4523 can change the dates of deadlines and appointments from the agenda
4524 buffer.  The commands available in the Agenda buffer are listed in
4525 *Note Agenda commands::.
4527 Calendar/Diary integration
4528 ..........................
4530 Emacs contains the calendar and diary by Edward M. Reingold.  The
4531 calendar displays a three-month calendar with holidays from different
4532 countries and cultures.  The diary allows you to keep track of
4533 anniversaries, lunar phases, sunrise/set, recurrent appointments
4534 (weekly, monthly) and more.  In this way, it is quite complementary to
4535 Org-mode.  It can be very useful to combine output from Org-mode with
4536 the diary.
4538    In order to include entries from the Emacs diary into Org-mode's
4539 agenda, you only need to customize the variable
4541      (setq org-agenda-include-diary t)
4543 After that, everything will happen automatically.  All diary entries
4544 including holidays, anniversaries etc will be included in the agenda
4545 buffer created by Org-mode.  <SPC>, <TAB>, and <RET> can be used from
4546 the agenda buffer to jump to the diary file in order to edit existing
4547 diary entries.  The `i' command to insert new entries for the current
4548 date works in the agenda buffer, as well as the commands `S', `M', and
4549 `C' to display Sunrise/Sunset times, show lunar phases and to convert
4550 to other calendars, respectively.  `c' can be used to switch back and
4551 forth between calendar and agenda.
4553    If you are using the diary only for sexp entries and holidays, it is
4554 faster to not use the above setting, but instead to copy or even move
4555 the entries into an Org-mode file. Org-mode evaluates diary-style sexp
4556 entries, and does it faster because there is no overhead for first
4557 creating the diary display.  Note that the sexp entries must start at
4558 the left margin, no white space is allowed before them.  For example,
4559 the following segment of an Org-mode file will be processed and entries
4560 will be made in the agenda:
4562      * Birthdays and similar stuff
4563      #+CATEGORY: Holiday
4564      %%(org-calendar-holiday)   ; special function for holiday names
4565      #+CATEGORY: Ann
4566      %%(diary-anniversary 14  5 1956) Arthur Dent is %d years old
4567      %%(diary-anniversary  2 10 1869) Mahatma Gandhi would be %d years old
4569 Appointment reminders
4570 .....................
4572 Org can interact with Emacs appointments notification facility.
4574    To add all the appointments of your agenda files, use the command
4575 `org-agenda-to-appt'.  This commands also lets you filter through the
4576 list of your appointments and add only those belonging to a specific
4577 category or matching a regular expression. See the docstring for
4578 details.
4580    ---------- Footnotes ----------
4582    (1) For backward compatibility, the universal prefix `C-u' causes
4583 all TODO entries to be listed before the agenda.  This feature is
4584 deprecated, use the dedicated TODO list, or a block agenda instead.
4586 \x1f
4587 File: org,  Node: Global TODO list,  Next: Matching tags and properties,  Prev: Weekly/Daily agenda,  Up: Built-in agenda views
4589 10.3.2 The global TODO list
4590 ---------------------------
4592 The global TODO list contains all unfinished TODO items, formatted and
4593 collected into a single place.
4595 `C-c a t'
4596      Show the global TODO list.  This collects the TODO items from all
4597      agenda files (*note Agenda views::) into a single buffer.  The
4598      buffer is in `agenda-mode', so there are commands to examine and
4599      manipulate the TODO entries directly from that buffer (*note
4600      Agenda commands::).  
4602 `C-c a T'
4603      Like the above, but allows selection of a specific TODO keyword.
4604      You can also do this by specifying a prefix argument to `C-c a t'.
4605      With a `C-u' prefix you are prompted for a keyword, and you may
4606      also specify several keywords by separating them with `|' as
4607      boolean OR operator.  With a numeric prefix, the Nth keyword in
4608      `org-todo-keywords' is selected.  The `r' key in the agenda buffer
4609      regenerates it, and you can give a prefix argument to this command
4610      to change the selected TODO keyword, for example `3 r'.  If you
4611      often need a search for a specific keyword, define a custom
4612      command for it (*note Agenda dispatcher::).
4613      Matching specific TODO keywords can also be done as part of a tags
4614      search (*note Tag searches::).
4616    Remote editing of TODO items means that you can change the state of a
4617 TODO entry with a single key press.  The commands available in the TODO
4618 list are described in *Note Agenda commands::.
4620    Normally the global todo list simply shows all headlines with TODO
4621 keywords.  This list can become very long.  There are two ways to keep
4622 it more compact:
4623    - Some people view a TODO item that has been _scheduled_ for
4624      execution (*note Time stamps::) as no longer _open_.  Configure the
4625      variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
4626      items from the global TODO list.
4628    - TODO items may have sublevels to break up the task into subtasks.
4629      In such cases it may be enough to list only the highest level TODO
4630      headline and omit the sublevels from the global list.  Configure
4631      the variable `org-agenda-todo-list-sublevels' to get this behavior.
4633 \x1f
4634 File: org,  Node: Matching tags and properties,  Next: Timeline,  Prev: Global TODO list,  Up: Built-in agenda views
4636 10.3.3 Matching Tags and Properties
4637 -----------------------------------
4639 If headlines in the agenda files are marked with _tags_ (*note Tags::),
4640 you can select headlines based on the tags that apply to them and
4641 collect them into an agenda buffer.
4643 `C-c a m'
4644      Produce a list of all headlines that match a given set of tags.
4645      The command prompts for a selection criterion, which is a boolean
4646      logic expression with tags, like `+work+urgent-withboss' or
4647      `work|home' (*note Tags::).  If you often need a specific search,
4648      define a custom command for it (*note Agenda dispatcher::).  
4650 `C-c a M'
4651      Like `C-c a m', but only select headlines that are also TODO items
4652      and force checking subitems (see variable
4653      `org-tags-match-list-sublevels').  Matching specific todo keywords
4654      together with a tags match is also possible, see *Note Tag
4655      searches::.
4657    The commands available in the tags list are described in *Note
4658 Agenda commands::.
4660 \x1f
4661 File: org,  Node: Timeline,  Next: Stuck projects,  Prev: Matching tags and properties,  Up: Built-in agenda views
4663 10.3.4 Timeline for a single file
4664 ---------------------------------
4666 The timeline summarizes all time-stamped items from a single Org-mode
4667 file in a _time-sorted view_.  The main purpose of this command is to
4668 give an overview over events in a project.
4670 `C-c a L'
4671      Show a time-sorted view of the org file, with all time-stamped
4672      items.  When called with a `C-u' prefix, all unfinished TODO
4673      entries (scheduled or not) are also listed under the current date.
4675 The commands available in the timeline buffer are listed in *Note
4676 Agenda commands::.
4678 \x1f
4679 File: org,  Node: Stuck projects,  Prev: Timeline,  Up: Built-in agenda views
4681 10.3.5 Stuck projects
4682 ---------------------
4684 If you are following a system like David Allen's GTD to organize your
4685 work, one of the "duties" you have is a regular review to make sure
4686 that all projects move along.  A _stuck_ project is a project that has
4687 no defined next actions, so it will never show up in the TODO lists
4688 Org-mode produces.  During the review, you need to identify such
4689 projects and define next actions for them.
4691 `C-c a #'
4692      List projects that are stuck.  
4694 `C-c a !'
4695      Customize the variable `org-stuck-projects' to define what a stuck
4696      project is and how to find it.
4698    You almost certainly will have to configure this view before it will
4699 work for you.  The built-in default assumes that all your projects are
4700 level-2 headlines, and that a project is not stuck if it has at least
4701 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
4703    Lets assume that you, in your own way of using Org-mode, identify
4704 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
4705 indicate a project that should not be considered yet.  Lets further
4706 assume that the todo keyword DONE marks finished projects, and that NEXT
4707 and TODO indicate next actions.  The tag @SHOP indicates shopping and
4708 is a next action even without the NEXT tag.  Finally, if the project
4709 contains the special word IGNORE anywhere, it should not be listed
4710 either.  In this case you would start by identifying eligible projects
4711 with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
4712 NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
4713 not stuck.  The correct customization for this is
4715      (setq org-stuck-projects
4716            '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
4717                                     "\\<IGNORE\\>"))
4719 \x1f
4720 File: org,  Node: Presentation and sorting,  Next: Agenda commands,  Prev: Built-in agenda views,  Up: Agenda views
4722 10.4 Presentation and sorting
4723 =============================
4725 Before displaying items in an agenda view, Org-mode visually prepares
4726 the items and sorts them.  Each item occupies a single line.  The line
4727 starts with a _prefix_ that contains the _category_ (*note
4728 Categories::) of the item and other important information.  You can
4729 customize the prefix using the option `org-agenda-prefix-format'.  The
4730 prefix is followed by a cleaned-up version of the outline headline
4731 associated with the item.
4733 * Menu:
4735 * Categories::                  Not all tasks are equal
4736 * Time-of-day specifications::  How the agenda knows the time
4737 * Sorting of agenda items::     The order of things
4739 \x1f
4740 File: org,  Node: Categories,  Next: Time-of-day specifications,  Prev: Presentation and sorting,  Up: Presentation and sorting
4742 10.4.1 Categories
4743 -----------------
4745 The category is a broad label assigned to each agenda item.  By default,
4746 the category is simply derived from the file name, but you can also
4747 specify it with a special line in the buffer, like this(1):
4749      #+CATEGORY: Thesis
4751 If you would like to have a special CATEGORY for a single entry or a
4752 (sub)tree, give the entry a `:CATEGORY:' property with the location as
4753 the value (*note Properties and columns::).
4755 The display in the agenda buffer looks best if the category is not
4756 longer than 10 characters.
4758    ---------- Footnotes ----------
4760    (1) For backward compatibility, the following also works: If there
4761 are several such lines in a file, each specifies the category for the
4762 text below it.  The first category also applies to any text before the
4763 first CATEGORY line.  However, using this method is _strongly_
4764 deprecated as it is incompatible with the outline structure of the
4765 document.  The correct method for setting multiple categories in a
4766 buffer is using a property.
4768 \x1f
4769 File: org,  Node: Time-of-day specifications,  Next: Sorting of agenda items,  Prev: Categories,  Up: Presentation and sorting
4771 10.4.2 Time-of-Day Specifications
4772 ---------------------------------
4774 Org-mode checks each agenda item for a time-of-day specification.  The
4775 time can be part of the time stamp that triggered inclusion into the
4776 agenda, for example as in `<2005-05-10 Tue 19:00>'.  Time ranges can be
4777 specified with two time stamps, like
4778 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
4780    In the headline of the entry itself, a time(range) may also appear as
4781 plain text (like `12:45' or a `8:30-1pm'.  If the agenda integrates the
4782 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
4783 entries are recognized as well.
4785    For agenda display, Org-mode extracts the time and displays it in a
4786 standard 24 hour format as part of the prefix.  The example times in
4787 the previous paragraphs would end up in the agenda like this:
4789          8:30-13:00 Arthur Dent lies in front of the bulldozer
4790         12:45...... Ford Prefect arrives and takes Arthur to the pub
4791         19:00...... The Vogon reads his poem
4792         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4794    If the agenda is in single-day mode, or for the display of today, the
4795 timed entries are embedded in a time grid, like
4797          8:00...... ------------------
4798          8:30-13:00 Arthur Dent lies in front of the bulldozer
4799         10:00...... ------------------
4800         12:00...... ------------------
4801         12:45...... Ford Prefect arrives and takes Arthur to the pub
4802         14:00...... ------------------
4803         16:00...... ------------------
4804         18:00...... ------------------
4805         19:00...... The Vogon reads his poem
4806         20:00...... ------------------
4807         20:30-22:15 Marwin escorts the Hitchhikers to the bridge
4809    The time grid can be turned on and off with the variable
4810 `org-agenda-use-time-grid', and can be configured with
4811 `org-agenda-time-grid'.
4813 \x1f
4814 File: org,  Node: Sorting of agenda items,  Prev: Time-of-day specifications,  Up: Presentation and sorting
4816 10.4.3 Sorting of agenda items
4817 ------------------------------
4819 Before being inserted into a view, the items are sorted.  How this is
4820 done depends on the type of view.
4821    * For the daily/weekly agenda, the items for each day are sorted.
4822      The default order is to first collect all items containing an
4823      explicit time-of-day specification.  These entries will be shown
4824      at the beginning of the list, as a _schedule_ for the day.  After
4825      that, items remain grouped in categories, in the sequence given by
4826      `org-agenda-files'.  Within each category, items are sorted by
4827      priority (*note Priorities::), which is composed of the base
4828      priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
4829      plus additional increments for overdue scheduled or deadline items.
4831    * For the TODO list, items remain in the order of categories, but
4832      within each category, sorting takes place according to priority
4833      (*note Priorities::).
4835    * For tags matches, items are not sorted at all, but just appear in
4836      the sequence in which they are found in the agenda files.
4838    Sorting can be customized using the variable
4839 `org-agenda-sorting-strategy'.
4841 \x1f
4842 File: org,  Node: Agenda commands,  Next: Custom agenda views,  Prev: Presentation and sorting,  Up: Agenda views
4844 10.5 Commands in the agenda buffer
4845 ==================================
4847 Entries in the agenda buffer are linked back to the org file or diary
4848 file where they originate.  You are not allowed to edit the agenda
4849 buffer itself, but commands are provided to show and jump to the
4850 original entry location, and to edit the org-files "remotely" from the
4851 agenda buffer.  In this way, all information is stored only once,
4852 removing the risk that your agenda and note files may diverge.
4854    Some commands can be executed with mouse clicks on agenda lines.  For
4855 the other commands, the cursor needs to be in the desired line.
4857 Motion
4858 ......
4861      Next line (same as <up> and `C-p').  
4864      Previous line (same as <down> and `C-n').
4866 View/GoTo org file
4867 ..................
4869 `mouse-3'
4870 `<SPC>'
4871      Display the original location of the item in another window.  
4874      Display original location and recenter that window.  
4876 `mouse-2'
4877 `mouse-1'
4878 `<TAB>'
4879      Go to the original location of the item in another window.  Under
4880      Emacs 22, `mouse-1' will also works for this.  
4882 `<RET>'
4883      Go to the original location of the item and delete other windows.  
4886      Toggle Follow mode.  In Follow mode, as you move the cursor through
4887      the agenda buffer, the other window always shows the corresponding
4888      location in the org file.  The initial setting for this mode in new
4889      agenda buffers can be set with the variable
4890      `org-agenda-start-with-follow-mode'.  
4893      Display the entire subtree of the current item in an indirect
4894      buffer.  With numerical prefix ARG, go up to this level and then
4895      take that tree.  If ARG is negative, go up that many levels.  With
4896      `C-u' prefix, do not remove the previously used indirect buffer.  
4899      Toggle Logbook mode.  In Logbook mode, entries that where marked
4900      DONE while logging was on (variable `org-log-done') are shown in
4901      the agenda, as are entries that have been clocked on that day.
4903 Change display
4904 ..............
4907      Delete other windows.  
4909 `d w m y'
4910      Switch to day/week/month/year view.  When switching to day or week
4911      view, this setting becomes the default for subseqent agenda
4912      commands.  Since month and year views are slow to create, the do
4913      not become the default.  
4916      Toggle the inclusion of diary entries.  See *Note Weekly/Daily
4917      agenda::.  
4920      Toggle the time grid on and off.  See also the variables
4921      `org-agenda-use-time-grid' and `org-agenda-time-grid'.  
4924      Recreate the agenda buffer, for example to reflect the changes
4925      after modification of the time stamps of items with S-<left> and
4926      S-<right>.  When the buffer is the global todo list, a prefix
4927      argument is interpreted to create a selective list for a specific
4928      TODO keyword.  
4931      Same as `r'.  
4934 `C-x C-s'
4935      Save all Org-mode buffers in the current Emacs session.  
4937 `<right>'
4938      Display the following `org-agenda-ndays' days.  For example, if
4939      the display covers a week, switch to the following week.  With
4940      prefix arg, go forward that many times `org-agenda-ndays' days.  
4942 `<left>'
4943      Display the previous dates.  
4946      Goto today.
4948 Remote editing
4949 ..............
4951 `0-9'
4952      Digit argument.  
4954 `C-_'
4955      Undo a change due to a remote editing command.  The change is
4956      undone both in the agenda buffer and in the remote buffer.  
4959      Change the TODO state of the item, both in the agenda and in the
4960      original org file.  
4962 `C-k'
4963      Delete the current agenda item along with the entire subtree
4964      belonging to it in the original Org-mode file.  If the text to be
4965      deleted remotely is longer than one line, the kill needs to be
4966      confirmed by the user.  See variable `org-agenda-confirm-kill'.  
4969      Archive the subtree corresponding to the current headline.  
4972      Show all tags associated with the current item.  Because of
4973      inheritance, this may be more than the tags listed in the line
4974      itself.  
4977      Set tags for the current headline.  If there is an active region
4978      in the agenda, change a tag for all headings in the region.  
4981      Toggle the ARCHIVE tag for the current headline.  
4984      Set the priority for the current item.  Org-mode prompts for the
4985      priority character. If you reply with <SPC>, the priority cookie
4986      is removed from the entry.  
4989      Display weighted priority of current item.  
4992 `S-<up>'
4993      Increase the priority of the current item.  The priority is
4994      changed in the original buffer, but the agenda is not resorted.
4995      Use the `r' key for this.  
4998 `S-<down>'
4999      Decrease the priority of the current item.  
5001 `C-c C-s'
5002      Schedule this item 
5004 `C-c C-d'
5005      Set a deadline for this item.  
5007 `S-<right>'
5008      Change the time stamp associated with the current line by one day
5009      into the future.  With prefix argument, change it by that many
5010      days.  For example, `3 6 5 S-<right>' will change it by a year.
5011      The stamp is changed in the original org file, but the change is
5012      not directly reflected in the agenda buffer.  Use the `r' key to
5013      update the buffer.  
5015 `S-<left>'
5016      Change the time stamp associated with the current line by one day
5017      into the past.  
5020      Change the time stamp associated with the current line to today.
5021      The key `>' has been chosen, because it is the same as `S-.' on my
5022      keyboard.  
5025      Start the clock on the current item.  If a clock is running
5026      already, it is stopped first.  
5029      Stop the previously started clock.  
5032      Cancel the currently running clock.
5035      Jump to the running clock in another window.
5037 Calendar commands
5038 .................
5041      Open the Emacs calendar and move to the date at the agenda cursor.
5044      When in the calendar, compute and show the Org-mode agenda for the
5045      date at the cursor.  
5048      Insert a new entry into the diary.  Prompts for the type of entry
5049      (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
5050      new entry in the diary, just as `i d' etc. would do in the
5051      calendar.  The date is taken from the cursor position.  
5054      Show the phases of the moon for the three months around current
5055      date.  
5058      Show sunrise and sunset times.  The geographical location must be
5059      set with calendar variables, see documentation of the Emacs
5060      calendar.  
5063      Convert the date at cursor into many other cultural and historic
5064      calendars.  
5067      Show holidays for three month around the cursor date.  
5069 `C-c C-x C-c'
5070      Export a single iCalendar file containing entries from all agenda
5071      files.
5073 Exporting to a file
5074 ...................
5076 `C-x C-w'
5077      Write the agenda view to a file.  Depending on the extension of the
5078      selected file name, the view will be exported as HTML (extension
5079      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
5080      (any other extension).  Use the variable
5081      `org-agenda-exporter-settings' to set options for `ps-print' and
5082      for `htmlize' to be used during export.
5084 Quit and Exit
5085 .............
5088      Quit agenda, remove the agenda buffer.  
5091      Exit agenda, remove the agenda buffer and all buffers loaded by
5092      Emacs for the compilation of the agenda.  Buffers created by the
5093      user to visit org files will not be removed.
5095 \x1f
5096 File: org,  Node: Custom agenda views,  Prev: Agenda commands,  Up: Agenda views
5098 10.6 Custom agenda views
5099 ========================
5101 Custom agenda commands serve two purposes: to store and quickly access
5102 frequently used TODO and tags searches, and to create special composite
5103 agenda buffers.  Custom agenda commands will be accessible through the
5104 dispatcher (*note Agenda dispatcher::), just like the default commands.
5106 * Menu:
5108 * Storing searches::            Type once, use often
5109 * Block agenda::                All the stuff you need in a single buffer
5110 * Setting Options::             Changing the rules
5111 * Exporting Agenda Views::      Writing agendas to files.
5112 * Extracting Agenda Information for other programs::
5114 \x1f
5115 File: org,  Node: Storing searches,  Next: Block agenda,  Prev: Custom agenda views,  Up: Custom agenda views
5117 10.6.1 Storing searches
5118 -----------------------
5120 The first application of custom searches is the definition of keyboard
5121 shortcuts for frequently used searches, either creating an agenda
5122 buffer, or a sparse tree (the latter covering of course only the current
5123 buffer).  Custom commands are configured in the variable
5124 `org-agenda-custom-commands'.  You can customize this variable, for
5125 example by pressing `C-c a C'.  You can also directly set it with Emacs
5126 Lisp in `.emacs'.  The following example contains all valid search
5127 types:
5129      (setq org-agenda-custom-commands
5130            '(("w" todo "WAITING")
5131              ("W" todo-tree "WAITING")
5132              ("u" tags "+boss-urgent")
5133              ("v" tags-todo "+boss-urgent")
5134              ("U" tags-tree "+boss-urgent")
5135              ("f" occur-tree "\\<FIXME\\>")
5136              ("h" . "HOME+Name tags searches") ; description for "h" prefix
5137              ("hl" tags "+home+Lisa")
5138              ("hp" tags "+home+Peter")
5139              ("hk" tags "+home+Kim")))
5141 The initial string in each entry defines the keys you have to press
5142 after the dispatcher command `C-c a' in order to access the command.
5143 Usually this will be just a single character, but if you have many
5144 similar commands, you can also define two-letter combinations where the
5145 first character is the same in several combinations and serves as a
5146 prefix key(1).  The second parameter is the search type, followed by
5147 the string or regular expression to be used for the matching.  The
5148 example above will therefore define:
5150 `C-c a w'
5151      as a global search for TODO entries with `WAITING' as the TODO
5152      keyword
5154 `C-c a W'
5155      as the same search, but only in the current buffer and displaying
5156      the results as a sparse tree
5158 `C-c a u'
5159      as a global tags search for headlines marked `:boss:' but not
5160      `:urgent:'
5162 `C-c a v'
5163      as the same search as `C-c a u', but limiting the search to
5164      headlines that are also TODO items
5166 `C-c a U'
5167      as the same search as `C-c a u', but only in the current buffer and
5168      displaying the result as a sparse tree
5170 `C-c a f'
5171      to create a sparse tree (again: current buffer only) with all
5172      entries containing the word `FIXME'
5174 `C-c a h'
5175      as a prefix command for a HOME tags search where you have to press
5176      an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
5177      or Kim) as additional tag to match.
5179    ---------- Footnotes ----------
5181    (1) You can provide a description for a prefix key by inserting a
5182 cons cell with the prefix and the description.
5184 \x1f
5185 File: org,  Node: Block agenda,  Next: Setting Options,  Prev: Storing searches,  Up: Custom agenda views
5187 10.6.2 Block agenda
5188 -------------------
5190 Another possibility is the construction of agenda views that comprise
5191 the results of _several_ commands, each of which creates a block in the
5192 agenda buffer.  The available commands include `agenda' for the daily
5193 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
5194 todo list (as constructed with `C-c a t'), and the matching commands
5195 discussed above: `todo', `tags', and `tags-todo'.  Here are two
5196 examples:
5198      (setq org-agenda-custom-commands
5199            '(("h" "Agenda and Home-related tasks"
5200               ((agenda)
5201                (tags-todo "home")
5202                (tags "garden")))
5203              ("o" "Agenda and Office-related tasks"
5204               ((agenda)
5205                (tags-todo "work")
5206                (tags "office")))))
5208 This will define `C-c a h' to create a multi-block view for stuff you
5209 need to attend to at home.  The resulting agenda buffer will contain
5210 your agenda for the current week, all TODO items that carry the tag
5211 `home', and also all lines tagged with `garden'.  Finally the command
5212 `C-c a o' provides a similar view for office tasks.
5214 \x1f
5215 File: org,  Node: Setting Options,  Next: Exporting Agenda Views,  Prev: Block agenda,  Up: Custom agenda views
5217 10.6.3 Setting Options for custom commands
5218 ------------------------------------------
5220 Org-mode contains a number of variables regulating agenda construction
5221 and display.  The global variables define the behavior for all agenda
5222 commands, including the custom commands.  However, if you want to change
5223 some settings just for a single custom view, you can do so.  Setting
5224 options requires inserting a list of variable names and values at the
5225 right spot in `org-agenda-custom-commands'.  For example:
5227      (setq org-agenda-custom-commands
5228            '(("w" todo "WAITING"
5229               ((org-agenda-sorting-strategy '(priority-down))
5230                (org-agenda-prefix-format "  Mixed: ")))
5231              ("U" tags-tree "+boss-urgent"
5232               ((org-show-following-heading nil)
5233                (org-show-hierarchy-above nil)))))
5235 Now the `C-c a w' command will sort the collected entries only by
5236 priority, and the prefix format is modified to just say `  Mixed: '
5237 instead of giving the category of the entry.  The sparse tags tree of
5238 `C-c a U' will now turn out ultra-compact, because neither the headline
5239 hierarchy above the match, nor the headline following the match will be
5240 shown.
5242    For command sets creating a block agenda,
5243 `org-agenda-custom-commands' has two separate spots for setting
5244 options.  You can add options that should be valid for just a single
5245 command in the set, and options that should be valid for all commands in
5246 the set.  The former are just added to the command entry, the latter
5247 must come after the list of command entries.  Going back to the block
5248 agenda example (*note Block agenda::), let's change the sorting strategy
5249 for the `C-c a h' commands to `priority-down', but let's sort the
5250 results for GARDEN tags query in the opposite order, `priority-up'.
5251 This would look like this:
5253      (setq org-agenda-custom-commands
5254            '(("h" "Agenda and Home-related tasks"
5255               ((agenda)
5256                (tags-todo "home")
5257                (tags "garden"
5258                      ((org-agenda-sorting-strategy '(priority-up)))))
5259               ((org-agenda-sorting-strategy '(priority-down))))
5260              ("o" "Agenda and Office-related tasks"
5261               ((agenda)
5262                (tags-todo "work")
5263                (tags "office")))))
5265    As you see, the values and parenthesis setting is a little complex.
5266 When in doubt, use the customize interface to set this variable - it
5267 fully supports its structure.  Just one caveat: When setting options in
5268 this interface, the _values_ are just lisp expressions.  So if the
5269 value is a string, you need to add the double quotes around the value
5270 yourself.
5272 \x1f
5273 File: org,  Node: Exporting Agenda Views,  Next: Extracting Agenda Information for other programs,  Prev: Setting Options,  Up: Custom agenda views
5275 10.6.4 Exporting Agenda Views
5276 -----------------------------
5278 If you are away from your computer, it can be very useful to have a
5279 printed version of some agenda views to carry around.  Org-mode can
5280 export custom agenda views as plain text, HTML(1) and postscript.  If
5281 you want to do this only occasionally, use the command
5283 `C-x C-w'
5284      Write the agenda view to a file.  Depending on the extension of the
5285      selected file name, the view will be exported as HTML (extension
5286      `.html' or `.htm'), Postscript (extension `.ps'), or plain text
5287      (any other extension).  Use the variable
5288      `org-agenda-exporter-settings' to set options for `ps-print' and
5289      for `htmlize' to be used during export, for example
5290           (setq org-agenda-exporter-settings
5291                 '((ps-number-of-columns 2)
5292                   (ps-landscape-mode t)
5293                   (htmlize-output-type 'css)))
5295    If you need to export certain agenda views frequently, you can
5296 associate any custom agenda command with a list of output file names
5297 (2).  Here is an example that first does define custom commands for the
5298 agenda and the global todo list, together with a number of files to
5299 which to export them.  Then we define two block agenda commands and
5300 specify filenames for them as well.  File names can be relative to the
5301 current working directory, or absolute.
5303      (setq org-agenda-custom-commands
5304            '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
5305              ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
5306              ("h" "Agenda and Home-related tasks"
5307               ((agenda)
5308                (tags-todo "home")
5309                (tags "garden"))
5310               nil
5311               ("~/views/home.html"))
5312              ("o" "Agenda and Office-related tasks"
5313               ((agenda)
5314                (tags-todo "work")
5315                (tags "office"))
5316               nil
5317               ("~/views/office.ps"))))
5319    The extension of the file name determines the type of export.  If it
5320 is `.html', Org-mode will use the `htmlize.el' package to convert the
5321 buffer to HTML and save it to this file name.  If the extension is
5322 `.ps', `ps-print-buffer-with-faces' is used to produce postscript
5323 output.  Any other extension produces a plain ASCII file.
5325    The export files are _not_ created when you use one of those
5326 commands interactively.  Instead, there is a special command to produce
5327 _all_ specified files in one step:
5329 `C-c a e'
5330      Export all agenda views that have export filenames associated with
5331      them.
5333    You can use the options section of the custom agenda commands to also
5334 set options for the export commands.  For example:
5336      (setq org-agenda-custom-commands
5337            '(("X" agenda ""
5338               ((ps-number-of-columns 2)
5339                (ps-landscape-mode t)
5340                (org-agenda-prefix-format " [ ] ")
5341                (org-agenda-with-colors nil)
5342                (org-agenda-remove-tags t))
5343               ("theagenda.ps"))))
5345 This command sets two options for the postscript exporter, to make it
5346 print in two columns in landscape format - the resulting page can be cut
5347 in two and then used in a paper agenda.  The remaining settings modify
5348 the agenda prefix to omit category and scheduling information, and
5349 instead include a checkbox to check off items.  We also remove the tags
5350 to make the lines compact, and we don't want to use colors for the
5351 black-and-white printer.  Settings specified in
5352 `org-agenda-exporter-settings' will also apply, but the settings in
5353 `org-agenda-custom-commands' take precedence.
5355 From the command line you may also use
5356      emacs -f org-batch-store-agenda-views -kill
5357    or, if you need to modify some parameters
5358      emacs -eval '(org-batch-store-agenda-views                      \
5359                    org-agenda-ndays 30                               \
5360                    org-agenda-start-day "2007-11-01"                 \
5361                    org-agenda-include-diary nil                      \
5362                    org-agenda-files (quote ("~/org/project.org")))'  \
5363            -kill
5364    which will create the agenda views restricted to the file
5365 `~/org/project.org', without diary entries and with 30 days extent.
5367    ---------- Footnotes ----------
5369    (1) You need to install Hrvoje Niksic' `htmlize.el'.
5371    (2) If you want to store standard views like the weekly agenda or
5372 the global TODO list as well, you need to define custom commands for
5373 them in order to be able to specify filenames.
5375 \x1f
5376 File: org,  Node: Extracting Agenda Information for other programs,  Prev: Exporting Agenda Views,  Up: Custom agenda views
5378 10.6.5 Extracting Agenda Information for other programs
5379 -------------------------------------------------------
5381 Org-mode provides commands to access agenda information for the command
5382 line in emacs batch mode.  This extracted information can be sent
5383 directly to a printer, or it can be read by a program that does further
5384 processing of the data.  The first of these commands is the function
5385 `org-batch-agenda', that produces an agenda view and sends it as ASCII
5386 text to STDOUT.  The command takes a single string as parameter.  If
5387 the string has length 1, it is used as a key to one of the commands you
5388 have configured in `org-agenda-custom-commands', basically any key you
5389 can use after `C-c a'.  For example, to directly print the current TODO
5390 list, you could use
5392      emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
5394    If the parameter is a string with 2 or more characters, it is used
5395 as a tags/todo match string.  For example, to print your local shopping
5396 list (all items with the tag `shop', but excluding the tag `NewYork'),
5397 you could use
5399      emacs -batch -l ~/.emacs                                      \
5400            -eval '(org-batch-agenda "+shop-NewYork")' | lpr
5402 You may also modify parameters on the fly like this:
5404      emacs -batch -l ~/.emacs                                      \
5405         -eval '(org-batch-agenda "a"                               \
5406                  org-agenda-ndays 30                               \
5407                  org-agenda-include-diary nil                      \
5408                  org-agenda-files (quote ("~/org/project.org")))'  \
5409         | lpr
5411 which will produce a 30 day agenda, fully restricted to the Org file
5412 `~/org/projects.org', not even including the diary.
5414    If you want to process the agenda data in more sophisticated ways,
5415 you can use the command `org-batch-agenda-csv' to get a comma-separated
5416 list of values for each agenda item.  Each line in the output will
5417 contain a number of fields separated by commas.  The fields in a line
5418 are:
5420      category     The category of the item
5421      head         The headline, without TODO kwd, TAGS and PRIORITY
5422      type         The type of the agenda entry, can be
5423                      todo               selected in TODO match
5424                      tagsmatch          selected in tags match
5425                      diary              imported from diary
5426                      deadline           a deadline
5427                      scheduled          scheduled
5428                      timestamp          appointment, selected by timestamp
5429                      closed             entry was closed on date
5430                      upcoming-deadline  warning about nearing deadline
5431                      past-scheduled     forwarded scheduled item
5432                      block              entry has date block including date
5433      todo         The todo keyword, if any
5434      tags         All tags including inherited ones, separated by colons
5435      date         The relevant date, like 2007-2-14
5436      time         The time, like 15:00-16:50
5437      extra        String with extra planning info
5438      priority-l   The priority letter if any was given
5439      priority-n   The computed numerical priority
5441 Time and date will only be given if a timestamp (or deadline/scheduled)
5442 lead to the selection of the item.
5444    A CSV list like this is very easy to use in a post processing script.
5445 For example, here is a Perl program that gets the TODO list from
5446 Emacs/org-mode and prints all the items, preceded by a checkbox:
5448      #!/usr/bin/perl
5450      # define the Emacs command to run
5451      $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
5453      # run it and capture the output
5454      $agenda = qx{$cmd 2>/dev/null};
5456      # loop over all lines
5457      foreach $line (split(/\n/,$agenda)) {
5459        # get the individual values
5460        ($category,$head,$type,$todo,$tags,$date,$time,$extra,
5461         $priority_l,$priority_n) = split(/,/,$line);
5463        # proccess and print
5464        print "[ ] $head\n";
5465      }
5467 \x1f
5468 File: org,  Node: Embedded LaTeX,  Next: Exporting,  Prev: Agenda views,  Up: Top
5470 11 Embedded LaTeX
5471 *****************
5473 Plain ASCII is normally sufficient for almost all note taking.  One
5474 exception, however, are scientific notes which need to be able to
5475 contain mathematical symbols and the occasional formula.  LaTeX(1) is
5476 widely used to typeset scientific documents. Org-mode supports
5477 embedding LaTeX code into its files, because many academics are used to
5478 read LaTeX source code, and because it can be readily processed into
5479 images for HTML production.
5481    It is not necessary to mark LaTeX macros and code in any special way.
5482 If you observe a few conventions, Org-mode knows how to find it and what
5483 to do with it.
5485 * Menu:
5487 * Math symbols::                TeX macros for symbols and Greek letters
5488 * Subscripts and Superscripts::  Simple syntax for raising/lowering text
5489 * LaTeX fragments::             Complex formulas made easy
5490 * Processing LaTeX fragments::  Previewing LaTeX processing
5491 * CDLaTeX mode::                Speed up entering of formulas
5493    ---------- Footnotes ----------
5495    (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
5496 Many of the features described here as "LaTeX" are really from TeX, but
5497 for simplicity I am blurring this distinction.
5499 \x1f
5500 File: org,  Node: Math symbols,  Next: Subscripts and Superscripts,  Prev: Embedded LaTeX,  Up: Embedded LaTeX
5502 11.1 Math symbols
5503 =================
5505 You can use LaTeX macros to insert special symbols like `\alpha' to
5506 indicate the Greek letter, or `\to' to indicate an arrow.  Completion
5507 for these macros is available, just type `\' and maybe a few letters,
5508 and press `M-<TAB>' to see possible completions.  Unlike LaTeX code,
5509 Org-mode allows these macros to be present without surrounding math
5510 delimiters, for example:
5512      Angles are written as Greek letters \alpha, \beta and \gamma.
5514    During HTML export (*note HTML export::), these symbols are
5515 translated into the proper syntax for HTML, for the above examples this
5516 is `&alpha;' and `&rarr;', respectively.
5518 \x1f
5519 File: org,  Node: Subscripts and Superscripts,  Next: LaTeX fragments,  Prev: Math symbols,  Up: Embedded LaTeX
5521 11.2 Subscripts and Superscripts
5522 ================================
5524 Just like in LaTeX, `^' and `_' are used to indicate super- and
5525 subscripts.  Again, these can be used without embedding them in
5526 math-mode delimiters.  To increase the readability of ASCII text, it is
5527 not necessary (but OK) to surround multi-character sub- and superscripts
5528 with curly braces.  For example
5530      The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
5531      the sun is R_{sun} = 6.96 x 10^8 m.
5533    To avoid interpretation as raised or lowered text, you can quote `^'
5534 and `_' with a backslash: `\_' and `\^'.
5536    During HTML export (*note HTML export::), subscript and superscripts
5537 are surrounded with `<sub>' and `<sup>' tags, respectively.
5539 \x1f
5540 File: org,  Node: LaTeX fragments,  Next: Processing LaTeX fragments,  Prev: Subscripts and Superscripts,  Up: Embedded LaTeX
5542 11.3 LaTeX fragments
5543 ====================
5545 With symbols, sub- and superscripts, HTML is pretty much at its end when
5546 it comes to representing mathematical formulas(1). More complex
5547 expressions need a dedicated formula processor. To this end, Org-mode
5548 can contain arbitrary LaTeX fragments. It provides commands to preview
5549 the typeset result of these fragments, and upon export to HTML, all
5550 fragments will be converted to images and inlined into the HTML
5551 document(2). For this to work you need to be on a system with a working
5552 LaTeX installation. You also need the `dvipng' program, available at
5553 `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
5554 be used when processing a fragment can be configured with the variable
5555 `org-format-latex-header'.
5557    LaTeX fragments don't need any special marking at all.  The following
5558 snippets will be identified as LaTeX source code:
5559    * Environments of any kind.  The only requirement is that the
5560      `\begin' statement appears on a new line, preceded by only
5561      whitespace.
5563    * Text within the usual LaTeX math delimiters.  To avoid conflicts
5564      with currency specifications, single `$' characters are only
5565      recognized as math delimiters if the enclosed text contains at
5566      most two line breaks, is directly attached to the `$' characters
5567      with no whitespace in between, and if the closing `$' is followed
5568      by whitespace or punctuation.  For the other delimiters, there is
5569      no such restriction, so when in doubt, use `\(...\)' as inline
5570      math delimiters.
5572 For example:
5574      \begin{equation}                          % arbitrary environments,
5575      x=\sqrt{b}                                % even tables, figures
5576      \end{equation}                            % etc
5578      If $a^2=b$ and \( b=2 \), then the solution must be
5579      either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
5581 If you need any of the delimiter ASCII sequences for other purposes, you
5582 can configure the option `org-format-latex-options' to deselect the
5583 ones you do not wish to have interpreted by the LaTeX converter.
5585    ---------- Footnotes ----------
5587    (1) Yes, there is MathML, but that is not yet fully supported by
5588 many browsers, and there is no decent converter for turning LaTeX or
5589 ASCII representations of formulas into MathML. So for the time being,
5590 converting formulas into images seems the way to go.
5592    (2) The LaTeX export will not use images for displaying LaTeX
5593 fragments but include these fragments directly into the LaTeX code.
5595 \x1f
5596 File: org,  Node: Processing LaTeX fragments,  Next: CDLaTeX mode,  Prev: LaTeX fragments,  Up: Embedded LaTeX
5598 11.4 Processing LaTeX fragments
5599 ===============================
5601 LaTeX fragments can be processed to produce a preview images of the
5602 typeset expressions:
5604 `C-c C-x C-l'
5605      Produce a preview image of the LaTeX fragment at point and overlay
5606      it over the source code.  If there is no fragment at point,
5607      process all fragments in the current entry (between two
5608      headlines).  When called with a prefix argument, process the
5609      entire subtree.  When called with two prefix arguments, or when
5610      the cursor is before the first headline, process the entire buffer.  
5612 `C-c C-c'
5613      Remove the overlay preview images.
5615    During HTML export (*note HTML export::), all LaTeX fragments are
5616 converted into images and inlined into the document if the following
5617 setting is active:
5619      (setq org-export-with-LaTeX-fragments t)
5621 \x1f
5622 File: org,  Node: CDLaTeX mode,  Prev: Processing LaTeX fragments,  Up: Embedded LaTeX
5624 11.5 Using CDLaTeX to enter math
5625 ================================
5627 CDLaTeX-mode is a minor mode that is normally used in combination with a
5628 major LaTeX mode like AUCTeX in order to speed-up insertion of
5629 environments and math templates.  Inside Org-mode, you can make use of
5630 some of the features of cdlatex-mode.  You need to install `cdlatex.el'
5631 and `texmathp.el' (the latter comes also with AUCTeX) from
5632 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'.  Don't turn
5633 cdlatex-mode itself under Org-mode, but use the light version
5634 `org-cdlatex-mode' that comes as part of Org-mode.  Turn it on for the
5635 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
5636 with
5638      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
5640    When this mode is enabled, the following features are present (for
5641 more details see the documentation of cdlatex-mode):
5642    * Environment templates can be inserted with `C-c {'.
5644    * The <TAB> key will do template expansion if the cursor is inside a
5645      LaTeX fragment(1).  For example, <TAB> will expand `fr' to
5646      `\frac{}{}' and position the cursor correctly inside the first
5647      brace.  Another <TAB> will get you into the second brace.  Even
5648      outside fragments, <TAB> will expand environment abbreviations at
5649      the beginning of a line.  For example, if you write `equ' at the
5650      beginning of a line and press <TAB>, this abbreviation will be
5651      expanded to an `equation' environment.  To get a list of all
5652      abbreviations, type `M-x cdlatex-command-help'.
5654    * Pressing `_' and `^' inside a LaTeX fragment will insert these
5655      characters together with a pair of braces.  If you use <TAB> to
5656      move out of the braces, and if the braces surround only a single
5657      character or macro, they are removed again (depending on the
5658      variable `cdlatex-simplify-sub-super-scripts').
5660    * Pressing the backquote ``' followed by a character inserts math
5661      macros, also outside LaTeX fragments.  If you wait more than 1.5
5662      seconds after the backquote, a help window will pop up.
5664    * Pressing the normal quote `'' followed by another character
5665      modifies the symbol before point with an accent or a font.  If you
5666      wait more than 1.5 seconds after the backquote, a help window will
5667      pop up.  Character modification will work only inside LaTeX
5668      fragments, outside the quote is normal.
5670    ---------- Footnotes ----------
5672    (1) Org-mode has a method to test if the cursor is inside such a
5673 fragment, see the documentation of the function
5674 `org-inside-LaTeX-fragment-p'.
5676 \x1f
5677 File: org,  Node: Exporting,  Next: Publishing,  Prev: Embedded LaTeX,  Up: Top
5679 12 Exporting
5680 ************
5682 Org-mode documents can be exported into a variety of other formats.  For
5683 printing and sharing of notes, ASCII export produces a readable and
5684 simple version of an Org-mode file.  HTML export allows you to publish a
5685 notes file on the web, while the XOXO format provides a solid base for
5686 exchange with a broad range of other applications. LaTeX export lets
5687 you use Org-mode and its structured editing functions to easily create
5688 LaTeX files.  To incorporate entries with associated times like
5689 deadlines or appointments into a desktop calendar program like iCal,
5690 Org-mode can also produce extracts in the iCalendar format.  Currently
5691 Org-mode only supports export, not import of these different formats.
5693    When exporting, Org-mode uses special conventions to enrich the
5694 output produced.  *Note Text interpretation::, for more details.
5696 `C-c C-e'
5697      Dispatcher for export and publishing commands.  Displays a
5698      help-window listing the additional key(s) needed to launch an
5699      export or publishing command.
5701 * Menu:
5703 * ASCII export::                Exporting to plain ASCII
5704 * HTML export::                 Exporting to HTML
5705 * LaTeX export::                Exporting to LaTeX
5706 * XOXO export::                 Exporting to XOXO
5707 * iCalendar export::            Exporting in iCalendar format
5708 * Text interpretation::         How the exporter looks at the file
5710 \x1f
5711 File: org,  Node: ASCII export,  Next: HTML export,  Prev: Exporting,  Up: Exporting
5713 12.1 ASCII export
5714 =================
5716 ASCII export produces a simple and very readable version of an Org-mode
5717 file.
5719 `C-c C-e a'
5720      Export as ASCII file.  For an org file `myfile.org', the ASCII file
5721      will be `myfile.txt'.  The file will be overwritten without
5722      warning.  If there is an active region, only the region will be
5723      exported. If the selected region is a single tree, the tree head
5724      will become the document title.  If the tree head entry has or
5725      inherits an `:EXPORT_FILE_NAME:' property, that name will be used
5726      for the export.  
5728 `C-c C-e v a'
5729      Export only the visible part of the document.
5731    In the exported version, the first 3 outline levels will become
5732 headlines, defining a general document structure.  Additional levels
5733 will be exported as itemized lists.  If you want that transition to
5734 occur at a different level, specify it with a prefix argument.  For
5735 example,
5737      C-1 C-c C-e a
5739 creates only top level headlines and does the rest as items.  When
5740 headlines are converted to items, the indentation of the text following
5741 the headline is changed to fit nicely under the item.  This is done with
5742 the assumption that the first bodyline indicates the base indentation of
5743 the body text.  Any indentation larger than this is adjusted to preserve
5744 the layout relative to the first line.  Should there be lines with less
5745 indentation than the first, these are left alone.
5747 \x1f
5748 File: org,  Node: HTML export,  Next: LaTeX export,  Prev: ASCII export,  Up: Exporting
5750 12.2 HTML export
5751 ================
5753 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
5754 HTML formatting, in ways similar to John Grubers _markdown_ language,
5755 but with additional support for tables.
5757 * Menu:
5759 * HTML Export commands::        How to invoke LaTeX export
5760 * Quoting HTML tags::           Using direct HTML in Org-mode
5761 * Links::                       Transformation of links for HTML
5762 * Images::                      How to include images
5763 * CSS support::                 Changing the appearence of the output
5765 \x1f
5766 File: org,  Node: HTML Export commands,  Next: Quoting HTML tags,  Prev: HTML export,  Up: HTML export
5768 12.2.1 HTML export commands
5769 ---------------------------
5771 `C-c C-e h'
5772      Export as HTML file `myfile.html'.  For an org file `myfile.org',
5773      the ASCII file will be `myfile.html'.  The file will be
5774      overwritten without warning.  If there is an active region, only
5775      the region will be exported. If the selected region is a single
5776      tree, the tree head will become the document title.  If the tree
5777      head entry has or inherits an `:EXPORT_FILE_NAME:' property, that
5778      name will be used for the export.  
5780 `C-c C-e b'
5781      Export as HTML file and immediately open it with a browser.  
5783 `C-c C-e H'
5784      Export to a temporary buffer, do not create a file.  
5786 `C-c C-e R'
5787      Export the active region to a temporary buffer.  With prefix arg,
5788      do not produce file header and foot, but just the plain HTML
5789      section for the region.  This is good for cut-and-paste operations.  
5791 `C-c C-e v h'
5793 `C-c C-e v b'
5795 `C-c C-e v H'
5797 `C-c C-e v R'
5798      Export only the visible part of the document.
5800 `M-x org-export-region-as-html'
5801      Convert the region to HTML under the assumption that it was
5802      org-mode syntax before.  This is a global command that can be
5803      invoked in any buffer.
5805 `M-x org-replace-region-by-HTML'
5806      Replace the active region (assumed to be in Org-mode syntax) by
5807      HTML code.
5809    In the exported version, the first 3 outline levels will become
5810 headlines, defining a general document structure.  Additional levels
5811 will be exported as itemized lists.  If you want that transition to
5812 occur at a different level, specify it with a prefix argument.  For
5813 example,
5815      C-2 C-c C-e b
5817 creates two levels of headings and does the rest as items.
5819 \x1f
5820 File: org,  Node: Quoting HTML tags,  Next: Links,  Prev: HTML Export commands,  Up: HTML export
5822 12.2.2 Quoting HTML tags
5823 ------------------------
5825 Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
5826 export.  If you want to include simple HTML tags which should be
5827 interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
5828 Note that this really works only for simple tags.  For more extensive
5829 HTML that should be copied verbatim to the exported file use either
5831      #+HTML: Literal HTML code for export
5835      #+BEGIN_HTML
5836      All lines between these markers are exported literally
5837      #+END_HTML
5839 \x1f
5840 File: org,  Node: Links,  Next: Images,  Prev: Quoting HTML tags,  Up: HTML export
5842 12.2.3 Links
5843 ------------
5845 Internal links (*note Internal links::) will continue to work in HTML
5846 files only if they match a dedicated `<<target>>'.  Automatic links
5847 created by radio targets (*note Radio targets::) will also work in the
5848 HTML file.  Links to external files will still work if the HTML file is
5849 in the same directory as the Org-mode file.  Links to other `.org'
5850 files will be translated into HTML links under the assumption that an
5851 HTML version also exists of the linked file.  For information related to
5852 linking files while publishing them to a publishing directory see *Note
5853 Publishing links::.
5855 \x1f
5856 File: org,  Node: Images,  Next: CSS support,  Prev: Links,  Up: HTML export
5858 12.2.4 Images
5859 -------------
5861 HTML export can inline images given as links in the Org-mode file, and
5862 it can make an image the clickable part of a link.  By default(1),
5863 images are inlined if a link does not have a description.  So
5864 `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
5865 image]]' will just produce a link `the image' that points to the image.
5866 If the description part itself is a `file:' link or a `http:' URL
5867 pointing to an image, this image will be inlined and activated so that
5868 clicking on the image will activate the link.  For example, to include
5869 a thumbnail that will link to a high resolution version of the image,
5870 you could use:
5872      [[file:highres.jpg][file:thumb.jpg]]
5874 and you could use `http' addresses just as well.
5876    ---------- Footnotes ----------
5878    (1) but see the variable `org-export-html-inline-images'
5880 \x1f
5881 File: org,  Node: CSS support,  Prev: Images,  Up: HTML export
5883 12.2.5 CSS support
5884 ------------------
5886 You can also give style information for the exported file.  The HTML
5887 exporter assigns the following CSS classes to appropriate parts of the
5888 document - your style specifications may change these:
5889      .todo           TODO keywords
5890      .done           the DONE keyword
5891      .timestamp      time stamp
5892      .timestamp-kwd  keyword associated with a time stamp, like SCHEDULED
5893      .tag            tag in a headline
5894      .target         target for links
5896    The default style specification can be configured through the option
5897 `org-export-html-style'.  If you want to use a file-local style, you
5898 may use file variables, best wrapped into a COMMENT section at the end
5899 of the outline tree.  For example(1):
5901      * COMMENT html style specifications
5903      # Local Variables:
5904      # org-export-html-style: "   <style type=\"text/css\">
5905      #       p {font-weight: normal; color: gray; }
5906      #       h1 {color: black; }
5907      #   </style>"
5908      # End:
5910    Remember to execute `M-x normal-mode' after changing this to make
5911 the new style visible to Emacs.  This command restarts org-mode for the
5912 current buffer and forces Emacs to re-evaluate the local variables
5913 section in the buffer.
5915    ---------- Footnotes ----------
5917    (1) Under Emacs 21, the continuation lines for a variable value
5918 should have no `#' at the start of the line.
5920 \x1f
5921 File: org,  Node: LaTeX export,  Next: XOXO export,  Prev: HTML export,  Up: Exporting
5923 12.3 LaTeX export
5924 =================
5926 Org-mode contains a LaTeX exporter written by Bastien Guerry.
5928 * Menu:
5930 * LaTeX export commands::       How to invoke LaTeX export
5931 * Quoting LaTeX code::          Incorporating literal LaTeX code
5932 * Sectioning structure::
5934 \x1f
5935 File: org,  Node: LaTeX export commands,  Next: Quoting LaTeX code,  Prev: LaTeX export,  Up: LaTeX export
5937 12.3.1 LaTeX export commands
5938 ----------------------------
5940 `C-c C-e l'
5941      Export as LaTeX file `myfile.tex'.  
5943 `C-c C-e L'
5944      Export to a temporary buffer, do not create a file.  
5946 `C-c C-e v l'
5948 `C-c C-e v L'
5949      Export only the visible part of the document.
5951 `M-x org-export-region-as-latex'
5952      Convert the region to LaTeX under the assumption that it was
5953      org-mode syntax before.  This is a global command that can be
5954      invoked in any buffer.
5956 `M-x org-replace-region-by-latex'
5957      Replace the active region (assumed to be in Org-mode syntax) by
5958      LaTeX code.
5960    In the exported version, the first 3 outline levels will become
5961 headlines, defining a general document structure.  Additional levels
5962 will be exported as description lists.  The exporter can ignore them or
5963 convert them to a custom string depending on `org-latex-low-levels'.
5965    If you want that transition to occur at a different level, specify it
5966 with a prefix argument. For example,
5968      C-2 C-c C-e l
5970 creates two levels of headings and does the rest as items.
5972 \x1f
5973 File: org,  Node: Quoting LaTeX code,  Next: Sectioning structure,  Prev: LaTeX export commands,  Up: LaTeX export
5975 12.3.2 Quoting LaTeX code
5976 -------------------------
5978 Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
5979 inserted into the LaTeX file.  Forthermore, you can add special code
5980 that should only be present in LaTeX export with the following
5981 constructs:
5983      #+LaTeX: Literal LaTeX code for export
5987      #+BEGIN_LaTeX
5988      All lines between these markers are exported literally
5989      #+END_LaTeX
5991 \x1f
5992 File: org,  Node: Sectioning structure,  Prev: Quoting LaTeX code,  Up: LaTeX export
5994 12.3.3 Sectioning structure
5995 ---------------------------
5997 By default, the LaTeX output uses the class `article'.
5999    You can change this globally by setting a different value for
6000 `org-export-latex-default-class' or locally by adding an option like
6001 `#+LaTeX_CLASS: myclass' in your file.  The class should be listed in
6002 `org-export-latex-classes', where you can also define the sectioning
6003 structure for each class.
6005 \x1f
6006 File: org,  Node: XOXO export,  Next: iCalendar export,  Prev: LaTeX export,  Up: Exporting
6008 12.4 XOXO export
6009 ================
6011 Org-mode contains an exporter that produces XOXO-style output.
6012 Currently, this exporter only handles the general outline structure and
6013 does not interpret any additional Org-mode features.
6015 `C-c C-e x'
6016      Export as XOXO file `myfile.html'.  
6018 `C-c C-e v x'
6019      Export only the visible part of the document.
6021 \x1f
6022 File: org,  Node: iCalendar export,  Next: Text interpretation,  Prev: XOXO export,  Up: Exporting
6024 12.5 iCalendar export
6025 =====================
6027 Some people like to use Org-mode for keeping track of projects, but
6028 still prefer a standard calendar application for anniversaries and
6029 appointments.  In this case it can be useful to have deadlines and
6030 other time-stamped items in Org-mode files show up in the calendar
6031 application.  Org-mode can export calendar information in the standard
6032 iCalendar format.  If you also want to have TODO entries included in the
6033 export, configure the variable `org-icalendar-include-todo'.
6035 `C-c C-e i'
6036      Create iCalendar entries for the current file and store them in
6037      the same directory, using a file extension `.ics'.  
6039 `C-c C-e I'
6040      Like `C-c C-e i', but do this for all files in `org-agenda-files'.
6041      For each of these files, a separate iCalendar file will be
6042      written.  
6044 `C-c C-e c'
6045      Create a single large iCalendar file from all files in
6046      `org-agenda-files' and write it to the file given by
6047      `org-combined-agenda-icalendar-file'.
6049    The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
6050 the selected entries have them.  If not, the summary will be derived
6051 from the headline, and the description from the body (limited to
6052 `org-icalendar-include-body' characters).
6054    How this calendar is best read and updated, depends on the
6055 application you are using.  The FAQ covers this issue.
6057 \x1f
6058 File: org,  Node: Text interpretation,  Prev: iCalendar export,  Up: Exporting
6060 12.6 Text interpretation by the exporter
6061 ========================================
6063 The exporter backends interpret additional structure in the Org-mode
6064 file in order to produce better output.
6066 * Menu:
6068 * Comment lines::               Some lines will not be exported
6069 * Initial text::                Text before the first headline
6070 * Footnotes::                   Numbers like [1]
6071 * Quoted examples::             Inserting quoted chnuks of text
6072 * Enhancing text::              Subscripts, symbols and more
6073 * Export options::              How to influence the export settings
6075 \x1f
6076 File: org,  Node: Comment lines,  Next: Initial text,  Prev: Text interpretation,  Up: Text interpretation
6078 12.6.1 Comment lines
6079 --------------------
6081 Lines starting with `#' in column zero are treated as comments and will
6082 never be exported.  Also entire subtrees starting with the word
6083 `COMMENT' will never be exported.
6085 `C-c ;'
6086      Toggle the COMMENT keyword at the beginning of an entry.
6088 \x1f
6089 File: org,  Node: Initial text,  Next: Footnotes,  Prev: Comment lines,  Up: Text interpretation
6091 12.6.2 Text before the first headline
6092 -------------------------------------
6094 Org-mode normally ignores any text before the first headline when
6095 exporting, leaving this region for internal links to speed up navigation
6096 etc.  However, in publishing-oriented files, you might want to have some
6097 text before the first headline, like a small introduction, special HTML
6098 code with a navigation bar, etc.  You can ask to have this part of the
6099 file exported as well by setting the variable
6100 `org-export-skip-text-before-1st-heading' to `nil'.  On a per-file
6101 basis, you can get the same effect with
6103      #+OPTIONS: skip:nil
6105    The text before the first headline will be fully processed (*note
6106 Enhancing text::), and the first non-comment line becomes the title of
6107 the exported document.  If you need to include literal HTML, use the
6108 special constructs described in *Note Quoting HTML tags::.  The table
6109 of contents is normally inserted directly before the first headline of
6110 the file.  If you would like to get it to a different location, insert
6111 the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
6112 location.
6114    Finally, if you want to use the space before the first headline for
6115 internal purposes, but _still_ want to place something before the first
6116 headline when exporting the file, you can use the `#+TEXT' construct:
6118      #+OPTIONS: skip:t
6119      #+TEXT: This text will go before the *first* headline.
6120      #+TEXT: We place the table of contents here:
6121      #+TEXT: [TABLE-OF-CONTENTS]
6122      #+TEXT: This goes between the table of contents and the first headline
6124 \x1f
6125 File: org,  Node: Footnotes,  Next: Quoted examples,  Prev: Initial text,  Up: Text interpretation
6127 12.6.3 Footnotes
6128 ----------------
6130 Numbers in square brackets are treated as footnotes, so that you can use
6131 the Emacs package `footnote.el' to create footnotes.  For example:
6133      The org-mode homepage[1] clearly needs help from
6134      a good web designer.
6136      [1] The link is: http://orgmode.org
6138 Note that the `footnote' package uses `C-c !' to invoke its commands.
6139 This binding conflicts with the org-mode command for inserting inactive
6140 time stamps.  You could use the variable `footnote-prefix' to switch
6141 footnotes commands to another key.  Or, if you are too used to this
6142 binding, you could use `org-replace-disputed-keys' and
6143 `org-disputed-keys' to change the settings in Org-mode.
6145 \x1f
6146 File: org,  Node: Quoted examples,  Next: Enhancing text,  Prev: Footnotes,  Up: Text interpretation
6148 12.6.4 Quoted examples
6149 ----------------------
6151 When writing technical documents, you often need to insert examples that
6152 are not further interpreted by Org-mode.  For historical reasons, there
6153 are several ways to do this:
6155    * If a headline starts with the word `QUOTE', the text below the
6156      headline will be typeset as fixed-width, to allow quoting of
6157      computer codes etc.
6159    * Lines starting with `:' are also typeset in fixed-width font.
6160     `C-c :'
6161           Toggle fixed-width for entry (QUOTE) or region, see below.
6163    * Finally, text between
6164           #+BEGIN_EXAMPLE
6165           quoted text
6166           #+END_EXAMPLE
6167      will also be exported in this way.
6169 \x1f
6170 File: org,  Node: Enhancing text,  Next: Export options,  Prev: Quoted examples,  Up: Text interpretation
6172 12.6.5 Enhancing text for export
6173 --------------------------------
6175 Some of the export backends of Org-mode allow for sophisticated text
6176 formatting, this is true in particular for the HTML and LaTeX backends.
6177 Org-mode has a number of typing conventions that allow to produce a
6178 richly formatted output.
6180    * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
6181      enumerator will be recognized and transformed if the backend
6182      supports lists.  See *Note Plain lists::.
6184    * You can make words *bold*, /italic/, _underlined_, `=code=' and
6185      `~verbatim~', and, if you must, `+strikethrough+'.  Text in the
6186      code and verbatim string is not processed for org-mode specific
6187      syntax, it is exported verbatim.
6189    * A line consisting of only dashes, and at least 5 of them, will be
6190      exported as a horizontal line (`<hr/>' in HTML).
6192    * Many TeX macros and entire LaTeX fragments are converted into HTML
6193      entities or images (*note Embedded LaTeX::).
6195    * Tables are transformed into native tables under the exporter, if
6196      the export backend supports this. Data fields before the first
6197      horizontal separator line will be formatted as table header fields.
6199    * If a headline starts with the word `QUOTE', the text below the
6200      headline will be typeset as fixed-width, to allow quoting of
6201      computer codes etc.  Lines starting with `:' are also typeset in
6202      fixed-width font.
6203     `C-c :'
6204           Toggle fixed-width for entry (QUOTE) or region, see below.
6205      Finally, text between
6206           #+BEGIN_EXAMPLE
6207           quoted text
6208           #+END_EXAMPLE
6209      will also be exported in this way.
6211    * A double backslash _at the end of a line_ enforces a line break at
6212      this position.
6214    * Strings like `\alpha' will be exported as `&alpha;', in the HTML
6215      output.  These strings are exported as `$\alpha$' in the LaTeX
6216      output.  Similarly, `\nbsp' will become `&nbsp;' in HTML and in
6217      LaTeX.  This applies for a long list of entities, see the variable
6218      `org-html-entities' for the complete list.
6220    If these conversions conflict with your habits of typing ASCII text,
6221 they can all be turned off with corresponding variables.  See the
6222 customization group `org-export-general', and the following section
6223 which explains how to set export options with special lines in a buffer.
6225 \x1f
6226 File: org,  Node: Export options,  Prev: Enhancing text,  Up: Text interpretation
6228 12.6.6 Export options
6229 ---------------------
6231 The exporter recognizes special lines in the buffer which provide
6232 additional information.  These lines may be put anywhere in the file.
6233 The whole set of lines can be inserted into the buffer with `C-c C-e
6234 t'.  For individual lines, a good way to make sure the keyword is
6235 correct is to type `#+' and then use `M-<TAB>' completion (*note
6236 Completion::).
6238 `C-c C-e t'
6239      Insert template with export options, see example below.
6241      #+TITLE:     the title to be shown (default is the buffer name)
6242      #+AUTHOR:    the author (default taken from `user-full-name')
6243      #+DATE:      A date, fixed, of a format string for `format-time-string'
6244      #+EMAIL:     his/her email address (default from `user-mail-address')
6245      #+LANGUAGE:  language for HTML, e.g. `en' (`org-export-default-language')
6246      #+TEXT:      Some descriptive text to be inserted at the beginning.
6247      #+TEXT:      Several lines may be given.
6248      #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
6250 The OPTIONS line is a compact form to specify export settings.  Here
6251 you can: 
6252      H:         set the number of headline levels for export
6253      num:       turn on/off section-numbers
6254      toc:       turn on/off table of contents, or set level limit (integer)
6255      \n:        turn on/off linebreak-preservation
6256      @:         turn on/off quoted HTML tags
6257      ::         turn on/off fixed-width sections
6258      |:         turn on/off tables
6259      ^:         turn on/off TeX-like syntax for sub- and superscripts.  If
6260                 you write "^:{}", `a_{b}' will be interpreted, but
6261                 the simple `a_b' will be left as it is.
6262      -:         turn on/off conversion of special strings.
6263      f:         turn on/off foototes like this[1].
6264      *:         turn on/off emphasized text (bold, italic, underlined)
6265      TeX:       turn on/off simple TeX macros in plain text
6266      LaTeX:     turn on/off LaTeX fragments
6267      skip:      turn on/off skipping the text before the first heading
6268      author:    turn on/off inclusion of author name/email into exported file
6269      timestamp: turn on/off inclusion creation time into exported file
6270      d:         turn on/off inclusion of drawers
6272    These options take effect in both the HTML and LaTeX export, except
6273 for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
6274 LaTeX export.
6276 \x1f
6277 File: org,  Node: Publishing,  Next: Miscellaneous,  Prev: Exporting,  Up: Top
6279 13 Publishing
6280 *************
6282 Org-mode includes(1) a publishing management system that allows you to
6283 configure automatic HTML conversion of _projects_ composed of
6284 interlinked org files.  This system is called _org-publish_.  You can
6285 also configure org-publish to automatically upload your exported HTML
6286 pages and related attachments, such as images and source code files, to
6287 a web server. Org-publish turns org-mode into a web-site authoring tool.
6289    You can also use Org-publish to convert files into LaTeX, or even
6290 combine HTML and LaTeX conversion so that files are available in both
6291 formats on the server(2).
6293    Org-publish has been contributed to Org-mode by David O'Toole.
6295 * Menu:
6297 * Configuration::               Defining projects
6298 * Sample configuration::        Example projects
6299 * Triggering publication::      Publication commands
6301    ---------- Footnotes ----------
6303    (1) `org-publish.el' is not distributed with Emacs 21, if you are
6304 still using Emacs 21, you need you need to download this file
6305 separately.
6307    (2) Since LaTeX files on a server are not that helpful, you surely
6308 want to perform further conversion on them - e.g. convert them to `PDF'
6309 format.
6311 \x1f
6312 File: org,  Node: Configuration,  Next: Sample configuration,  Prev: Publishing,  Up: Publishing
6314 13.1 Configuration
6315 ==================
6317 Publishing needs significant configuration to specify files, destination
6318 and many other properties of a project.
6320 * Menu:
6322 * Project alist::               The central configuration variable
6323 * Sources and destinations::    From here to there
6324 * Selecting files::             What files are part of the project?
6325 * Publishing action::           Setting the function doing the publishing
6326 * Publishing options::          Tweaking HTML export
6327 * Publishing links::            Which links keep working after publishing?
6328 * Project page index::          Publishing a list of project files
6330 \x1f
6331 File: org,  Node: Project alist,  Next: Sources and destinations,  Prev: Configuration,  Up: Configuration
6333 13.1.1 The variable `org-publish-project-alist'
6334 -----------------------------------------------
6336 Org-publish is configured almost entirely through setting the value of
6337 one variable, called `org-publish-project-alist'.  Each element of the
6338 list configures one project, and may be in one of the two following
6339 forms:
6341      ("project-name" :property value :property value ...)
6343      or
6345      ("project-name" :components ("project-name" "project-name" ...))
6347    In both cases, projects are configured by specifying property values.
6348 A project defines the set of files that will be published, as well as
6349 the publishing configuration to use when publishing those files.  When
6350 a project takes the second form listed above, the individual members of
6351 the "components" property are taken to be components of the project,
6352 which group together files requiring different publishing options. When
6353 you publish such a "meta-project" all the components will also publish.
6355 \x1f
6356 File: org,  Node: Sources and destinations,  Next: Selecting files,  Prev: Project alist,  Up: Configuration
6358 13.1.2 Sources and destinations for files
6359 -----------------------------------------
6361 Most properties are optional, but some should always be set. In
6362 particular, org-publish needs to know where to look for source files,
6363 and where to put published files.
6365 `:base-directory'      Directory containing publishing source files
6366 `:publishing-directory'Directory (possibly remote) where output files
6367                        will be published.
6368 `:preparation-function'Function called before starting publishing
6369                        process, for example to run `make' for updating
6370                        files to be published.
6372 \x1f
6373 File: org,  Node: Selecting files,  Next: Publishing action,  Prev: Sources and destinations,  Up: Configuration
6375 13.1.3 Selecting files
6376 ----------------------
6378 By default, all files with extension `.org' in the base directory are
6379 considered part of the project.  This can be modified by setting the
6380 properties
6381 `:base-extension'  Extension (without the dot!) of source files.  This
6382                    actually is a regular expression.
6383 `:exclude'         Regular expression to match file names that should
6384                    not be published, even though they have been selected
6385                    on the basis of their extension.
6386 `:include'         List of files to be included regardless of
6387                    `:base-extension' and `:exclude'.
6389 \x1f
6390 File: org,  Node: Publishing action,  Next: Publishing options,  Prev: Selecting files,  Up: Configuration
6392 13.1.4 Publishing Action
6393 ------------------------
6395 Publishing means that a file is copied to the destination directory and
6396 possibly transformed in the process.  The default transformation is to
6397 export Org-mode files as HTML files, and this is done by the function
6398 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
6399 export::). But you also can publish your files in LaTeX by using the
6400 function `org-publish-org-to-latex' instead. Other files like images
6401 only need to be copied to the publishing destination. For non-Org-mode
6402 files, you need to specify the publishing function.
6404 `:publishing-function' Function executing the publication of a file.
6405                        This may also be a list of functions, which will
6406                        all be called in turn.
6408    The function must accept two arguments: a property list containing at
6409 least a `:publishing-directory' property, and the name of the file to
6410 be published.  It should take the specified file, make the necessary
6411 transformation (if any) and place the result into the destination
6412 folder.  You can write your own publishing function, but `org-publish'
6413 provides one for attachments (files that only need to be copied):
6414 `org-publish-attachment'.
6416 \x1f
6417 File: org,  Node: Publishing options,  Next: Publishing links,  Prev: Publishing action,  Up: Configuration
6419 13.1.5 Options for the HTML/LaTeX exporters
6420 -------------------------------------------
6422 The property list can be used to set many export options for the HTML
6423 and LaTeX exporters.  In most cases, these properties correspond to user
6424 variables in Org-mode.  The table below lists these properties along
6425 with the variable they belong to.  See the documentation string for the
6426 respective variable for details.
6428 `:language'            `org-export-default-language'
6429 `:headline-levels'     `org-export-headline-levels'
6430 `:section-numbers'     `org-export-with-section-numbers'
6431 `:table-of-contents'   `org-export-with-toc'
6432 `:archived-trees'      `org-export-with-archived-trees'
6433 `:emphasize'           `org-export-with-emphasize'
6434 `:sub-superscript'     `org-export-with-sub-superscripts'
6435 `:special-strings'     `org-export-with-special-strings'
6436 `:TeX-macros'          `org-export-with-TeX-macros'
6437 `:LaTeX-fragments'     `org-export-with-LaTeX-fragments'
6438 `:fixed-width'         `org-export-with-fixed-width'
6439 `:timestamps'          `org-export-with-timestamps'
6440  .                     
6441 `:tags'                `org-export-with-tags'
6442  .                     
6443 `:tables'              `org-export-with-tables'
6444 `:table-auto-headline' `org-export-highlight-first-table-line'
6445 `:style'               `org-export-html-style'
6446 `:convert-org-links'   `org-export-html-link-org-files-as-html'
6447 `:inline-images'       `org-export-html-inline-images'
6448 `:expand-quoted-html'  `org-export-html-expand'
6449 `:timestamp'           `org-export-html-with-timestamp'
6450 `:publishing-directory'`org-export-publishing-directory'
6451 `:preamble'            `org-export-html-preamble'
6452 `:postamble'           `org-export-html-postamble'
6453 `:auto-preamble'       `org-export-html-auto-preamble'
6454 `:auto-postamble'      `org-export-html-auto-postamble'
6455 `:author'              `user-full-name'
6456 `:email'               `user-mail-address'
6458    If you use several email addresses, separate them by a semi-column.
6460    Most of the `org-export-with-*' variables have the same effect in
6461 both HTML and LaTeX exporters, except for `:TeX-macros' and
6462 `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
6464    When a property is given a value in `org-publish-project-alist', its
6465 setting overrides the value of the corresponding user variable (if any)
6466 during publishing.  Options set within a file (*note Export options::),
6467 however, override everything.
6469 \x1f
6470 File: org,  Node: Publishing links,  Next: Project page index,  Prev: Publishing options,  Up: Configuration
6472 13.1.6 Links between published files
6473 ------------------------------------
6475 To create a link from one Org-mode file to another, you would use
6476 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
6477 (*note Hyperlinks::).  Upon publishing this link becomes a link to
6478 `foo.html'.  In this way, you can interlink the pages of your "org web"
6479 project and the links will work as expected when you publish them to
6480 HTML.
6482    You may also link to related files, such as images. Provided you are
6483 careful with relative pathnames, and provided you have also configured
6484 `org-publish' to upload the related files, these links will work too.
6485 *Note Complex example:: for an example of this usage.
6487    Sometime an Org-mode file to be published may contain links that are
6488 only valid in your production environment, but not in the publishing
6489 location.  In this case, use the property
6491 `:link-validation-function'   Function to validate links
6493 to define a function for checking link validity.  This function must
6494 accept two arguments, the file name and a directory relative to which
6495 the file name is interpreted in the production environment.  If this
6496 function returns `nil', then the HTML generator will only insert a
6497 description into the HTML file, but no link.  One option for this
6498 function is `org-publish-validate-link' which checks if the given file
6499 is part of any project in `org-publish-project-alist'.
6501 \x1f
6502 File: org,  Node: Project page index,  Prev: Publishing links,  Up: Configuration
6504 13.1.7 Project page index
6505 -------------------------
6507 The following properties may be used to control publishing of an index
6508 of files or summary page for a given project.
6510 `:auto-index'      When non-nil, publish an index during
6511                    org-publish-current-project or org-publish-all.
6512 `:index-filename'  Filename for output of index. Defaults to `index.org'
6513                    (which becomes `index.html').
6514 `:index-title'     Title of index page. Defaults to name of file.
6515 `:index-function'  Plugin function to use for generation of index.
6516                    Defaults to `org-publish-org-index', which generates
6517                    a plain list of links to all files in the project.
6519 \x1f
6520 File: org,  Node: Sample configuration,  Next: Triggering publication,  Prev: Configuration,  Up: Publishing
6522 13.2 Sample configuration
6523 =========================
6525 Below we provide two example configurations.  The first one is a simple
6526 project publishing only a set of Org-mode files.  The second example is
6527 more complex, with a multi-component project.
6529 * Menu:
6531 * Simple example::              One-component publishing
6532 * Complex example::             A multi-component publishing example
6534 \x1f
6535 File: org,  Node: Simple example,  Next: Complex example,  Prev: Sample configuration,  Up: Sample configuration
6537 13.2.1 Example: simple publishing configuration
6538 -----------------------------------------------
6540 This example publishes a set of Org-mode files to the `public_html'
6541 directory on the local machine.
6543      (setq org-publish-project-alist
6544            '(("org"
6545               :base-directory "~/org/"
6546               :publishing-directory "~/public_html"
6547               :section-numbers nil
6548               :table-of-contents nil
6549               :style "<link rel=stylesheet
6550                      href=\"../other/mystyle.css\"
6551                      type=\"text/css\">")))
6553 \x1f
6554 File: org,  Node: Complex example,  Prev: Simple example,  Up: Sample configuration
6556 13.2.2 Example: complex publishing configuration
6557 ------------------------------------------------
6559 This more complicated example publishes an entire website, including
6560 org files converted to HTML, image files, emacs lisp source code, and
6561 stylesheets. The publishing-directory is remote and private files are
6562 excluded.
6564    To ensure that links are preserved, care should be taken to replicate
6565 your directory structure on the web server, and to use relative file
6566 paths. For example, if your org files are kept in `~/org' and your
6567 publishable images in `~/images', you'd link to an image with
6568      file:../images/myimage.png
6569    On the web server, the relative path to the image should be the
6570 same. You can accomplish this by setting up an "images" folder in the
6571 right place on the webserver, and publishing images to it.
6573      (setq org-publish-project-alist
6574            '(("orgfiles"
6575                :base-directory "~/org/"
6576                :base-extension "org"
6577                :publishing-directory "/ssh:user@host:~/html/notebook/"
6578                :publishing-function org-publish-org-to-html
6579                :exclude "PrivatePage.org"   ;; regexp
6580                :headline-levels 3
6581                :section-numbers nil
6582                :table-of-contents nil
6583                :style "<link rel=stylesheet
6584                        href=\"../other/mystyle.css\" type=\"text/css\">"
6585                :auto-preamble t
6586                :auto-postamble nil)
6588               ("images"
6589                :base-directory "~/images/"
6590                :base-extension "jpg\\|gif\\|png"
6591                :publishing-directory "/ssh:user@host:~/html/images/"
6592                :publishing-function org-publish-attachment)
6594               ("other"
6595                :base-directory "~/other/"
6596                :base-extension "css\\|el"
6597                :publishing-directory "/ssh:user@host:~/html/other/"
6598                :publishing-function org-publish-attachment)
6599               ("website" :components ("orgfiles" "images" "other"))))
6601 \x1f
6602 File: org,  Node: Triggering publication,  Prev: Sample configuration,  Up: Publishing
6604 13.3 Triggering publication
6605 ===========================
6607 Once org-publish is properly configured, you can publish with the
6608 following functions:
6610 `C-c C-e C'
6611      Prompt for a specific project and publish all files that belong to
6612      it.
6614 `C-c C-e P'
6615      Publish the project containing the current file.
6617 `C-c C-e F'
6618      Publish only the current file.
6620 `C-c C-e A'
6621      Publish all projects.
6623    Org uses timestamps to track when a file has changed. The above
6624 functions normally only publish changed files. You can override this and
6625 force publishing of all files by giving a prefix argument.
6627 \x1f
6628 File: org,  Node: Miscellaneous,  Next: Extensions and Hacking,  Prev: Publishing,  Up: Top
6630 14 Miscellaneous
6631 ****************
6633 * Menu:
6635 * Completion::                  M-TAB knows what you need
6636 * Customization::               Adapting Org-mode to your taste
6637 * In-buffer settings::          Overview of the #+KEYWORDS
6638 * The very busy C-c C-c key::   When in doubt, press C-c C-c
6639 * Clean view::                  Getting rid of leading stars in the outline
6640 * TTY keys::                    Using Org-mode on a tty
6641 * Interaction::                 Other Emacs packages
6642 * Bugs::                        Things which do not work perfectly
6644 \x1f
6645 File: org,  Node: Completion,  Next: Customization,  Prev: Miscellaneous,  Up: Miscellaneous
6647 14.1 Completion
6648 ===============
6650 Org-mode supports in-buffer completion.  This type of completion does
6651 not make use of the minibuffer.  You simply type a few letters into the
6652 buffer and use the key to complete text right there.
6654 `M-<TAB>'
6655      Complete word at point
6656         * At the beginning of a headline, complete TODO keywords.
6658         * After `\', complete TeX symbols supported by the exporter.
6660         * After `*', complete headlines in the current buffer so that
6661           they can be used in search links like `[[*find this
6662           headline]]'.
6664         * After `:' in a headline, complete tags.  The list of tags is
6665           taken from the variable `org-tag-alist' (possibly set through
6666           the `#+TAGS' in-buffer option, *note Setting tags::), or it
6667           is created dynamically from all tags used in the current
6668           buffer.
6670         * After `:' and not in a headline, complete property keys.  The
6671           list of keys is constructed dynamically from all keys used in
6672           the current buffer.
6674         * After `[', complete link abbreviations (*note Link
6675           abbreviations::).
6677         * After `#+', complete the special keywords like `TYP_TODO' or
6678           `OPTIONS' which set file-specific options for Org-mode.  When
6679           the option keyword is already complete, pressing `M-<TAB>'
6680           again will insert example settings for this keyword.
6682         * In the line after `#+STARTUP: ', complete startup keywords,
6683           i.e. valid keys for this line.
6685         * Elsewhere, complete dictionary words using ispell.
6687 \x1f
6688 File: org,  Node: Customization,  Next: In-buffer settings,  Prev: Completion,  Up: Miscellaneous
6690 14.2 Customization
6691 ==================
6693 There are more than 180 variables that can be used to customize
6694 Org-mode.  For the sake of compactness of the manual, I am not
6695 describing the variables here.  A structured overview of customization
6696 variables is available with `M-x org-customize'.  Or select `Browse Org
6697 Group' from the `Org->Customization' menu.  Many settings can also be
6698 activated on a per-file basis, by putting special lines into the buffer
6699 (*note In-buffer settings::).
6701 \x1f
6702 File: org,  Node: In-buffer settings,  Next: The very busy C-c C-c key,  Prev: Customization,  Up: Miscellaneous
6704 14.3 Summary of in-buffer settings
6705 ==================================
6707 Org-mode uses special lines in the buffer to define settings on a
6708 per-file basis.  These lines start with a `#+' followed by a keyword, a
6709 colon, and then individual words defining a setting.  Several setting
6710 words can be in the same line, but you can also have multiple lines for
6711 the keyword.  While these settings are described throughout the manual,
6712 here is a summary.  After changing any of those lines in the buffer,
6713 press `C-c C-c' with the cursor still in the line to activate the
6714 changes immediately.  Otherwise they become effective only when the
6715 file is visited again in a new Emacs session.
6717 `#+ARCHIVE: %s_done::'
6718      This line sets the archive location for the agenda file.  It
6719      applies for all subsequent lines until the next `#+ARCHIVE' line,
6720      or the end of the file.  The first such line also applies to any
6721      entries before it.  The corresponding variable is
6722      `org-archive-location'.
6724 `#+CATEGORY:'
6725      This line sets the category for the agenda file.  The category
6726      applies for all subsequent lines until the next `#+CATEGORY' line,
6727      or the end of the file.  The first such line also applies to any
6728      entries before it.
6730 `#+COLUMNS: %25ITEM .....'
6731      Set the default format for columns view.  This format applies when
6732      columns view is invoked in location where no `COLUMNS' property
6733      applies.
6735 `#+CONSTANTS: name1=value1 ...'
6736      Set file-local values for constants to be used in table formulas.
6737      This line set the local variable
6738      `org-table-formula-constants-local'.  The global version of this
6739      variable is `org-table-formula-constants'.
6741 `#+DRAWERS: NAME1 .....'
6742      Set the file-local set of drawers.  The corresponding global
6743      variable is `org-drawers'.
6745 `#+LINK:  linkword replace'
6746      These lines (several are allowed) specify link abbreviations.
6747      *Note Link abbreviations::.  The corresponding variable is
6748      `org-link-abbrev-alist'.
6750 `#+PRIORITIES: highest lowest default'
6751      This line sets the limits and the default for the priorities.  All
6752      three must be either letters A-Z or numbers 0-9.  The highest
6753      priority must have a lower ASCII number that the lowest priority.
6755 `#+PROPERTY: Property_Name Value'
6756      This line sets a default inheritance value for entries in the
6757      current buffer, most useful for specifying the allowed values of a
6758      property.
6760 `#+STARTUP:'
6761      This line sets options to be used at startup of Org-mode, when an
6762      Org-mode file is being visited.  The first set of options deals
6763      with the initial visibility of the outline tree.  The
6764      corresponding variable for global default settings is
6765      `org-startup-folded', with a default value `t', which means
6766      `overview'.  
6767           overview   top-level headlines only
6768           content    all headlines
6769           showall    no folding at all, show everything
6770      Then there are options for aligning tables upon visiting a file.
6771      This is useful in files containing narrowed table columns.  The
6772      corresponding variable is `org-startup-align-all-tables', with a
6773      default value `nil'.  
6774           align      align all tables
6775           noalign    don't align tables on startup
6776      Logging TODO state changes and clock intervals (variables
6777      `org-log-done' and `org-log-repeat') can be configured using these
6778      options.  
6779           logging          record a timestamp when an item is marked DONE
6780           nologging        don't record when items are marked DONE
6781           lognotedone      record timestamp and a note when DONE
6782           lognotestate     record timestamp and a note when TODO state changes
6783           logrepeat        record a note when re-instating a repeating item
6784           nologrepeat      do not record when re-instating repeating item
6785           lognoteclock-out record timestamp and a note when clocking out
6786      Here are the options for hiding leading stars in outline headings.
6787      The corresponding variables are `org-hide-leading-stars' and
6788      `org-odd-levels-only', both with a default setting `nil' (meaning
6789      `showstars' and `oddeven').  
6790           hidestars  make all but one of the stars starting a headline invisible.
6791           showstars  show all stars starting a headline
6792           odd        allow only odd outline levels (1,3,...)
6793           oddeven    allow all outline levels
6794      To turn on custom format overlays over time stamps (variables
6795      `org-put-time-stamp-overlays' and
6796      `org-time-stamp-overlay-formats'), use 
6797           customtime overlay custom time format
6798      The following options influence the table spreadsheet (variable
6799      `constants-unit-system').  
6800           constcgs   `constants.el' should use the c-g-s unit system
6801           constSI    `constants.el' should use the SI unit system
6803 `#+TAGS:  TAG1(c1) TAG2(c2)'
6804      These lines (several such lines are allowed) specify the legal
6805      tags in this file, and (potentially) the corresponding _fast tag
6806      selection_ keys.  The corresponding variable is `org-tag-alist'.
6808 `#+TBLFM:'
6809      This line contains the formulas for the table directly above the
6810      line.
6812 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
6813      These lines provide settings for exporting files.  For more
6814      details see *Note Export options::.
6816 `#+SEQ_TODO:   #+TYP_TODO:'
6817      These lines set the TODO keywords and their interpretation in the
6818      current file.  The corresponding variables are `org-todo-keywords'
6819      and `org-todo-interpretation'.
6821 \x1f
6822 File: org,  Node: The very busy C-c C-c key,  Next: Clean view,  Prev: In-buffer settings,  Up: Miscellaneous
6824 14.4 The very busy C-c C-c key
6825 ==============================
6827 The key `C-c C-c' has many purposes in org-mode, which are all
6828 mentioned scattered throughout this manual.  One specific function of
6829 this key is to add _tags_ to a headline (*note Tags::).  In many other
6830 circumstances it means something like _Hey Org-mode, look here and
6831 update according to what you see here_.  Here is a summary of what this
6832 means in different contexts.
6834    - If there are highlights in the buffer from the creation of a sparse
6835      tree, or from clock display, remove these highlights.
6837    - If the cursor is in one of the special `#+KEYWORD' lines, this
6838      triggers scanning the buffer for these lines and updating the
6839      information.
6841    - If the cursor is inside a table, realign the table.  This command
6842      works even if the automatic table editor has been turned off.
6844    - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
6845      entire table.
6847    - If the cursor is inside a table created by the `table.el' package,
6848      activate that table.
6850    - If the current buffer is a remember buffer, close the note and
6851      file it.  With a prefix argument, file it, without further
6852      interaction, to the default location.
6854    - If the cursor is on a `<<<target>>>', update radio targets and
6855      corresponding links in this buffer.
6857    - If the cursor is in a property line or at the start or end of a
6858      property drawer, offer property commands.
6860    - If the cursor is in a plain list item with a checkbox, toggle the
6861      status of the checkbox.
6863    - If the cursor is on a numbered item in a plain list, renumber the
6864      ordered list.
6866    - If the cursor is on the `#+BEGIN' line of a dynamical block, the
6867      block is updated.
6869 \x1f
6870 File: org,  Node: Clean view,  Next: TTY keys,  Prev: The very busy C-c C-c key,  Up: Miscellaneous
6872 14.5 A cleaner outline view
6873 ===========================
6875 Some people find it noisy and distracting that the Org-mode headlines
6876 are starting with a potentially large number of stars.  For example the
6877 tree from *Note Headlines:::
6879      * Top level headline
6880      ** Second level
6881      *** 3rd level
6882          some text
6883      *** 3rd level
6884          more text
6885      * Another top level headline
6887 Unfortunately this is deeply ingrained into the code of Org-mode and
6888 cannot be easily changed.  You can, however, modify the display in such
6889 a way that all leading stars become invisible and the outline more easy
6890 to read.  To do this, customize the variable `org-hide-leading-stars'
6891 like this:
6893      (setq org-hide-leading-stars t)
6895 or change this on a per-file basis with one of the lines (anywhere in
6896 the buffer)
6898      #+STARTUP: showstars
6899      #+STARTUP: hidestars
6901 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
6902 modifications.
6904    With stars hidden, the tree becomes:
6906      * Top level headline
6907       * Second level
6908        * 3rd level
6909          some text
6910        * 3rd level
6911          more text
6912      * Another top level headline
6914 Note that the leading stars are not truly replaced by whitespace, they
6915 are only fontified with the face `org-hide' that uses the background
6916 color as font color.  If you are not using either white or black
6917 background, you may have to customize this face to get the wanted
6918 effect.  Another possibility is to set this font such that the extra
6919 stars are almost invisible, for example using the color `grey90' on a
6920 white background.
6922    Things become cleaner still if you skip all the even levels and use
6923 only odd levels 1, 3, 5..., effectively adding two stars to go from one
6924 outline level to the next:
6926      * Top level headline
6927        * Second level
6928          * 3rd level
6929            some text
6930          * 3rd level
6931            more text
6932      * Another top level headline
6934 In order to make the structure editing and export commands handle this
6935 convention correctly, use
6937      (setq org-odd-levels-only t)
6939 or set this on a per-file basis with one of the following lines (don't
6940 forget to press `C-c C-c' with the cursor in the startup line to
6941 activate changes immediately).
6943      #+STARTUP: odd
6944      #+STARTUP: oddeven
6946    You can convert an Org-mode file from single-star-per-level to the
6947 double-star-per-level convention with `M-x org-convert-to-odd-levels
6948 RET' in that file.  The reverse operation is `M-x
6949 org-convert-to-oddeven-levels'.
6951 \x1f
6952 File: org,  Node: TTY keys,  Next: Interaction,  Prev: Clean view,  Up: Miscellaneous
6954 14.6 Using org-mode on a tty
6955 ============================
6957 Because Org-mode contains a large number of commands, by default much of
6958 Org-mode's core commands are bound to keys that are generally not
6959 accessible on a tty, such as the cursor keys (<left>, <right>, <up>,
6960 <down>), <TAB> and <RET>, in particular when used together with
6961 modifiers like <Meta> and/or <Shift>.  To access these commands on a
6962 tty when special keys are unavailable, the following alternative
6963 bindings can be used.  The tty bindings below will likely be more
6964 cumbersome; you may find for some of the bindings below that a
6965 customized work-around suits you better.  For example, changing a time
6966 stamp is really only fun with `S-<cursor>' keys, whereas on a tty you
6967 would rather use `C-c .' to re-insert the timestamp.
6969 Default     Alternative 1  Alternative 2
6970 `S-<TAB>'   `C-u <TAB>'    
6971 `M-<left>'  `C-c C-x l'    `<Esc> <left>'
6972 `M-S-<left>'`C-c C-x L'    
6973 `M-<right>' `C-c C-x r'    `<Esc>
6974                            <right>'
6975 `M-S-<right>'`C-c C-x R'    
6976 `M-<up>'    `C-c C-x u'    `<Esc> <up>'
6977 `M-S-<up>'  `C-c C-x U'    
6978 `M-<down>'  `C-c C-x d'    `<Esc> <down>'
6979 `M-S-<down>'`C-c C-x D'    
6980 `S-<RET>'   `C-c C-x c'    
6981 `M-<RET>'   `C-c C-x m'    `<Esc> <RET>'
6982 `M-S-<RET>' `C-c C-x M'    
6983 `S-<left>'  `C-c <left>'   
6984 `S-<right>' `C-c <right>'  
6985 `S-<up>'    `C-c <up>'     
6986 `S-<down>'  `C-c <down>'   
6987 `C-S-<left>'`C-c C-x       
6988             <left>'        
6989 `C-S-<right>'`C-c C-x       
6990             <right>'       
6992 \x1f
6993 File: org,  Node: Interaction,  Next: Bugs,  Prev: TTY keys,  Up: Miscellaneous
6995 14.7 Interaction with other packages
6996 ====================================
6998 Org-mode lives in the world of GNU Emacs and interacts in various ways
6999 with other code out there.
7001 * Menu:
7003 * Cooperation::                 Packages Org-mode cooperates with
7004 * Conflicts::                   Packages that lead to conflicts
7006 \x1f
7007 File: org,  Node: Cooperation,  Next: Conflicts,  Prev: Interaction,  Up: Interaction
7009 14.7.1 Packages that Org-mode cooperates with
7010 ---------------------------------------------
7012 `calc.el' by Dave Gillespie
7013      Org-mode uses the calc package for implementing spreadsheet
7014      functionality in its tables (*note The spreadsheet::).  Org-mode
7015      checks for the availability of calc by looking for the function
7016      `calc-eval' which should be autoloaded in your setup if calc has
7017      been installed properly.  As of Emacs 22, calc is part of the Emacs
7018      distribution.  Another possibility for interaction between the two
7019      packages is using calc for embedded calculations. *Note Embedded
7020      Mode: (calc)Embedded Mode.  
7022 `constants.el' by Carsten Dominik
7023      In a table formula (*note The spreadsheet::), it is possible to use
7024      names for natural constants or units.  Instead of defining your own
7025      constants in the variable `org-table-formula-constants', install
7026      the `constants' package which defines a large number of constants
7027      and units, and lets you use unit prefixes like `M' for `Mega' etc.
7028      You will need version 2.0 of this package, available at
7029      `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
7030      function `constants-get', which has to be autoloaded in your
7031      setup.  See the installation instructions in the file
7032      `constants.el'.
7034 `cdlatex.el' by Carsten Dominik
7035      Org-mode can make use of the cdlatex package to efficiently enter
7036      LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
7038 `imenu.el' by Ake Stenhoff and Lars Lindberg
7039      Imenu allows menu access to an index of items in a file.  Org-mode
7040      supports imenu - all you need to do to get the index is the
7041      following:
7042           (add-hook 'org-mode-hook
7043                     (lambda () 'imenu-add-to-menubar "Imenu"))
7044      By default the index is two levels deep - you can modify the depth
7045      using the option `org-imenu-depth'.
7047 `remember.el' by John Wiegley
7048      Org mode cooperates with remember, see *Note Remember::.
7049      `Remember.el' is not part of Emacs, find it on the web.
7051 `speedbar.el' by Eric M. Ludlam
7052      Speedbar is a package that creates a special frame displaying
7053      files and index items in files.  Org-mode supports speedbar and
7054      allows you to drill into Org-mode files directly from the
7055      speedbar.  It also allows to restrict the scope of agenda commands
7056      to a file or a subtree by using the command `<' in the speedbar
7057      frame.  
7059 `table.el' by Takaaki Ota
7060      Complex ASCII tables with automatic line wrapping, column- and
7061      row-spanning, and alignment can be created using the Emacs table
7062      package by Takaaki Ota (`http://sourceforge.net/projects/table',
7063      and also part of Emacs 22).  When <TAB> or `C-c C-c' is pressed in
7064      such a table, Org-mode will call `table-recognize-table' and move
7065      the cursor into the table.  Inside a table, the keymap of Org-mode
7066      is inactive.  In order to execute Org-mode-related commands, leave
7067      the table.
7069     `C-c C-c'
7070           Recognize `table.el' table.  Works when the cursor is in a
7071           table.el table.  
7073     `C-c ~'
7074           Insert a table.el table.  If there is already a table at
7075           point, this command converts it between the table.el format
7076           and the Org-mode format.  See the documentation string of the
7077           command `org-convert-table' for the restrictions under which
7078           this is possible.
7079      `table.el' is part of Emacs 22.  
7081 `footnote.el' by Steven L. Baur
7082      Org-mode recognizes numerical footnotes as provided by this package
7083      (*note Footnotes::).
7085 \x1f
7086 File: org,  Node: Conflicts,  Prev: Cooperation,  Up: Interaction
7088 14.7.2 Packages that lead to conflicts with Org-mode
7089 ----------------------------------------------------
7091 `allout.el' by Ken Manheimer
7092      Startup of Org-mode may fail with the error message
7093      `(wrong-type-argument keymapp nil)' when there is an outdated
7094      version `allout.el' on the load path, for example the version
7095      distributed with Emacs 21.x.  Upgrade to Emacs 22 and this problem
7096      will disappear.  If for some reason you cannot do this, make sure
7097      that org.el is loaded _before_ `allout.el', for example by putting
7098      `(require 'org)' early enough into your `.emacs' file.
7100 `CUA.el' by Kim. F. Storm
7101      Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
7102      CUA-mode (as well as pc-select-mode and s-region-mode) to select
7103      and extend the region.  If you want to use one of these packages
7104      along with Org-mode, configure the variable
7105      `org-replace-disputed-keys'.  When set, Org-mode will move the
7106      following keybindings in Org-mode files, and in the agenda buffer
7107      (but not during date selection).
7109           S-UP    -> M-p             S-DOWN  -> M-n
7110           S-LEFT  -> M--             S-RIGHT -> M-+
7112      Yes, these are unfortunately more difficult to remember.  If you
7113      want to have other replacement keys, look at the variable
7114      `org-disputed-keys'.
7116 `windmove.el' by Hovav Shacham
7117      Also this package uses the `S-<cursor>' keys, so everything written
7118      in the paragraph above about CUA mode also applies here.
7120 `footnote.el' by Steven L. Baur
7121      Org-mode supports the syntax of the footnote package, but only the
7122      numerical footnote markers.  Also, the default key for footnote
7123      commands, `C-c !' is already used by Org-mode.  You could use the
7124      variable `footnote-prefix' to switch footnotes commands to another
7125      key.  Or, you could use `org-replace-disputed-keys' and
7126      `org-disputed-keys' to change the settings in Org-mode.
7129 \x1f
7130 File: org,  Node: Bugs,  Prev: Interaction,  Up: Miscellaneous
7132 14.8 Bugs
7133 =========
7135 Here is a list of things that should work differently, but which I have
7136 found too hard to fix.
7138    * If a table field starts with a link, and if the corresponding table
7139      column is narrowed (*note Narrow columns::) to a width too small to
7140      display the link, the field would look entirely empty even though
7141      it is not.  To prevent this, Org-mode throws an error.  The
7142      work-around is to make the column wide enough to fit the link, or
7143      to add some text (at least 2 characters) before the link in the
7144      same field.
7146    * Narrowing table columns does not work on XEmacs, because the
7147      `format' function does not transport text properties.
7149    * Text in an entry protected with the `QUOTE' keyword should not
7150      autowrap.
7152    * When the application called by `C-c C-o' to open a file link fails
7153      (for example because the application does not exist or refuses to
7154      open the file), it does so silently.  No error message is
7155      displayed.
7157    * Recalculating a table line applies the formulas from left to right.
7158      If a formula uses _calculated_ fields further down the row,
7159      multiple recalculation may be needed to get all fields consistent.
7160      You may use the command `org-table-iterate' (`C-u C-c *') to
7161      recalculate until convergence.
7163    * A single letter cannot be made bold, for example `*a*'.
7165    * The exporters work well, but could be made more efficient.
7167 \x1f
7168 File: org,  Node: Extensions and Hacking,  Next: History and Acknowledgments,  Prev: Miscellaneous,  Up: Top
7170 Appendix A Extensions, Hooks and Hacking
7171 ****************************************
7173 This appendix lists extensions for Org-mode written by other authors.
7174 It also covers some aspects where users can extend the functionality of
7175 Org-mode.
7177 * Menu:
7179 * Extensions::                  Existing 3rd-part extensions
7180 * Adding hyperlink types::      New custom link types
7181 * Tables in arbitrary syntax::  Orgtbl for LaTeX and other programs
7182 * Dynamic blocks::              Automatically filled blocks
7183 * Special agenda views::        Customized views
7184 * Using the property API::      Writing programs that use entry properties
7186 \x1f
7187 File: org,  Node: Extensions,  Next: Adding hyperlink types,  Prev: Extensions and Hacking,  Up: Extensions and Hacking
7189 A.1 Third-party extensions for Org-mode
7190 =======================================
7192 The following extensions for Org-mode have been written by other people:
7194 `org-publish.el' by David O'Toole
7195      This package provides facilities for publishing related sets of
7196      Org-mode files together with linked files like images as webpages.
7197      It is highly configurable and can be used for other publishing
7198      purposes as well.  As of Org-mode version 4.30, `org-publish.el'
7199      is part of the Org-mode distribution.  It is not yet part of
7200      Emacs, however, a delay caused by the preparations for the 22.1
7201      release.  In the mean time, `org-publish.el' can be downloaded
7202      from David's site: `http://dto.freeshell.org/e/org-publish.el'.  
7204 `org-mouse.el' by Piotr Zielinski
7205      This package implements extended mouse functionality for Org-mode.
7206      It allows you to cycle visibility and to edit the document
7207      structure with the mouse.  Best of all, it provides a
7208      context-sensitive menu on <mouse-3> that changes depending on the
7209      context of a mouse-click.  As of Org-mode version 4.53,
7210      `org-mouse.el' is part of the Org-mode distribution.  It is not
7211      yet part of Emacs, however, a delay caused by the preparations for
7212      the 22.1 release.  In the mean time, `org-mouse.el' can be
7213      downloaded from Piotr's site:
7214      `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.  
7216 `org-blog.el' by David O'Toole
7217      A blogging plug-in for `org-publish.el'.
7218      `http://dto.freeshell.org/notebook/OrgMode.html'.  
7220 `blorg.el' by Bastien Guerry
7221      Publish Org-mode files as blogs.
7222      `http://www.cognition.ens.fr/~guerry/blorg.html'.  
7224 `org2rem.el' by Bastien Guerry
7225      Translates Org-mode files into something readable by Remind.
7226      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
7228 `org-toc.el' by Bastien Guerry
7229      Produces a simple table of contents of an Org-mode file, for easy
7230      navigation.
7231      `http://www.cognition.ens.fr/~guerry/u/org-registry.el'.
7233 `org-registry.el' by Bastien Guerry
7234      Find which Org-file link to a certain document.
7235      `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
7237 \x1f
7238 File: org,  Node: Adding hyperlink types,  Next: Tables in arbitrary syntax,  Prev: Extensions,  Up: Extensions and Hacking
7240 A.2 Adding hyperlink types
7241 ==========================
7243 Org-mode has a large number of hyperlink types built-in (*note
7244 Hyperlinks::).  If you would like to add new link types, it provides an
7245 interface for doing so.  Lets look at an example file `org-man.el' that
7246 will add support for creating links like `[[man:printf][The printf
7247 manpage]]' to show unix manual pages inside emacs:
7249      ;;; org-man.el - Support for links to manpages in Org-mode
7251      (require 'org)
7253      (org-add-link-type "man" 'org-man-open)
7254      (add-hook 'org-store-link-functions 'org-man-store-link)
7256      (defcustom org-man-command 'man
7257        "The Emacs command to be used to display a man page."
7258        :group 'org-link
7259        :type '(choice (const man) (const woman)))
7261      (defun org-man-open (path)
7262        "Visit the manpage on PATH.
7263      PATH should be a topic that can be thrown at the man command."
7264        (funcall org-man-command path))
7266      (defun org-man-store-link ()
7267        "Store a link to a manpage."
7268        (when (memq major-mode '(Man-mode woman-mode))
7269          ;; This is a man page, we do make this link
7270          (let* ((page (org-man-get-page-name))
7271                 (link (concat "man:" page))
7272                 (description (format "Manpage for %s" page)))
7273            (org-store-link-props
7274             :type "man"
7275             :link link
7276             :description description))))
7278      (defun org-man-get-page-name ()
7279        "Extract the page name from the buffer name."
7280        ;; This works for both `Man-mode' and `woman-mode'.
7281        (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
7282            (match-string 1 (buffer-name))
7283          (error "Cannot create link to this man page")))
7285      (provide 'org-man)
7287      ;;; org-man.el ends here
7289 You would activate this new link type in `.emacs' with
7291      (require 'org-man)
7293 Lets go through the file and see what it does.
7294   1. It does `(require 'org)' to make sure that `org.el' has been
7295      loaded.
7297   2. The next line calls `org-add-link-type' to define a new link type
7298      with prefix `man'.  The call also contains the name of a function
7299      that will be called to follow such a link.
7301   3. The next line adds a function to `org-store-link-functions', in
7302      order to allow the command `C-c l' to record a useful link in a
7303      buffer displaying a man page.
7305    The rest of the file defines the necessary variables and functions.
7306 First there is a customization variable that determines which emacs
7307 command should be used to display manpages.  There are two options,
7308 `man' and `woman'.  Then the function to follow a link is defined.  It
7309 gets the link path as an argument - in this case the link path is just
7310 a topic for the manual command.  The function calls the value of
7311 `org-man-command' to display the man page.
7313    Finally the function `org-man-store-link' is defined.  When you try
7314 to store a link with `C-c l', also this function will be called to try
7315 to make a link.  The function must first decide if it is supposed to
7316 create the link for this buffer type, we do this by checking the value
7317 of the variable `major-mode'.  If not, the function must exit and
7318 retunr the value `nil'.  If yes, the link is created by getting the
7319 manual tpoic from the buffer name and prefixing it with the string
7320 `man:'.  Then it must call the command `org-store-link-props' and set
7321 the `:type' and `:link' properties.  Optionally you can also set the
7322 `:description' property to provide a default for the link description
7323 when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
7325 \x1f
7326 File: org,  Node: Tables in arbitrary syntax,  Next: Dynamic blocks,  Prev: Adding hyperlink types,  Up: Extensions and Hacking
7328 A.3 Tables and Lists in arbitrary syntax
7329 ========================================
7331 Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
7332 frequent feature request has been to make it work with native tables in
7333 specific languages, for example LaTeX.  However, this is extremely hard
7334 to do in a general way, would lead to a customization nightmare, and
7335 would take away much of the simplicity of the Orgtbl-mode table editor.
7337    This appendix describes a different approach.  We keep the
7338 Orgtbl-mode table in its native format (the source table), and use a
7339 custom function to translate the table to the correct syntax, and to
7340 install it in the right location (the target table).  This puts the
7341 burden of writing conversion functions on the user, but it allows for a
7342 very flexible system.
7344    Bastien added the ability to do the same with lists.  You can use
7345 Org's facilities to edit and structure lists by turning `orgstruct-mode'
7346 on, then locally exporting such lists in another format (HTML, LaTeX or
7347 TeXInfo.)
7349 * Menu:
7351 * Radio tables::                Sending and receiving
7352 * A LaTeX example::             Step by step, almost a tutorial
7353 * Translator functions::        Copy and modify
7354 * Radio lists::                 Doing the same for lists.
7356 \x1f
7357 File: org,  Node: Radio tables,  Next: A LaTeX example,  Prev: Tables in arbitrary syntax,  Up: Tables in arbitrary syntax
7359 A.3.1 Radio tables
7360 ------------------
7362 To define the location of the target table, you first need to create two
7363 lines that are comments in the current mode, but contain magic words for
7364 Orgtbl-mode to find.  Orgtbl-mode will insert the translated table
7365 between these lines, replacing whatever was there before.  For example:
7367      /* BEGIN RECEIVE ORGTBL table_name */
7368      /* END RECEIVE ORGTBL table_name */
7370 Just above the source table, we put a special line that tells
7371 Orgtbl-mode how to translate this table and where to install it.  For
7372 example:
7373      #+ORGTBL: SEND table_name translation_function arguments....
7375 `table_name' is the reference name for the table that is also used in
7376 the receiver lines. `translation_function' is the Lisp function that
7377 does the translation.  Furthermore, the line can contain a list of
7378 arguments (alternating key and value) at the end.  The arguments will be
7379 passed as a property list to the translation function for
7380 interpretation.  A few standard parameters are already recognized and
7381 acted upon before the translation function is called:
7383 `:skip N'
7384      Skip the first N lines of the table. Hlines do count!
7386 `:skipcols (n1 n2 ...)'
7387      List of columns that should be skipped.  If the table has a column
7388      with calculation marks, that column is automatically discarded as
7389      well.  Please note that the translator function sees the table
7390      _after_ the removal of these columns, the function never knows
7391      that there have been additional columns.
7393 The one problem remaining is how to keep the source table in the buffer
7394 without disturbing the normal workings of the file, for example during
7395 compilation of a C file or processing of a LaTeX file.  There are a
7396 number of different solutions:
7398    * The table could be placed in a block comment if that is supported
7399      by the language.  For example, in C-mode you could wrap the table
7400      between `/*' and `*/' lines.
7402    * Sometimes it is possible to put the table after some kind of END
7403      statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
7405    * You can just comment the table line by line whenever you want to
7406      process the file, and uncomment it whenever you need to edit the
7407      table.  This only sounds tedious - the command `M-x
7408      orgtbl-toggle-comment' does make this comment-toggling very easy,
7409      in particular if you bind it to a key.
7411 \x1f
7412 File: org,  Node: A LaTeX example,  Next: Translator functions,  Prev: Radio tables,  Up: Tables in arbitrary syntax
7414 A.3.2 A LaTeX example of radio tables
7415 -------------------------------------
7417 The best way to wrap the source table in LaTeX is to use the `comment'
7418 environment provided by `comment.sty'.  It has to be activated by
7419 placing `\usepackage{comment}' into the document header.  Orgtbl-mode
7420 can insert a radio table skeleton(1)  with the command `M-x
7421 orgtbl-insert-radio-table'.  You will be prompted for a table name,
7422 lets say we use `salesfigures'.  You will then get the following
7423 template:
7425      % BEGIN RECEIVE ORGTBL salesfigures
7426      % END RECEIVE ORGTBL salesfigures
7427      \begin{comment}
7428      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7429      | | |
7430      \end{comment}
7432 The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
7433 `orgtbl-to-latex' to convert the table into LaTeX and to put it into
7434 the receiver location with name `salesfigures'.  You may now fill in
7435 the table, feel free to use the spreadsheet features(2):
7437      % BEGIN RECEIVE ORGTBL salesfigures
7438      % END RECEIVE ORGTBL salesfigures
7439      \begin{comment}
7440      #+ORGTBL: SEND salesfigures orgtbl-to-latex
7441      | Month | Days | Nr sold | per day |
7442      |-------+------+---------+---------|
7443      | Jan   |   23 |      55 |     2.4 |
7444      | Feb   |   21 |      16 |     0.8 |
7445      | March |   22 |     278 |    12.6 |
7446      #+TBLFM: $4=$3/$2;%.1f
7447      % $ (optional extra dollar to keep font-lock happy, see footnote)
7448      \end{comment}
7450 When you are done, press `C-c C-c' in the table to get the converted
7451 table inserted between the two marker lines.
7453    Now lets assume you want to make the table header by hand, because
7454 you want to control how columns are aligned etc.  In this case we make
7455 sure that the table translator does skip the first 2 lines of the source
7456 table, and tell the command to work as a splice, i.e. to not produce
7457 header and footer commands of the target table:
7459      \begin{tabular}{lrrr}
7460      Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
7461      % BEGIN RECEIVE ORGTBL salesfigures
7462      % END RECEIVE ORGTBL salesfigures
7463      \end{tabular}
7464      %
7465      \begin{comment}
7466      #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
7467      | Month | Days | Nr sold | per day |
7468      |-------+------+---------+---------|
7469      | Jan   |   23 |      55 |     2.4 |
7470      | Feb   |   21 |      16 |     0.8 |
7471      | March |   22 |     278 |    12.6 |
7472      #+TBLFM: $4=$3/$2;%.1f
7473      \end{comment}
7475    The LaTeX translator function `orgtbl-to-latex' is already part of
7476 Orgtbl-mode.  It uses a `tabular' environment to typeset the table and
7477 marks horizontal lines with `\hline'.  Furthermore, it interprets the
7478 following parameters:
7480 `:splice nil/t'
7481      When set to t, return only table body lines, don't wrap them into a
7482      tabular environment.  Default is nil.
7484 `:fmt fmt'
7485      A format to be used to wrap each field, should contain `%s' for the
7486      original field value.  For example, to wrap each field value in
7487      dollars, you could use `:fmt "$%s$"'.  This may also be a property
7488      list with column numbers and formats. for example `:fmt (2 "$%s$"
7489      4 "%s\\%%")'.
7491 `:efmt efmt'
7492      Use this format to print numbers with exponentials.  The format
7493      should have `%s' twice for inserting mantissa and exponent, for
7494      example `"%s\\times10^{%s}"'.  The default is `"%s\\,(%s)"'.  This
7495      may also be a property list with column numbers and formats, for
7496      example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
7497      After `efmt' has been applied to a value, `fmt' will also be
7498      applied.
7500    ---------- Footnotes ----------
7502    (1) By default this works only for LaTeX, HTML, and TeXInfo.
7503 Configure the variable `orgtbl-radio-tables' to install templates for
7504 other modes.
7506    (2) If the `#+TBLFM' line contains an odd number of dollar
7507 characters, this may cause problems with font-lock in latex-mode.  As
7508 shown in the example you can fix this by adding an extra line inside the
7509 `comment' environment that is used to balance the dollar expressions.
7510 If you are using AUCTeX with the font-latex library, a much better
7511 solution is to add the `comment' environment to the variable
7512 `LaTeX-verbatim-environments'.
7514 \x1f
7515 File: org,  Node: Translator functions,  Next: Radio lists,  Prev: A LaTeX example,  Up: Tables in arbitrary syntax
7517 A.3.3 Translator functions
7518 --------------------------
7520 Orgtbl-mode has several translator functions built-in:
7521 `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'.  Except
7522 for `orgtbl-to-html'(1), these all use a generic translator,
7523 `orgtbl-to-generic'.  For example, `orgtbl-to-latex' itself is a very
7524 short function that computes the column definitions for the `tabular'
7525 environment, defines a few field and line separators and then hands
7526 over to the generic translator.  Here is the entire code:
7528      (defun orgtbl-to-latex (table params)
7529        "Convert the orgtbl-mode TABLE to LaTeX."
7530        (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
7531                                     org-table-last-alignment ""))
7532               (params2
7533                (list
7534                 :tstart (concat "\\begin{tabular}{" alignment "}")
7535                 :tend "\\end{tabular}"
7536                 :lstart "" :lend " \\\\" :sep " & "
7537                 :efmt "%s\\,(%s)" :hline "\\hline")))
7538          (orgtbl-to-generic table (org-combine-plists params2 params))))
7540    As you can see, the properties passed into the function (variable
7541 PARAMS) are combined with the ones newly defined in the function
7542 (variable PARAMS2).  The ones passed into the function (i.e. the ones
7543 set by the `ORGTBL SEND' line) take precedence.  So if you would like
7544 to use the LaTeX translator, but wanted the line endings to be
7545 `\\[2mm]' instead of the default `\\', you could just overrule the
7546 default with
7548      #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
7550    For a new language, you can either write your own converter function
7551 in analogy with the LaTeX translator, or you can use the generic
7552 function directly.  For example, if you have a language where a table
7553 is started with `!BTBL!', ended with `!ETBL!', and where table lines are
7554 started with `!BL!', ended with `!EL!' and where the field separator is
7555 a TAB, you could call the generic translator like this (on a single
7556 line!):
7558      #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
7559                                    :lstart "!BL! " :lend " !EL!" :sep "\t"
7561 Please check the documentation string of the function
7562 `orgtbl-to-generic' for a full list of parameters understood by that
7563 function and remember that you can pass each of them into
7564 `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
7565 the generic function.
7567    Of course you can also write a completely new function doing
7568 complicated things the generic translator cannot do.  A translator
7569 function takes two arguments.  The first argument is the table, a list
7570 of lines, each line either the symbol `hline' or a list of fields.  The
7571 second argument is the property list containing all parameters
7572 specified in the `#+ORGTBL: SEND' line.  The function must return a
7573 single string containing the formatted table.  If you write a generally
7574 useful translator, please post it on `emacs-orgmode@gnu.org' so that
7575 others can benefit from your work.
7577    ---------- Footnotes ----------
7579    (1) The HTML translator uses the same code that produces tables
7580 during HTML export.
7582 \x1f
7583 File: org,  Node: Radio lists,  Prev: Translator functions,  Up: Tables in arbitrary syntax
7585 A.3.4 Radio lists
7586 -----------------
7588 Sending and receiving radio lists works exactly the same way than
7589 sending and receiving radio tables (*note Radio tables::) (1).  As for
7590 radio tables, you can insert radio lists templates in HTML, LaTeX and
7591 TeXInfo modes by calling `org-list-insert-radio-list'.
7593    Here are the differences with radio tables:
7595    - Use `ORGLST' instead of `ORGTBL'.
7597    - The available translation functions for radio lists don't take
7598      parameters.
7600    - `C-c C-c' will work when pressed on the first item of the list.
7602    Here is a LaTeX example.  Let's say that you have this in your LaTeX
7603 file:
7605      % BEGIN RECEIVE ORGLST to-buy
7606      % END RECEIVE ORGLST to-buy
7607      \begin{comment}
7608      #+ORGLIST: SEND to-buy orgtbl-to-latex
7609      - a new house
7610      - a new computer
7611        + a new keyboard
7612        + a new mouse
7613      - a new life
7614      \end{comment}
7616    Pressing `C-c C-c' on `a new house' and will insert the converted
7617 LaTeX list between the two marker lines.
7619    ---------- Footnotes ----------
7621    (1) You need to load the `org-export-latex.el' package to use radio
7622 lists since the relevant code is there for now.
7624 \x1f
7625 File: org,  Node: Dynamic blocks,  Next: Special agenda views,  Prev: Tables in arbitrary syntax,  Up: Extensions and Hacking
7627 A.4 Dynamic blocks
7628 ==================
7630 Org-mode documents can contain _dynamic blocks_.  These are specially
7631 marked regions that are updated by some user-written function.  A good
7632 example for such a block is the clock table inserted by the command
7633 `C-c C-x C-r' (*note Clocking work time::).
7635    Dynamic block are enclosed by a BEGIN-END structure that assigns a
7636 name to the block and can also specify parameters for the function
7637 producing the content of the block.
7639      #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
7641      #+END:
7643    Dynamic blocks are updated with the following commands
7645 `C-c C-x C-u'
7646      Update dynamic block at point.  
7648 `C-u C-c C-x C-u'
7649      Update all dynamic blocks in the current file.
7651    Updating a dynamic block means to remove all the text between BEGIN
7652 and END, parse the BEGIN line for parameters and then call the specific
7653 writer function for this block to insert the new content.  For a block
7654 with name `myblock', the writer function is `org-dblock-write:myblock'
7655 with as only parameter a property list with the parameters given in the
7656 begin line.  Here is a trivial example of a block that keeps track of
7657 when the block update function was last run:
7659      #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
7661      #+END:
7663 The corresponding block writer function could look like this:
7665      (defun org-dblock-write:block-update-time (params)
7666         (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
7667           (insert "Last block update at: "
7668                   (format-time-string fmt (current-time)))))
7670    If you want to make sure that all dynamic blocks are always
7671 up-to-date, you could add the function `org-update-all-dblocks' to a
7672 hook, for example `before-save-hook'.  `org-update-all-dblocks' is
7673 written in a way that is does nothing in buffers that are not in
7674 Org-mode.
7676 \x1f
7677 File: org,  Node: Special agenda views,  Next: Using the property API,  Prev: Dynamic blocks,  Up: Extensions and Hacking
7679 A.5 Special Agenda Views
7680 ========================
7682 Org-mode provides a special hook that can be used to narrow down the
7683 selection made by any of the agenda views.  You may specify a function
7684 that is used at each match to verify if the match should indeed be part
7685 of the agenda view, and if not, how much should be skipped.
7687    Let's say you want to produce a list of projects that contain a
7688 WAITING tag anywhere in the project tree.  Let's further assume that
7689 you have marked all tree headings that define a project with the todo
7690 keyword PROJECT.  In this case you would run a todo search for the
7691 keyword PROJECT, but skip the match unless there is a WAITING tag
7692 anywhere in the subtree belonging to the project line.
7694    To achieve this, you must write a function that searches the subtree
7695 for the tag.  If the tag is found, the function must return `nil' to
7696 indicate that this match should not be skipped.  If there is no such
7697 tag, return the location of the end of the subtree, to indicate that
7698 search should continue from there.
7700      (defun my-skip-unless-waiting ()
7701        "Skip trees that are not waiting"
7702        (let ((subtree-end (save-excursion (org-end-of-subtree t))))
7703          (if (re-search-forward ":waiting:" subtree-end t)
7704              nil          ; tag found, do not skip
7705            subtree-end))) ; tag not found, continue after end of subtree
7707    Now you may use this function in an agenda custom command, for
7708 example like this:
7710      (org-add-agenda-custom-command
7711       '("b" todo "PROJECT"
7712         ((org-agenda-skip-function 'my-org-waiting-projects)
7713          (org-agenda-overriding-header "Projects waiting for something: "))))
7715    Note that this also binds `org-agenda-overriding-header' to get a
7716 meaningful header in the agenda view.
7718    You may also put a Lisp form into `org-agenda-skip-function'.  In
7719 particular, you may use the functions `org-agenda-skip-entry-if' and
7720 `org-agenda-skip-subtree-if' in this form, for example:
7722 `'(org-agenda-skip-entry-if 'scheduled)'
7723      Skip current entry if it has been scheduled.
7725 `'(org-agenda-skip-entry-if 'notscheduled)'
7726      Skip current entry if it has not been scheduled.
7728 `'(org-agenda-skip-entry-if 'deadline)'
7729      Skip current entry if it has a deadline.
7731 `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
7732      Skip current entry if it has a deadline, or if it is scheduled.
7734 `'(org-agenda-skip-entry 'regexp "regular expression")'
7735      Skip current entry if the regular expression matches in the entry.
7737 `'(org-agenda-skip-entry 'notregexp "regular expression")'
7738      Skip current entry unless the regular expression matches.
7740 `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
7741      Same as above, but check and skip the entire subtree.
7743    Therefore we could also have written the search for WAITING projects
7744 like this, even without defining a special function:
7746      (org-add-agenda-custom-command
7747       '("b" todo "PROJECT"
7748         ((org-agenda-skip-function '(org-agenda-skip-subtree-if
7749                                      'regexp ":waiting:"))
7750          (org-agenda-overriding-header "Projects waiting for something: "))))
7752 \x1f
7753 File: org,  Node: Using the property API,  Prev: Special agenda views,  Up: Extensions and Hacking
7755 A.6 Using the property API
7756 ==========================
7758 Here is a description of the functions that can be used to work with
7759 properties.
7761  -- Function: org-entry-properties &optional pom which
7762      Get all properties of the entry at point-or-marker POM.  This
7763      includes the TODO keyword, the tags, time strings for deadline,
7764      scheduled, and clocking, and any additional properties defined in
7765      the entry.  The return value is an alist, keys may occur multiple
7766      times if the property key was used several times.  POM may also be
7767      nil, in which case the current entry is used.  If WHICH is nil or
7768      `all', get all properties.  If WHICH is `special' or `standard',
7769      only get that subclass.
7771  -- Function: org-entry-get pom property &optional inherit
7772      Get value of PROPERTY for entry at point-or-marker POM.  If
7773      INHERIT is non-nil and the entry does not have the property, then
7774      also check higher levels of the hierarchy.  This function ignores
7775      the value of `org-use-property-inheritance' and requires the
7776      explicit INHERIT flag.
7778  -- Function: org-entry-delete pom property
7779      Delete the property PROPERTY from entry at point-or-marker POM.
7781  -- Function: org-entry-put pom property value
7782      Set PROPERTY to VALUE for entry at point-or-marker POM.
7784  -- Function: org-buffer-property-keys &optional include-specials
7785      Get all property keys in the current buffer.
7787  -- Function: org-insert-property-drawer
7788      Insert a property drawer at point.
7790 \x1f
7791 File: org,  Node: History and Acknowledgments,  Next: Main Index,  Prev: Extensions and Hacking,  Up: Top
7793 Appendix B History and Acknowledgments
7794 **************************************
7796 Org-mode was borne in 2003, out of frustration over the user interface
7797 of the Emacs outline-mode.  I was trying to organize my notes and
7798 projects, and using Emacs seemed to be the natural way to go.  However,
7799 having to remember eleven different commands with two or three keys per
7800 command, only to hide and unhide parts of the outline tree, that seemed
7801 entirely unacceptable to me.  Also, when using outlines to take notes, I
7802 constantly want to restructure the tree, organizing it parallel to my
7803 thoughts and plans.  _Visibility cycling_ and _structure editing_ were
7804 originally implemented in the package `outline-magic.el', but quickly
7805 moved to the more general `org.el'.  As this environment became
7806 comfortable for project planning, the next step was adding _TODO
7807 entries_, basic _time stamps_, and _table support_.  These areas
7808 highlight the two main goals that Org-mode still has today: To create a
7809 new, outline-based, plain text mode with innovative and intuitive
7810 editing features, and to incorporate project planning functionality
7811 directly into a notes file.
7813    Since the first release, literally thousands of emails to me or on
7814 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
7815 feedback, new ideas, and sometimes patches and add-on code.  Many
7816 thanks to everyone who has helped to improve this package.  I am trying
7817 to keep here a list of the people who had significant influence in
7818 shaping one or more aspects of Org-mode.  The list may not be complete,
7819 if I have forgotten someone, please accept my apologies and let me know.
7821    * Russel Adams came up with the idea for drawers.
7823    * Thomas Baumann contributed the code for links to the MH-E email
7824      system.
7826    * Alex Bochannek provided a patch for rounding time stamps.
7828    * Charles Cave's suggestion sparked the implementation of templates
7829      for Remember.
7831    * Pavel Chalmoviansky influenced the agenda treatment of items with
7832      specified time.
7834    * Gregory Chernov patched support for lisp forms into table
7835      calculations and improved XEmacs compatibility, in particular by
7836      porting `nouline.el' to XEmacs.
7838    * Sacha Chua suggested to copy some linking code from Planner.
7840    * Eddward DeVilla proposed and tested checkbox statistics.  He also
7841      came up with the idea of properties, and that there should be an
7842      API for them.
7844    * Kees Dullemond used to edit projects lists directly in HTML and so
7845      inspired some of the early development, including HTML export.  He
7846      also asked for a way to narrow wide table columns.
7848    * Christian Egli converted the documentation into TeXInfo format,
7849      patched CSS formatting into the HTML exporter, and inspired the
7850      agenda.
7852    * David Emery provided a patch for custom CSS support in exported
7853      HTML agendas.
7855    * Nic Ferrier contributed mailcap and XOXO support.
7857    * Miguel A. Figueroa-Villanueva implemented hierarchical checkboxes.
7859    * John Foerch figured out how to make incremental search show context
7860      around a match in a hidden outline tree.
7862    * Niels Giesen had the idea to automatically archive DONE trees.
7864    * Bastien Guerry wrote the LaTeX exporter and has been prolific with
7865      patches, ideas, and bug reports.
7867    * Kai Grossjohann pointed out key-binding conflicts with other
7868      packages.
7870    * Scott Jaderholm proposed footnotes, control over whitespace between
7871      folded entries, and column view for properties.
7873    * Shidai Liu ("Leo") asked for embedded LaTeX and tested it.  He also
7874      provided frequent feedback and some patches.
7876    * Jason F. McBrayer suggested agenda export to CSV format.
7878    * Max Mikhanosha came up with the idea of refiling.
7880    * Dmitri Minaev sent a patch to set priority limits on a per-file
7881      basis.
7883    * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
7884      happy.
7886    * Rick Moynihan proposed to allow multiple TODO sequences in a file
7887      and to be able to quickly restrict the agenda to a subtree.
7889    * Todd Neal provided patches for links to Info files and elisp forms.
7891    * Tim O'Callaghan suggested in-file links, search options for general
7892      file links, and TAGS.
7894    * Takeshi Okano translated the manual and David O'Toole's tutorial
7895      into Japanese.
7897    * Oliver Oppitz suggested multi-state TODO items.
7899    * Scott Otterson sparked the introduction of descriptive text for
7900      links, among other things.
7902    * Pete Phillips helped during the development of the TAGS feature,
7903      and provided frequent feedback.
7905    * T.V. Raman reported bugs and suggested improvements.
7907    * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
7908      control.
7910    * Kevin Rogers contributed code to access VM files on remote hosts.
7912    * Frank Ruell solved the mystery of the `keymapp nil' bug, a
7913      conflict with `allout.el'.
7915    * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
7917    * Philip Rooke created the Org-mode reference card and provided lots
7918      of feedback.
7920    * Christian Schlauer proposed angular brackets around links, among
7921      other things.
7923    * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
7924      `organizer-mode.el'.
7926    * Daniel Sinder came up with the idea of internal archiving by
7927      locking subtrees.
7929    * Dale Smith proposed link abbreviations.
7931    * Adam Spiers asked for global linking commands and inspired the link
7932      extension system.  support mairix.
7934    * David O'Toole wrote `org-publish.el' and drafted the manual
7935      chapter about publishing.
7937    * Ju"rgen Vollmer contributed code generating the table of contents
7938      in HTML output.
7940    * Chris Wallace provided a patch implementing the `QUOTE' keyword.
7942    * David Wainberg suggested archiving, and improvements to the linking
7943      system.
7945    * John Wiegley wrote `emacs-wiki.el' and `planner.el'.  The
7946      development of Org-mode was fully independent, and both systems are
7947      really different beasts in their basic ideas and implementation
7948      details.  I later looked at John's code, however, and learned from
7949      his implementation of (i) links where the link itself is hidden
7950      and only a description is shown, and (ii) popping up a calendar to
7951      select a date.  John has also contributed a number of great ideas
7952      directly to Org-mode.
7954    * Carsten Wimmer suggested some changes and helped fix a bug in
7955      linking to GNUS.
7957    * Roland Winkler requested additional keybindings to make Org-mode
7958      work on a tty.
7960    * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
7961      contributed various ideas and code snippets.
7963 \x1f
7964 File: org,  Node: Main Index,  Next: Key Index,  Prev: History and Acknowledgments,  Up: Top
7966 The Main Index
7967 **************
7969 \0\b[index\0\b]
7970 * Menu:
7972 * abbreviation, links:                   Link abbreviations.  (line   6)
7973 * acknowledgments:                       History and Acknowledgments.
7974                                                               (line   6)
7975 * action, for publishing:                Publishing action.   (line   6)
7976 * activation:                            Activation.          (line   6)
7977 * active region <1>:                     Built-in table editor.
7978                                                               (line 143)
7979 * active region <2>:                     HTML Export commands.
7980                                                               (line   6)
7981 * active region <3>:                     Structure editing.   (line  74)
7982 * active region:                         ASCII export.        (line   9)
7983 * agenda:                                Weekly/Daily agenda. (line   6)
7984 * agenda dispatcher:                     Agenda dispatcher.   (line   6)
7985 * agenda files:                          Agenda files.        (line   6)
7986 * agenda files, removing buffers:        Agenda commands.     (line 247)
7987 * agenda views:                          Agenda views.        (line   6)
7988 * agenda views, custom:                  Custom agenda views. (line   6)
7989 * agenda views, exporting <1>:           Exporting Agenda Views.
7990                                                               (line   6)
7991 * agenda views, exporting <2>:           Agenda commands.     (line 236)
7992 * agenda views, exporting:               Exporting Agenda Views.
7993                                                               (line  12)
7994 * agenda views, user-defined:            Special agenda views.
7995                                                               (line   6)
7996 * agenda, pipe:                          Extracting Agenda Information for other programs.
7997                                                               (line   6)
7998 * agenda, with block views:              Block agenda.        (line   6)
7999 * align, STARTUP keyword:                In-buffer settings.  (line  72)
8000 * allout.el:                             Conflicts.           (line   6)
8001 * angular brackets, around links:        External links.      (line  43)
8002 * API, for properties <1>:               Using the property API.
8003                                                               (line   6)
8004 * API, for properties:                   Property API.        (line   6)
8005 * appointment reminders:                 Weekly/Daily agenda. (line  65)
8006 * appt.el:                               Weekly/Daily agenda. (line  65)
8007 * archive locations:                     Moving subtrees.     (line  23)
8008 * archiving:                             Archiving.           (line   6)
8009 * ASCII export:                          ASCII export.        (line   6)
8010 * author:                                Feedback.            (line   6)
8011 * author info, in export:                Export options.      (line  26)
8012 * autoload:                              Activation.          (line   6)
8013 * backtrace of an error:                 Feedback.            (line  27)
8014 * BBDB links:                            External links.      (line   6)
8015 * block agenda:                          Block agenda.        (line   6)
8016 * blorg.el:                              Extensions.          (line  32)
8017 * bold text:                             Enhancing text.      (line  15)
8018 * Boolean logic, for tag searches:       Tag searches.        (line  24)
8019 * bug reports:                           Feedback.            (line   6)
8020 * bugs:                                  Bugs.                (line   6)
8021 * C-c C-c, overview:                     The very busy C-c C-c key.
8022                                                               (line   6)
8023 * calc package:                          The spreadsheet.     (line   6)
8024 * calc.el:                               Cooperation.         (line   6)
8025 * calculations, in tables <1>:           The spreadsheet.     (line   6)
8026 * calculations, in tables:               Built-in table editor.
8027                                                               (line 143)
8028 * calendar commands, from agenda:        Agenda commands.     (line 199)
8029 * calendar integration:                  Weekly/Daily agenda. (line  23)
8030 * calendar, for selecting date:          The date/time prompt.
8031                                                               (line  53)
8032 * category:                              Categories.          (line   6)
8033 * category, require for tags/property match: Tag searches.    (line  69)
8034 * CDLaTeX:                               CDLaTeX mode.        (line   6)
8035 * cdlatex.el:                            Cooperation.         (line  29)
8036 * checkbox statistics:                   Checkboxes.          (line  30)
8037 * checkboxes:                            Checkboxes.          (line   6)
8038 * children, subtree visibility state:    Visibility cycling.  (line  10)
8039 * clean outline view:                    Clean view.          (line   6)
8040 * column formula:                        Column formulas.     (line   6)
8041 * column view, for properties:           Defining columns.    (line   6)
8042 * commands, in agenda buffer:            Agenda commands.     (line   6)
8043 * comment lines:                         Comment lines.       (line   6)
8044 * completion, of dictionary words:       Completion.          (line   6)
8045 * completion, of file names:             Handling links.      (line  44)
8046 * completion, of link abbreviations:     Completion.          (line   6)
8047 * completion, of links:                  Handling links.      (line  25)
8048 * completion, of option keywords <1>:    Completion.          (line   6)
8049 * completion, of option keywords <2>:    Per-file keywords.   (line  23)
8050 * completion, of option keywords:        Export options.      (line   6)
8051 * completion, of property keys:          Completion.          (line   6)
8052 * completion, of tags <1>:               Completion.          (line   6)
8053 * completion, of tags:                   Setting tags.        (line  11)
8054 * completion, of TeX symbols:            Completion.          (line   6)
8055 * completion, of TODO keywords <1>:      Workflow states.     (line  15)
8056 * completion, of TODO keywords:          Completion.          (line   6)
8057 * constants, in calculations:            References.          (line  82)
8058 * constants.el:                          Cooperation.         (line  14)
8059 * constcgs, STARTUP keyword:             In-buffer settings.  (line  98)
8060 * constSI, STARTUP keyword:              In-buffer settings.  (line  98)
8061 * content, STARTUP keyword:              In-buffer settings.  (line  65)
8062 * contents, global visibility state:     Visibility cycling.  (line  22)
8063 * copying, of subtrees:                  Structure editing.   (line   6)
8064 * creating timestamps:                   Creating timestamps. (line   6)
8065 * CUA.el:                                Conflicts.           (line  15)
8066 * custom agenda views:                   Custom agenda views. (line   6)
8067 * custom date/time format:               Custom time format.  (line   6)
8068 * custom search strings:                 Custom searches.     (line   6)
8069 * customization:                         Customization.       (line   6)
8070 * customtime, STARTUP keyword:           In-buffer settings.  (line  95)
8071 * cutting, of subtrees:                  Structure editing.   (line   6)
8072 * cycling, of TODO states:               TODO basics.         (line  13)
8073 * cycling, visibility:                   Visibility cycling.  (line   6)
8074 * daily agenda:                          Weekly/Daily agenda. (line   6)
8075 * date format, custom:                   Custom time format.  (line   6)
8076 * date range:                            Time stamps.         (line  40)
8077 * date stamps <1>:                       Time stamps.         (line   6)
8078 * date stamps:                           Dates and times.     (line   6)
8079 * date, reading in minibuffer:           The date/time prompt.
8080                                                               (line   6)
8081 * dates:                                 Dates and times.     (line   6)
8082 * DEADLINE keyword:                      Deadlines and scheduling.
8083                                                               (line   9)
8084 * deadlines:                             Time stamps.         (line   6)
8085 * debugging, of table formulas:          Editing and debugging formulas.
8086                                                               (line  97)
8087 * demotion, of subtrees:                 Structure editing.   (line   6)
8088 * diary entries, creating from agenda:   Agenda commands.     (line 204)
8089 * diary integration:                     Weekly/Daily agenda. (line  23)
8090 * dictionary word completion:            Completion.          (line   6)
8091 * directories, for publishing:           Sources and destinations.
8092                                                               (line   6)
8093 * dispatching agenda commands:           Agenda dispatcher.   (line   6)
8094 * display changing, in agenda:           Agenda commands.     (line  65)
8095 * document structure:                    Document structure.  (line   6)
8096 * DONE, final TODO keyword:              Per-file keywords.   (line  26)
8097 * drawer, for properties:                Property syntax.     (line   6)
8098 * drawers:                               Drawers.             (line   6)
8099 * dynamic blocks:                        Dynamic blocks.      (line   6)
8100 * editing tables:                        Tables.              (line   6)
8101 * editing, of table formulas:            Editing and debugging formulas.
8102                                                               (line   6)
8103 * elisp links:                           External links.      (line   6)
8104 * emphasized text:                       Export options.      (line  26)
8105 * enhancing text:                        Enhancing text.      (line   6)
8106 * evaluate time range:                   Creating timestamps. (line  48)
8107 * even, STARTUP keyword:                 In-buffer settings.  (line  88)
8108 * examples, quoted:                      Quoted examples.     (line   6)
8109 * exporting:                             Exporting.           (line   6)
8110 * exporting agenda views <1>:            Agenda commands.     (line 236)
8111 * exporting agenda views:                Exporting Agenda Views.
8112                                                               (line  12)
8113 * exporting, not:                        Comment lines.       (line   6)
8114 * extended TODO keywords:                TODO extensions.     (line   6)
8115 * extension, third-party:                Extensions.          (line   6)
8116 * external archiving:                    Moving subtrees.     (line   6)
8117 * external links:                        External links.      (line   6)
8118 * external links, in HTML export:        Links.               (line   6)
8119 * faces, for TODO keywords:              Faces for TODO keywords.
8120                                                               (line   6)
8121 * FAQ:                                   Summary.             (line  56)
8122 * feedback:                              Feedback.            (line   6)
8123 * field formula:                         Field formulas.      (line   6)
8124 * field references:                      References.          (line  15)
8125 * file links:                            External links.      (line   6)
8126 * file links, searching:                 Search options.      (line   6)
8127 * file name completion:                  Handling links.      (line  44)
8128 * files for agenda:                      Agenda files.        (line   6)
8129 * files, adding to agenda list:          Agenda files.        (line  15)
8130 * files, selecting for publishing:       Selecting files.     (line   6)
8131 * fixed width:                           Enhancing text.      (line  30)
8132 * fixed width text:                      Quoted examples.     (line   6)
8133 * fixed-width sections:                  Export options.      (line  26)
8134 * folded, subtree visibility state:      Visibility cycling.  (line  10)
8135 * folding, sparse trees:                 Sparse trees.        (line   6)
8136 * following links:                       Handling links.      (line  59)
8137 * footnote.el <1>:                       Footnotes.           (line   6)
8138 * footnote.el <2>:                       Cooperation.         (line  73)
8139 * footnote.el:                           Conflicts.           (line  35)
8140 * footnotes <1>:                         Footnotes.           (line   6)
8141 * footnotes:                             Export options.      (line  26)
8142 * format specifier:                      Formula syntax for Calc.
8143                                                               (line  14)
8144 * format, of links:                      Link format.         (line   6)
8145 * formula debugging:                     Editing and debugging formulas.
8146                                                               (line  97)
8147 * formula editing:                       Editing and debugging formulas.
8148                                                               (line   6)
8149 * formula syntax, Calc:                  Formula syntax for Calc.
8150                                                               (line   6)
8151 * formula, for individual table field:   Field formulas.      (line   6)
8152 * formula, for table column:             Column formulas.     (line   6)
8153 * formula, in tables:                    Built-in table editor.
8154                                                               (line 143)
8155 * global cycling:                        Visibility cycling.  (line  22)
8156 * global keybindings:                    Activation.          (line   6)
8157 * global TODO list:                      Global TODO list.    (line   6)
8158 * global visibility states:              Visibility cycling.  (line  22)
8159 * GNUS links:                            External links.      (line   6)
8160 * grouping columns in tables:            Column groups.       (line   6)
8161 * hand-formatted lists:                  Enhancing text.      (line  11)
8162 * headline levels:                       Export options.      (line  26)
8163 * headline levels, for exporting <1>:    LaTeX export commands.
8164                                                               (line  26)
8165 * headline levels, for exporting <2>:    HTML Export commands.
8166                                                               (line  44)
8167 * headline levels, for exporting:        ASCII export.        (line  21)
8168 * headline navigation:                   Motion.              (line   6)
8169 * headline tagging:                      Tags.                (line   6)
8170 * headline, promotion and demotion:      Structure editing.   (line   6)
8171 * headlines:                             Headlines.           (line   6)
8172 * hide text:                             Visibility cycling.  (line   6)
8173 * hidestars, STARTUP keyword:            In-buffer settings.  (line  88)
8174 * hiding leading stars:                  Clean view.          (line   6)
8175 * history:                               History and Acknowledgments.
8176                                                               (line   6)
8177 * horizontal rules, in exported files:   Enhancing text.      (line  20)
8178 * HTML entities, LaTeX entities:         Enhancing text.      (line  45)
8179 * HTML export:                           HTML export.         (line   6)
8180 * HTML, and orgtbl-mode:                 Translator functions.
8181                                                               (line   6)
8182 * hyperlinks:                            Hyperlinks.          (line   6)
8183 * hyperlinks, adding new types:          Adding hyperlink types.
8184                                                               (line   6)
8185 * iCalendar export:                      iCalendar export.    (line   6)
8186 * images, inline in HTML:                Images.              (line   6)
8187 * imenu.el:                              Cooperation.         (line  33)
8188 * in-buffer settings:                    In-buffer settings.  (line   6)
8189 * inactive timestamp:                    Time stamps.         (line  49)
8190 * index, of published pages:             Project page index.  (line   6)
8191 * Info links:                            External links.      (line   6)
8192 * inheritance, of properties:            Property searches.   (line   6)
8193 * inheritance, of tags:                  Tag inheritance.     (line   6)
8194 * inlining images in HTML:               Images.              (line   6)
8195 * inserting links:                       Handling links.      (line  25)
8196 * installation:                          Installation.        (line   6)
8197 * internal archiving:                    ARCHIVE tag.         (line   6)
8198 * internal links:                        Internal links.      (line   6)
8199 * internal links, in HTML export:        Links.               (line   6)
8200 * introduction:                          Introduction.        (line   6)
8201 * italic text:                           Enhancing text.      (line  15)
8202 * jumping, to headlines:                 Motion.              (line   6)
8203 * keybindings, global:                   Activation.          (line   6)
8204 * keyword options:                       Per-file keywords.   (line   6)
8205 * LaTeX class:                           Sectioning structure.
8206                                                               (line   6)
8207 * LaTeX export:                          LaTeX export.        (line   6)
8208 * LaTeX fragments <1>:                   Export options.      (line  26)
8209 * LaTeX fragments:                       LaTeX fragments.     (line   6)
8210 * LaTeX fragments, export:               Enhancing text.      (line  23)
8211 * LaTeX fragments, preview:              Processing LaTeX fragments.
8212                                                               (line   6)
8213 * LaTeX interpretation:                  Embedded LaTeX.      (line   6)
8214 * LaTeX sectioning structure:            Sectioning structure.
8215                                                               (line   6)
8216 * LaTeX, and orgtbl-mode:                A LaTeX example.     (line   6)
8217 * level, require for tags/property match: Tag searches.       (line  69)
8218 * linebreak preservation:                Export options.      (line  26)
8219 * linebreak, forced:                     Enhancing text.      (line  42)
8220 * link abbreviations:                    Link abbreviations.  (line   6)
8221 * link abbreviations, completion of:     Completion.          (line   6)
8222 * link completion:                       Handling links.      (line  25)
8223 * link format:                           Link format.         (line   6)
8224 * links, external:                       External links.      (line   6)
8225 * links, finding next/previous:          Handling links.      (line  92)
8226 * links, handling:                       Handling links.      (line   6)
8227 * links, in HTML export:                 Links.               (line   6)
8228 * links, internal:                       Internal links.      (line   6)
8229 * links, publishing:                     Publishing links.    (line   6)
8230 * links, radio targets:                  Radio targets.       (line   6)
8231 * links, returning to:                   Handling links.      (line  86)
8232 * Lisp forms, as table formulas:         Formula syntax for Lisp.
8233                                                               (line   6)
8234 * lists, hand-formatted:                 Enhancing text.      (line  11)
8235 * lists, in other modes:                 Tables in arbitrary syntax.
8236                                                               (line   6)
8237 * lists, ordered:                        Plain lists.         (line   6)
8238 * lists, plain:                          Plain lists.         (line   6)
8239 * logdone, STARTUP keyword:              In-buffer settings.  (line  77)
8240 * logging, of progress:                  Progress logging.    (line   6)
8241 * lognoteclock-out, STARTUP keyword:     In-buffer settings.  (line  77)
8242 * lognotedone, STARTUP keyword:          In-buffer settings.  (line  77)
8243 * lognotestate, STARTUP keyword:         In-buffer settings.  (line  77)
8244 * logrepeat, STARTUP keyword:            In-buffer settings.  (line  77)
8245 * maintainer:                            Feedback.            (line   6)
8246 * mark ring:                             Handling links.      (line  82)
8247 * marking characters, tables:            Advanced features.   (line  40)
8248 * matching, of properties:               Matching tags and properties.
8249                                                               (line   6)
8250 * matching, of tags:                     Matching tags and properties.
8251                                                               (line   6)
8252 * matching, tags:                        Tags.                (line   6)
8253 * math symbols:                          Math symbols.        (line   6)
8254 * MH-E links:                            External links.      (line   6)
8255 * minor mode for structure editing:      orgstruct-mode.      (line   6)
8256 * minor mode for tables:                 orgtbl-mode.         (line   6)
8257 * mode, for calc:                        Formula syntax for Calc.
8258                                                               (line  14)
8259 * motion commands in agenda:             Agenda commands.     (line  19)
8260 * motion, between headlines:             Motion.              (line   6)
8261 * name, of column or field:              References.          (line  82)
8262 * named references:                      References.          (line  82)
8263 * names as TODO keywords:                TODO types.          (line   6)
8264 * narrow columns in tables:              Narrow columns.      (line   6)
8265 * noalign, STARTUP keyword:              In-buffer settings.  (line  72)
8266 * nologging, STARTUP keyword:            In-buffer settings.  (line  77)
8267 * nologrepeat, STARTUP keyword:          In-buffer settings.  (line  77)
8268 * occur, command:                        Sparse trees.        (line   6)
8269 * odd, STARTUP keyword:                  In-buffer settings.  (line  88)
8270 * option keyword completion:             Completion.          (line   6)
8271 * options, for custom agenda views:      Setting Options.     (line   6)
8272 * options, for customization:            Customization.       (line   6)
8273 * options, for export:                   Export options.      (line   6)
8274 * options, for publishing:               Publishing options.  (line   6)
8275 * ordered lists:                         Plain lists.         (line   6)
8276 * org-agenda, command:                   Weekly/Daily agenda. (line   9)
8277 * org-blog.el:                           Extensions.          (line  28)
8278 * org-list-insert-radio-list:            Radio lists.         (line   6)
8279 * org-mode, turning on:                  Activation.          (line  22)
8280 * org-mouse.el:                          Extensions.          (line  16)
8281 * org-publish-project-alist:             Project alist.       (line   6)
8282 * org-publish.el:                        Extensions.          (line   8)
8283 * org2rem.el:                            Extensions.          (line  36)
8284 * orgstruct-mode:                        orgstruct-mode.      (line   6)
8285 * orgtbl-mode <1>:                       orgtbl-mode.         (line   6)
8286 * orgtbl-mode:                           Tables in arbitrary syntax.
8287                                                               (line   6)
8288 * outline tree:                          Headlines.           (line   6)
8289 * outline-mode:                          Outlines.            (line   6)
8290 * outlines:                              Outlines.            (line   6)
8291 * overview, global visibility state:     Visibility cycling.  (line  22)
8292 * overview, STARTUP keyword:             In-buffer settings.  (line  65)
8293 * packages, interaction with other:      Interaction.         (line   6)
8294 * pasting, of subtrees:                  Structure editing.   (line   6)
8295 * per-file keywords:                     Per-file keywords.   (line   6)
8296 * plain lists:                           Plain lists.         (line   6)
8297 * plain text external links:             External links.      (line  43)
8298 * presentation, of agenda items:         Presentation and sorting.
8299                                                               (line   6)
8300 * printing sparse trees:                 Sparse trees.        (line  47)
8301 * priorities:                            Priorities.          (line   6)
8302 * priorities, of agenda items:           Sorting of agenda items.
8303                                                               (line   6)
8304 * progress logging:                      Progress logging.    (line   6)
8305 * projects, for publishing:              Project alist.       (line   6)
8306 * promotion, of subtrees:                Structure editing.   (line   6)
8307 * properties:                            Properties and columns.
8308                                                               (line   6)
8309 * properties, API <1>:                   Using the property API.
8310                                                               (line   6)
8311 * properties, API:                       Property API.        (line   6)
8312 * properties, column view:               Defining columns.    (line   6)
8313 * properties, inheritance:               Property searches.   (line   6)
8314 * properties, searching:                 Property searches.   (line   6)
8315 * properties, special:                   Special properties.  (line   6)
8316 * property syntax:                       Property syntax.     (line   6)
8317 * publishing:                            Publishing.          (line   6)
8318 * quoted examples:                       Quoted examples.     (line   6)
8319 * quoted HTML tags:                      Export options.      (line  26)
8320 * radio lists:                           Radio lists.         (line   6)
8321 * radio tables:                          Radio tables.        (line   6)
8322 * radio targets:                         Radio targets.       (line   6)
8323 * range references:                      References.          (line  60)
8324 * ranges, time:                          Time stamps.         (line   6)
8325 * recomputing table fields:              Updating the table.  (line   6)
8326 * references:                            References.          (line   6)
8327 * references, named:                     References.          (line  82)
8328 * references, to fields:                 References.          (line  15)
8329 * references, to ranges:                 References.          (line  60)
8330 * refiling notes:                        Refiling notes.      (line   6)
8331 * region, active <1>:                    HTML Export commands.
8332                                                               (line   6)
8333 * region, active <2>:                    Built-in table editor.
8334                                                               (line 143)
8335 * region, active <3>:                    ASCII export.        (line   9)
8336 * region, active:                        Structure editing.   (line  74)
8337 * regular expressions, with tags search: Tag searches.        (line  64)
8338 * remember.el <1>:                       Remember.            (line   6)
8339 * remember.el:                           Cooperation.         (line  42)
8340 * remote editing, from agenda:           Agenda commands.     (line 110)
8341 * remote editing, undo:                  Agenda commands.     (line 111)
8342 * richer text:                           Enhancing text.      (line   6)
8343 * RMAIL links:                           External links.      (line   6)
8344 * SCHEDULED keyword:                     Deadlines and scheduling.
8345                                                               (line  27)
8346 * scheduling:                            Time stamps.         (line   6)
8347 * Scripts, for agenda processing:        Extracting Agenda Information for other programs.
8348                                                               (line   6)
8349 * search option in file links:           Search options.      (line   6)
8350 * search strings, custom:                Custom searches.     (line   6)
8351 * searching for tags:                    Tag searches.        (line   6)
8352 * searching, of properties:              Property searches.   (line   6)
8353 * section-numbers:                       Export options.      (line  26)
8354 * setting tags:                          Setting tags.        (line   6)
8355 * SHELL links:                           External links.      (line   6)
8356 * show all, command:                     Visibility cycling.  (line  33)
8357 * show all, global visibility state:     Visibility cycling.  (line  22)
8358 * show hidden text:                      Visibility cycling.  (line   6)
8359 * showall, STARTUP keyword:              In-buffer settings.  (line  65)
8360 * showstars, STARTUP keyword:            In-buffer settings.  (line  88)
8361 * sorting, of agenda items:              Sorting of agenda items.
8362                                                               (line   6)
8363 * sparse tree, for deadlines:            Inserting deadline/schedule.
8364                                                               (line  13)
8365 * sparse tree, for TODO:                 TODO basics.         (line  37)
8366 * sparse tree, tag based:                Tags.                (line   6)
8367 * sparse trees:                          Sparse trees.        (line   6)
8368 * special keywords:                      In-buffer settings.  (line   6)
8369 * special strings:                       Export options.      (line  26)
8370 * speedbar.el:                           Cooperation.         (line  46)
8371 * spreadsheet capabilities:              The spreadsheet.     (line   6)
8372 * statistics, for checkboxes:            Checkboxes.          (line  30)
8373 * storing links:                         Handling links.      (line   9)
8374 * structure editing:                     Structure editing.   (line   6)
8375 * structure of document:                 Document structure.  (line   6)
8376 * sublevels, inclusion into tags match:  Tag inheritance.     (line   6)
8377 * sublevels, inclusion into todo list:   Global TODO list.    (line  34)
8378 * subscript:                             Subscripts and Superscripts.
8379                                                               (line   6)
8380 * subtree cycling:                       Visibility cycling.  (line  10)
8381 * subtree visibility states:             Visibility cycling.  (line  10)
8382 * subtree, cut and paste:                Structure editing.   (line   6)
8383 * subtree, subtree visibility state:     Visibility cycling.  (line  10)
8384 * subtrees, cut and paste:               Structure editing.   (line   6)
8385 * summary:                               Summary.             (line   6)
8386 * superscript:                           Subscripts and Superscripts.
8387                                                               (line   6)
8388 * syntax, of formulas:                   Formula syntax for Calc.
8389                                                               (line   6)
8390 * table editor, built-in:                Built-in table editor.
8391                                                               (line   6)
8392 * table editor, table.el:                Cooperation.         (line  54)
8393 * table of contents:                     Export options.      (line  26)
8394 * table.el:                              Cooperation.         (line  51)
8395 * tables <1>:                            Tables.              (line   6)
8396 * tables:                                Export options.      (line  26)
8397 * tables, export:                        Enhancing text.      (line  26)
8398 * tables, in other modes:                Tables in arbitrary syntax.
8399                                                               (line   6)
8400 * tag completion:                        Completion.          (line   6)
8401 * tag inheritance:                       Tag inheritance.     (line   6)
8402 * tag searches:                          Tag searches.        (line   6)
8403 * tags:                                  Tags.                (line   6)
8404 * tags view:                             Matching tags and properties.
8405                                                               (line   6)
8406 * tags, setting:                         Setting tags.        (line   6)
8407 * targets, for links:                    Internal links.      (line   6)
8408 * targets, radio:                        Radio targets.       (line   6)
8409 * tasks, breaking down:                  Breaking down tasks. (line   6)
8410 * templates, for remember:               Remember templates.  (line   6)
8411 * TeX interpretation:                    Embedded LaTeX.      (line   6)
8412 * TeX macros <1>:                        Math symbols.        (line   6)
8413 * TeX macros:                            Export options.      (line  26)
8414 * TeX macros, export:                    Enhancing text.      (line  23)
8415 * TeX symbol completion:                 Completion.          (line   6)
8416 * TeX-like syntax for sub- and superscripts: Export options.  (line  26)
8417 * text, fixed width:                     Quoted examples.     (line   6)
8418 * thanks:                                History and Acknowledgments.
8419                                                               (line   6)
8420 * time format, custom:                   Custom time format.  (line   6)
8421 * time grid:                             Time-of-day specifications.
8422                                                               (line  26)
8423 * time info, in export:                  Export options.      (line  26)
8424 * time stamps <1>:                       Dates and times.     (line   6)
8425 * time stamps:                           Time stamps.         (line   6)
8426 * time, reading in minibuffer:           The date/time prompt.
8427                                                               (line   6)
8428 * time-of-day specification:             Time-of-day specifications.
8429                                                               (line   6)
8430 * time-sorted view:                      Timeline.            (line   6)
8431 * timeline, single file:                 Timeline.            (line   6)
8432 * timerange:                             Time stamps.         (line  40)
8433 * times:                                 Dates and times.     (line   6)
8434 * timestamp:                             Time stamps.         (line  14)
8435 * timestamp, inactive:                   Time stamps.         (line  49)
8436 * timestamp, with repeater interval:     Time stamps.         (line  24)
8437 * timestamps, creating:                  Creating timestamps. (line   6)
8438 * TODO items:                            TODO items.          (line   6)
8439 * TODO keyword matching:                 Global TODO list.    (line  17)
8440 * TODO keyword matching, with tags search: Tag searches.      (line  41)
8441 * todo keyword sets:                     Multiple sets in one file.
8442                                                               (line   6)
8443 * TODO keywords completion:              Completion.          (line   6)
8444 * TODO list, global:                     Global TODO list.    (line   6)
8445 * TODO types:                            TODO types.          (line   6)
8446 * TODO workflow:                         Workflow states.     (line   6)
8447 * transient-mark-mode <1>:               Built-in table editor.
8448                                                               (line 143)
8449 * transient-mark-mode <2>:               HTML Export commands.
8450                                                               (line   6)
8451 * transient-mark-mode <3>:               Structure editing.   (line  74)
8452 * transient-mark-mode:                   ASCII export.        (line   9)
8453 * translator function:                   Translator functions.
8454                                                               (line   6)
8455 * trees, sparse:                         Sparse trees.        (line   6)
8456 * trees, visibility:                     Visibility cycling.  (line   6)
8457 * tty keybindings:                       TTY keys.            (line   6)
8458 * types as TODO keywords:                TODO types.          (line   6)
8459 * underlined text:                       Enhancing text.      (line  15)
8460 * undoing remote-editing events:         Agenda commands.     (line 111)
8461 * updating, table:                       Updating the table.  (line   6)
8462 * URL links:                             External links.      (line   6)
8463 * USENET links:                          External links.      (line   6)
8464 * variables, for customization:          Customization.       (line   6)
8465 * vectors, in table calculations:        Formula syntax for Calc.
8466                                                               (line  11)
8467 * verbatim text:                         Enhancing text.      (line  15)
8468 * visibility cycling:                    Visibility cycling.  (line   6)
8469 * visibility cycling, drawers:           Drawers.             (line   6)
8470 * visible text, printing:                Sparse trees.        (line  47)
8471 * VM links:                              External links.      (line   6)
8472 * WANDERLUST links:                      External links.      (line   6)
8473 * weekly agenda:                         Weekly/Daily agenda. (line   6)
8474 * windmove.el:                           Conflicts.           (line  32)
8475 * workflow states as TODO keywords:      Workflow states.     (line   6)
8476 * XEmacs:                                Installation.        (line   6)
8477 * XOXO export:                           XOXO export.         (line   6)
8479 \x1f
8480 File: org,  Node: Key Index,  Prev: Main Index,  Up: Top
8482 Key Index
8483 *********
8485 \0\b[index\0\b]
8486 * Menu:
8488 * $:                                     Agenda commands.     (line 125)
8489 * ':                                     CDLaTeX mode.        (line  43)
8490 * +:                                     Agenda commands.     (line 148)
8491 * ,:                                     Agenda commands.     (line 140)
8492 * -:                                     Agenda commands.     (line 154)
8493 * .:                                     Agenda commands.     (line 102)
8494 * ::                                     Agenda commands.     (line 133)
8495 * < <1>:                                 The date/time prompt.
8496                                                               (line  59)
8497 * < <2>:                                 Using column view.   (line  64)
8498 * <:                                     Agenda files.        (line  55)
8499 * <left>:                                Agenda commands.     (line  99)
8500 * <RET> <1>:                             The date/time prompt.
8501                                                               (line  59)
8502 * <RET> <2>:                             Setting tags.        (line  76)
8503 * <RET> <3>:                             Built-in table editor.
8504                                                               (line  64)
8505 * <RET>:                                 Agenda commands.     (line  39)
8506 * <right>:                               Agenda commands.     (line  94)
8507 * <SPC> <1>:                             Agenda commands.     (line  28)
8508 * <SPC>:                                 Setting tags.        (line  73)
8509 * <TAB> <1>:                             Built-in table editor.
8510                                                               (line  57)
8511 * <TAB> <2>:                             Setting tags.        (line  68)
8512 * <TAB> <3>:                             Visibility cycling.  (line  10)
8513 * <TAB> <4>:                             Editing and debugging formulas.
8514                                                               (line  57)
8515 * <TAB> <5>:                             CDLaTeX mode.        (line  23)
8516 * <TAB> <6>:                             Agenda commands.     (line  33)
8517 * <TAB>:                                 Plain lists.         (line  42)
8518 * > <1>:                                 Agenda commands.     (line 176)
8519 * > <2>:                                 Using column view.   (line  64)
8520 * >:                                     The date/time prompt.
8521                                                               (line  59)
8522 * ^:                                     CDLaTeX mode.        (line  33)
8523 * _:                                     CDLaTeX mode.        (line  33)
8524 * `:                                     CDLaTeX mode.        (line  39)
8525 * a <1>:                                 Agenda commands.     (line 137)
8526 * a:                                     Using column view.   (line  53)
8527 * b:                                     Agenda commands.     (line  49)
8528 * c:                                     Agenda commands.     (line 199)
8529 * C:                                     Agenda commands.     (line 219)
8530 * C-#:                                   Advanced features.   (line   9)
8531 * C-':                                   Agenda files.        (line  21)
8532 * C-,:                                   Agenda files.        (line  21)
8533 * C-<RET>:                               Structure editing.   (line  18)
8534 * C-_:                                   Agenda commands.     (line 111)
8535 * C-c ! <1>:                             Footnotes.           (line  14)
8536 * C-c !:                                 Creating timestamps. (line  19)
8537 * C-c #:                                 Checkboxes.          (line  65)
8538 * C-c %:                                 Handling links.      (line  82)
8539 * C-c &:                                 Handling links.      (line  86)
8540 * C-c ':                                 Editing and debugging formulas.
8541                                                               (line  36)
8542 * C-c *:                                 Updating the table.  (line  13)
8543 * C-c +:                                 Built-in table editor.
8544                                                               (line 143)
8545 * C-c ,:                                 Priorities.          (line  21)
8546 * C-c - <1>:                             Built-in table editor.
8547                                                               (line  92)
8548 * C-c -:                                 Plain lists.         (line  89)
8549 * C-c .:                                 Creating timestamps. (line  10)
8550 * C-c /:                                 Sparse trees.        (line  15)
8551 * C-c / d:                               Inserting deadline/schedule.
8552                                                               (line  13)
8553 * C-c / p:                               Property searches.   (line  23)
8554 * C-c / r:                               Sparse trees.        (line  17)
8555 * C-c / T:                               Tag searches.        (line   9)
8556 * C-c / t:                               TODO basics.         (line  37)
8557 * C-c : <1>:                             Enhancing text.      (line  34)
8558 * C-c ::                                 Quoted examples.     (line  15)
8559 * C-c ;:                                 Comment lines.       (line  10)
8560 * C-c <:                                 Creating timestamps. (line  23)
8561 * C-c = <1>:                             Editing and debugging formulas.
8562                                                               (line  14)
8563 * C-c =:                                 Column formulas.     (line  26)
8564 * C-c >:                                 Creating timestamps. (line  27)
8565 * C-c ?:                                 Editing and debugging formulas.
8566                                                               (line  24)
8567 * C-c [:                                 Agenda files.        (line  15)
8568 * C-c \:                                 Tag searches.        (line   9)
8569 * C-c ]:                                 Agenda files.        (line  18)
8570 * C-c ^ <1>:                             Structure editing.   (line  61)
8571 * C-c ^:                                 Built-in table editor.
8572                                                               (line  96)
8573 * C-c `:                                 Built-in table editor.
8574                                                               (line 159)
8575 * C-c a !:                               Stuck projects.      (line  14)
8576 * C-c a #:                               Stuck projects.      (line  13)
8577 * C-c a a:                               Weekly/Daily agenda. (line   9)
8578 * C-c a C:                               Storing searches.    (line   9)
8579 * C-c a e:                               Exporting Agenda Views.
8580                                                               (line  57)
8581 * C-c a L:                               Timeline.            (line  10)
8582 * C-c a m <1>:                           Matching tags and properties.
8583                                                               (line  10)
8584 * C-c a m:                               Tag searches.        (line  13)
8585 * C-c a M <1>:                           Matching tags and properties.
8586                                                               (line  15)
8587 * C-c a M:                               Tag searches.        (line  17)
8588 * C-c a T:                               Global TODO list.    (line  14)
8589 * C-c a t <1>:                           Global TODO list.    (line   9)
8590 * C-c a t:                               TODO basics.         (line  48)
8591 * C-c C-a:                               Visibility cycling.  (line  33)
8592 * C-c C-b:                               Motion.              (line  15)
8593 * C-c C-c <1>:                           Capturing Column View.
8594                                                               (line  39)
8595 * C-c C-c <2>:                           Built-in table editor.
8596                                                               (line  56)
8597 * C-c C-c <3>:                           Plain lists.         (line  82)
8598 * C-c C-c <4>:                           Property syntax.     (line  58)
8599 * C-c C-c <5>:                           TODO basics.         (line  30)
8600 * C-c C-c <6>:                           Checkboxes.          (line  45)
8601 * C-c C-c <7>:                           Using column view.   (line  46)
8602 * C-c C-c <8>:                           Cooperation.         (line  63)
8603 * C-c C-c <9>:                           Processing LaTeX fragments.
8604                                                               (line  15)
8605 * C-c C-c <10>:                          Setting tags.        (line  10)
8606 * C-c C-c <11>:                          Editing and debugging formulas.
8607                                                               (line  90)
8608 * C-c C-c <12>:                          Cooperation.         (line  54)
8609 * C-c C-c <13>:                          The very busy C-c C-c key.
8610                                                               (line   6)
8611 * C-c C-c <14>:                          Editing and debugging formulas.
8612                                                               (line  46)
8613 * C-c C-c:                               Clocking work time.  (line  90)
8614 * C-c C-d <1>:                           Agenda commands.     (line 161)
8615 * C-c C-d:                               Inserting deadline/schedule.
8616                                                               (line   9)
8617 * C-c C-e:                               Exporting.           (line  20)
8618 * C-c C-e a:                             ASCII export.        (line   9)
8619 * C-c C-e b:                             HTML Export commands.
8620                                                               (line  13)
8621 * C-c C-e c:                             iCalendar export.    (line  21)
8622 * C-c C-e H:                             HTML Export commands.
8623                                                               (line  16)
8624 * C-c C-e h:                             HTML Export commands.
8625                                                               (line   6)
8626 * C-c C-e I:                             iCalendar export.    (line  16)
8627 * C-c C-e i:                             iCalendar export.    (line  14)
8628 * C-c C-e L:                             LaTeX export commands.
8629                                                               (line   7)
8630 * C-c C-e l:                             LaTeX export commands.
8631                                                               (line   6)
8632 * C-c C-e R:                             HTML Export commands.
8633                                                               (line  19)
8634 * C-c C-e t:                             Export options.      (line  13)
8635 * C-c C-e v <1>:                         XOXO export.         (line  11)
8636 * C-c C-e v:                             Sparse trees.        (line  47)
8637 * C-c C-e v a:                           ASCII export.        (line  16)
8638 * C-c C-e v b:                           HTML Export commands.
8639                                                               (line  24)
8640 * C-c C-e v h:                           HTML Export commands.
8641                                                               (line  24)
8642 * C-c C-e v H:                           HTML Export commands.
8643                                                               (line  24)
8644 * C-c C-e v l:                           LaTeX export commands.
8645                                                               (line  10)
8646 * C-c C-e v L:                           LaTeX export commands.
8647                                                               (line  10)
8648 * C-c C-e v R:                           HTML Export commands.
8649                                                               (line  24)
8650 * C-c C-e x:                             XOXO export.         (line  10)
8651 * C-c C-f:                               Motion.              (line  12)
8652 * C-c C-j:                               Motion.              (line  21)
8653 * C-c C-l:                               Handling links.      (line  25)
8654 * C-c C-n:                               Motion.              (line   8)
8655 * C-c C-o <1>:                           Handling links.      (line  59)
8656 * C-c C-o:                               Creating timestamps. (line  31)
8657 * C-c C-p:                               Motion.              (line   9)
8658 * C-c C-q <1>:                           Built-in table editor.
8659                                                               (line 127)
8660 * C-c C-q:                               Editing and debugging formulas.
8661                                                               (line  50)
8662 * C-c C-r <1>:                           Editing and debugging formulas.
8663                                                               (line  53)
8664 * C-c C-r:                               Visibility cycling.  (line  34)
8665 * C-c C-s <1>:                           Agenda commands.     (line 158)
8666 * C-c C-s:                               Inserting deadline/schedule.
8667                                                               (line  20)
8668 * C-c C-t <1>:                           TODO basics.         (line  13)
8669 * C-c C-t:                               Clocking work time.  (line  30)
8670 * C-c C-u:                               Motion.              (line  18)
8671 * C-c C-v:                               TODO basics.         (line  37)
8672 * C-c C-w <1>:                           Refiling notes.      (line  13)
8673 * C-c C-w:                               Structure editing.   (line  58)
8674 * C-c C-x <:                             Agenda files.        (line  44)
8675 * C-c C-x b:                             Visibility cycling.  (line  43)
8676 * C-c C-x C-a:                           ARCHIVE tag.         (line  28)
8677 * C-c C-x C-b:                           Checkboxes.          (line  47)
8678 * C-c C-x C-c <1>:                       Using column view.   (line   9)
8679 * C-c C-x C-c:                           Agenda commands.     (line 226)
8680 * C-c C-x C-d:                           Clocking work time.  (line  42)
8681 * C-c C-x C-i:                           Clocking work time.  (line  12)
8682 * C-c C-x C-j:                           Clocking work time.  (line  38)
8683 * C-c C-x C-k:                           Structure editing.   (line  43)
8684 * C-c C-x C-l:                           Processing LaTeX fragments.
8685                                                               (line   9)
8686 * C-c C-x C-n:                           Handling links.      (line  92)
8687 * C-c C-x C-o:                           Clocking work time.  (line  17)
8688 * C-c C-x C-p:                           Handling links.      (line  92)
8689 * C-c C-x C-r:                           Clocking work time.  (line  50)
8690 * C-c C-x C-s:                           Moving subtrees.     (line  10)
8691 * C-c C-x C-t:                           Custom time format.  (line  12)
8692 * C-c C-x C-u <1>:                       Dynamic blocks.      (line  21)
8693 * C-c C-x C-u <2>:                       Capturing Column View.
8694                                                               (line  42)
8695 * C-c C-x C-u:                           Clocking work time.  (line  92)
8696 * C-c C-x C-w <1>:                       Built-in table editor.
8697                                                               (line 116)
8698 * C-c C-x C-w:                           Structure editing.   (line  43)
8699 * C-c C-x C-x:                           Clocking work time.  (line  34)
8700 * C-c C-x C-y <1>:                       Built-in table editor.
8701                                                               (line 120)
8702 * C-c C-x C-y:                           Structure editing.   (line  52)
8703 * C-c C-x M-w <1>:                       Structure editing.   (line  48)
8704 * C-c C-x M-w:                           Built-in table editor.
8705                                                               (line 113)
8706 * C-c C-x p:                             Property syntax.     (line  49)
8707 * C-c C-x r:                             Capturing Column View.
8708                                                               (line  37)
8709 * C-c C-y <1>:                           Clocking work time.  (line  25)
8710 * C-c C-y:                               Creating timestamps. (line  48)
8711 * C-c l:                                 Handling links.      (line   9)
8712 * C-c { <1>:                             Editing and debugging formulas.
8713                                                               (line  33)
8714 * C-c {:                                 CDLaTeX mode.        (line  21)
8715 * C-c |:                                 Built-in table editor.
8716                                                               (line  40)
8717 * C-c }:                                 Editing and debugging formulas.
8718                                                               (line  28)
8719 * C-c ~:                                 Cooperation.         (line  65)
8720 * C-k:                                   Agenda commands.     (line 119)
8721 * C-S-<left>:                            Multiple sets in one file.
8722                                                               (line  25)
8723 * C-S-<right>:                           Multiple sets in one file.
8724                                                               (line  25)
8725 * C-TAB:                                 ARCHIVE tag.         (line  38)
8726 * C-u C-c *:                             Updating the table.  (line  16)
8727 * C-u C-c .:                             Creating timestamps. (line  14)
8728 * C-u C-c = <1>:                         Field formulas.      (line  24)
8729 * C-u C-c =:                             Editing and debugging formulas.
8730                                                               (line  14)
8731 * C-u C-c C-c:                           Updating the table.  (line  19)
8732 * C-u C-c C-l:                           Handling links.      (line  44)
8733 * C-u C-c C-t:                           TODO basics.         (line  22)
8734 * C-u C-c C-w:                           Refiling notes.      (line  22)
8735 * C-u C-c C-x C-a:                       ARCHIVE tag.         (line  31)
8736 * C-u C-c C-x C-s:                       Moving subtrees.     (line  14)
8737 * C-u C-c C-x C-u <1>:                   Dynamic blocks.      (line  22)
8738 * C-u C-c C-x C-u <2>:                   Clocking work time.  (line  94)
8739 * C-u C-c C-x C-u:                       Capturing Column View.
8740                                                               (line  44)
8741 * C-u C-u C-c *:                         Updating the table.  (line  22)
8742 * C-u C-u C-c =:                         Editing and debugging formulas.
8743                                                               (line  18)
8744 * C-u C-u C-c C-c:                       Updating the table.  (line  22)
8745 * C-u C-u C-c C-w:                       Refiling notes.      (line  25)
8746 * C-x C-s <1>:                           Agenda commands.     (line  90)
8747 * C-x C-s:                               Editing and debugging formulas.
8748                                                               (line  46)
8749 * C-x C-w <1>:                           Agenda commands.     (line 235)
8750 * C-x C-w:                               Exporting Agenda Views.
8751                                                               (line  11)
8752 * D:                                     Agenda commands.     (line  72)
8753 * d:                                     Agenda commands.     (line  66)
8754 * e:                                     Using column view.   (line  40)
8755 * f:                                     Agenda commands.     (line  42)
8756 * G:                                     Agenda commands.     (line  76)
8757 * g <1>:                                 Agenda commands.     (line  87)
8758 * g:                                     Using column view.   (line  21)
8759 * H:                                     Agenda commands.     (line 223)
8760 * i:                                     Agenda commands.     (line 204)
8761 * I:                                     Agenda commands.     (line 181)
8762 * J:                                     Agenda commands.     (line 193)
8763 * L:                                     Agenda commands.     (line  30)
8764 * l:                                     Agenda commands.     (line  55)
8765 * M:                                     Agenda commands.     (line 210)
8766 * m:                                     Agenda commands.     (line  66)
8767 * M-<down> <1>:                          Built-in table editor.
8768                                                               (line  82)
8769 * M-<down>:                              Editing and debugging formulas.
8770                                                               (line  76)
8771 * M-<left> <1>:                          Structure editing.   (line  25)
8772 * M-<left>:                              Built-in table editor.
8773                                                               (line  74)
8774 * M-<RET> <1>:                           Plain lists.         (line  50)
8775 * M-<RET>:                               Structure editing.   (line   6)
8776 * M-<right> <1>:                         Built-in table editor.
8777                                                               (line  74)
8778 * M-<right>:                             Structure editing.   (line  28)
8779 * M-<TAB> <1>:                           Completion.          (line  10)
8780 * M-<TAB> <2>:                           Per-file keywords.   (line  23)
8781 * M-<TAB> <3>:                           Property syntax.     (line  46)
8782 * M-<TAB> <4>:                           Setting tags.        (line   6)
8783 * M-<TAB>:                               Editing and debugging formulas.
8784                                                               (line  64)
8785 * M-<up> <1>:                            Editing and debugging formulas.
8786                                                               (line  76)
8787 * M-<up>:                                Built-in table editor.
8788                                                               (line  82)
8789 * M-S-<down> <1>:                        Plain lists.         (line  67)
8790 * M-S-<down> <2>:                        Structure editing.   (line  40)
8791 * M-S-<down> <3>:                        Editing and debugging formulas.
8792                                                               (line  72)
8793 * M-S-<down>:                            Built-in table editor.
8794                                                               (line  89)
8795 * M-S-<left> <1>:                        Built-in table editor.
8796                                                               (line  76)
8797 * M-S-<left> <2>:                        The date/time prompt.
8798                                                               (line  59)
8799 * M-S-<left> <3>:                        Plain lists.         (line  73)
8800 * M-S-<left>:                            Structure editing.   (line  31)
8801 * M-S-<RET> <1>:                         Structure editing.   (line  22)
8802 * M-S-<RET> <2>:                         Plain lists.         (line  60)
8803 * M-S-<RET>:                             Checkboxes.          (line  62)
8804 * M-S-<right> <1>:                       Built-in table editor.
8805                                                               (line  79)
8806 * M-S-<right> <2>:                       Plain lists.         (line  73)
8807 * M-S-<right> <3>:                       Structure editing.   (line  34)
8808 * M-S-<right>:                           The date/time prompt.
8809                                                               (line  59)
8810 * M-S-<up> <1>:                          Structure editing.   (line  37)
8811 * M-S-<up> <2>:                          Built-in table editor.
8812                                                               (line  86)
8813 * M-S-<up> <3>:                          Plain lists.         (line  67)
8814 * M-S-<up>:                              Editing and debugging formulas.
8815                                                               (line  72)
8816 * mouse-1 <1>:                           The date/time prompt.
8817                                                               (line  59)
8818 * mouse-1 <2>:                           Handling links.      (line  73)
8819 * mouse-1:                               Agenda commands.     (line  33)
8820 * mouse-2 <1>:                           Handling links.      (line  73)
8821 * mouse-2:                               Agenda commands.     (line  33)
8822 * mouse-3 <1>:                           Handling links.      (line  78)
8823 * mouse-3:                               Agenda commands.     (line  28)
8824 * n <1>:                                 Using column view.   (line  37)
8825 * n:                                     Agenda commands.     (line  19)
8826 * o:                                     Agenda commands.     (line  65)
8827 * O:                                     Agenda commands.     (line 185)
8828 * P:                                     Agenda commands.     (line 145)
8829 * p <1>:                                 Agenda commands.     (line  20)
8830 * p:                                     Using column view.   (line  37)
8831 * q <1>:                                 Using column view.   (line  24)
8832 * q:                                     Agenda commands.     (line 246)
8833 * r <1>:                                 Using column view.   (line  17)
8834 * r <2>:                                 Global TODO list.    (line  22)
8835 * r:                                     Agenda commands.     (line  80)
8836 * S:                                     Agenda commands.     (line 214)
8837 * s:                                     Agenda commands.     (line  90)
8838 * S-<down> <1>:                          Editing and debugging formulas.
8839                                                               (line  67)
8840 * S-<down> <2>:                          Creating timestamps. (line  40)
8841 * S-<down> <3>:                          Agenda commands.     (line 154)
8842 * S-<down> <4>:                          Priorities.          (line  26)
8843 * S-<down> <5>:                          Plain lists.         (line  63)
8844 * S-<down>:                              The date/time prompt.
8845                                                               (line  59)
8846 * S-<left> <1>:                          The date/time prompt.
8847                                                               (line  59)
8848 * S-<left> <2>:                          Multiple sets in one file.
8849                                                               (line  29)
8850 * S-<left> <3>:                          TODO basics.         (line  26)
8851 * S-<left> <4>:                          Property syntax.     (line  66)
8852 * S-<left> <5>:                          Using column view.   (line  33)
8853 * S-<left> <6>:                          Editing and debugging formulas.
8854                                                               (line  67)
8855 * S-<left> <7>:                          Creating timestamps. (line  35)
8856 * S-<left>:                              Agenda commands.     (line 172)
8857 * S-<RET>:                               Built-in table editor.
8858                                                               (line 146)
8859 * S-<right> <1>:                         Property syntax.     (line  66)
8860 * S-<right> <2>:                         Agenda commands.     (line 164)
8861 * S-<right> <3>:                         Multiple sets in one file.
8862                                                               (line  29)
8863 * S-<right> <4>:                         The date/time prompt.
8864                                                               (line  59)
8865 * S-<right> <5>:                         Creating timestamps. (line  35)
8866 * S-<right> <6>:                         TODO basics.         (line  26)
8867 * S-<right> <7>:                         Editing and debugging formulas.
8868                                                               (line  67)
8869 * S-<right>:                             Using column view.   (line  33)
8870 * S-<TAB> <1>:                           Built-in table editor.
8871                                                               (line  61)
8872 * S-<TAB>:                               Visibility cycling.  (line  22)
8873 * S-<up> <1>:                            Creating timestamps. (line  40)
8874 * S-<up> <2>:                            Plain lists.         (line  63)
8875 * S-<up> <3>:                            The date/time prompt.
8876                                                               (line  59)
8877 * S-<up> <4>:                            Editing and debugging formulas.
8878                                                               (line  67)
8879 * S-<up> <5>:                            Priorities.          (line  26)
8880 * S-<up>:                                Agenda commands.     (line 148)
8881 * S-M-<left>:                            Using column view.   (line  68)
8882 * S-M-<RET>:                             TODO basics.         (line  55)
8883 * S-M-<right>:                           Using column view.   (line  65)
8884 * T:                                     Agenda commands.     (line 128)
8885 * t:                                     Agenda commands.     (line 115)
8886 * v:                                     Using column view.   (line  49)
8887 * w:                                     Agenda commands.     (line  66)
8888 * X:                                     Agenda commands.     (line 188)
8889 * x:                                     Agenda commands.     (line 247)
8890 * y:                                     Agenda commands.     (line  66)
8893 \x1f
8894 Tag Table:
8895 Node: Top\x7f976
8896 Node: Introduction\x7f13471
8897 Node: Summary\x7f13957
8898 Node: Installation\x7f17094
8899 Node: Activation\x7f18472
8900 Node: Feedback\x7f19709
8901 Node: Conventions\x7f21798
8902 Node: Document structure\x7f22482
8903 Node: Outlines\x7f23374
8904 Node: Headlines\x7f24039
8905 Ref: Headlines-Footnote-1\x7f25043
8906 Node: Visibility cycling\x7f25154
8907 Ref: Visibility cycling-Footnote-1\x7f27384
8908 Ref: Visibility cycling-Footnote-2\x7f27442
8909 Ref: Visibility cycling-Footnote-3\x7f27492
8910 Node: Motion\x7f27762
8911 Node: Structure editing\x7f28716
8912 Node: Archiving\x7f31964
8913 Node: ARCHIVE tag\x7f32522
8914 Node: Moving subtrees\x7f34315
8915 Ref: Moving subtrees-Footnote-1\x7f35862
8916 Node: Sparse trees\x7f36306
8917 Ref: Sparse trees-Footnote-1\x7f38558
8918 Ref: Sparse trees-Footnote-2\x7f38740
8919 Node: Plain lists\x7f38855
8920 Ref: Plain lists-Footnote-1\x7f43114
8921 Ref: Plain lists-Footnote-2\x7f43472
8922 Node: Drawers\x7f43653
8923 Ref: Drawers-Footnote-1\x7f44534
8924 Node: orgstruct-mode\x7f44639
8925 Node: Tables\x7f45539
8926 Node: Built-in table editor\x7f46139
8927 Node: Narrow columns\x7f53457
8928 Ref: Narrow columns-Footnote-1\x7f55392
8929 Node: Column groups\x7f55438
8930 Node: orgtbl-mode\x7f56971
8931 Node: The spreadsheet\x7f57774
8932 Node: References\x7f58861
8933 Ref: References-Footnote-1\x7f63328
8934 Ref: References-Footnote-2\x7f63469
8935 Node: Formula syntax for Calc\x7f63758
8936 Node: Formula syntax for Lisp\x7f66215
8937 Node: Field formulas\x7f67933
8938 Node: Column formulas\x7f69241
8939 Node: Editing and debugging formulas\x7f70840
8940 Node: Updating the table\x7f74993
8941 Node: Advanced features\x7f76046
8942 Node: Hyperlinks\x7f80571
8943 Node: Link format\x7f81340
8944 Node: Internal links\x7f82633
8945 Ref: Internal links-Footnote-1\x7f84558
8946 Node: Radio targets\x7f84693
8947 Node: External links\x7f85393
8948 Node: Handling links\x7f87797
8949 Ref: Handling links-Footnote-1\x7f93113
8950 Ref: Handling links-Footnote-2\x7f93350
8951 Node: Using links outside Org-mode\x7f93424
8952 Node: Link abbreviations\x7f93934
8953 Node: Search options\x7f95627
8954 Ref: Search options-Footnote-1\x7f97407
8955 Node: Custom searches\x7f97488
8956 Node: TODO items\x7f98519
8957 Node: TODO basics\x7f99589
8958 Node: TODO extensions\x7f101782
8959 Node: Workflow states\x7f102741
8960 Ref: Workflow states-Footnote-1\x7f103916
8961 Node: TODO types\x7f104009
8962 Ref: TODO types-Footnote-1\x7f105592
8963 Node: Multiple sets in one file\x7f105674
8964 Node: Fast access to TODO states\x7f107294
8965 Node: Per-file keywords\x7f108437
8966 Ref: Per-file keywords-Footnote-1\x7f109739
8967 Node: Faces for TODO keywords\x7f109940
8968 Node: Progress logging\x7f110646
8969 Node: Closing items\x7f111077
8970 Ref: Closing items-Footnote-1\x7f112011
8971 Ref: Closing items-Footnote-2\x7f112218
8972 Node: Tracking TODO state changes\x7f112291
8973 Ref: Tracking TODO state changes-Footnote-1\x7f113476
8974 Node: Priorities\x7f113551
8975 Ref: Priorities-Footnote-1\x7f115346
8976 Node: Breaking down tasks\x7f115416
8977 Ref: Breaking down tasks-Footnote-1\x7f115936
8978 Node: Checkboxes\x7f116032
8979 Node: Tags\x7f119195
8980 Node: Tag inheritance\x7f119950
8981 Node: Setting tags\x7f120996
8982 Ref: Setting tags-Footnote-1\x7f125514
8983 Ref: Setting tags-Footnote-2\x7f125626
8984 Node: Tag searches\x7f125709
8985 Node: Properties and columns\x7f128492
8986 Node: Property syntax\x7f130419
8987 Node: Special properties\x7f133114
8988 Node: Property searches\x7f134322
8989 Node: Property inheritance\x7f135583
8990 Node: Column view\x7f137041
8991 Node: Defining columns\x7f138275
8992 Node: Scope of column definitions\x7f138673
8993 Node: Column attributes\x7f139603
8994 Ref: Column attributes-Footnote-1\x7f142167
8995 Node: Using column view\x7f142301
8996 Node: Capturing Column View\x7f144498
8997 Node: Property API\x7f146225
8998 Node: Dates and times\x7f146579
8999 Node: Time stamps\x7f147300
9000 Ref: Time stamps-Footnote-1\x7f149664
9001 Node: Creating timestamps\x7f149778
9002 Node: The date/time prompt\x7f151857
9003 Ref: The date/time prompt-Footnote-1\x7f155213
9004 Ref: The date/time prompt-Footnote-2\x7f155269
9005 Ref: The date/time prompt-Footnote-3\x7f155375
9006 Node: Custom time format\x7f155468
9007 Node: Deadlines and scheduling\x7f157160
9008 Ref: Deadlines and scheduling-Footnote-1\x7f159861
9009 Node: Inserting deadline/schedule\x7f160016
9010 Node: Repeated tasks\x7f161134
9011 Ref: Repeated tasks-Footnote-1\x7f163018
9012 Node: Clocking work time\x7f163139
9013 Ref: Clocking work time-Footnote-1\x7f168062
9014 Ref: Clocking work time-Footnote-2\x7f168140
9015 Node: Remember\x7f168266
9016 Node: Setting up remember\x7f169212
9017 Ref: Setting up remember-Footnote-1\x7f170227
9018 Node: Remember templates\x7f170293
9019 Ref: Remember templates-Footnote-1\x7f174281
9020 Ref: Remember templates-Footnote-2\x7f174464
9021 Node: Storing notes\x7f174562
9022 Ref: Storing notes-Footnote-1\x7f177073
9023 Node: Refiling notes\x7f177175
9024 Node: Agenda views\x7f178348
9025 Node: Agenda files\x7f180295
9026 Ref: Agenda files-Footnote-1\x7f182736
9027 Ref: Agenda files-Footnote-2\x7f182885
9028 Node: Agenda dispatcher\x7f183078
9029 Ref: Agenda dispatcher-Footnote-1\x7f185132
9030 Ref: Agenda dispatcher-Footnote-2\x7f185226
9031 Node: Built-in agenda views\x7f185320
9032 Node: Weekly/Daily agenda\x7f185902
9033 Ref: Weekly/Daily agenda-Footnote-1\x7f189200
9034 Node: Global TODO list\x7f189404
9035 Node: Matching tags and properties\x7f191684
9036 Node: Timeline\x7f192775
9037 Node: Stuck projects\x7f193449
9038 Node: Presentation and sorting\x7f195302
9039 Node: Categories\x7f196095
9040 Ref: Categories-Footnote-1\x7f196806
9041 Node: Time-of-day specifications\x7f197243
9042 Node: Sorting of agenda items\x7f199216
9043 Node: Agenda commands\x7f200500
9044 Node: Custom agenda views\x7f207988
9045 Node: Storing searches\x7f208709
9046 Ref: Storing searches-Footnote-1\x7f211243
9047 Node: Block agenda\x7f211360
9048 Node: Setting Options\x7f212592
9049 Node: Exporting Agenda Views\x7f215334
9050 Ref: Exporting Agenda Views-Footnote-1\x7f219691
9051 Ref: Exporting Agenda Views-Footnote-2\x7f219748
9052 Node: Extracting Agenda Information for other programs\x7f219934
9053 Node: Embedded LaTeX\x7f224062
9054 Ref: Embedded LaTeX-Footnote-1\x7f225156
9055 Node: Math symbols\x7f225346
9056 Node: Subscripts and Superscripts\x7f226113
9057 Node: LaTeX fragments\x7f226959
9058 Ref: LaTeX fragments-Footnote-1\x7f229192
9059 Ref: LaTeX fragments-Footnote-2\x7f229453
9060 Node: Processing LaTeX fragments\x7f229587
9061 Node: CDLaTeX mode\x7f230535
9062 Ref: CDLaTeX mode-Footnote-1\x7f233021
9063 Node: Exporting\x7f233169
9064 Node: ASCII export\x7f234636
9065 Node: HTML export\x7f236141
9066 Node: HTML Export commands\x7f236767
9067 Node: Quoting HTML tags\x7f238558
9068 Node: Links\x7f239193
9069 Node: Images\x7f239890
9070 Ref: Images-Footnote-1\x7f240761
9071 Node: CSS support\x7f240822
9072 Ref: CSS support-Footnote-1\x7f242141
9073 Node: LaTeX export\x7f242254
9074 Node: LaTeX export commands\x7f242603
9075 Node: Quoting LaTeX code\x7f243765
9076 Node: Sectioning structure\x7f244299
9077 Node: XOXO export\x7f244800
9078 Node: iCalendar export\x7f245240
9079 Node: Text interpretation\x7f246709
9080 Node: Comment lines\x7f247364
9081 Node: Initial text\x7f247759
9082 Node: Footnotes\x7f249428
9083 Node: Quoted examples\x7f250220
9084 Node: Enhancing text\x7f250995
9085 Node: Export options\x7f253444
9086 Node: Publishing\x7f255905
9087 Ref: Publishing-Footnote-1\x7f256866
9088 Ref: Publishing-Footnote-2\x7f257010
9089 Node: Configuration\x7f257161
9090 Node: Project alist\x7f257879
9091 Node: Sources and destinations\x7f258943
9092 Node: Selecting files\x7f259673
9093 Node: Publishing action\x7f260421
9094 Node: Publishing options\x7f261755
9095 Node: Publishing links\x7f264261
9096 Node: Project page index\x7f265776
9097 Node: Sample configuration\x7f266554
9098 Node: Simple example\x7f267046
9099 Node: Complex example\x7f267719
9100 Node: Triggering publication\x7f269795
9101 Node: Miscellaneous\x7f270480
9102 Node: Completion\x7f271114
9103 Node: Customization\x7f272784
9104 Node: In-buffer settings\x7f273367
9105 Node: The very busy C-c C-c key\x7f279039
9106 Node: Clean view\x7f280894
9107 Node: TTY keys\x7f283471
9108 Node: Interaction\x7f285048
9109 Node: Cooperation\x7f285445
9110 Node: Conflicts\x7f289116
9111 Node: Bugs\x7f291126
9112 Node: Extensions and Hacking\x7f292622
9113 Node: Extensions\x7f293347
9114 Node: Adding hyperlink types\x7f295619
9115 Node: Tables in arbitrary syntax\x7f299281
9116 Node: Radio tables\x7f300673
9117 Node: A LaTeX example\x7f303176
9118 Ref: A LaTeX example-Footnote-1\x7f306854
9119 Ref: A LaTeX example-Footnote-2\x7f307002
9120 Node: Translator functions\x7f307437
9121 Ref: Translator functions-Footnote-1\x7f310566
9122 Node: Radio lists\x7f310654
9123 Ref: Radio lists-Footnote-1\x7f311776
9124 Node: Dynamic blocks\x7f311896
9125 Node: Special agenda views\x7f313868
9126 Node: Using the property API\x7f317113
9127 Node: History and Acknowledgments\x7f318711
9128 Node: Main Index\x7f325470
9129 Node: Key Index\x7f362209
9130 \x1f
9131 End Tag Table