1 This is org, produced by makeinfo version 4.8 from org.texi.
5 * Org Mode: (org). Outline-based notes management and organizer
8 This manual is for Org-mode (version 4.69).
10 Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
12 Permission is granted to copy, distribute and/or modify this
13 document under the terms of the GNU Free Documentation License,
14 Version 1.1 or any later version published by the Free Software
15 Foundation; with no Invariant Sections, with the Front-Cover texts
16 being "A GNU Manual," and with the Back-Cover Texts as in (a)
17 below. A copy of the license is included in the section entitled
18 "GNU Free Documentation License."
20 (a) The FSF's Back-Cover Text is: "You have freedom to copy and
21 modify this GNU Manual, like GNU software. Copies published by
22 the Free Software Foundation raise funds for GNU development."
25 File: org, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
30 This manual is for Org-mode (version 4.69).
32 Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
34 Permission is granted to copy, distribute and/or modify this
35 document under the terms of the GNU Free Documentation License,
36 Version 1.1 or any later version published by the Free Software
37 Foundation; with no Invariant Sections, with the Front-Cover texts
38 being "A GNU Manual," and with the Back-Cover Texts as in (a)
39 below. A copy of the license is included in the section entitled
40 "GNU Free Documentation License."
42 (a) The FSF's Back-Cover Text is: "You have freedom to copy and
43 modify this GNU Manual, like GNU software. Copies published by
44 the Free Software Foundation raise funds for GNU development."
48 * Introduction:: Getting started
49 * Document structure:: A tree works like your brain
50 * Tables:: Pure magic for quick formatting
51 * Hyperlinks:: Notes in context
52 * TODO items:: Every tree branch can be a TODO item
53 * Timestamps:: Assign date and time to items
54 * Tags:: Tagging headlines and matching sets of tags
55 * Agenda views:: Collecting information into views
56 * Embedded LaTeX:: LaTeX fragments and formulas
57 * Exporting:: Sharing and publishing of notes
58 * Publishing:: Create a web site of linked Org-mode files
59 * Miscellaneous:: All the rest which did not fit elsewhere
60 * Extensions and Hacking:: It is possible to write add-on code
61 * History and Acknowledgments:: How Org-mode came into being
62 * Index:: The fast road to specific information
63 * Key Index:: Key bindings and where they are described
65 --- The Detailed Node Listing ---
69 * Summary:: Brief summary of what Org-mode does
70 * Installation:: How to install a downloaded version of Org-mode
71 * Activation:: How to activate Org-mode for certain buffers.
72 * Feedback:: Bug reports, ideas, patches etc.
76 * Outlines:: Org-mode is based on outline-mode
77 * Headlines:: How to typeset org-tree headlines
78 * Visibility cycling:: Show and hide, much simplified
79 * Motion:: Jumping to other headlines
80 * Structure editing:: Changing sequence and level of headlines
81 * Archiving:: Move done task trees to a different place
82 * Sparse trees:: Matches embedded in context
83 * Plain lists:: Additional structure within an entry
87 * ARCHIVE tag:: Marking a tree as inactive
88 * Moving subtrees:: Moving a tree to an archive file
92 * Built-in table editor:: Simple tables
93 * Narrow columns:: Stop wasting space in tables
94 * orgtbl-mode:: The table editor as minor mode
95 * The spreadsheet:: The table editor has spreadsheet capabilities.
99 * References:: How to refer to another field or range
100 * Formula syntax for Calc:: Using Calc to compute stuff
101 * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
102 * Field formulas:: Formulas valid for a single field
103 * Column formulas:: Formulas valid for an entire column
104 * Editing and debugging formulas:: Fixing formulas
105 * Updating the table:: Recomputing all dependent fields
106 * Advanced features:: Field names, parameters and automatic recalc
110 * Link format:: How links in Org-mode are formatted
111 * Internal links:: Links to other places in the current file
112 * External links:: URL-like links to the world
113 * Handling links:: Creating, inserting and following
114 * Link abbreviations:: Shortcuts for writing complex links
115 * Search options:: Linking to a specific location
116 * Custom searches:: When the default search is not enough
117 * Remember:: Org-trees store quick notes
121 * Radio targets:: Make targets trigger links in plain text.
125 * Setting up remember:: Some code for .emacs to get things going
126 * Remember templates:: Define the outline of different note types
127 * Storing notes:: Directly get the note to where it belongs
131 * TODO basics:: Marking and displaying TODO entries
132 * TODO extensions:: Workflow and assignments
133 * Priorities:: Some things are more important than others
134 * Breaking down tasks:: Splitting a task into manageable pieces
135 * Checkboxes:: Tick-off lists
137 Extended use of TODO keywords
139 * Workflow states:: From TODO to DONE in steps
140 * TODO types:: I do this, Fred the rest
141 * Per file keywords:: Different files, different requirements
142 * Multiple sets in one file:: Mixing it all, and still finding your way
146 * Time stamps:: Assigning a time to a tree entry
147 * Creating timestamps:: Commands which insert timestamps
148 * Custom time format:: If you cannot work with the ISO format
149 * Repeating items:: Deadlines that come back again and again
150 * Progress logging:: Documenting when what work was done.
154 * The date/time prompt:: How org-mode helps you entering date and time
158 * Closing items:: When was this entry marked DONE?
159 * Tracking TODO state changes:: When did the status change?
160 * Clocking work time:: When exactly did you work on this item?
164 * Tag inheritance:: Tags use the tree structure of the outline
165 * Setting tags:: How to assign tags to a headline
166 * Tag searches:: Searching for combinations of tags
170 * Agenda files:: Files being searched for agenda information
171 * Agenda dispatcher:: Keyboard access to agenda views
172 * Built-in agenda views:: What is available out of the box?
173 * Presentation and sorting:: How agenda items are prepared for display
174 * Agenda commands:: Remote editing of org trees
175 * Custom agenda views:: Defining special searches and views
177 The built-in agenda views
179 * Weekly/Daily agenda:: The calendar page with current tasks
180 * Global TODO list:: All unfinished action items
181 * Matching headline tags:: Structured information with fine-tuned search
182 * Timeline:: Time-sorted view for single file
183 * Stuck projects:: Find projects you need to review
185 Presentation and sorting
187 * Categories:: Not all tasks are equal
188 * Time-of-day specifications:: How the agenda knows the time
189 * Sorting of agenda items:: The order of things
193 * Storing searches:: Type once, use often
194 * Block agenda:: All the stuff you need in a single buffer
195 * Setting Options:: Changing the rules
196 * Batch processing:: Agenda views from the command line
200 * Math symbols:: TeX macros for symbols and Greek letters
201 * Subscripts and Superscripts:: Simple syntax for raising/lowering text
202 * LaTeX fragments:: Complex formulas made easy
203 * Processing LaTeX fragments:: Previewing LaTeX processing
204 * CDLaTeX mode:: Speed up entering of formulas
208 * ASCII export:: Exporting to plain ASCII
209 * HTML export:: Exporting to HTML
210 * XOXO export:: Exporting to XOXO
211 * iCalendar export:: Exporting in iCalendar format
212 * Text interpretation:: How the exporter looks at the file
216 * Export commands:: How to invoke HTML export
217 * Quoting HTML tags:: Using direct HTML in Org-mode
218 * Links:: How hyperlinks get transferred to HTML
219 * Images:: To inline or not to inline?
220 * CSS support:: Style specifications
222 Text interpretation by the exporter
224 * Comment lines:: Some lines will not be exported
225 * Initial text:: Text before the first headline
226 * Enhancing text:: Subscripts, symbols and more
227 * Export options:: How to influence the export settings
231 * Configuration:: Defining projects
232 * Sample configuration:: Example projects
233 * Triggering publication:: Publication commands
237 * Project alist:: The central configuration variable
238 * Sources and destinations:: From here to there
239 * Selecting files:: What files are part of the project?
240 * Publishing action:: Setting the function doing the publishing
241 * Publishing options:: Tweaking HTML export
242 * Publishing links:: Which links keep working after publishing?
243 * Project page index:: Publishing a list of project files
247 * Simple example:: One-component publishing
248 * Complex example:: A multi-component publishing example
252 * Completion:: M-TAB knows what you need
253 * Customization:: Adapting Org-mode to your taste
254 * In-buffer settings:: Overview of the #+KEYWORDS
255 * The very busy C-c C-c key:: When in doubt, press C-c C-c
256 * Clean view:: Getting rid of leading stars in the outline
257 * TTY keys:: Using Org-mode on a tty
258 * Interaction:: Other Emacs packages
259 * Bugs:: Things which do not work perfectly
261 Interaction with other packages
263 * Cooperation:: Packages Org-mode cooperates with
264 * Conflicts:: Packages that lead to conflicts
266 Extensions, Hooks and Hacking
268 * Extensions:: Existing 3rd-part extensions
269 * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
270 * Dynamic blocks:: Automatically filled blocks
271 * Special agenda views:: Customized views
273 Tables in arbitrary syntax
275 * Radio tables:: Sending and receiving
276 * A LaTeX example:: Step by step, almost a tutorial
277 * Translator functions:: Copy and modify
280 File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
287 * Summary:: Brief summary of what Org-mode does
288 * Installation:: How to install a downloaded version of Org-mode
289 * Activation:: How to activate Org-mode for certain buffers.
290 * Feedback:: Bug reports, ideas, patches etc.
293 File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
298 Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
299 project planning with a fast and effective plain-text system.
301 Org-mode develops organizational tasks around NOTES files that
302 contain lists or information about projects as plain text. Org-mode is
303 implemented on top of outline-mode, which makes it possible to keep the
304 content of large files well structured. Visibility cycling and
305 structure editing help to work with the tree. Tables are easily created
306 with a built-in table editor. Org-mode supports ToDo items, deadlines,
307 time stamps, and scheduling. It dynamically compiles entries into an
308 agenda that utilizes and smoothly integrates much of the Emacs calendar
309 and diary. Plain text URL-like links connect to websites, emails,
310 Usenet messages, BBDB entries, and any files related to the projects.
311 For printing and sharing of notes, an Org-mode file can be exported as a
312 structured ASCII file, as HTML, or (todo and agenda items only) as an
313 iCalendar file. It can also serve as a publishing tool for a set of
316 An important design aspect that distinguishes Org-mode from for
317 example Planner/Muse is that it encourages to store every piece of
318 information only once. In Planner, you have project pages, day pages
319 and possibly other files, duplicating some information such as tasks.
320 In Org-mode, you only have notes files. In your notes you mark entries
321 as tasks, label them with tags and timestamps. All necessary lists
322 like a schedule for the day, the agenda for a meeting, tasks lists
323 selected by tags etc are created dynamically when you need them.
325 Org-mode keeps simple things simple. When first fired up, it should
326 feel like a straightforward, easy to use outliner. Complexity is not
327 imposed, but a large amount of functionality is available when you need
328 it. Org-mode can be used on different levels and in different ways, for
331 * outline extension with visibility cycling and structure editing
332 * ASCII system and table editor for taking structured notes
333 * ASCII table editor with spreadsheet-like capabilities
335 * full agenda and planner with deadlines and work scheduling
336 * environment to implement David Allen's GTD system
337 * simple hypertext system, with HTML export
338 * publishing tool to create a set of interlinked webpages
340 Org-mode's automatic, context sensitive table editor with spreadsheet
341 capabilities can be integrated into any major mode by activating the
342 minor Orgtbl-mode. Using a translation step, it can be used to maintain
343 tables in arbitrary file types, for example in LaTeX.
345 There is a website for Org-mode which provides links to the newest
346 version of Org-mode, as well as additional information, frequently asked
347 questions (FAQ), links to tutorials etc. This page is located at
348 `http://www.astro.uva.nl/~dominik/Tools/org/'.
351 File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
356 Important: If Org-mode is part of the Emacs distribution or an XEmacs
357 package, please skip this section and go directly to *Note Activation::.
359 If you have downloaded Org-mode from the Web, you must take the
360 following steps to install it: Go into the Org-mode distribution
361 directory and edit the top section of the file `Makefile'. You must
362 set the name of the Emacs binary (likely either `emacs' or `xemacs'),
363 and the paths to the directories where local Lisp and Info files are
364 kept. If you don't have access to the system-wide directories, create
365 your own two directories for these files, enter them into the Makefile,
366 and make sure Emacs finds the Lisp files by adding the following line
369 (setq load-path (cons "~/path/to/lispdir" load-path))
371 XEmacs users now need to install the file `noutline.el' from the
372 `xemacs' subdirectory of the Org-mode distribution. Use the command:
374 make install-noutline
376 Now byte-compile and install the Lisp files with the shell commands:
381 If you want to install the info documentation, use this command:
385 Then add to `.emacs':
387 ;; This line only if org-mode is not part of the X/Emacs distribution.
388 (require 'org-install)
391 File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
396 Add the following lines to your `.emacs' file. The last two lines
397 define _global_ keys for the commands `org-store-link' and `org-agenda'
398 - please choose suitable keys yourself.
400 ;; The following lines are always needed. Choose your own keys.
401 (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
402 (define-key global-map "\C-cl" 'org-store-link)
403 (define-key global-map "\C-ca" 'org-agenda)
405 Furthermore, you must activate `font-lock-mode' in org-mode buffers,
406 because significant functionality depends on font-locking being active.
407 You can do this with either one of the following two lines (XEmacs
408 user must use the second option):
409 (global-font-lock-mode 1) ; for all buffers
410 (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
412 With this setup, all files with extension `.org' will be put into
413 Org-mode. As an alternative, make the first line of a file look like
416 MY PROJECTS -*- mode: org; -*-
418 which will select Org-mode for this buffer no matter what the file's
419 name is. See also the variable `org-insert-mode-line-in-empty-file'.
422 File: org, Node: Feedback, Prev: Activation, Up: Introduction
427 If you find problems with Org-mode, or if you have questions, remarks,
428 or ideas about it, please contact the maintainer Carsten Dominik at
429 <dominik at science dot uva dot nl>.
431 For bug reports, please provide as much information as possible,
432 including the version information of Emacs (`C-h v emacs-version
433 <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
434 Org-mode related setup in `.emacs'. If an error occurs, a backtrace
435 can be very useful (see below on how to create one). Often a small
436 example file helps, along with clear information about:
438 1. What exactly did you do?
440 2. What did you expect to happen?
442 3. What happened instead?
443 Thank you for helping to improve this mode.
445 How to create a useful backtrace
446 ................................
448 If working with Org-mode produces an error with a message you don't
449 understand, you may have hit a bug. The best way to report this is by
450 providing, in addition to what was mentioned above, a _Backtrace_.
451 This is information from the built-in debugger about where and how the
452 error occurred. Here is how to produce a useful backtrace:
454 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
455 original Lisp code in `org.el' instead of the compiled version in
456 `org.elc'. The backtrace contains much more information if it is
457 produced with uncompiled code. To do this, either rename `org.elc'
458 to something else before starting Emacs, or ask Emacs explicitly
459 to load `org.el' by using the command line
460 emacs -l /path/to/org.el
462 2. Go to the `Options' menu and select `Enter Debugger on Error'
463 (XEmacs has this option in the `Troubleshooting' sub-menu).
465 3. Do whatever you have to do to hit the error. Don't forget to
466 document the steps you take.
468 4. When you hit the error, a `*Backtrace*' buffer will appear on the
469 screen. Save this buffer to a file (for example using `C-x C-w')
470 and attach it to your bug report.
473 File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
478 Org-mode is based on outline mode and provides flexible commands to
479 edit the structure of the document.
483 * Outlines:: Org-mode is based on outline-mode
484 * Headlines:: How to typeset org-tree headlines
485 * Visibility cycling:: Show and hide, much simplified
486 * Motion:: Jumping to other headlines
487 * Structure editing:: Changing sequence and level of headlines
488 * Archiving:: Move done task trees to a different place
489 * Sparse trees:: Matches embedded in context
490 * Plain lists:: Additional structure within an entry
493 File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
498 Org-mode is implemented on top of outline-mode. Outlines allow to
499 organize a document in a hierarchical structure, which (at least for
500 me) is the best representation of notes and thoughts. Overview over
501 this structure is achieved by folding (hiding) large parts of the
502 document to show only the general document structure and the parts
503 currently being worked on. Org-mode greatly simplifies the use of
504 outlines by compressing the entire show/hide functionality into a
505 single command `org-cycle', which is bound to the <TAB> key.
508 File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
513 Headlines define the structure of an outline tree. The headlines in
514 Org-mode start with one or more stars, on the left margin. For example:
522 * Another top level headline
524 Some people find the many stars too noisy and would prefer an outline
525 that has whitespace followed by a single star as headline starters.
526 *Note Clean view:: describes a setup to realize this.
529 File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
531 2.3 Visibility cycling
532 ======================
534 Outlines make it possible to hide parts of the text in the buffer.
535 Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
536 the visibility in the buffer.
539 _Subtree cycling_: Rotate current subtree between the states
541 ,-> FOLDED -> CHILDREN -> SUBTREE --.
542 '-----------------------------------'
544 The cursor must be on a headline for this to work(1). When the
545 cursor is at the beginning of the buffer and the first line is not
546 a headline, then <TAB> actually runs global cycling (see
547 below)(2). Also when called with a prefix argument (`C-u <TAB>'),
548 global cycling is invoked.
552 _Global cycling_: Rotate the entire buffer between the states
554 ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
555 '--------------------------------------'
557 When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
558 view up to headlines of level N will be shown. Note that inside
559 tables, `S-<TAB>' jumps to the previous field.
565 Reveal context around point, showing the current entry, the
566 following heading and the hierarchy above. Useful for working
567 near a location exposed by a sparse tree command (*note Sparse
568 trees::) or an agenda command (*note Agenda commands::). With
569 prefix arg show, on each level, all sibling headings.
572 Show the current subtree in an indirect buffer(3). With numerical
573 prefix ARG, go up to this level and then take that tree. If ARG
574 is negative, go up that many levels. With `C-u' prefix, do not
575 remove the previously used indirect buffer.
577 When Emacs first visits an Org-mode file, the global state is set to
578 OVERVIEW, i.e. only the top level headlines are visible. This can be
579 configured through the variable `org-startup-folded', or on a per-file
580 basis by adding one of the following lines anywhere in the buffer:
586 ---------- Footnotes ----------
588 (1) see, however, the option `org-cycle-emulate-tab'.
590 (2) see the option `org-cycle-global-at-bob'.
592 (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
593 Buffers.) will contain the entire buffer, but will be narrowed to the
594 current tree. Editing the indirect buffer will also change the
595 original buffer, but without affecting visibility in that buffer.
598 File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
603 The following commands jump to other headlines in the buffer.
612 Next heading same level.
615 Previous heading same level.
618 Backward to higher level heading.
621 Jump to a different place without changing the current outline
622 visibility. Shows the document structure in a temporary buffer,
623 where you can use visibility cycling (<TAB>) to find your
624 destination. After pressing <RET>, the cursor moves to the
625 selected location in the original buffer, and the headings
626 hierarchy above it is made visible.
629 File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
631 2.5 Structure editing
632 =====================
635 Insert new heading with same level as current. If the cursor is
636 in a plain list item, a new item is created (*note Plain lists::).
637 To force creation of a new headline, use a prefix arg, or first
638 press <RET> to get to the beginning of the next line. When this
639 command is used in the middle of a line, the line is split and the
640 rest of the line becomes the new headline. If the command is used
641 at the beginning of a headline, the new headline is created before
642 the current line. If at the beginning of any other line, the
643 content of that line is made the new heading. If the command is
644 used at the end of a folded subtree (i.e. behind the ellipses at
645 the end of a headline), then a headline like the current one will
646 be inserted after the end of the subtree.
649 Insert new TODO entry with same level as current heading.
652 Promote current heading by one level.
655 Demote current heading by one level.
658 Promote the current subtree by one level.
661 Demote the current subtree by one level.
664 Move subtree up (swap with previous subtree of same level).
667 Move subtree down (swap with next subtree of same level).
671 Kill subtree, i.e. remove it from buffer but save in kill ring.
674 Copy subtree to kill ring.
677 Yank subtree from kill ring. This does modify the level of the
678 subtree to make sure the tree fits in nicely at the yank position.
679 The yank level can also be specified with a prefix arg, or by
680 yanking after a headline marker like `****'.
683 Sort same-level entries. When there is an active region, all
684 entries in the region will be sorted. Otherwise the children of
685 the current headline are sorted. The command prompts for the
686 sorting method, which can be alphabetically, numerically, by time
687 (using the first time stamp in each entry), and each of these in
688 reverse order. With a `C-u' prefix, sorting will be
689 case-sensitive. With two `C-u C-u' prefixes, duplicate entries
690 will also be removed.
692 When there is an active region (transient-mark-mode), promotion and
693 demotion work on all headlines in the region. To select a region of
694 headlines, it is best to place both point and mark at the beginning of a
695 line, mark at the beginning of the first headline, and point at the line
696 just after the last headline to change. Note that when the cursor is
697 inside a table (*note Tables::), the Meta-Cursor keys have different
701 File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
706 When a project represented by a (sub)tree is finished, you may want to
707 move the tree out of the way and to stop it from contributing to the
708 agenda. Org-mode knows two ways of archiving. You can mark a tree with
709 the ARCHIVE tag, or you can move an entire (sub)tree to a different
714 * ARCHIVE tag:: Marking a tree as inactive
715 * Moving subtrees:: Moving a tree to an archive file
718 File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
720 2.6.1 The ARCHIVE tag
721 ---------------------
723 A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
724 its location in the outline tree, but behaves in the following way:
725 - It does not open when you attempt to do so with a visibility
726 cycling command (*note Visibility cycling::). You can force
727 cycling archived subtrees with `C-<TAB>', or by setting the option
728 `org-cycle-open-archived-trees'. Also normal outline commands like
729 `show-all' will open archived subtrees.
731 - During sparse tree construction (*note Sparse trees::), matches in
732 archived subtrees are not exposed, unless you configure the option
733 `org-sparse-tree-open-archived-trees'.
735 - During agenda view construction (*note Agenda views::), the
736 content of archived trees is ignored unless you configure the
737 option `org-agenda-skip-archived-trees'.
739 - Archived trees are not exported (*note Exporting::), only the
740 headline is. Configure the details using the variable
741 `org-export-with-archived-trees'.
743 The following commands help managing the ARCHIVE tag:
746 Toggle the ARCHIVE tag for the current headline. When the tag is
747 set, the headline changes to a shadowish face, and the subtree
751 Check if any direct children of the current headline should be
752 archived. To do this, each subtree is checked for open TODO
753 entries. If none are found, the command offers to set the ARCHIVE
754 tag for the child. If the cursor is _not_ on a headline when this
755 command is invoked, the level 1 trees will be checked.
758 Cycle a tree even if it is tagged with ARCHIVE.
761 File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
763 2.6.2 Moving subtrees
764 ---------------------
766 Once an entire project is finished, you may want to move it to a
767 different location, either in the current file, or even in a different
768 file, the archive file.
771 Archive the subtree starting at the cursor position to the location
772 given by `org-archive-location'.
775 Check if any direct children of the current headline could be
776 moved to the archive. To do this, each subtree is checked for
777 open TODO entries. If none are found, the command offers to move
778 it to the archive location. If the cursor is _not_ on a headline
779 when this command is invoked, the level 1 trees will be checked.
781 The default archive location is a file in the same directory as the
782 current file, with the name derived by appending `_archive' to the
783 current file name. For information and examples on how to change this,
784 see the documentation string of the variable `org-archive-location'.
785 There is also an in-buffer option for setting this variable, for example
789 You may have several such lines in the buffer, they will then be valid
790 for the entries following the line (the first will also apply to any
794 File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
799 An important feature of Org-mode is the ability to construct _sparse
800 trees_ for selected information in an outline tree. A sparse tree
801 means that the entire document is folded as much as possible, but the
802 selected information is made visible along with the headline structure
803 above it(1). Just try it out and you will see immediately how it works.
805 Org-mode contains several commands creating such trees. The most
806 basic one is `org-occur':
809 Occur. Prompts for a regexp and shows a sparse tree with all
810 matches. If the match is in a headline, the headline is made
811 visible. If the match is in the body of an entry, headline and
812 body are made visible. In order to provide minimal context, also
813 the full hierarchy of headlines above the match is shown, as well
814 as the headline following the match. Each match is also
815 highlighted; the highlights disappear when the buffer is changes
816 an editing command, or by pressing `C-c C-c'. When called with a
817 `C-u' prefix argument, previous highlights are kept, so several
818 calls to this command can be stacked.
819 For frequently used sparse trees of specific search strings, you can
820 use the variable `org-agenda-custom-commands' to define fast keyboard
821 access to specific sparse trees. These commands will then be
822 accessible through the agenda dispatcher (*note Agenda dispatcher::).
825 (setq org-agenda-custom-commands
826 '(("f" occur-tree "FIXME")))
828 will define the key `C-c a f' as a shortcut for creating a sparse tree
829 matching the string `FIXME'.
831 Other commands use sparse trees as well. For example `C-c C-v'
832 creates a sparse TODO tree (*note TODO basics::).
834 To print a sparse tree, you can use the Emacs command
835 `ps-print-buffer-with-faces' which does not print invisible parts of
836 the document (2). Or you can use the command `C-c C-e v' to export
837 only the visible part of the document and print the resulting file.
839 ---------- Footnotes ----------
841 (1) See also the variables `org-show-hierarchy-above',
842 `org-show-following-heading', and `org-show-siblings' for detailed
843 control on how much context is shown around each match.
845 (2) This does not work under XEmacs, because XEmacs uses selective
846 display for outlining, not text properties.
849 File: org, Node: Plain lists, Prev: Sparse trees, Up: Document structure
854 Within an entry of the outline tree, hand-formatted lists can provide
855 additional structure. They also provide a way to create lists of
856 checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
857 and the HTML exporter (*note Exporting::) does parse and format them.
859 Org-mode knows ordered and unordered lists. Unordered list items
860 start with `-', `+', or `*'(1) as bullets. Ordered list items start
861 with `1.' or `1)'. Items belonging to the same list must have the same
862 indentation on the first line. In particular, if an ordered list
863 reaches number `10.', then the 2-digit numbers must be written
864 left-aligned with the other numbers in the list. Indentation also
865 determines the end of a list item. It ends before the next line that
866 is indented like the bullet/number, or less. Empty lines are part of
867 the previous item, so you can have several paragraphs in one item. If
868 you would like an emtpy line to terminate all currently open plain
869 lists, configure the variable `org-empty-line-terminates-plain-lists'.
870 Here is an for example:
873 My favorite scenes are (in this order)
874 1. The attack of the Rohirrim
875 2. Eowyns fight with the witch king
876 + this was already my favorite scene in the book
877 + I really like Miranda Otto.
878 3. Peter Jackson being shot by Legolas
880 He makes a really funny face when it happens.
881 But in the end, not individual scenes matter but the film as a whole.
883 Org-mode supports these lists by tuning filling and wrapping
884 commands to deal with them correctly(2).
886 The following commands act on items when the cursor is in the first
887 line of an item (the line with the bullet or number).
890 Items can be folded just like headline levels if you set the
891 variable `org-cycle-include-plain-lists'. The level of an item is
892 then given by the indentation of the bullet/number. Items are
893 always subordinate to real headlines, however; the hierarchies
894 remain completely separated.
897 Insert new item at current level. With prefix arg, force a new
898 heading (*note Structure editing::). If this command is used in
899 the middle of a line, the line is _split_ and the rest of the line
900 becomes the new item. If this command is executed in the
901 _whitespace before a bullet or number_, the new item is created
902 _before_ the current item. If the command is executed in the
903 white space before the text that is part of an item but does not
904 contain the bullet, a bullet is added to the current line.
907 Insert a new item with a checkbox (*note Checkboxes::).
911 Jump to the previous/next item in the current list.
915 Move the item including subitems up/down (swap with previous/next
916 item of same indentation). If the list is ordered, renumbering is
921 Decrease/increase the indentation of the item, including subitems.
922 Initially, the item tree is selected based on current indentation.
923 When these commands are executed several times in direct
924 succession, the initially selected region is used, even if the new
925 indentation would imply a different hierarchy. To use the new
926 hierarchy, break the command chain with a cursor motion or so.
929 If there is a checkbox (*note Checkboxes::) in the item line,
930 toggle the state of the checkbox. Otherwise, if this is an
931 ordered list, renumber the ordered list at the cursor.
933 ---------- Footnotes ----------
935 (1) When using `*' as a bullet, lines must be indented or they will
936 be seen as top-level headlines. Also, when you are hiding leading
937 stars to get a clean outline view, plain list items starting with a
938 star are visually indistinguishable from true headlines. In short:
939 even though `*' is supported, it may be better not to use it for plain
942 (2) Org-mode only changes the filling settings for Emacs. For
943 XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
948 File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
953 Org-mode has a very fast and intuitive table editor built-in.
954 Spreadsheet-like calculations are supported in connection with the
955 Emacs `calc' package.
959 * Built-in table editor:: Simple tables
960 * Narrow columns:: Stop wasting space in tables
961 * orgtbl-mode:: The table editor as minor mode
962 * The spreadsheet:: The table editor has spreadsheet capabilities.
965 File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
967 3.1 The built-in table editor
968 =============================
970 Org-mode makes it easy to format tables in plain ASCII. Any line with
971 `|' as the first non-white character is considered part of a table.
972 `|' is also the column separator. A table might look like this:
974 | Name | Phone | Age |
975 |-------+-------+-----|
976 | Peter | 1234 | 17 |
979 A table is re-aligned automatically each time you press <TAB> or
980 <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
981 field (<RET> to the next row) and creates new table rows at the end of
982 the table or before horizontal lines. The indentation of the table is
983 set by the first line. Any line starting with `|-' is considered as a
984 horizontal separator line and will be expanded on the next re-align to
985 span the whole table width. So, to create the above table, you would
991 and then press <TAB> to align the table and start filling in fields.
993 When typing text into a field, Org-mode treats <DEL>, <Backspace>,
994 and all character keys in a special way, so that inserting and deleting
995 avoids shifting other fields. Also, when typing _immediately after the
996 cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
997 the field is automatically made blank. If this behavior is too
998 unpredictable for you, configure the variables
999 `org-enable-table-editor' and `org-table-auto-blank-field'.
1001 Creation and conversion
1002 .......................
1005 Convert the active region to table. If every line contains at
1006 least one TAB character, the function assumes that the material is
1007 tab separated. If not, lines are split at whitespace into fields.
1008 You can use a prefix argument to indicate the minimum number of
1009 consecutive spaces required to identify a field separator
1010 (default: just one).
1011 If there is no active region, this command creates an empty
1012 Org-mode table. But it's easier just to start typing, like
1013 `|Name|Phone|Age <RET> |- <TAB>'.
1015 Re-aligning and field motion
1016 ............................
1019 Re-align the table without moving the cursor.
1022 Re-align the table, move to the next field. Creates a new row if
1026 Re-align, move to previous field.
1029 Re-align the table and move down to next row. Creates a new row if
1030 necessary. At the beginning or end of a line, <RET> still does
1031 NEWLINE, so it can be used to split a table.
1033 Column and row editing
1034 ......................
1038 Move the current column left/right.
1041 Kill the current column.
1044 Insert a new column to the left of the cursor position.
1048 Move the current row up/down.
1051 Kill the current row or horizontal line.
1054 Insert a new row above (with arg: below) the current row.
1057 Insert a horizontal line below current row. With prefix arg, the
1058 line is created above the current line.
1061 Sort the table lines in the region. The position of point
1062 indicates the column to be used for sorting, and the range of
1063 lines is the range between the nearest horizontal separator lines,
1064 or the entire table. If point is before the first column, you
1065 will be prompted for the sorting column. If there is an active
1066 region, the mark specifies the first line and the sorting column,
1067 while point should be in the last line to be included into the
1068 sorting. The command prompts for the sorting type
1069 (alphabetically, numerically, or by time). When called with a
1070 prefix argument, alphabetic sorting will be case-sensitive.
1076 Copy a rectangular region from a table to a special clipboard.
1077 Point and mark determine edge fields of the rectangle. The
1078 process ignores horizontal separator lines.
1081 Copy a rectangular region from a table to a special clipboard, and
1082 blank all fields in the rectangle. So this is the "cut" operation.
1085 Paste a rectangular region into a table. The upper right corner
1086 ends up in the current field. All involved fields will be
1087 overwritten. If the rectangle does not fit into the present table,
1088 the table is enlarged as needed. The process ignores horizontal
1092 Wrap several fields in a column like a paragraph. If there is an
1093 active region, and both point and mark are in the same column, the
1094 text in the column is wrapped to minimum width for the given
1095 number of lines. A prefix ARG may be used to change the number of
1096 desired lines. If there is no region, the current field is split
1097 at the cursor position and the text fragment to the right of the
1098 cursor is prepended to the field one line down. If there is no
1099 region, but you specify a prefix ARG, the current field is made
1100 blank, and the content is appended to the field above.
1106 Sum the numbers in the current column, or in the rectangle defined
1107 by the active region. The result is shown in the echo area and can
1108 be inserted with `C-y'.
1111 When current field is empty, copy from first non-empty field above.
1112 When not empty, copy current field down to next row and move cursor
1113 along with it. Depending on the variable
1114 `org-table-copy-increment', integer field values will be
1115 incremented during copy. This key is also used by CUA-mode (*note
1122 Edit the current field in a separate window. This is useful for
1123 fields that are not fully visible (*note Narrow columns::). When
1124 called with a `C-u' prefix, just make the full field visible, so
1125 that it can be edited in place.
1128 This is an alias for `C-u C-c `' to make the current field fully
1131 `M-x org-table-import'
1132 Import a file as a table. The table should be TAB- or whitespace
1133 separated. Useful, for example, to import an Excel table or data
1134 from a database, because these programs generally can write
1135 TAB-separated text files. This command works by inserting the
1136 file into the buffer and then converting the region to a table.
1137 Any prefix argument is passed on to the converter, which uses it
1138 to determine the separator.
1140 `M-x org-table-export'
1141 Export the table as a TAB-separated file. Useful for data
1142 exchange with, for example, Excel or database programs.
1144 If you don't like the automatic table editor because it gets in your
1145 way on lines which you would like to start with `|', you can turn it
1148 (setq org-enable-table-editor nil)
1150 Then the only table command that still works is `C-c C-c' to do a
1154 File: org, Node: Narrow columns, Next: orgtbl-mode, Prev: Built-in table editor, Up: Tables
1159 The width of columns is automatically determined by the table editor.
1160 Sometimes a single field or a few fields need to carry more text,
1161 leading to inconveniently wide columns. To limit(1) the width of a
1162 column, one field anywhere in the column may contain just the string
1163 `<N>' where `N' is an integer specifying the width of the column in
1164 characters. The next re-align will then set the width of this column
1165 to no more than this value.
1167 |---+------------------------------| |---+--------|
1169 | 1 | one | | 1 | one |
1170 | 2 | two | ----\ | 2 | two |
1171 | 3 | This is a long chunk of text | ----/ | 3 | This=> |
1172 | 4 | four | | 4 | four |
1173 |---+------------------------------| |---+--------|
1175 Fields that are wider become clipped and end in the string `=>'. Note
1176 that the full text is still in the buffer, it is only invisible. To
1177 see the full text, hold the mouse over the field - a tool-tip window
1178 will show the full content. To edit such a field, use the command `C-c
1179 `' (that is `C-c' followed by the backquote). This will open a new
1180 window with the full field. Edit it and finish with `C-c C-c'.
1182 When visiting a file containing a table with narrowed columns, the
1183 necessary character hiding has not yet happened, and the table needs to
1184 be aligned before it looks nice. Setting the option
1185 `org-startup-align-all-tables' will realign all tables in a file upon
1186 visiting, but also slow down startup. You can also set this option on
1187 a per-file basis with:
1192 ---------- Footnotes ----------
1194 (1) This feature does not work on XEmacs.
1197 File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Narrow columns, Up: Tables
1199 3.3 The Orgtbl minor mode
1200 =========================
1202 If you like the intuitive way the Org-mode table editor works, you
1203 might also want to use it in other modes like text-mode or mail-mode.
1204 The minor mode Orgtbl-mode makes this possible. You can always toggle
1205 the mode with `M-x orgtbl-mode'. To turn it on by default, for example
1208 (add-hook 'mail-mode-hook 'turn-on-orgtbl)
1210 Furthermore, with some special setup, it is possible to maintain
1211 tables in arbitrary syntax with Orgtbl-mode. For example, it is
1212 possible to construct LaTeX tables with the underlying ease and power of
1213 Orgtbl-mode, including spreadsheet capabilities. For details, see
1214 *Note Tables in arbitrary syntax::.
1217 File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
1222 The table editor makes use of the Emacs `calc' package to implement
1223 spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
1224 derive fields from other fields. While fully featured, Org-mode's
1225 implementation is not identical to other spreadsheets. For example,
1226 Org-mode knows the concept of a _column formula_ that will be applied
1227 to all non-header fields in a column without having to copy the formula
1228 to each relevant field.
1232 * References:: How to refer to another field or range
1233 * Formula syntax for Calc:: Using Calc to compute stuff
1234 * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
1235 * Field formulas:: Formulas valid for a single field
1236 * Column formulas:: Formulas valid for an entire column
1237 * Editing and debugging formulas:: Fixing formulas
1238 * Updating the table:: Recomputing all dependent fields
1239 * Advanced features:: Field names, parameters and automatic recalc
1242 File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
1247 To compute fields in the table from other fields, formulas must
1248 reference other fields or ranges. In Org-mode, fields can be referenced
1249 by name, by absolute coordinates, and by relative coordinates. To find
1250 out what the coordinates of a field are, press `C-c ?' in that field,
1251 or press `C-c }' to toggle the display of a grid.
1256 Formulas can reference the value of another field in two ways. Like in
1257 any other spreadsheet, you may reference fields with a letter/number
1258 combination like `B3', meaning the 2nd field in the 3rd row.
1260 Org-mode also uses another, more general operator that looks like this:
1263 Column references can be absolute like `1', `2',...`N', or relative to
1264 the current column like `+1' or `-2'.
1266 The row specification only counts data lines and ignores horizontal
1267 separator lines (hlines). You can use absolute row numbers `1'...`N',
1268 and row numbers relative to the current row like `+3' or `-1'. Or
1269 specify the row relative to one of the hlines: `I' refers to the first
1270 hline, `II' to the second etc. `-I' refers to the first such line
1271 above the current line, `+I' to the first such line below the current
1272 line. You can also write `III+2' which is the second data line after
1273 the third hline in the table. Relative row numbers like `-3' will not
1274 cross hlines if the current line is too close to the hline. Instead,
1275 the value directly at the hline is used.
1277 `0' refers to the current row and column. Also, if you omit either
1278 the column or the row part of the reference, the current row/column is
1281 Org-mode's references with _unsigned_ numbers are fixed references
1282 in the sense that if you use the same reference in the formula for two
1283 different fields, the same field will be referenced each time.
1284 Org-mode's references with _signed_ numbers are floating references
1285 because the same reference operator can reference different fields
1286 depending on the field being calculated by the formula.
1288 Here are a few examples:
1290 @2$3 2nd row, 3rd column
1292 $5 column 5 in the current row
1294 @2 current column, row 2
1295 @-1$-3 the field one row up, three columns to the left
1296 @-I$2 field just under hline above current row, column 2
1301 You may reference a rectangular range of fields by specifying two field
1302 references connected by two dots `..'. If both fields are in the
1303 current row, you may simply use `$2..$7', but if at least one field is
1304 in a different row, you need to use the general `@row$column' format at
1305 least for the first field (i.e the reference must start with `@' in
1306 order to be interpreted correctly). Examples:
1308 $1..$3 First three fields in the current row.
1309 $P..$Q Range, using column names (see under Advanced)
1310 @2$1..@4$3 6 fields between these two fields.
1311 A2..C4 Same as above.
1312 @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
1314 Range references return a vector of values that can be fed into Calc
1315 vector functions. Empty fields in ranges are normally suppressed, so
1316 that the vector contains only the non-empty fields (but see the `E'
1317 mode switch below). If there are no non-empty fields, `[0]' is
1318 returned to avoid syntax errors in formulas.
1323 `$name' is interpreted as the name of a column, parameter or constant.
1324 Constants are defined globally through the variable
1325 `org-table-formula-constants'. If you have the `constants.el' package,
1326 it will also be used to resolve constants, including natural constants
1327 like `$h' for Planck's constant, and units like `$km' for
1328 kilometers(1). Column names and parameters can be specified in special
1329 table lines. These are described below, see *Note Advanced features::.
1330 All names must start with a letter, and further consist of letters and
1333 ---------- Footnotes ----------
1335 (1) `Constant.el' can supply the values of constants in two
1336 different unit systems, `SI' and `cgs'. Which one is used depends on
1337 the value of the variable `constants-unit-system'. You can use the
1338 `#+STARTUP' options `constSI' and `constcgs' to set this value for the
1342 File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
1344 3.4.2 Formula syntax for Calc
1345 -----------------------------
1347 A formula can be any algebraic expression understood by the Emacs
1348 `Calc' package. Note that `calc' has the slightly non-standard
1349 convention that `/' has lower precedence than `*', so that `a/b*c' is
1350 interpreted as `a/(b*c)'. Before evaluation by `calc-eval' (*note
1351 calc-eval: (calc)Calling Calc from Your Programs.), variable
1352 substitution takes place according to the rules described above. The
1353 range vectors can be directly fed into the calc vector functions like
1356 A formula can contain an optional mode string after a semicolon.
1357 This string consists of flags to influence Calc and other modes during
1358 execution. By default, Org-mode uses the standard calc modes (precision
1359 12, angular units degrees, fraction and symbolic modes off. The display
1360 format, however, has been changed to `(float 5)' to keep tables
1361 compact. The default settings can be configured using the variable
1362 `org-calc-default-modes'.
1364 p20 switch the internal precision to 20 digits
1365 n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
1366 D R angle modes: degrees, radians
1367 F S fraction and symbolic modes
1368 N interpret all fields as numbers, use 0 for non-numbers
1369 T force text interpretation
1370 E keep empty fields in ranges
1372 In addition, you may provide a `printf' format specifier to reformat
1373 the final result. A few examples:
1375 $1+$2 Sum of first and second field
1376 $1+$2;%.2f Same, format result to two decimals
1377 exp($2)+exp($1) Math functions can be used
1378 $0;%.1f Reformat current cell to 1 decimal
1379 ($3-32)*5/9 Degrees F -> C conversion
1380 $c/$1/$cm Hz -> cm conversion, using `constants.el'
1381 tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
1382 sin($1);Dp3%.1e Same, but use printf specifier for display
1383 vmean($2..$7) Compute column range mean, using vector function
1384 vmean($2..$7);EN Same, but treat empty fields as 0
1385 taylor($3,x=7,2) taylor series of $3, at x=7, second degree
1387 Calc also contains a complete set of logical operations. For example
1389 if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
1392 File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
1394 3.4.3 Emacs Lisp forms as formulas
1395 ----------------------------------
1397 It is also possible to write a formula in Emacs Lisp; this can be useful
1398 for string manipulation and control structures, if the Calc's
1399 functionality is not enough. If a formula starts with a single quote
1400 followed by an opening parenthesis, then it is evaluated as a lisp form.
1401 The evaluation should return either a string or a number. Just as with
1402 `calc' formulas, you can specify modes and a printf format after a
1403 semicolon. A reference will be replaced with a string (in double
1404 quotes) containing the field. If you provide the `N' mode switch, all
1405 referenced elements will be numbers. Ranges are inserted as
1406 space-separated fields, so you can embed them in list or vector syntax.
1407 A few examples, note how the `N' mode is used when we do computations
1410 Swap the first two characters of the content of column 1
1411 '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
1412 Add columns 1 and 2, equivalent to the Calc's `$1+$2'
1414 Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
1415 '(apply '+ '($1..$4));N
1418 File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
1420 3.4.4 Field formulas
1421 --------------------
1423 To assign a formula to a particular field, type it directly into the
1424 field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
1425 or <RET> or `C-c C-c' with the cursor still in the field, the formula
1426 will be stored as the formula for this field, evaluated, and the
1427 current field replaced with the result.
1429 Formulas are stored in a special line starting with `#+TBLFM:'
1430 directly below the table. If you typed the equation in the 4th field of
1431 the 3rd data line in the table, the formula will look like
1432 `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
1433 the appropriate commands, absolute references (but not relative ones)
1434 in stored formulas are modified in order to still reference the same
1435 field. Of cause this is not true if you edit the table structure with
1436 normal editing commands - then you must fix the equations yourself.
1438 Instead of typing an equation into the field, you may also use the
1442 Install a new formula for the current field. The command prompts
1443 for a formula, with default taken from the `#+TBLFM:' line, applies
1444 it to the current field and stores it.
1447 File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
1449 3.4.5 Column formulas
1450 ---------------------
1452 Often in a table, the same formula should be used for all fields in a
1453 particular column. Instead of having to copy the formula to all fields
1454 in that column, org-mode allows to assign a single formula to an entire
1455 column. If the table contains horizontal separator hlines, everything
1456 before the first such line is considered part of the table _header_ and
1457 will not be modified by column formulas.
1459 To assign a formula to a column, type it directly into any field in
1460 the column, preceded by an equal sign, like `=$1+$2'. When you press
1461 <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
1462 formula will be stored as the formula for the current column, evaluated
1463 and the current field replaced with the result. If the field contains
1464 only `=', the previously stored formula for this column is used. For
1465 each column, Org-mode will only remember the most recently used
1466 formula. In the `TBLFM:' line, column formulas will look like
1469 Instead of typing an equation into the field, you may also use the
1473 Install a new formula for the current column and replace current
1474 field with the result of the formula. The command prompts for a
1475 formula, with default taken from the `#+TBLFM' line, applies it to
1476 the current field and stores it. With a numerical prefix (e.g.
1477 `C-5 C-c =') will apply it to that many consecutive fields in the
1481 File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
1483 3.4.6 Editing and Debugging formulas
1484 ------------------------------------
1486 You can edit individual formulas in the minibuffer or directly in the
1487 field. Org-mode can also prepare a special buffer with all active
1488 formulas of a table. When offering a formula for editing, Org-mode
1489 converts references to the standard format (like `B3' or `D&') if
1490 possible. If you prefer to only work with the internal format (like
1491 `@3$2' or `$4'), configure the variable
1492 `org-table-use-standard-references'.
1496 Edit the formula associated with the current column/field in the
1497 minibuffer. See *Note Column formulas:: and *Note Field
1501 Re-insert the active formula (either a field formula, or a column
1502 formula) into the current field, so that you can edit it directly
1503 in the field. The advantage over editing in the minibuffer is
1504 that you can use the command `C-c ?'.
1507 While editing a formula in a table field, highlight the field(s)
1508 referenced by the reference at the cursor position in the formula.
1511 Toggle the display of row and column numbers for a table, using
1512 overlays. These are updated each time the table is aligned, you
1513 can force it with `C-c C-c'.
1516 Toggle the formula debugger on and off. See below.
1519 Edit all formulas for the current table in a special buffer, where
1520 the formulas will be displayed one per line. If the current field
1521 has an active formula, the cursor in the formula editor will mark
1522 it. While inside the special buffer, Org-mode will automatically
1523 highlight any field or range reference at the cursor position.
1524 You may edit, remove and add formulas, and use the following
1528 Exit the formula editor and store the modified formulas.
1529 With `C-u' prefix, also apply the new formulas to the entire
1533 Exit the formula editor without installing changes.
1536 Toggle all references in the formula editor between standard
1537 (like `B3') and internal (like `@3$2').
1540 Pretty-print or indent lisp formula at point. When in a line
1541 containing a lisp formula, format the formula according to
1542 Emacs Lisp rules. Another <TAB> collapses the formula back
1543 again. In the open formula, <TAB> re-indents just like in
1547 Complete Lisp symbols, just like in Emacs-lisp-mode.
1549 `S-<up>/<down>/<left>/<right>'
1550 Shift the reference at point. For example, if the reference
1551 is `B3' and you press `S-<right>', it will become `C3'. This
1552 also works for relative references, and for hline references.
1555 Move the test line for column formulas in the Org-mode buffer
1559 Scroll the window displaying the table.
1562 Turn the coordinate grid in the table on and off.
1564 Making a table field blank does not remove the formula associated
1565 with the field, because that is stored in a different line (the `TBLFM'
1566 line) - during the next recalculation the field will be filled again.
1567 To remove a formula from a field, you have to give an empty reply when
1568 prompted for the formula, or to edit the `#+TBLFM' line.
1570 You may edit the `#+TBLFM' directly and re-apply the changed
1571 equations with `C-c C-c' in that line, or with the normal recalculation
1572 commands in the table.
1577 When the evaluation of a formula leads to an error, the field content
1578 becomes the string `#ERROR'. If you would like see what is going on
1579 during variable substitution and calculation in order to find a bug,
1580 turn on formula debugging in the `Tbl' menu and repeat the calculation,
1581 for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
1582 information will be displayed.
1585 File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
1587 3.4.7 Updating the Table
1588 ------------------------
1590 Recalculation of a table is normally not automatic, but needs to be
1591 triggered by a command. See *Note Advanced features:: for a way to make
1592 recalculation at least semi-automatically.
1594 In order to recalculate a line of a table or the entire table, use
1595 the following commands:
1598 Recalculate the current row by first applying the stored column
1599 formulas from left to right, and all field formulas in the current
1604 Recompute the entire table, line by line. Any lines before the
1605 first hline are left alone, assuming that these are part of the
1609 Iterate the table by recomputing it until no further changes occur.
1610 This may be necessary if some computed fields use the value of
1611 other fields that are computed later in the calculation sequence.
1614 File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
1616 3.4.8 Advanced features
1617 -----------------------
1619 If you want the recalculation of fields to happen automatically, or if
1620 you want to be able to assign names to fields and columns, you need to
1621 reserve the first column of the table for special marking characters.
1623 Rotate the calculation mark in first column through the states `',
1624 `#', `*', `!', `$'. The meaning of these characters is discussed
1625 below. When there is an active region, change all marks in the
1628 Here is an example of a table that collects exam results of students
1629 and makes use of these features:
1631 |---+---------+--------+--------+--------+-------+------|
1632 | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
1633 |---+---------+--------+--------+--------+-------+------|
1634 | ! | | P1 | P2 | P3 | Tot | |
1635 | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
1636 | ^ | | m1 | m2 | m3 | mt | |
1637 |---+---------+--------+--------+--------+-------+------|
1638 | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
1639 | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
1640 | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
1641 |---+---------+--------+--------+--------+-------+------|
1642 | | Average | | | | 29.7 | |
1643 | ^ | | | | | at | |
1644 | $ | max=50 | | | | | |
1645 |---+---------+--------+--------+--------+-------+------|
1646 #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
1648 Important: Please note that for these special tables, recalculating the
1649 table with `C-u C-c *' will only affect rows that are marked `#' or
1650 `*', and fields that have a formula assigned to the field itself. The
1651 column formulas are not applied in rows with empty first field.
1653 The marking characters have the following meaning:
1655 The fields in this line define names for the columns, so that you
1656 may refer to a column as `$Tot' instead of `$6'.
1659 This row defines names for the fields _above_ the row. With such
1660 a definition, any formula in the table may use `$m1' to refer to
1661 the value `10'. Also, if you assign a formula to a names field, it
1662 will be stored as `$name=...'.
1665 Similar to `^', but defines names for the fields in the row
1669 Fields in this row can define _parameters_ for formulas. For
1670 example, if a field in a `$' row contains `max=50', then formulas
1671 in this table can refer to the value 50 using `$max'. Parameters
1672 work exactly like constants, only that they can be defined on a
1676 Fields in this row are automatically recalculated when pressing
1677 <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
1678 selected for a global recalculation with `C-u C-c *'. Unmarked
1679 lines will be left alone by this command.
1682 Selects this line for global recalculation with `C-u C-c *', but
1683 not for automatic recalculation. Use this when automatic
1684 recalculation slows down editing too much.
1687 Unmarked lines are exempt from recalculation with `C-u C-c *'.
1688 All lines that should be recalculated should be marked with `#' or
1692 Do not export this line. Useful for lines that contain the
1693 narrowing `<N>' markers.
1695 Finally, just to whet your appetite on what can be done with the
1696 fantastic `calc' package, here is a table that computes the Taylor
1697 series of degree `n' at location `x' for a couple of functions
1698 (homework: try that with Excel :-)
1700 |---+-------------+---+-----+--------------------------------------|
1701 | | Func | n | x | Result |
1702 |---+-------------+---+-----+--------------------------------------|
1703 | # | exp(x) | 1 | x | 1 + x |
1704 | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
1705 | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
1706 | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
1707 | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
1708 | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
1709 |---+-------------+---+-----+--------------------------------------|
1710 #+TBLFM: $5=taylor($2,$4,$3);n3
1713 File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
1718 Just like HTML, Org-mode provides links inside a file, and external
1719 links to other files, Usenet articles, emails, and much more.
1723 * Link format:: How links in Org-mode are formatted
1724 * Internal links:: Links to other places in the current file
1725 * External links:: URL-like links to the world
1726 * Handling links:: Creating, inserting and following
1727 * Link abbreviations:: Shortcuts for writing complex links
1728 * Search options:: Linking to a specific location
1729 * Custom searches:: When the default search is not enough
1730 * Remember:: Org-trees store quick notes
1733 File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
1738 Org-mode will recognize plain URL-like links and activate them as
1739 clickable links. The general link format, however, looks like this:
1741 [[link][description]] or alternatively [[link]]
1743 Once a link in the buffer is complete (all brackets present),
1744 Org-mode will change the display so that `description' is displayed
1745 instead of `[[link][description]]' and `link' is displayed instead of
1746 `[[link]]'. Links will be highlighted in the face `org-link', which by
1747 default is an underlined face. You can directly edit the visible part
1748 of a link. Note that this can be either the `link' part (if there is
1749 no description) or the `description' part. To edit also the invisible
1750 `link' part, use `C-c C-l' with the cursor on the link.
1752 If you place the cursor at the beginning or just behind the end of
1753 the displayed text and press <BACKSPACE>, you will remove the
1754 (invisible) bracket at that location. This makes the link incomplete
1755 and the internals are again displayed as plain text. Inserting the
1756 missing bracket hides the link internals again. To show the internal
1757 structure of all links, use the menu entry `Org->Hyperlinks->Literal
1761 File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
1766 If the link does not look like a URL, it is considered to be internal in
1767 the current file. Links such as `[[My Target]]' or `[[My Target][Find
1768 my target]]' lead to a text search in the current file. The link can
1769 be followed with `C-c C-o' when the cursor is on the link, or with a
1770 mouse click (*note Handling links::). The preferred match for such a
1771 link is a dedicated target: the same string in double angular brackets.
1772 Targets may be located anywhere; sometimes it is convenient to put
1773 them into a comment line. For example
1777 In HTML export (*note HTML export::), such targets will become named
1778 anchors for direct access through `http' links(1).
1780 If no dedicated target exists, Org-mode will search for the words in
1781 the link. In the above example the search would be for `my target'.
1782 Links starting with a star like `*My Target' restrict the search to
1783 headlines. When searching, Org-mode will first try an exact match, but
1784 then move on to more and more lenient searches. For example, the link
1785 `[[*My Targets]]' will find any of the following:
1788 ** TODO my targets are bright
1789 ** my 20 targets are
1791 To insert a link targeting a headline, in-buffer completion can be
1792 used. Just type a star followed by a few optional letters into the
1793 buffer and press `M-<TAB>'. All headlines in the current buffer will be
1794 offered as completions. *Note Handling links::, for more commands
1797 Following a link pushes a mark onto Org-mode's own mark ring. You
1798 can return to the previous position with `C-c &'. Using this command
1799 several times in direct succession goes back to positions recorded
1804 * Radio targets:: Make targets trigger links in plain text.
1806 ---------- Footnotes ----------
1808 (1) Note that text before the first headline will never be exported,
1809 so the first such target must be after the first headline.
1812 File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
1817 You can configure Org-mode to link any occurrences of certain target
1818 names in normal text. So without explicitly creating a link, the text
1819 connects to the target radioing its position. Radio targets are
1820 enclosed by triple angular brackets. For example, a target `<<<My
1821 Target>>>' causes each occurrence of `my target' in normal text to
1822 become activated as a link. The Org-mode file is scanned automatically
1823 for radio targets only when the file is first loaded into Emacs. To
1824 update the target list during editing, press `C-c C-c' with the cursor
1828 File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
1833 Org-mode supports links to files, websites, Usenet and email messages,
1834 and BBDB database entries. External links are URL-like locators. They
1835 start with a short identifying string followed by a colon. There can be
1836 no space after the colon. The following list shows examples for each
1839 http://www.astro.uva.nl/~dominik on the web
1840 file:/home/dominik/images/jupiter.jpg file, absolute path
1841 file:papers/last.pdf file, relative path
1842 news:comp.emacs Usenet link
1843 mailto:adent@galaxy.net Mail link
1844 vm:folder VM folder link
1845 vm:folder#id VM message link
1846 vm://myself@some.where.org/folder#id VM on remote machine
1847 wl:folder WANDERLUST folder link
1848 wl:folder#id WANDERLUST message link
1849 mhe:folder MH-E folder link
1850 mhe:folder#id MH-E message link
1851 rmail:folder RMAIL folder link
1852 rmail:folder#id RMAIL message link
1853 gnus:group GNUS group link
1854 gnus:group#id GNUS article link
1855 bbdb:Richard Stallman BBDB link
1856 shell:ls *.org A shell command
1857 elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
1859 A link should be enclosed in double brackets and may contain a
1860 descriptive text to be displayed instead of the url (*note Link
1861 format::), for example:
1863 [[http://www.gnu.org/software/emacs/][GNU Emacs]]
1865 If the description is a file name or URL that points to an image, HTML
1866 export (*note HTML export::) will inline the image as a clickable
1867 button. If there is no description at all and the link points to an
1868 image, that image will be inlined into the exported HTML file.
1870 Org-mode also finds external links in the normal text and activates
1871 them as links. If spaces must be part of the link (for example in
1872 `bbdb:Richard Stallman'), or if you need to remove ambiguities about
1873 the end of the link, enclose them in angular brackets.
1876 File: org, Node: Handling links, Next: Link abbreviations, Prev: External links, Up: Hyperlinks
1881 Org-mode provides methods to create a link in the correct syntax, to
1882 insert it into an org-mode file, and to follow the link.
1885 Store a link to the current location. This is a _global_ command
1886 which can be used in any buffer to create a link. The link will be
1887 stored for later insertion into an Org-mode buffer (see below).
1888 For Org-mode files, if there is a `<<target>>' at the cursor, the
1889 link points to the target. Otherwise it points to the current
1890 headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
1891 the link will indicate the current article/entry. For W3 and W3M
1892 buffers, the link goes to the current URL. For any other files,
1893 the link will point to the file, with a search string (*note
1894 Search options::) pointing to the contents of the current line.
1895 If there is an active region, the selected words will form the
1896 basis of the search string. If the automatically created link is
1897 not working correctly or accurately enough, you can write custom
1898 functions to select the search string and to do the search for
1899 particular file types - see *Note Custom searches::. The key
1900 binding `C-c l' is only a suggestion - see *Note Installation::.
1903 Insert a link. This prompts for a link to be inserted into the
1904 buffer. You can just type a link, using text for an internal
1905 link, or one of the link type prefixes mentioned in the examples
1906 above. All links stored during the current session are part of
1907 the history for this prompt, so you can access them with <up> and
1908 <down>, or with completion(1). The link will be inserted into the
1909 buffer, along with a descriptive text. If some text was selected
1910 when this command is called, the selected text becomes the default
1912 Note that you don't have to use this command to insert a link.
1913 Links in Org-mode are plain text, and you can type or paste them
1914 straight into the buffer. By using this command, the links are
1915 automatically enclosed in double brackets, and you will be asked
1916 for the optional descriptive text.
1919 When `C-c C-l' is called with a `C-u' prefix argument, a link to a
1920 file will be inserted and you may use file name completion to
1921 select the name of the file. The path to the file is inserted
1922 relative to the directory of the current org file, if the linked
1923 file is in the current directory or in a subdirectory of it, or if
1924 the path is written relative to the current directory using `../'.
1925 Otherwise an absolute path is used, if possible with `~/' for
1926 your home directory. You can force an absolute path with two
1929 `C-c C-l (with cursor on existing link)'
1930 When the cursor is on an existing link, `C-c C-l' allows you to
1931 edit the link and description parts of the link.
1934 Open link at point. This will launch a web browser for URLs (using
1935 `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
1936 the corresponding links, and execute the command in a shell link.
1937 When the cursor is on an internal link, this commands runs the
1938 corresponding search. When the cursor is on a TAG list in a
1939 headline, it creates the corresponding TAGS view. If the cursor
1940 is on a time stamp, it compiles the agenda for that date.
1941 Furthermore, it will visit text and remote files in `file:' links
1942 with Emacs and select a suitable application for local non-text
1943 files. Classification of files is based on file extension only.
1944 See option `org-file-apps'. If you want to override the default
1945 application and visit the file with Emacs, use a `C-u' prefix.
1949 On links, `mouse-2' will open the link just as `C-c C-o' would.
1950 Under Emacs 22, also `mouse-1' will follow a link.
1953 Like `mouse-2', but force file links to be opened with Emacs, and
1954 internal links to be displayed in another window(2).
1957 Push the current position onto the mark ring, to be able to return
1958 easily. Commands following an internal link do this automatically.
1961 Jump back to a recorded position. A position is recorded by the
1962 commands following internal links, and by `C-c %'. Using this
1963 command several times in direct succession moves through a ring of
1964 previously recorded positions.
1968 Move forward/backward to the next link in the buffer. At the
1969 limit of the buffer, the search fails once, and then wraps around.
1970 The key bindings for this are really too long, you might want to
1971 bind this also to `C-n' and `C-p'
1972 (add-hook 'org-load-hook
1974 (define-key 'org-mode-map "\C-n" 'org-next-link)
1975 (define-key 'org-mode-map "\C-p" 'org-previous-link)))
1977 ---------- Footnotes ----------
1979 (1) After insertion of a stored link, the link will be removed from
1980 the list of stored links. To keep it in the list later use, use a
1981 triple `C-u' prefix to `C-c C-l', or configure the option
1982 `org-keep-stored-link-after-insertion'.
1984 (2) See the variable `org-display-internal-link-with-indirect-buffer'
1987 File: org, Node: Link abbreviations, Next: Search options, Prev: Handling links, Up: Hyperlinks
1989 4.5 Link abbreviations
1990 ======================
1992 Long URLs can be cumbersome to type, and often many similar links are
1993 needed in a document. For this you can use link abbreviations. An
1994 abbreviated link looks like this
1996 [[linkword:tag][description]]
1998 where the tag is optional. Such abbreviations are resolved according to
1999 the information in the variable `org-link-abbrev-alist' that relates
2000 the linkwords to replacement text. Here is an example:
2002 (setq org-link-abbrev-alist
2003 '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
2004 ("google" . "http://www.google.com/search?q=")
2005 ("ads" . "http://adsabs.harvard.edu/cgi-bin/
2006 nph-abs_connect?author=%s&db_key=AST")))
2008 If the replacement text contains the string `%s', it will be
2009 replaced with the tag. Otherwise the tag will be appended to the string
2010 in order to create the link. You may also specify a function that will
2011 be called with the tag as the only argument to create the link.
2013 With the above setting, you could link to a specific bug with
2014 `[[bugzilla:129]]', search the web for `OrgMode' with
2015 `[[google:OrgMode]]' and find out what the Org-mode author is doing
2016 besides Emacs hacking with `[[ads:Dominik,C]]'.
2018 If you need special abbreviations just for a single Org-mode buffer,
2019 you can define them in the file with
2021 #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
2022 #+LINK: google http://www.google.com/search?q=%s
2024 In-buffer completion *note Completion:: can be used after `[' to
2025 complete link abbreviations.
2028 File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
2030 4.6 Search options in file links
2031 ================================
2033 File links can contain additional information to make Emacs jump to a
2034 particular location in the file when following a link. This can be a
2035 line number or a search option after a double(1) colon. For example,
2036 when the command `C-c l' creates a link (*note Handling links::) to a
2037 file, it encodes the words in the current line as a search string that
2038 can be used to find this line back later when following the link with
2041 Here is the syntax of the different ways to attach a search to a file
2042 link, together with an explanation:
2044 [[file:~/code/main.c::255]]
2045 [[file:~/xx.org::My Target]]
2046 [[file:~/xx.org::*My Target]]
2047 [[file:~/xx.org::/regexp/]]
2053 Search for a link target `<<My Target>>', or do a text search for
2054 `my target', similar to the search in internal links, see *Note
2055 Internal links::. In HTML export (*note HTML export::), such a
2056 file link will become an HTML reference to the corresponding named
2057 anchor in the linked file.
2060 In an Org-mode file, restrict search to headlines.
2063 Do a regular expression search for `regexp'. This uses the Emacs
2064 command `occur' to list all matches in a separate window. If the
2065 target file is in Org-mode, `org-occur' is used to create a sparse
2066 tree with the matches.
2068 As a degenerate case, a file link with an empty file name can be used
2069 to search the current file. For example, `[[file:::find me]]' does a
2070 search for `find me' in the current file, just as `[[find me]]' would.
2072 ---------- Footnotes ----------
2074 (1) For backward compatibility, line numbers can also follow a
2078 File: org, Node: Custom searches, Next: Remember, Prev: Search options, Up: Hyperlinks
2083 The default mechanism for creating search strings and for doing the
2084 actual search related to a file link may not work correctly in all
2085 cases. For example, BibTeX database files have many entries like
2086 `year="1993"' which would not result in good search strings, because
2087 the only unique identification for a BibTeX entry is the citation key.
2089 If you come across such a problem, you can write custom functions to
2090 set the right search string for a particular file type, and to do the
2091 search for the string in the file. Using `add-hook', these functions
2092 need to be added to the hook variables
2093 `org-create-file-search-functions' and
2094 `org-execute-file-search-functions'. See the docstring for these
2095 variables for more information. Org-mode actually uses this mechanism
2096 for BibTeX database files, and you can use the corresponding code as an
2097 implementation example. Search for `BibTeX links' in the source file.
2100 File: org, Node: Remember, Prev: Custom searches, Up: Hyperlinks
2105 Another way to create org entries with links to other files is through
2106 the remember package by John Wiegley. Remember lets you store quick
2107 notes with little interruption of your work flow. See
2108 `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
2109 information. The notes produced by Remember can be stored in different
2110 ways, and Org-mode files are a good target. Org-mode significantly
2111 expands the possibilities of remember: You may define templates for
2112 different note types, and to associate target files and headlines with
2113 specific templates. It also allows you to select the location where a
2114 note should be stored interactively, on the fly.
2118 * Setting up remember:: Some code for .emacs to get things going
2119 * Remember templates:: Define the outline of different note types
2120 * Storing notes:: Directly get the note to where it belongs
2123 File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
2125 4.8.1 Setting up remember
2126 -------------------------
2128 The following customization will tell remember to use org files as
2129 target, and to create annotations compatible with Org-mode links.
2131 (setq org-directory "~/path/to/my/orgfiles/")
2132 (setq org-default-notes-file "~/.notes")
2133 (setq remember-annotation-functions '(org-remember-annotation))
2134 (setq remember-handler-functions '(org-remember-handler))
2135 (add-hook 'remember-mode-hook 'org-remember-apply-template)
2138 File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
2140 4.8.2 Remember templates
2141 ------------------------
2143 In combination with Org-mode, you can use templates to generate
2144 different types of remember notes. For example, if you would like to
2145 use one template to create general TODO entries, another one for
2146 journal entries, and a third one for collecting random ideas, you could
2149 (setq org-remember-templates
2150 '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
2151 (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
2152 (?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
2154 In these entries, the character specifies how to select the template.
2155 The first string specifies the template. Two more (optional) strings
2156 give the file in which, and the headline under which the new note
2157 should be stored. The file defaults to `org-default-notes-file', the
2158 heading to `org-remember-default-headline'. Both defaults help to get
2159 to the storing location quickly, but you can change the location
2160 interactively while storing the note.
2162 When you call `M-x remember' (or `M-x org-remember') to remember
2163 something, org will prompt for a key to select the template (if you have
2164 more than one template) and then prepare the buffer like
2166 [[file:link to where you called remember]]
2170 * [2006-03-21 Tue 15:37]
2172 [[file:link to where you called remember]]
2174 During expansion of the template, special `%'-escapes allow dynamic
2175 insertion of content:
2176 %^{prompt} prompt the user for a string and replace this sequence with it.
2177 %t time stamp, date only
2178 %T time stamp with date and time
2179 %u, %U like the above, but inactive time stamps
2180 %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
2181 You may define a prompt like `%^{Birthday}t'
2182 %n user name (taken from `user-full-name')
2183 %a annotation, normally the link created with `org-store-link'
2184 %i initial content, the region when remember is called with C-u.
2185 The entire text will be indented like `%i' itself.
2186 %:keyword specific information for certain link types, see below
2188 For specific link types, the following keywords will be defined:
2190 Link type | Available keywords
2191 -------------------+----------------------------------------------
2192 bbdb | %:name %:company
2193 vm, wl, mh, rmail | %:type %:subject %:message-id
2194 | %:from %:fromname %:fromaddress
2195 | %:to %:toname %:toaddress
2196 | %:fromto (either "to NAME" or "from NAME")(1)
2197 gnus | %:group, for messages also all email fields
2199 info | %:file %:node
2202 If you would like to have the cursor in a specific position after the
2203 template has been expanded:
2205 %? After completing the template, position cursor here.
2207 If you change you mind about which template to use, call `org-remember'
2208 in the remember buffer. You may then select a new template that will
2209 be filled with the previous context information.
2211 ---------- Footnotes ----------
2213 (1) This will always be the other, not the user. See the variable
2214 `org-from-is-user-regexp'.
2217 File: org, Node: Storing notes, Prev: Remember templates, Up: Remember
2222 When you are finished preparing a note with remember, you have to press
2223 `C-c C-c' to file the note away. The handler first prompts for a
2224 target file - if you press <RET>, the value specified for the template
2225 is used. Then the command offers the headings tree of the selected
2226 file, with the cursor position at the default headline (if you had
2227 specified one in the template). You can either immediately press <RET>
2228 to get the note placed there. Or you can use vertical cursor motion
2229 (<up> and <down>) and visibility cycling (<TAB>) to find a better
2230 place. Pressing <RET> or <left> or <right> then leads to the following
2233 Cursor Key Note gets inserted
2235 buffer-start <RET> as level 2 heading at end of file
2236 on headline <RET> as sublevel of the heading at cursor
2237 <left> as same level, before current heading
2238 <right> as same level, after current heading
2239 not on <RET> at cursor position, level taken from context.
2240 headline Or use prefix arg to specify level
2243 So a fast way to store the note to its default location is to press
2244 `C-c C-c <RET> <RET>'. Even shorter would be `C-u C-c C-c', which does
2245 the same without even asking for a file or showing the tree.
2247 Before inserting the text into a tree, the function ensures that the
2248 text has a headline, i.e. a first line that starts with a `*'. If not,
2249 a headline is constructed from the current date and some additional
2250 data. If the variable `org-adapt-indentation' is non-nil, the entire
2251 text is also indented so that it starts in the same column as the
2252 headline (after the asterisks).
2255 File: org, Node: TODO items, Next: Timestamps, Prev: Hyperlinks, Up: Top
2260 Org-mode does not maintain TODO lists as a separate document. TODO
2261 items are an integral part of the notes file, because TODO items
2262 usually come up while taking notes! With Org-mode, you simply mark any
2263 entry in a tree as being a TODO item. In this way, the information is
2264 not duplicated, and the entire context from which the item emerged is
2265 always present when you check.
2267 Of course, this technique causes TODO items to be scattered
2268 throughout your file. Org-mode provides methods to give you an
2269 overview over all things you have to do.
2273 * TODO basics:: Marking and displaying TODO entries
2274 * TODO extensions:: Workflow and assignments
2275 * Priorities:: Some things are more important than others
2276 * Breaking down tasks:: Splitting a task into manageable pieces
2277 * Checkboxes:: Tick-off lists
2280 File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
2282 5.1 Basic TODO functionality
2283 ============================
2285 Any headline can become a TODO item by starting it with the word TODO,
2288 *** TODO Write letter to Sam Fortune
2290 The most important commands to work with TODO entries are:
2293 Rotate the TODO state of the current item between
2295 ,-> (unmarked) -> TODO -> DONE --.
2296 '--------------------------------'
2298 The same rotation can also be done "remotely" from the timeline and
2299 agenda buffers with the `t' command key (*note Agenda commands::).
2303 Select the following/preceding TODO state, similar to cycling.
2304 Mostly useful if more than two TODO states are possible (*note
2308 View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
2309 the entire buffer, but shows all TODO items and the headings
2310 hierarchy above them. With prefix arg, show also the DONE
2311 entries. With numerical prefix N, show the tree for the Nth
2312 keyword in the variable `org-todo-keywords'.
2315 Show the global TODO list. This collects the TODO items from all
2316 agenda files (*note Agenda views::) into a single buffer. The
2317 buffer is in `agenda-mode', so there are commands to examine and
2318 manipulate the TODO entries directly from that buffer (*note
2319 Agenda commands::). *Note Global TODO list::, for more
2323 File: org, Node: TODO extensions, Next: Priorities, Prev: TODO basics, Up: TODO items
2325 5.2 Extended use of TODO keywords
2326 =================================
2328 The default implementation of TODO entries is just two states: TODO and
2329 DONE. You can, however, use the TODO feature for more complicated
2330 things by configuring the variables `org-todo-keywords' and
2331 `org-todo-interpretation'. Using special setup, you can even use TODO
2332 keywords in different ways in different org files.
2334 Note that tags are another way to classify headlines in general and
2335 TODO items in particular (*note Tags::).
2339 * Workflow states:: From TODO to DONE in steps
2340 * TODO types:: I do this, Fred the rest
2341 * Per file keywords:: Different files, different requirements
2342 * Multiple sets in one file:: Mixing it all, and still finding your way
2345 File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
2347 5.2.1 TODO keywords as workflow states
2348 --------------------------------------
2350 You can use TODO keywords to indicate different states in the process
2351 of working on an item, for example:
2353 (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
2354 org-todo-interpretation 'sequence)
2356 Changing these variables only becomes effective in a new Emacs
2357 session. With this setup, the command `C-c C-t' will cycle an entry
2358 from TODO to FEEDBACK, then to VERIFY, and finally to DONE. You may
2359 also use a prefix argument to quickly select a specific state. For
2360 example `C-3 C-c C-t' will change the state immediately to VERIFY. If
2361 you define many keywords, you can use in-buffer completion (see *Note
2362 Completion::) to insert these words into the buffer. Changing a todo
2363 state can be logged with a timestamp, see *Note Tracking TODO state
2364 changes:: for more information.
2367 File: org, Node: TODO types, Next: Per file keywords, Prev: Workflow states, Up: TODO extensions
2369 5.2.2 TODO keywords as types
2370 ----------------------------
2372 The second possibility is to use TODO keywords to indicate different
2373 types of action items. For example, you might want to indicate that
2374 items are for "work" or "home". If you are into David Allen's _Getting
2375 Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
2376 `MAYBE'. Or, when you work with several people on a single project,
2377 you might want to assign action items directly to persons, by using
2378 their names as TODO keywords. This would be set up like this:
2380 (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
2381 org-todo-interpretation 'type)
2383 In this case, different keywords do not indicate a sequence, but
2384 rather different types. So it is normally not useful to change from
2385 one type to another. Therefore, in this case the behavior of the
2386 command `C-c C-t' is changed slightly(1). When used several times in
2387 succession, it will still cycle through all names. But when you return
2388 to the item after some time and execute `C-c C-t' again, it will switch
2389 from each name directly to DONE. Use prefix arguments or completion to
2390 quickly select a specific name. You can also review the items of a
2391 specific TODO type in a sparse tree by using a numeric prefix to `C-c
2392 C-v'. For example, to see all things Lucy has to do, you would use
2393 `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
2394 single buffer, you would use the prefix arg as well when creating the
2395 global todo list: `C-3 C-c t'.
2397 ---------- Footnotes ----------
2399 (1) This is also true for the `t' command in the timeline and agenda
2403 File: org, Node: Per file keywords, Next: Multiple sets in one file, Prev: TODO types, Up: TODO extensions
2405 5.2.3 Setting up TODO keywords for individual files
2406 ---------------------------------------------------
2408 It can be very useful to use different aspects of the TODO mechanism in
2409 different files, which is not possible with the global settings
2410 described above. For file-local settings, you need to add special
2411 lines to the file which set the keywords and interpretation for that
2412 file only. For example, to set one of the two examples discussed
2413 above, you need one of the following lines, starting in column zero
2414 anywhere in the file:
2416 #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
2417 #+TYP_TODO: Fred Sara Lucy Mike DONE
2419 To make sure you are using the correct keyword, type `#+' into the
2420 buffer and then use `M-<TAB>' completion.
2422 Remember that the last keyword must always mean that the item is DONE
2423 (although you may use a different word). After changing one of these
2424 lines, use `C-c C-c' with the cursor still in the line to make the
2425 changes known to Org-mode(1).
2427 ---------- Footnotes ----------
2429 (1) Org-mode parses these lines only when Org-mode is activated
2430 after visiting a file. `C-c C-c' with the cursor in a line starting
2431 with `#+' is simply restarting Org-mode for the current buffer.
2434 File: org, Node: Multiple sets in one file, Prev: Per file keywords, Up: TODO extensions
2436 5.2.4 Multiple TODO keyword sets in one file
2437 --------------------------------------------
2439 Sometimes you may want to use different sets of TODO keywords in the
2440 same file. For example, you may want to have the basic `TODO'/`DONE',
2441 but also a workflow for bug fixing. Your setup would then look like
2444 #+SEQ_TODO: TODO DONE
2445 #+SEQ_TODO: REPORT BUG KNOWNCAUSE RESOLVED
2447 The keywords should all be different, this helps Org-mode to keep
2448 track of which subsequence should be used for a given entry. In this
2449 setup, `C-c C-t' only operates within a subsequence, so it switches from
2450 `DONE' to (nothing) to `TODO', and from `RESOLVED' to (nothing) to
2451 `REPORT'. Therefore you need a mechanism to initially select the
2452 correct sequence. Besides the obvious ways like typing a keyword or
2453 using completion, you may also apply the following commands:
2457 `S-<<left>>' and `S-<<right>>' and walk through all keywords from
2458 all sets, so for example `S-<<right>>' would switch from `DONE' to
2459 `REPORT' in the example above.
2463 These key jump from one TODO subset to the next. So `C-S-<right>'
2464 would jump from `TODO' to `REPORT' and from `KNOWNCAUSE' to `TODO'
2465 in the above example.
2468 File: org, Node: Priorities, Next: Breaking down tasks, Prev: TODO extensions, Up: TODO items
2473 If you use Org-mode extensively to organize your work, you may end up
2474 with a number of TODO entries so large that you'd like to prioritize
2475 them. This can be done by placing a _priority cookie_ into the
2478 *** TODO [#A] Write letter to Sam Fortune
2480 With its standard setup, Org-mode supports priorities `A', `B', and
2481 `C'. `A' is the highest priority. An entry without a cookie is
2482 treated as priority `B'. Priorities make a difference only in the
2483 agenda (*note Weekly/Daily agenda::).
2486 Set the priority of the current headline. The command prompts for
2487 a priority character `A', `B' or `C'. When you press <SPC>
2488 instead, the priority cookie is removed from the headline. The
2489 priorities can also be changed "remotely" from the timeline and
2490 agenda buffer with the `,' command (*note Agenda commands::).
2494 Increase/decrease priority of current headline. Note that these
2495 keys are also used to modify time stamps (*note Creating
2496 timestamps::). Furthermore, these keys are also used by CUA-mode
2497 (*note Conflicts::).
2500 File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
2502 5.4 Breaking tasks down into subtasks
2503 =====================================
2505 It is often advisable to break down large tasks into smaller, manageable
2506 subtasks. You can do this by creating an outline tree below a TODO
2507 item, with detailed subtasks on the tree(1). Another possibility is
2508 the use of checkboxes to identify (a hierarchy of) a large number of
2509 subtasks (*note Checkboxes::).
2511 ---------- Footnotes ----------
2513 (1) To keep subtasks out of the global TODO list, see the
2514 `org-agenda-todo-list-sublevels'.
2517 File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
2522 Every item in a plain list (*note Plain lists::) can be made a checkbox
2523 by starting it with the string `[ ]'. This feature is similar to TODO
2524 items (*note TODO items::), but more lightweight. Checkboxes are not
2525 included into the global TODO list, so they are often great to split a
2526 task into a number of simple steps. Or you can use them in a shopping
2527 list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
2528 `org-mouse.el'. Here is an example of a checkbox list.
2530 * TODO Organize party [3/6]
2536 - [ ] think about what music to play
2537 - [X] talk to the neighbors
2539 The `[3/6]' and `[1/3]' in the first and second line are cookies
2540 indicating how many checkboxes are present in this entry, and how many
2541 of them have been checked off. This can give you an idea on how many
2542 checkboxes remain, even without opening a folded entry. The cookies
2543 can be placed into a headline or into (the first line of) a plain list
2544 item. Each cookie covers all checkboxes structurally below that
2545 headline/item. You have to insert the cookie yourself by typing either
2546 `[/]' or `[%]'. In the first case you get an `n out of m' result, in
2547 the second case you get information about the percentage of checkboxes
2548 checked (in the above example, this would be `[50%]' and `[33%],
2551 The following commands work with checkboxes:
2554 Toggle checkbox at point.
2557 Toggle checkbox at point.
2558 - If there is an active region, toggle the first checkbox in
2559 the region and set all remaining boxes to the same status as
2560 the first. If you want to toggle all boxes in the region
2561 independently, use a prefix argument.
2563 - If the cursor is in a headline, toggle checkboxes in the
2564 region between this headline and the next (so _not_ the
2567 - If there is no active region, just toggle the checkbox at
2571 Insert a new item with a checkbox. This works only if the cursor
2572 is already in a plain list item (*note Plain lists::).
2575 Update the checkbox statistics in the current outline entry. When
2576 called with a `C-u' prefix, update the entire file. Checkbox
2577 statistic cookies are updated automatically if you toggle
2578 checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
2579 you delete boxes or add/change them by hand, use this command to
2580 get things back into synch. Or simply toggle any checkbox twice
2584 File: org, Node: Timestamps, Next: Tags, Prev: TODO items, Up: Top
2589 Items can be labeled with timestamps to make them useful for project
2594 * Time stamps:: Assigning a time to a tree entry
2595 * Creating timestamps:: Commands which insert timestamps
2596 * Custom time format:: If you cannot work with the ISO format
2597 * Repeating items:: Deadlines that come back again and again
2598 * Progress logging:: Documenting when what work was done.
2601 File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
2603 6.1 Time stamps, deadlines and scheduling
2604 =========================================
2606 A time stamp is a specification of a date (possibly with time) in a
2607 special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue
2608 09:39>'(1). A time stamp can appear anywhere in the headline or body
2609 of an org-tree entry. Its presence allows entries to be shown on
2610 specific dates in the agenda (*note Weekly/Daily agenda::). We
2614 A simple time stamp just assigns a date/time to an item. This is
2615 just like writing down an appointment in a paper agenda, or like
2616 writing down an event in a diary, when you want to take note of
2617 when something happened. In the timeline and agenda displays, the
2618 headline of an entry associated with a plain time stamp will be
2619 shown exactly on that date.
2621 * Meet Peter at the movies <2006-11-01 Wed 19:15>
2624 Just like a plain time stamp, but with square brackets instead of
2625 angular ones. These time stamps are inactive in the sense that
2626 they do _not_ trigger an entry to show up in the agenda.
2628 * Gillian comes late for the fifth time [2006-11-01 Wed]
2631 Two time stamps connected by `--' denote a time range. The
2632 headline will be shown on the first and last day of the range, and
2633 on any dates that are displayed and fall in the range. Here is an
2636 ** Meeting in Amsterdam
2637 <2004-08-23 Mon>--<2004-08-26 Thu>
2639 TIME STAMP WITH SCHEDULED KEYWORD
2640 If a time stamp is preceded by the word `SCHEDULED:', it means you
2641 are planning to start working on that task on the given date. So
2642 this is not about recording an event, but about planning your
2643 work. The headline will be listed under the given date(2). In
2644 addition, a reminder that the scheduled date has passed will be
2645 present in the compilation for _today_, until the entry is marked
2646 DONE. I.e., the task will automatically be forwarded until
2649 *** TODO Call Trillian for a date on New Years Eve.
2650 SCHEDULED: <2004-12-25 Sat>
2652 TIME STAMP WITH DEADLINE KEYWORD
2653 If a time stamp is preceded by the word `DEADLINE:', the task
2654 (most likely a TODO item) is supposed to be finished on that date,
2655 and it will be listed then. In addition, the compilation for
2656 _today_ will carry a warning about the approaching or missed
2657 deadline, starting `org-deadline-warning-days' before the due
2658 date, and continuing until the entry is marked DONE. An example:
2660 *** TODO write article about the Earth for the Guide
2661 The editor in charge is [[bbdb:Ford Prefect]]
2662 DEADLINE: <2004-02-29 Sun>
2664 TIME STAMP WITH CLOSED KEYWORD
2665 When `org-log-done' is non-nil, Org-mode will automatically insert
2666 a special time stamp each time a TODO entry is marked done (*note
2667 Progress logging::). This time stamp is enclosed in square
2668 brackets instead of angular brackets.
2670 TIME RANGE WITH CLOCK KEYWORD
2671 When using the clock to time the work that is being done on
2672 specific items, time ranges preceded by the CLOCK keyword are
2673 inserted automatically into the file. The time stamps are
2674 enclosed in square brackets instead of angular brackets. *Note
2675 Clocking work time::.
2677 ---------- Footnotes ----------
2679 (1) This is the standard ISO date/time format. If you cannot get
2680 used to these, see *Note Custom time format::
2682 (2) It will still be listed on that date after it has been marked
2683 DONE. If you don't like this, set the variable
2684 `org-agenda-skip-scheduled-if-done'.
2687 File: org, Node: Creating timestamps, Next: Custom time format, Prev: Time stamps, Up: Timestamps
2689 6.2 Creating timestamps
2690 =======================
2692 For Org-mode to recognize time stamps, they need to be in the specific
2693 format. All commands listed below produce time stamps in the correct
2697 Prompt for a date and insert a corresponding time stamp. When the
2698 cursor is at a previously used time stamp, it is updated to NOW.
2699 When this command is used twice in succession, a time range is
2703 Like `C-c .', but use the alternative format which contains date
2704 and time. The default time can be rounded to multiples of 5
2705 minutes, see the option `org-time-stamp-rounding-minutes'.
2708 Like `C-c .', but insert an inactive time stamp that will not cause
2712 Insert a time stamp corresponding to the cursor date in the
2716 Access the Emacs calendar for the current date. If there is a
2717 timestamp in the current line, goto the corresponding date instead.
2720 Access the agenda for the date given by the time stamp or -range at
2721 point (*note Weekly/Daily agenda::).
2724 Insert `DEADLINE' keyword along with a stamp. The insertion will
2725 happen in the line directly following the headline.
2728 Create a sparse tree with all deadlines that are either past-due,
2729 or which will become due within `org-deadline-warning-days'. With
2730 `C-u' prefix, show all deadlines in the file. With a numeric
2731 prefix, check that many days. For example, `C-1 C-c C-w' shows
2732 all deadlines due tomorrow.
2735 Insert `SCHEDULED' keyword along with a stamp. The insertion will
2736 happen in the line directly following the headline. Any CLOSED
2737 timestamp will be removed.
2741 Change date at cursor by one day. These key bindings conflict with
2742 CUA-mode (*note Conflicts::).
2746 Change the item under the cursor in a timestamp. The cursor can
2747 be on a year, month, day, hour or minute. Note that if the cursor
2748 is in a headline and not at a time stamp, these same keys modify
2749 the priority of an item. (*note Priorities::). The key bindings
2750 also conflict with CUA-mode (*note Conflicts::).
2753 Evaluate a time range by computing the difference between start and
2754 end. With prefix arg, insert result after the time range (in a
2755 table: into the following column).
2759 * The date/time prompt:: How org-mode helps you entering date and time
2762 File: org, Node: The date/time prompt, Prev: Creating timestamps, Up: Creating timestamps
2764 6.2.1 The date/time prompt
2765 --------------------------
2767 When Org-mode prompts for a date/time, the prompt suggests to enter an
2768 ISO date. But it will in fact accept any string containing some date
2769 and/or time information. You can, for example, use `C-y' to paste a
2770 (possibly multi-line) string copied from an email message. Org-mode
2771 will find whatever information is in there and will replace anything not
2772 specified with the current date and time. For example:
2774 3-2-5 --> 2003-02-05
2775 feb 15 --> currentyear-02-15
2776 sep 12 9 --> 2009-09-12
2777 12:45 --> today 12:45
2778 22 sept 0:34 --> currentyear-09-22 0:34
2779 12 --> currentyear-currentmonth-12
2780 Fri --> nearest Friday (today or later)
2781 +4 --> 4 days from now (if +N is the only thing given)
2783 The function understands English month and weekday abbreviations. If
2784 you want to use unabbreviated names and/or other languages, configure
2785 the variables `parse-time-months' and `parse-time-weekdays'.
2787 Parallel to the minibuffer prompt, a calendar is popped up(1). When
2788 you exit the date prompt, either by clicking on a date in the calendar,
2789 or by pressing <RET>, the date selected in the calendar will be
2790 combined with the information entered at the prompt. You can control
2791 the calendar fully from the minibuffer:
2794 Scroll calendar backwards by one month.
2797 Scroll calendar forwards by one month.
2800 Select date by clicking on it.
2821 Choose date in calendar (only if nothing was typed into
2824 ---------- Footnotes ----------
2826 (1) If you don't need/want the calendar, configure the variable
2827 `org-popup-calendar-for-date-prompt'.
2830 File: org, Node: Custom time format, Next: Repeating items, Prev: Creating timestamps, Up: Timestamps
2832 6.3 Custom time format
2833 ======================
2835 Org-mode uses the standard ISO notation for dates and times as it is
2836 defined in ISO 8601. If you cannot get used to this and require another
2837 representation of date and time to keep you happy, you can get it by
2838 customizing the variables `org-display-custom-times' and
2839 `org-time-stamp-custom-formats'.
2842 Toggle the display of custom formats for dates and times.
2844 Org-mode needs the default format for scanning, so the custom date/time
2845 format does not _replace_ the default format - instead it is put _over_
2846 the default format using text properties. This has the following
2848 * You cannot place the cursor onto a time stamp anymore, only before
2851 * The `S-<up>/<down>' keys can no longer be used to adjust each
2852 component of a time stamp. If the cursor is at the beginning of
2853 the stamp, `S-<up>/<down>' will change the stamp by one day, just
2854 like `S-<left>/<right>'. At the end of the stamp, the time will
2855 be changed by one minute.
2857 * When you delete a time stamp character-by-character, it will only
2858 disappear from the buffer after _all_ (invisible) characters
2859 belonging to the ISO timestamp have been removed.
2861 * If the custom time stamp format is longer than the default and you
2862 are using dates in tables, table alignment will be messed up. If
2863 the custom format is shorter, things do work as expected.
2866 File: org, Node: Repeating items, Next: Progress logging, Prev: Custom time format, Up: Timestamps
2871 Org-mode integrates with the Emacs calendar and diary to display cyclic
2872 appointments, anniversaries and other special entries in the agenda
2873 (*note Weekly/Daily agenda::). However, it can be useful to have
2874 certain deadlines and scheduling items to auto-repeat. The advantage of
2875 a deadline or scheduled item is that the they produce warnings ahead of
2876 time and automatically forward themselves in the agenda until they are
2877 done. The abstract difference is therefore between cyclic appointments
2878 and cyclic action items. For appointments you should use the diary,
2879 for actions you can uses an org-mode deadline or scheduling time stamp
2880 together with a REPEAT cookie. For example:
2882 * TODO Replace batteries in smoke detector REPEAT(+18m)
2883 SCHEDULED: <2007-01-01 Mon>
2885 * TODO Get dentist appointment REPEAT(+6m)
2886 SCHEDULED: <2006-12-19 Tue>
2888 * TODO Tax report to IRS REPEAT(+1y)
2889 DEADLINE: <2007-04-01 Sun>
2891 Each time you try to mark one of these entries DONE using `C-c C-t',
2892 they will automatically switch back to the state TODO, and the
2893 deadline/scheduling will be shifted accordingly. The time units
2894 recognized by org-mode are year (y), month (m), week (w), and day (d).
2895 Org-mode will also prompt you for a note and record the fact that you
2896 have closed this item in a note under the headline.
2898 One unusual property of these repeating items is that only one
2899 instance of each exist at any given time. So if you look back or ahead
2900 in the agenda, you will not find past and future instances, only the
2901 current one will show up. Use a cyclic diary entry if you need all
2902 past and future instances to be visible in the agenda.
2905 File: org, Node: Progress logging, Prev: Repeating items, Up: Timestamps
2907 6.5 Progress Logging
2908 ====================
2910 Org-mode can automatically record a time stamp when you mark a TODO item
2911 as DONE, or even each time when you change the state of a TODO item.
2912 You can also measure precisely the time you spent on specific items in a
2913 project by starting and stopping a clock when you start and stop working
2914 on an aspect of a project.
2918 * Closing items:: When was this entry marked DONE?
2919 * Tracking TODO state changes:: When did the status change?
2920 * Clocking work time:: When exactly did you work on this item?
2923 File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
2928 If you want to keep track of _when_ a certain TODO item was finished,
2929 turn on logging with(1)
2931 (setq org-log-done t)
2933 Then each time you turn a TODO entry into DONE using either `C-c C-t'
2934 in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
2935 [timestamp]' will be inserted just after the headline. If you turn the
2936 entry back into a TODO item through further state cycling, that line
2937 will be removed again. In the timeline (*note Timeline::) and in the
2938 agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
2939 display the TODO items closed on each day, giving you an overview of
2940 what has been done on a day. If you want to record a note along with
2941 the timestamp, use(2)
2943 (setq org-log-done '(done))
2945 ---------- Footnotes ----------
2947 (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'
2949 (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
2952 File: org, Node: Tracking TODO state changes, Next: Clocking work time, Prev: Closing items, Up: Progress logging
2954 6.5.2 Tracking TODO state changes
2955 ---------------------------------
2957 When TODO keywords are used as workflow states (*note Workflow
2958 states::), you might want to keep track of when a state change occurred,
2959 and you may even want to attach notes to that state change. With the
2962 (setq org-log-done '(state))
2964 each state change will prompt you for a note that will be attached to
2965 the current headline. Very likely you do not want this verbose tracking
2966 all the time, so it is probably better to configure this behavior with
2967 in-buffer options. For example, if you are tracking purchases, put
2968 these into a separate file that starts with:
2970 #+SEQ_TODO: TODO ORDERED INVOICE PAYED RECEIVED SENT
2971 #+STARTUP: lognotestate
2974 File: org, Node: Clocking work time, Prev: Tracking TODO state changes, Up: Progress logging
2976 6.5.3 Clocking work time
2977 ------------------------
2979 Org-mode allows you to clock the time you spent on specific tasks in a
2980 project. When you start working on an item, you can start the clock.
2981 When you stop working on that task, or when you mark the task done, the
2982 clock is stopped and the corresponding time interval is recorded. It
2983 also computes the total time spent on each subtree of a project.
2986 Start the clock on the current item (clock-in). This inserts the
2987 CLOCK keyword together with a timestamp.
2990 Stop the clock (clock-out). The inserts another timestamp at the
2991 same location where the clock was last started. It also directly
2992 computes the resulting time in inserts it after the time range as
2993 `=> HH:MM'. See the variable `org-log-done' for the possibility to
2994 record an additional note together with the clock-out time
2998 Recompute the time interval after changing one of the time stamps.
2999 This is only necessary if you edit the time stamps directly. If
3000 you change them with `S-<cursor>' keys, the update is automatic.
3003 Changing the TODO state of an item to DONE automatically stops the
3004 clock if it is running in this same item.
3007 Cancel the current clock. This is useful if a clock was started by
3008 mistake, or if you ended up working on something else.
3011 Display time summaries for each subtree in the current buffer.
3012 This puts overlays at the end of each headline, showing the total
3013 time recorded under that heading, including the time of any
3014 subheadings. You can use visibility cycling to study the tree, but
3015 the overlays disappear when you change the buffer (see variable
3016 `org-remove-highlights-with-change') or press `C-c C-c'.
3019 Insert a dynamic block (*note Dynamic blocks::) containing a clock
3020 report as an org-mode table into the current file.
3021 #+BEGIN: clocktable :maxlevel 2 :emphasize nil
3024 If such a block already exists, its content is replaced by the new
3025 table. The `BEGIN' line can specify options:
3026 :maxlevels Maximum level depth to which times are listed in the table.
3027 :emphasize When `t', emphasize level one and level two items
3028 :block The time block to consider. This block is specified relative
3029 to the current time and may be any of these keywords:
3030 `today', `yesterday', `thisweek', `lastweek',
3031 `thismonth', `lastmonth', `thisyear', or `lastyear'.
3032 :tstart A time string specifying when to start considering times
3033 :tend A time string specifying when to stop considering times
3034 So to get a clock summary for the current day, you could write
3035 #+BEGIN: clocktable :maxlevel 2 :block today
3038 and to use a specific time range you could write(2)
3039 #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
3040 :tend "<2006-08-10 Thu 12:00>"
3045 Update all dynamic blocks (*note Dynamic blocks::). This is
3046 useful if you have several clocktable blocks in a buffer.
3048 The `l' key may be used in the timeline (*note Timeline::) and in
3049 the agenda (*note Weekly/Daily agenda::) to show which tasks have been
3050 worked on or closed during a day.
3052 ---------- Footnotes ----------
3054 (1) The corresponding in-buffer setting is: `#+STARTUP:
3057 (2) Note that all parameters must be specified in a single line -
3058 the line is broken here only to fit it onto the manual.
3061 File: org, Node: Tags, Next: Agenda views, Prev: Timestamps, Up: Top
3066 If you wish to implement a system of labels and contexts for
3067 cross-correlating information, an excellent way is to assign tags to
3068 headlines. Org-mode has extensive support for using tags.
3070 Every headline can contain a list of tags, at the end of the
3071 headline. Tags are normal words containing letters, numbers, `_', and
3072 `@'. Tags must be preceded and followed by a single colon; like
3073 `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
3077 * Tag inheritance:: Tags use the tree structure of the outline
3078 * Setting tags:: How to assign tags to a headline
3079 * Tag searches:: Searching for combinations of tags
3082 File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
3087 Tags make use of the hierarchical structure of outline trees. If a
3088 heading has a certain tag, all subheadings will inherit the tag as
3089 well. For example, in the list
3091 * Meeting with the French group :WORK:
3092 ** Summary by Frank :BOSS:NOTES:
3093 *** TODO Prepare slides for him :ACTION:
3095 the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
3096 `:ACTION:'. When executing tag searches and Org-mode finds that a
3097 certain headline matches the search criterion, it will not check any
3098 sublevel headline, assuming that these likely also match, and that the
3099 list of matches can become very long. This may not be what you want,
3100 however, and you can influence inheritance and searching using the
3101 variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
3104 File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
3109 Tags can simply be typed into the buffer at the end of a headline.
3110 After a colon, `M-<TAB>' offers completion on tags. There is also a
3111 special command for inserting tags:
3114 Enter new tags for the current headline. Org-mode will either
3115 offer completion or a special single-key interface for setting
3116 tags, see below. After pressing <RET>, the tags will be inserted
3117 and aligned to `org-tags-column'. When called with a `C-u'
3118 prefix, all tags in the current buffer will be aligned to that
3119 column, just to make things look nice. TAGS are automatically
3120 realigned after promotion, demotion, and TODO state changes (*note
3123 Org will support tag insertion based on a _list of tags_. By
3124 default this list is constructed dynamically, containing all tags
3125 currently used in the buffer. You may also globally specify a hard list
3126 of tags with the variable `org-tag-alist'. Finally you can set the
3127 default tags for a given file with lines like
3129 #+TAGS: @WORK @HOME @TENNISCLUB
3130 #+TAGS: Laptop Car PC Sailboat
3132 If you have globally defined your preferred set of tags using the
3133 variable `org-tag-alist', but would like to use a dynamic tag list in a
3134 specific file: Just add an empty TAGS option line to that file:
3138 The default support method for entering tags is minibuffer
3139 completion. However, Org-mode also implements a much better method:
3140 _fast tag selection_. This method allows to select and deselect tags
3141 with a single key per tag. To function efficiently, you should assign
3142 unique keys to most tags. This can be done globally with
3144 (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
3146 or on a per-file basis with
3148 #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
3150 You can also group together tags that are mutually exclusive. With
3153 #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
3155 you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
3158 Don't forget to press `C-c C-c' with the cursor in one of these lines
3159 to activate any changes.
3161 If at least one tag has a selection key, pressing `C-c C-c' will
3162 automatically present you with a special interface, listing inherited
3163 tags, the tags of the current headline, and a list of all legal tags
3164 with corresponding keys(2). In this interface, you can use the
3168 Pressing keys assigned to tags will add or remove them from the
3169 list of tags in the current line. Selecting a tag in a group of
3170 mutually exclusive tags will turn off any other tags from that
3174 Enter a tag in the minibuffer, even if the tag is not in the
3175 predefined list. You will be able to complete on all tags present
3179 Clear all tags for this line.
3182 Accept the modified set.
3185 Abort without installing changes.
3188 If `q' is not assigned to a tag, it aborts like `C-g'.
3191 Turn off groups of mutually exclusive tags. Use this to (as an
3192 exception) assign several tags from such a group.
3195 Toggle auto-exit after the next change (see below). If you are
3196 using expert mode, the first `C-c' will display the selection
3199 This method lets you assign tags to a headline with very few keys. With
3200 the above setup, you could clear the current tags and set `@HOME',
3201 `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
3202 p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
3203 C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
3204 non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
3207 If you find that most of the time, you need only a single keypress to
3208 modify your list of tags, set the variable
3209 `org-fast-tag-selection-single-key'. Then you no longer have to press
3210 <RET> to exit fast tag selection - it will immediately exit after the
3211 first change. If you then occasionally need more keys, press `C-c' to
3212 turn off auto-exit for the current tag selection process (in effect:
3213 start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
3214 the variable to the value `expert', the special window is not even
3215 shown for single-key tag selection, it comes up only when you press an
3218 ---------- Footnotes ----------
3220 (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
3221 respectively. Several groups are allowed.
3223 (2) Keys will automatically be assigned to tags which have no
3227 File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
3232 Once a tags system has been set up, it can be used to collect related
3233 information into special lists.
3236 Create a sparse tree with all headlines matching a tags search.
3237 With a `C-u' prefix argument, ignore headlines that are not a TODO
3241 Create a global list of tag matches from all agenda files. *Note
3242 Matching headline tags::.
3245 Create a global list of tag matches from all agenda files, but
3246 check only TODO items and force checking subitems (see variable
3247 `org-tags-match-list-sublevels').
3249 A tags search string can use Boolean operators `&' for AND and `|'
3250 for OR. `&' binds more strongly than `|'. Parenthesis are currently
3251 not implemented. A tag may also be preceded by `-', to select against
3252 it, and `+' is syntactic sugar for positive selection. The AND
3253 operator `&' is optional when `+' or `-' is present. Examples:
3256 Select headlines tagged `:WORK:', but discard those also tagged
3260 Selects lines tagged `:WORK:' or `:LAPTOP:'.
3263 Like before, but require the `:LAPTOP:' lines to be tagged also
3266 If you are using multi-state TODO keywords (*note TODO
3267 extensions::), it can be useful to also match on the TODO keyword.
3268 This can be done by adding a condition after a slash to a tags match.
3269 The syntax is similar to the tag matches, but should be applied with
3270 consideration: For example, a positive selection on several TODO
3271 keywords can not meaningfully be combined with boolean AND. However,
3272 _negative selection_ combined with AND can be meaningful. To make sure
3273 that only lines are checked that actually have any TODO keyword, use
3274 `C-c a M', or equivalently start the todo part after the slash with `!'.
3278 Select `:WORK:'-tagged TODO lines with the specific TODO keyword
3281 `WORK/!-WAITING-NEXT'
3282 Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
3285 `WORK/+WAITING|+NEXT'
3286 Select `:WORK:'-tagged TODO lines that are either `WAITING' or
3289 Any element of the tag/todo match can be a regular expression - in
3290 this case it must be enclosed in curly braces. For example,
3291 `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
3292 tag starting with `BOSS'.
3294 You can also require a headline to be of a certain level, by writing
3295 instead of any TAG an expression like `LEVEL=3'. For example, a search
3296 `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
3297 BOSS and are _not_ marked with the todo keyword DONE.
3300 File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Tags, Up: Top
3305 Due to the way Org-mode works, TODO items, time-stamped items, and
3306 tagged headlines can be scattered throughout a file or even a number of
3307 files. To get an overview over open action items, or over events that
3308 are important for a particular date, this information must be collected,
3309 sorted and displayed in an organized way.
3311 Org-mode can select items based on various criteria, and display them
3312 in a separate buffer. Six different view types are provided:
3314 * an _agenda_ that is like a calendar and shows information for
3317 * a _TODO list_ that covers all unfinished action items,
3319 * a _tags view_, showings headlines based on the tags associated
3322 * a _timeline view_ that shows all events in a single Org-mode file,
3323 in time-sorted view,
3325 * a _stuck projects view_ showing projects that currently don't move
3328 * _custom views_ that are special tag/keyword searches and
3329 combinations of different views.
3331 The extracted information is displayed in a special _agenda buffer_.
3332 This buffer is read-only, but provides commands to visit the
3333 corresponding locations in the original Org-mode files, and even to
3334 edit these files remotely.
3336 Two variables control how the agenda buffer is displayed and whether
3337 the window configuration is restored when the agenda exits:
3338 `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
3342 * Agenda files:: Files being searched for agenda information
3343 * Agenda dispatcher:: Keyboard access to agenda views
3344 * Built-in agenda views:: What is available out of the box?
3345 * Presentation and sorting:: How agenda items are prepared for display
3346 * Agenda commands:: Remote editing of org trees
3347 * Custom agenda views:: Defining special searches and views
3350 File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
3355 The information to be shown is collected from all _agenda files_, the
3356 files listed in the variable `org-agenda-files'(1). Thus even if you
3357 only work with a single Org-mode file, this file should be put into
3358 that list(2). You can customize `org-agenda-files', but the easiest
3359 way to maintain it is through the following commands
3362 Add current file to the list of agenda files. The file is added to
3363 the front of the list. If it was already in the list, it is moved
3364 to the front. With prefix arg, file is added/moved to the end.
3367 Remove current file from the list of agenda files.
3371 Cycle through agenda file list, visiting one file after the other.
3373 The Org menu contains the current list of files and can be used to
3376 ---------- Footnotes ----------
3378 (1) If the value of that variable is not a list, but a single file
3379 name, then the list of agenda files will be maintained in that external
3382 (2) When using the dispatcher, pressing `1' before selecting a
3383 command will actually limit the command to the current file, and ignore
3384 `org-agenda-files' until the next dispatcher command.
3387 File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
3389 8.2 The agenda dispatcher
3390 =========================
3392 The views are created through a dispatcher that should be bound to a
3393 global key, for example `C-c a' (*note Installation::). In the
3394 following we will assume that `C-c a' is indeed how the dispatcher is
3395 accessed and list keyboard access to commands accordingly. After
3396 pressing `C-c a', an additional letter is required to execute a
3397 command. The dispatcher offers the following default commands:
3399 Create the calendar-like agenda (*note Weekly/Daily agenda::).
3402 Create a list of all TODO items (*note Global TODO list::).
3405 Create a list of headlines matching a TAGS expression (*note
3406 Matching headline tags::).
3409 Create the timeline view for the current buffer (*note Timeline::).
3412 Create a list of stuck projects (*note Stuck projects::).
3415 Restrict an agenda command to the current buffer. After pressing
3416 `1', you still need to press the character selecting the command.
3419 If there is an active region, restrict the following agenda
3420 command to the region. Otherwise, restrict it to the current
3421 subtree. After pressing `0', you still need to press the
3422 character selecting the command.
3424 You can also define custom commands that will be accessible through
3425 the dispatcher, just like the default commands. This includes the
3426 possibility to create extended agenda buffers that contain several
3427 blocks together, for example the weekly agenda, the global TODO list and
3428 a number of special tags matches. *Note Custom agenda views::.
3431 File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
3433 8.3 The built-in agenda views
3434 =============================
3436 In this section we describe the built-in views.
3440 * Weekly/Daily agenda:: The calendar page with current tasks
3441 * Global TODO list:: All unfinished action items
3442 * Matching headline tags:: Structured information with fine-tuned search
3443 * Timeline:: Time-sorted view for single file
3444 * Stuck projects:: Find projects you need to review
3447 File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
3449 8.3.1 The weekly/daily agenda
3450 -----------------------------
3452 The purpose of the weekly/daily _agenda_ is to act like a page of a
3453 paper agenda, showing all the tasks for the current week or day.
3456 Compile an agenda for the current week from a list of org files.
3457 The agenda shows the entries for each day. With a `C-u' prefix (or
3458 when the variable `org-agenda-include-all-todo' is `t'), all
3459 unfinished TODO items (including those without a date) are also
3460 listed at the beginning of the buffer, before the first date.
3462 Remote editing from the agenda buffer means, for example, that you
3463 can change the dates of deadlines and appointments from the agenda
3464 buffer. The commands available in the Agenda buffer are listed in
3465 *Note Agenda commands::.
3467 Calendar/Diary integration
3468 ..........................
3470 Emacs contains the calendar and diary by Edward M. Reingold. The
3471 calendar displays a three-month calendar with holidays from different
3472 countries and cultures. The diary allows you to keep track of
3473 anniversaries, lunar phases, sunrise/set, recurrent appointments
3474 (weekly, monthly) and more. In this way, it is quite complementary to
3475 Org-mode. It can be very useful to combine output from Org-mode with
3478 In order to include entries from the Emacs diary into Org-mode's
3479 agenda, you only need to customize the variable
3481 (setq org-agenda-include-diary t)
3483 After that, everything will happen automatically. All diary entries
3484 including holidays, anniversaries etc will be included in the agenda
3485 buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
3486 the agenda buffer to jump to the diary file in order to edit existing
3487 diary entries. The `i' command to insert new entries for the current
3488 date works in the agenda buffer, as well as the commands `S', `M', and
3489 `C' to display Sunrise/Sunset times, show lunar phases and to convert
3490 to other calendars, respectively. `c' can be used to switch back and
3491 forth between calendar and agenda.
3494 File: org, Node: Global TODO list, Next: Matching headline tags, Prev: Weekly/Daily agenda, Up: Built-in agenda views
3496 8.3.2 The global TODO list
3497 --------------------------
3499 The global TODO list contains all unfinished TODO items, formatted and
3500 collected into a single place.
3503 Show the global TODO list. This collects the TODO items from all
3504 agenda files (*note Agenda views::) into a single buffer. The
3505 buffer is in `agenda-mode', so there are commands to examine and
3506 manipulate the TODO entries directly from that buffer (*note
3510 Like the above, but allows selection of a specific TODO keyword.
3511 You can also do this by specifying a prefix argument to `C-c a t'.
3512 With a `C-u' prefix you are prompted for a keyword. With a
3513 numeric prefix, the Nth keyword in `org-todo-keywords' is selected. The
3514 `r' key in the agenda buffer regenerates it, and you can give a
3515 prefix argument to this command to change the selected TODO
3516 keyword, for example `3 r'. If you often need a search for a
3517 specific keyword, define a custom command for it (*note Agenda
3519 Matching specific TODO keywords can also be done as part of a tags
3520 search (*note Tag searches::).
3522 Remote editing of TODO items means that you can change the state of a
3523 TODO entry with a single key press. The commands available in the TODO
3524 list are described in *Note Agenda commands::.
3526 Normally the global todo list simply shows all headlines with TODO
3527 keywords. This list can become very long. There are two ways to keep
3529 - Some people view a TODO item that has been _scheduled_ for
3530 execution (*note Time stamps::) as no longer _open_. Configure the
3531 variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
3532 items from the global TODO list.
3534 - TODO items may have sublevels to break up the task into subtasks.
3535 In such cases it may be enough to list only the highest level TODO
3536 headline and omit the sublevels from the global list. Configure
3537 the variable `org-agenda-todo-list-sublevels' to get this behavior.
3540 File: org, Node: Matching headline tags, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
3542 8.3.3 Matching headline tags
3543 ----------------------------
3545 If headlines in the agenda files are marked with _tags_ (*note Tags::),
3546 you can select headlines based on the tags that apply to them and
3547 collect them into an agenda buffer.
3550 Produce a list of all headlines that match a given set of tags.
3551 The command prompts for a selection criterion, which is a boolean
3552 logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
3553 `WORK|HOME' (*note Tags::). If you often need a specific search,
3554 define a custom command for it (*note Agenda dispatcher::).
3557 Like `C-c a m', but only select headlines that are also TODO items
3558 and force checking subitems (see variable
3559 `org-tags-match-list-sublevels'). Matching specific todo keywords
3560 together with a tags match is also possible, see *Note Tag
3563 The commands available in the tags list are described in *Note
3567 File: org, Node: Timeline, Next: Stuck projects, Prev: Matching headline tags, Up: Built-in agenda views
3569 8.3.4 Timeline for a single file
3570 --------------------------------
3572 The timeline summarizes all time-stamped items from a single Org-mode
3573 file in a _time-sorted view_. The main purpose of this command is to
3574 give an overview over events in a project.
3577 Show a time-sorted view of the org file, with all time-stamped
3578 items. When called with a `C-u' prefix, all unfinished TODO
3579 entries (scheduled or not) are also listed under the current date.
3581 The commands available in the timeline buffer are listed in *Note
3585 File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
3587 8.3.5 Stuck projects
3588 --------------------
3590 If you are following a system like David Allen's GTD to organize your
3591 work, one of the "duties" you have is a regular review to make sure
3592 that all projects move along. A _stuck_ project is a project that has
3593 no defined next actions, so it will never show up in the TODO lists
3594 Org-mode produces. During the review, you need to identify such
3595 projects and define next actions for them.
3598 List projects that are stuck.
3601 Customize the variable `org-stuck-projects' to define what a stuck
3602 project is and how to find it.
3604 You almost certainly will have to configure this view before it will
3605 work for you. The built-in default assumes that all your projects are
3606 level-2 headlines, and that a project is not stuck if it has at least
3607 one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
3609 Lets assume that you, in your own way of using Org-mode, identify
3610 projects with a tag PROJECT, and that you use a todo keyword MAYBE to
3611 indicate a project that should not be considered yet. Lets further
3612 assume that the todo keyword DONE marks finished projects, and that NEXT
3613 and TODO indicate next actions. Finally, the tag @SHOP indicates
3614 shopping and is a next action even without the NEXT tag. In this case
3615 you would start by identifying eligible projects with a tags/todo match
3616 `+PROJECT/-MAYBE-DONE', and then check for TODO, NEXT and @SHOP in the
3617 subtree to identify projects that are not stuck. The correct
3618 customization for this is
3620 (setq org-stuck-projects
3621 ("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")))
3624 File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
3626 8.4 Presentation and sorting
3627 ============================
3629 Before displaying items in an agenda view, Org-mode visually prepares
3630 the items and sorts them. Each item occupies a single line. The line
3631 starts with a _prefix_ that contains the _category_ (*note
3632 Categories::) of the item and other important information. You can
3633 customize the prefix using the option `org-agenda-prefix-format'. The
3634 prefix is followed by a cleaned-up version of the outline headline
3635 associated with the item.
3639 * Categories:: Not all tasks are equal
3640 * Time-of-day specifications:: How the agenda knows the time
3641 * Sorting of agenda items:: The order of things
3644 File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
3649 The category is a broad label assigned to each agenda item. By default,
3650 the category is simply derived from the file name, but you can also
3651 specify it with a special line in the buffer, like this:
3655 If there are several such lines in a file, each specifies the
3656 category for the text below it (but the first category also applies to
3657 any text before the first CATEGORY line). The display in the agenda
3658 buffer looks best if the category is not longer than 10 characters.
3661 File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
3663 8.4.2 Time-of-Day Specifications
3664 --------------------------------
3666 Org-mode checks each agenda item for a time-of-day specification. The
3667 time can be part of the time stamp that triggered inclusion into the
3668 agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
3669 specified with two time stamps, like
3670 `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
3672 In the headline of the entry itself, a time(range) may also appear as
3673 plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
3674 Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
3675 entries are recognized as well.
3677 For agenda display, Org-mode extracts the time and displays it in a
3678 standard 24 hour format as part of the prefix. The example times in
3679 the previous paragraphs would end up in the agenda like this:
3681 8:30-13:00 Arthur Dent lies in front of the bulldozer
3682 12:45...... Ford Prefect arrives and takes Arthur to the pub
3683 19:00...... The Vogon reads his poem
3684 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
3686 If the agenda is in single-day mode, or for the display of today, the
3687 timed entries are embedded in a time grid, like
3689 8:00...... ------------------
3690 8:30-13:00 Arthur Dent lies in front of the bulldozer
3691 10:00...... ------------------
3692 12:00...... ------------------
3693 12:45...... Ford Prefect arrives and takes Arthur to the pub
3694 14:00...... ------------------
3695 16:00...... ------------------
3696 18:00...... ------------------
3697 19:00...... The Vogon reads his poem
3698 20:00...... ------------------
3699 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
3701 The time grid can be turned on and off with the variable
3702 `org-agenda-use-time-grid', and can be configured with
3703 `org-agenda-time-grid'.
3706 File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
3708 8.4.3 Sorting of agenda items
3709 -----------------------------
3711 Before being inserted into a view, the items are sorted. How this is
3712 done depends on the type of view.
3713 * For the daily/weekly agenda, the items for each day are sorted.
3714 The default order is to first collect all items containing an
3715 explicit time-of-day specification. These entries will be shown
3716 at the beginning of the list, as a _schedule_ for the day. After
3717 that, items remain grouped in categories, in the sequence given by
3718 `org-agenda-files'. Within each category, items are sorted by
3719 priority (*note Priorities::), which is composed of the base
3720 priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
3721 plus additional increments for overdue scheduled or deadline items.
3723 * For the TODO list, items remain in the order of categories, but
3724 within each category, sorting takes place according to priority
3725 (*note Priorities::).
3727 * For tags matches, items are not sorted at all, but just appear in
3728 the sequence in which they are found in the agenda files.
3730 Sorting can be customized using the variable
3731 `org-agenda-sorting-strategy'.
3734 File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
3736 8.5 Commands in the agenda buffer
3737 =================================
3739 Entries in the agenda buffer are linked back to the org file or diary
3740 file where they originate. You are not allowed to edit the agenda
3741 buffer itself, but commands are provided to show and jump to the
3742 original entry location, and to edit the org-files "remotely" from the
3743 agenda buffer. In this way, all information is stored only once,
3744 removing the risk that your agenda and note files may diverge.
3746 Some commands can be executed with mouse clicks on agenda lines. For
3747 the other commands, the cursor needs to be in the desired line.
3753 Next line (same as <up>).
3756 Previous line (same as <down>).
3763 Display the original location of the item in another window.
3766 Display original location and recenter that window.
3771 Go to the original location of the item in another window. Under
3772 Emacs 22, `mouse-1' will also works for this.
3775 Go to the original location of the item and delete other windows.
3778 Toggle Follow mode. In Follow mode, as you move the cursor through
3779 the agenda buffer, the other window always shows the corresponding
3780 location in the org file. The initial setting for this mode in new
3781 agenda buffers can be set with the variable
3782 `org-agenda-start-with-follow-mode'.
3785 Display the entire subtree of the current item in an indirect
3786 buffer. With numerical prefix ARG, go up to this level and then
3787 take that tree. If ARG is negative, go up that many levels. With
3788 `C-u' prefix, do not remove the previously used indirect buffer.
3791 Toggle Logbook mode. In Logbook mode, entries that where marked
3792 DONE while logging was on (variable `org-log-done') are shown in
3793 the agenda, as are entries that have been clocked on that day.
3799 Delete other windows.
3802 Switch to weekly view (7 days displayed together).
3805 Switch to daily view (just one day displayed).
3808 Toggle the inclusion of diary entries. See *Note Weekly/Daily
3812 Toggle the time grid on and off. See also the variables
3813 `org-agenda-use-time-grid' and `org-agenda-time-grid'.
3816 Recreate the agenda buffer, for example to reflect the changes
3817 after modification of the time stamps of items with S-<left> and
3818 S-<right>. When the buffer is the global todo list, a prefix
3819 argument is interpreted to create a selective list for a specific
3823 Save all Org-mode buffers in the current Emacs session.
3826 Display the following `org-agenda-ndays' days. For example, if
3827 the display covers a week, switch to the following week. With
3828 prefix arg, go forward that many times `org-agenda-ndays' days.
3831 Display the previous dates.
3843 Undo a change due to a remote editing command. The change is
3844 undone both in the agenda buffer and in the remote buffer.
3847 Change the TODO state of the item, both in the agenda and in the
3851 Delete the current agenda item along with the entire subtree
3852 belonging to it in the original Org-mode file. If the text to be
3853 deleted remotely is longer than one line, the kill needs to be
3854 confirmed by the user. See variable `org-agenda-confirm-kill'.
3857 Archive the subtree corresponding to the current headline.
3860 Show all tags associated with the current item. Because of
3861 inheritance, this may be more than the tags listed in the line
3865 Set tags for the current headline.
3868 Toggle the ARCHIVE tag for the current headline.
3871 Set the priority for the current item. Org-mode prompts for the
3872 priority character. If you reply with <SPC>, the priority cookie
3873 is removed from the entry.
3876 Display weighted priority of current item.
3880 Increase the priority of the current item. The priority is
3881 changed in the original buffer, but the agenda is not resorted.
3882 Use the `r' key for this.
3886 Decrease the priority of the current item.
3892 Set a deadline for this item.
3895 Change the time stamp associated with the current line by one day
3896 into the future. With prefix argument, change it by that many
3897 days. For example, `3 6 5 S-<right>' will change it by a year.
3898 The stamp is changed in the original org file, but the change is
3899 not directly reflected in the agenda buffer. Use the `r' key to
3903 Change the time stamp associated with the current line by one day
3907 Change the time stamp associated with the current line to today.
3908 The key `>' has been chosen, because it is the same as `S-.' on my
3912 Start the clock on the current item. If a clock is running
3913 already, it is stopped first.
3916 Stop the previously started clock.
3919 Cancel the currently running clock.
3925 Open the Emacs calendar and move to the date at the agenda cursor.
3928 When in the calendar, compute and show the Org-mode agenda for the
3932 Insert a new entry into the diary. Prompts for the type of entry
3933 (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
3934 new entry in the diary, just as `i d' etc. would do in the
3935 calendar. The date is taken from the cursor position.
3938 Show the phases of the moon for the three months around current
3942 Show sunrise and sunset times. The geographical location must be
3943 set with calendar variables, see documentation of the Emacs
3947 Convert the date at cursor into many other cultural and historic
3951 Show holidays for three month around the cursor date.
3954 Export a single iCalendar file containing entries from all agenda
3961 Quit agenda, remove the agenda buffer.
3964 Exit agenda, remove the agenda buffer and all buffers loaded by
3965 Emacs for the compilation of the agenda. Buffers created by the
3966 user to visit org files will not be removed.
3969 File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
3971 8.6 Custom agenda views
3972 =======================
3974 Custom agenda commands serve two purposes: to store and quickly access
3975 frequently used TODO and tags searches, and to create special composite
3976 agenda buffers. Custom agenda commands will be accessible through the
3977 dispatcher (*note Agenda dispatcher::), just like the default commands.
3981 * Storing searches:: Type once, use often
3982 * Block agenda:: All the stuff you need in a single buffer
3983 * Setting Options:: Changing the rules
3984 * Batch processing:: Agenda views from the command line
3987 File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
3989 8.6.1 Storing searches
3990 ----------------------
3992 The first application of custom searches is the definition of keyboard
3993 shortcuts for frequently used searches, either creating an agenda
3994 buffer, or a sparse tree (the latter covering of course only the current
3995 buffer). Custom commands are configured in the variable
3996 `org-agenda-custom-commands'. You can customize this variable, for
3997 example by pressing `C-c a C'. You can also directly set it with Emacs
3998 Lisp in `.emacs'. The following example contains all valid search
4001 (setq org-agenda-custom-commands
4002 '(("w" todo "WAITING")
4003 ("W" todo-tree "WAITING")
4004 ("u" tags "+BOSS-URGENT")
4005 ("v" tags-todo "+BOSS-URGENT")
4006 ("U" tags-tree "+BOSS-URGENT")
4007 ("f" occur-tree "\\<FIXME\\>")))
4009 The initial single-character string in each entry defines the character
4010 you have to press after the dispatcher command `C-c a' in order to
4011 access the command. The second parameter is the search type, followed
4012 by the string or regular expression to be used for the matching. The
4013 example above will therefore define:
4016 as a global search for TODO entries with `WAITING' as the TODO
4020 as the same search, but only in the current buffer and displaying
4021 the results as a sparse tree
4024 as a global tags search for headlines marked `:BOSS:' but not
4028 as the same search as `C-c a u', but limiting the search to
4029 headlines that are also TODO items
4032 as the same search as `C-c a u', but only in the current buffer and
4033 displaying the result as a sparse tree
4036 to create a sparse tree (again: current buffer only) with all
4037 entries containing the word `FIXME'.
4040 File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
4045 Another possibility is the construction of agenda views that comprise
4046 the results of _several_ commands, each of which creates a block in the
4047 agenda buffer. The available commands include `agenda' for the daily
4048 or weekly agenda (as created with `C-c a a'), `alltodo' for the global
4049 todo list (as constructed with `C-c a t'), and the matching commands
4050 discussed above: `todo', `tags', and `tags-todo'. Here are two
4053 (setq org-agenda-custom-commands
4054 '(("h" "Agenda and Home-related tasks"
4058 ("o" "Agenda and Office-related tasks"
4063 This will define `C-c a h' to create a multi-block view for stuff you
4064 need to attend to at home. The resulting agenda buffer will contain
4065 your agenda for the current week, all TODO items that carry the tag
4066 `HOME', and also all lines tagged with `GARDEN'. Finally the command
4067 `C-c a o' provides a similar view for office tasks.
4070 File: org, Node: Setting Options, Next: Batch processing, Prev: Block agenda, Up: Custom agenda views
4072 8.6.3 Setting Options for custom commands
4073 -----------------------------------------
4075 Org-mode contains a number of variables regulating agenda construction
4076 and display. The global variables define the behavior for all agenda
4077 commands, including the custom commands. However, if you want to change
4078 some settings just for a single custom view, you can do so. Setting
4079 options requires inserting a list of variable names and values at the
4080 right spot in `org-agenda-custom-commands'. For example:
4082 (setq org-agenda-custom-commands
4083 '(("w" todo "WAITING"
4084 ((org-agenda-sorting-strategy '(priority-down))
4085 (org-agenda-prefix-format " Mixed: ")))
4086 ("U" tags-tree "+BOSS-URGENT"
4087 ((org-show-following-heading nil)
4088 (org-show-hierarchy-above nil)))))
4090 Now the `C-c a w' command will sort the collected entries only by
4091 priority, and the prefix format is modified to just say ` Mixed:'
4092 instead of giving the category of the entry. The sparse tags tree of
4093 `C-c a U' will now turn out ultra-compact, because neither the headline
4094 hierarchy above the match, nor the headline following the match will be
4097 For command sets creating a block agenda,
4098 `org-agenda-custom-commands' has two separate spots for setting
4099 options. You can add options that should be valid for just a single
4100 command in the set, and options that should be valid for all commands in
4101 the set. The former are just added to the command entry, the latter
4102 must come after the list of command entries. Going back to the block
4103 agenda example (*note Block agenda::), let's change the sorting strategy
4104 for the `C-c a h' commands to `priority-down', but let's sort the
4105 results for GARDEN tags query in the opposite order, `priority-up'.
4106 This would look like this:
4108 (setq org-agenda-custom-commands
4109 '(("h" "Agenda and Home-related tasks"
4112 (tags "GARDEN" ((org-agenda-sorting-strategy '(priority-up)))))
4113 ((org-agenda-sorting-strategy '(priority-down))))
4114 ("o" "Agenda and Office-related tasks"
4119 As you see, the values and parenthesis setting is a little complex.
4120 When in doubt, use the customize interface to set this variable - it
4121 fully supports its structure. Just one caveat: When setting options in
4122 this interface, the _values_ are just lisp expressions. So if the
4123 value is a string, you need to add the double quotes around the value
4127 File: org, Node: Batch processing, Prev: Setting Options, Up: Custom agenda views
4129 8.6.4 Creating agenda views in batch processing
4130 -----------------------------------------------
4132 If you want to print or otherwise reprocess agenda views, it can be
4133 useful to create an agenda from the command line. This is the purpose
4134 of the function `org-batch-agenda'. It takes as a parameter one of the
4135 strings that are the keys in `org-agenda-custom-commands'. For
4136 example, to directly print the current TODO list, you could use
4138 emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
4140 You may also modify parameters on the fly like this:
4142 emacs -batch -l ~/.emacs \
4143 -eval '(org-batch-agenda "a" \
4144 org-agenda-ndays 300 \
4145 org-agenda-include-diary nil \
4146 org-agenda-files (quote ("~/org/project.org")))' \
4149 which will produce a 300 day agenda, fully restricted to the Org file
4150 `~/org/projects.org', not even including the diary.
4153 File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
4158 Plain ASCII is normally sufficient for almost all note taking. One
4159 exception, however, are scientific notes which need to be able to
4160 contain mathematical symbols and the occasional formula. LaTeX(1) is
4161 widely used to typeset scientific documents. Org-mode supports
4162 embedding LaTeX code into its files, because many academics are used to
4163 read LaTeX source code, and because it can be readily processed into
4164 images for HTML production.
4166 It is not necessary to mark LaTeX macros and code in any special way.
4167 If you observe a few conventions, Org-mode knows how to find it and what
4172 * Math symbols:: TeX macros for symbols and Greek letters
4173 * Subscripts and Superscripts:: Simple syntax for raising/lowering text
4174 * LaTeX fragments:: Complex formulas made easy
4175 * Processing LaTeX fragments:: Previewing LaTeX processing
4176 * CDLaTeX mode:: Speed up entering of formulas
4178 ---------- Footnotes ----------
4180 (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
4181 Many of the features described here as "LaTeX" are really from TeX, but
4182 for simplicity I am blurring this distinction.
4185 File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
4190 You can use LaTeX macros to insert special symbols like `\alpha' to
4191 indicate the Greek letter, or `\to' to indicate an arrow. Completion
4192 for these macros is available, just type `\' and maybe a few letters,
4193 and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
4194 Org-mode allows these macros to be present without surrounding math
4195 delimiters, for example:
4197 Angles are written as Greek letters \alpha, \beta and \gamma.
4199 During HTML export (*note HTML export::), these symbols are
4200 translated into the proper syntax for HTML, for the above examples this
4201 is `α' and `→', respectively.
4204 File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
4206 9.2 Subscripts and Superscripts
4207 ===============================
4209 Just like in LaTeX, `^' and `_' are used to indicate super- and
4210 subscripts. Again, these can be used without embedding them in
4211 math-mode delimiters. To increase the readability of ASCII text, it is
4212 not necessary (but OK) to surround multi-character sub- and superscripts
4213 with curly braces. For example
4215 The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
4216 the sun is R_{sun} = 6.96 x 10^8 m.
4218 To avoid interpretation as raised or lowered text, you can quote `^'
4219 and `_' with a backslash: `\_' and `\^'.
4221 During HTML export (*note HTML export::), subscript and superscripts
4222 are surrounded with `<sub>' and `<sup>' tags, respectively.
4225 File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
4230 With symbols, sub- and superscripts, HTML is pretty much at its end when
4231 it comes to representing mathematical formulas(1). More complex
4232 expressions need a dedicated formula processor. To this end, Org-mode
4233 can contain arbitrary LaTeX fragments. It provides commands to preview
4234 the typeset result of these fragments, and upon export to HTML, all
4235 fragments will be converted to images and inlined into the HTML
4236 document. For this to work you need to be on a system with a working
4237 LaTeX installation. You also need the `dvipng' program, available at
4238 `http://sourceforge.net/projects/dvipng/'.
4240 LaTeX fragments don't need any special marking at all. The following
4241 snippets will be identified as LaTeX source code:
4242 * Environments of any kind. The only requirement is that the
4243 `\begin' statement appears on a new line, preceded by only
4246 * Text within the usual LaTeX math delimiters. To avoid conflicts
4247 with currency specifications, single `$' characters are only
4248 recognized as math delimiters if the enclosed text contains at
4249 most two line breaks, is directly attached to the `$' characters
4250 with no whitespace in between, and if the closing `$' is followed
4251 by whitespace or punctuation. For the other delimiters, there is
4252 no such restriction, so when in doubt, use `\(...\)' as inline
4257 \begin{equation} % arbitrary environments,
4258 x=\sqrt{b} % even tables, figures
4259 \end{equation} % etc
4261 If $a^2=b$ and \( b=2 \), then the solution must be
4262 either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
4264 If you need any of the delimiter ASCII sequences for other purposes, you
4265 can configure the option `org-format-latex-options' to deselect the
4266 ones you do not wish to have interpreted by the LaTeX converter.
4268 ---------- Footnotes ----------
4270 (1) Yes, there is MathML, but that is not yet fully supported by
4271 many browsers, and there is no decent converter for turning LaTeX of
4272 ASCII representations of formulas into MathML. So for the time being,
4273 converting formulas into images seems the way to go.
4276 File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
4278 9.4 Processing LaTeX fragments
4279 ==============================
4281 LaTeX fragments can be processed to produce a preview images of the
4282 typeset expressions:
4285 Produce a preview image of the LaTeX fragment at point and overlay
4286 it over the source code. If there is no fragment at point,
4287 process all fragments in the current entry (between two
4288 headlines). When called with a prefix argument, process the
4289 entire subtree. When called with two prefix arguments, or when
4290 the cursor is before the first headline, process the entire buffer.
4293 Remove the overlay preview images.
4295 During HTML export (*note HTML export::), all LaTeX fragments are
4296 converted into images and inlined into the document if the following
4299 (setq org-export-with-LaTeX-fragments t)
4302 File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
4304 9.5 Using CDLaTeX to enter math
4305 ===============================
4307 CDLaTeX-mode is a minor mode that is normally used in combination with a
4308 major LaTeX mode like AUCTeX in order to speed-up insertion of
4309 environments and math templates. Inside Org-mode, you can make use of
4310 some of the features of cdlatex-mode. You need to install `cdlatex.el'
4311 and `texmathp.el' (the latter comes also with AUCTeX) from
4312 `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
4313 cdlatex-mode itself under Org-mode, but use the light version
4314 `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
4315 current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
4318 (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
4320 When this mode is enabled, the following features are present (for
4321 more details see the documentation of cdlatex-mode):
4322 * Environment templates can be inserted with `C-c {'.
4324 * The <TAB> key will do template expansion if the cursor is inside a
4325 LaTeX fragment(1). For example, <TAB> will expand `fr' to
4326 `\frac{}{}' and position the cursor correctly inside the first
4327 brace. Another <TAB> will get you into the second brace. Even
4328 outside fragments, <TAB> will expand environment abbreviations at
4329 the beginning of a line. For example, if you write `equ' at the
4330 beginning of a line and press <TAB>, this abbreviation will be
4331 expanded to an `equation' environment. To get a list of all
4332 abbreviations, type `M-x cdlatex-command-help'.
4334 * Pressing `_' and `^' inside a LaTeX fragment will insert these
4335 characters together with a pair of braces. If you use <TAB> to
4336 move out of the braces, and if the braces surround only a single
4337 character or macro, they are removed again (depending on the
4338 variable `cdlatex-simplify-sub-super-scripts').
4340 * Pressing the backquote ``' followed by a character inserts math
4341 macros, also outside LaTeX fragments. If you wait more than 1.5
4342 seconds after the backquote, a help window will pop up.
4344 * Pressing the normal quote `'' followed by another character
4345 modifies the symbol before point with an accent or a font. If you
4346 wait more than 1.5 seconds after the backquote, a help window will
4347 pop up. Character modification will work only inside LaTeX
4348 fragments, outside the quote is normal.
4350 ---------- Footnotes ----------
4352 (1) Org-mode has a method to test if the cursor is inside such a
4353 fragment, see the documentation of the function
4354 `org-inside-LaTeX-fragment-p'.
4357 File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
4362 Org-mode documents can be exported into a variety of other formats. For
4363 printing and sharing of notes, ASCII export produces a readable and
4364 simple version of an Org-mode file. HTML export allows you to publish a
4365 notes file on the web, while the XOXO format provides a solid base for
4366 exchange with a broad range of other applications. To incorporate
4367 entries with associated times like deadlines or appointments into a
4368 desktop calendar program like iCal, Org-mode can also produce extracts
4369 in the iCalendar format. Currently Org-mode only supports export, not
4370 import of these different formats.
4372 When exporting, Org-mode uses special conventions to enrich the
4373 output produced. *Note Text interpretation::, for more details.
4376 Dispatcher for export and publishing commands. Displays a
4377 help-window listing the additional key(s) needed to launch an
4378 export or publishing command.
4382 * ASCII export:: Exporting to plain ASCII
4383 * HTML export:: Exporting to HTML
4384 * XOXO export:: Exporting to XOXO
4385 * iCalendar export:: Exporting in iCalendar format
4386 * Text interpretation:: How the exporter looks at the file
4389 File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
4394 ASCII export produces a simple and very readable version of an Org-mode
4398 Export as ASCII file. If there is an active region, only the
4399 region will be exported. For an org file `myfile.org', the ASCII
4400 file will be `myfile.txt'. The file will be overwritten without
4404 Export only the visible part of the document.
4406 In the exported version, the first 3 outline levels will become
4407 headlines, defining a general document structure. Additional levels
4408 will be exported as itemized lists. If you want that transition to
4409 occur at a different level, specify it with a prefix argument. For
4414 creates only top level headlines and does the rest as items. When
4415 headlines are converted to items, the indentation of the text following
4416 the headline is changed to fit nicely under the item. This is done with
4417 the assumption that the first bodyline indicates the base indentation of
4418 the body text. Any indentation larger than this is adjusted to preserve
4419 the layout relative to the first line. Should there be lines with less
4420 indentation than the first, these are left alone.
4423 File: org, Node: HTML export, Next: XOXO export, Prev: ASCII export, Up: Exporting
4428 Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
4429 HTML formatting, in ways similar to John Grubers _markdown_ language,
4430 but with additional support for tables.
4434 * Export commands:: How to invoke HTML export
4435 * Quoting HTML tags:: Using direct HTML in Org-mode
4436 * Links:: How hyperlinks get transferred to HTML
4437 * Images:: To inline or not to inline?
4438 * CSS support:: Style specifications
4441 File: org, Node: Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
4443 10.2.1 HTML export commands
4444 ---------------------------
4447 Export as HTML file `myfile.html'.
4450 Export as HTML file and open it with a browser.
4455 Export only the visible part of the document.
4457 In the exported version, the first 3 outline levels will become
4458 headlines, defining a general document structure. Additional levels
4459 will be exported as itemized lists. If you want that transition to
4460 occur at a different level, specify it with a prefix argument. For
4465 creates two levels of headings and does the rest as items.
4468 File: org, Node: Quoting HTML tags, Next: Links, Prev: Export commands, Up: HTML export
4470 10.2.2 Quoting HTML tags
4471 ------------------------
4473 Plain `<' and `>' are always transformed to `<' and `>' in HTML
4474 export. If you want to include simple HTML tags which should be
4475 interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
4476 Note that this really works only for simple tags. For more extensive
4477 HTML that should be copied verbatim to the exported file use either
4479 #+HTML: Literal HTML code for export
4484 All lines between these markers are exported literally
4488 File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
4493 Internal links (*note Internal links::) will continue to work in HTML
4494 files only if they match a dedicated `<<target>>'. Automatic links
4495 created by radio targets (*note Radio targets::) will also work in the
4496 HTML file. Links to external files will still work if the HTML file is
4497 in the same directory as the Org-mode file. Links to other `.org'
4498 files will be translated into HTML links under the assumption that an
4499 HTML version also exists of the linked file. For information related to
4500 linking files while publishing them to a publishing directory see *Note
4504 File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
4509 HTML export can inline images given as links in the Org-mode file, and
4510 it can make an image the clickable part of a link. By default(1),
4511 images are inlined if a link does not have a description. So
4512 `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
4513 image]]' will just produce a link `the image' that points to the image.
4514 If the description part itself is a `file:' link or a `http:' URL
4515 pointing to an image, this image will be inlined and activated so that
4516 clicking on the image will activate the link. For example, to include
4517 a thumbnail that will link to a high resolution version of the image,
4520 [[file:highres.jpg][file:thumb.jpg]]
4522 and you could use `http' addresses just as well.
4524 ---------- Footnotes ----------
4526 (1) but see the variable `org-export-html-inline-images'
4529 File: org, Node: CSS support, Prev: Images, Up: HTML export
4534 You can also give style information for the exported file. The HTML
4535 exporter assigns the following CSS classes to appropriate parts of the
4536 document - your style specifications may change these:
4538 .done the DONE keyword
4539 .timestamp time stamp
4540 .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
4541 .tag tag in a headline
4542 .target target for links
4544 The default style specification can be configured through the option
4545 `org-export-html-style'. If you want to use a file-local style, you
4546 may use file variables, best wrapped into a COMMENT section at the end
4547 of the outline tree. For example(1):
4549 * COMMENT html style specifications
4552 # org-export-html-style: " <style type=\"text/css\">
4553 # p {font-weight: normal; color: gray; }
4554 # h1 {color: black; }
4558 Remember to execute `M-x normal-mode' after changing this to make
4559 the new style visible to Emacs. This command restarts org-mode for the
4560 current buffer and forces Emacs to re-evaluate the local variables
4561 section in the buffer.
4563 ---------- Footnotes ----------
4565 (1) Under Emacs 21, the continuation lines for a variable value
4566 should have no `#' at the start of the line.
4569 File: org, Node: XOXO export, Next: iCalendar export, Prev: HTML export, Up: Exporting
4574 Org-mode contains an exporter that produces XOXO-style output.
4575 Currently, this exporter only handles the general outline structure and
4576 does not interpret any additional Org-mode features.
4579 Export as XOXO file `myfile.html'.
4582 Export only the visible part of the document.
4585 File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
4587 10.4 iCalendar export
4588 =====================
4590 Some people like to use Org-mode for keeping track of projects, but
4591 still prefer a standard calendar application for anniversaries and
4592 appointments. In this case it can be useful to have deadlines and
4593 other time-stamped items in Org-mode files show up in the calendar
4594 application. Org-mode can export calendar information in the standard
4595 iCalendar format. If you also want to have TODO entries included in the
4596 export, configure the variable `org-icalendar-include-todo'.
4599 Create iCalendar entries for the current file and store them in
4600 the same directory, using a file extension `.ics'.
4603 Like `C-c C-e i', but do this for all files in `org-agenda-files'.
4604 For each of these files, a separate iCalendar file will be
4608 Create a single large iCalendar file from all files in
4609 `org-agenda-files' and write it to the file given by
4610 `org-combined-agenda-icalendar-file'.
4612 How this calendar is best read and updated, depends on the
4613 application you are using. The FAQ covers this issue.
4616 File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
4618 10.5 Text interpretation by the exporter
4619 ========================================
4621 The exporter backends interpret additional structure in the Org-mode
4622 file in order to produce better output.
4626 * Comment lines:: Some lines will not be exported
4627 * Initial text:: Text before the first headline
4628 * Enhancing text:: Subscripts, symbols and more
4629 * Export options:: How to influence the export settings
4632 File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
4634 10.5.1 Comment lines
4635 --------------------
4637 Lines starting with `#' in column zero are treated as comments and will
4638 never be exported. Also entire subtrees starting with the word
4639 `COMMENT' will never be exported.
4642 Toggle the COMMENT keyword at the beginning of an entry.
4645 File: org, Node: Initial text, Next: Enhancing text, Prev: Comment lines, Up: Text interpretation
4647 10.5.2 Text before the first headline
4648 -------------------------------------
4650 Org-mode normally ignores any text before the first headline when
4651 exporting, because this region is often used for internal links to speed
4652 up navigation etc. However, there are occasions when you might want to
4653 have some text before the first headline, like a small intorduction,
4654 special HTML code with a navigation bar, etc. You can ask to have this
4655 part of the file exported as well by setting the variable
4656 `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
4657 basis, you can get the same effect with
4661 The text before the first headline will be fully processed (*note
4662 Enhancing text::). If you need to include literal HTML, use the
4663 special constructs described in *Note Quoting HTML tags::. The table of
4664 contents is normally inserted directly before the first headline of the
4665 file. If you would like to get it to a different location, insert the
4666 string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
4669 Finally, if you want to use the space before the first headline for
4670 internal purposes, but _still_ want to place something before the first
4671 headline when exporting the file, you can use the `#+TEXT' construct:
4674 #+TEXT: This text will go before the *first* headline.
4675 #+TEXT: We place the table of contents here:
4676 #+TEXT: [TABLE-OF-CONTENTS]
4677 #+TEXT: This goes between the table of contents and the first headline
4680 File: org, Node: Enhancing text, Next: Export options, Prev: Initial text, Up: Text interpretation
4682 10.5.3 Enhancing text for export
4683 --------------------------------
4685 Some of the export backends of Org-mode allow for sophisticated text
4686 formatting, this is true in particular for the HTML backend. Org-mode
4687 has a number of typing conventions that allow to produce a richly
4690 * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
4691 enumerator will be recognized and transformed if the backend
4692 supports lists. See *Note Plain lists::.
4694 * You can make words *bold*, /italic/, _underlined_, `=code=', and
4697 * A line consisting of only dashes, and at least 5 of them, will be
4698 exported as a horizontal line (`<hr/>' in HTML).
4700 * Many TeX macros and entire LaTeX fragments are converted into HTML
4701 entities or images (*note Embedded LaTeX::).
4703 * Tables are transformed into native tables under the exporter, if
4704 the export backend supports this. Data fields before the first
4705 horizontal separator line will be formatted as table header fields.
4707 * If a headline starts with the word `QUOTE', the text below the
4708 headline will be typeset as fixed-width, to allow quoting of
4709 computer codes etc. Lines starting with `:' are also typeset in
4712 Toggle fixed-width for entry (QUOTE) or region, see below.
4714 * A double backslash _at the end of a line_ enforces a line break at
4717 If these conversions conflict with your habits of typing ASCII text,
4718 they can all be turned off with corresponding variables. See the
4719 customization group `org-export-general', and the following section
4720 which explains how to set export options with special lines in a buffer.
4723 File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
4725 10.5.4 Export options
4726 ---------------------
4728 The exporter recognizes special lines in the buffer which provide
4729 additional information. These lines may be put anywhere in the file.
4730 The whole set of lines can be inserted into the buffer with `C-c C-e
4731 t'. For individual lines, a good way to make sure the keyword is
4732 correct is to type `#+' and then use `M-<TAB>' completion (*note
4736 Insert template with export options, see example below.
4738 #+TITLE: the title to be shown (default is the buffer name)
4739 #+AUTHOR: the author (default taken from `user-full-name')
4740 #+EMAIL: his/her email address (default from `user-mail-address')
4741 #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
4742 #+TEXT: Some descriptive text to be inserted at the beginning.
4743 #+TEXT: Several lines may be given.
4744 #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t skip:t
4746 The OPTIONS line is a compact form to specify export settings. Here
4748 H: set the number of headline levels for export
4749 num: turn on/off section-numbers
4750 toc: turn on/off table of contents, or set level limit (integer)
4751 \n: turn on/off linebreak-preservation
4752 @: turn on/off quoted HTML tags
4753 :: turn on/off fixed-width sections
4754 |: turn on/off tables
4755 ^: turn on/off TeX-like syntax for sub- and superscripts. If
4756 you write "^:{}", `a_{b}' will be interpreted, but
4757 the simple `a_b' will be left as it is.
4758 *: turn on/off emphasized text (bold, italic, underlined)
4759 TeX: turn on/off simple TeX macros in plain text
4760 LaTeX: turn on/off LaTeX fragments
4761 skip: turn on/off skipping the text before the first heading
4764 File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
4769 Org-mode includes(1) a publishing management system that allows you to
4770 configure automatic HTML conversion of _projects_ composed of
4771 interlinked org files. This system is called _org-publish_. You can
4772 also configure org-publish to automatically upload your exported HTML
4773 pages and related attachments, such as images and source code files, to
4774 a web server. Org-publish turns org-mode into a web-site authoring
4777 Org-publish has been contributed to Org-mode by David O'Toole.
4781 * Configuration:: Defining projects
4782 * Sample configuration:: Example projects
4783 * Triggering publication:: Publication commands
4785 ---------- Footnotes ----------
4787 (1) `org-publish.el' is not yet part of Emacs, so if you are using
4788 `org.el' as it comes with Emacs, you need to download this file
4789 separately. Also make sure org.el is at least version 4.27.
4792 File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
4797 Publishing needs significant configuration to specify files, destination
4798 and many other properties of a project.
4802 * Project alist:: The central configuration variable
4803 * Sources and destinations:: From here to there
4804 * Selecting files:: What files are part of the project?
4805 * Publishing action:: Setting the function doing the publishing
4806 * Publishing options:: Tweaking HTML export
4807 * Publishing links:: Which links keep working after publishing?
4808 * Project page index:: Publishing a list of project files
4811 File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
4813 11.1.1 The variable `org-publish-project-alist'
4814 -----------------------------------------------
4816 Org-publish is configured almost entirely through setting the value of
4817 one variable, called `org-publish-project-alist'. Each element of the
4818 list configures one project, and may be in one of the two following
4821 ("project-name" :property value :property value ...)
4825 ("project-name" :components ("project-name" "project-name" ...))
4827 In both cases, projects are configured by specifying property values.
4828 A project defines the set of files that will be published, as well as
4829 the publishing configuration to use when publishing those files. When
4830 a project takes the second form listed above, the individual members of
4831 the "components" property are taken to be components of the project,
4832 which group together files requiring different publishing options. When
4833 you publish such a "meta-project" all the components will also publish.
4836 File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
4838 11.1.2 Sources and destinations for files
4839 -----------------------------------------
4841 Most properties are optional, but some should always be set. In
4842 particular, org-publish needs to know where to look for source files,
4843 and where to put published files.
4845 `:base-directory' Directory containing publishing source files
4846 `:publishing-directory'Directory (possibly remote) where output files
4848 `:preparation-function'Function called before starting publishing
4849 process, for example to run `make' for updating
4850 files to be published.
4853 File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
4855 11.1.3 Selecting files
4856 ----------------------
4858 By default, all files with extension `.org' in the base directory are
4859 considered part of the project. This can be modified by setting the
4861 `:base-extension' Extension (without the dot!) of source files. This
4862 actually is a regular expression.
4863 `:exclude' Regular expression to match file names that should
4864 not be published, even though they have been selected
4865 on the basis of their extension.
4866 `:include' List of files to be included regardless of
4867 `:base-extension' and `:exclude'.
4870 File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
4872 11.1.4 Publishing Action
4873 ------------------------
4875 Publishing means that a file is copied to the destination directory and
4876 possibly transformed in the process. The default transformation is to
4877 export Org-mode files as HTML files, and this is done by the function
4878 `org-publish-org-to-html' which calls the HTML exporter (*note HTML
4879 export::). Other files like images only need to be copied to the
4880 publishing destination. For non-Org-mode files, you need to specify
4881 the publishing function.
4883 `:publishing-function' Function executing the publication of a file.
4884 This may also be a list of functions, which will
4885 all be called in turn.
4887 The function must accept two arguments: a property list containing at
4888 least a `:publishing-directory' property, and the name of the file to
4889 be published. It should take the specified file, make the necessary
4890 transformation (if any) and place the result into the destination
4891 folder. You can write your own publishing function, but `org-publish'
4892 provides one for attachments (files that only need to be copied):
4893 `org-publish-attachment'.
4896 File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
4898 11.1.5 Options for the HTML exporter
4899 ------------------------------------
4901 The property list can be used to set many export options for the HTML
4902 exporter. In most cases, these properties correspond to user variables
4903 in Org-mode. The table below lists these properties along with the
4904 variable they belong to. See the documentation string for the
4905 respective variable for details.
4907 `:language' `org-export-default-language'
4908 `:headline-levels' `org-export-headline-levels'
4909 `:section-numbers' `org-export-with-section-numbers'
4910 `:table-of-contents' `org-export-with-toc'
4911 `:archived-trees' `org-export-with-archived-trees'
4912 `:emphasize' `org-export-with-emphasize'
4913 `:sub-superscript' `org-export-with-sub-superscripts'
4914 `:TeX-macros' `org-export-with-TeX-macros'
4915 `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
4916 `:fixed-width' `org-export-with-fixed-width'
4917 `:timestamps' `org-export-with-timestamps'
4919 `:tags' `org-export-with-tags'
4921 `:tables' `org-export-with-tables'
4922 `:table-auto-headline' `org-export-highlight-first-table-line'
4923 `:style' `org-export-html-style'
4924 `:convert-org-links' `org-export-html-link-org-files-as-html'
4925 `:inline-images' `org-export-html-inline-images'
4926 `:expand-quoted-html' `org-export-html-expand'
4927 `:timestamp' `org-export-html-with-timestamp'
4928 `:publishing-directory'`org-export-publishing-directory'
4929 `:preamble' `org-export-html-preamble'
4930 `:postamble' `org-export-html-postamble'
4931 `:auto-preamble' `org-export-html-auto-preamble'
4932 `:auto-postamble' `org-export-html-auto-postamble'
4933 `:author' `user-full-name'
4934 `:email' `user-mail-address'
4936 When a property is given a value in org-publish-project-alist, its
4937 setting overrides the value of the corresponding user variable (if any)
4938 during publishing. options set within a file (*note Export options::),
4939 however, override everything.
4942 File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
4944 11.1.6 Links between published files
4945 ------------------------------------
4947 To create a link from one Org-mode file to another, you would use
4948 something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
4949 (*note Hyperlinks::). Upon publishing this link becomes a link to
4950 `foo.html'. In this way, you can interlink the pages of your "org web"
4951 project and the links will work as expected when you publish them to
4954 You may also link to related files, such as images. Provided you are
4955 careful with relative pathnames, and provided you have also configured
4956 org-publish to upload the related files, these links will work too.
4957 *Note Complex example:: for an example of this usage.
4959 Sometime an Org-mode file to be published may contain links that are
4960 only valid in your production environment, but not in the publishing
4961 location. In this case, use the property
4963 `:link-validation-function' Function to validate links
4965 to define a function for checking link validity. This function must
4966 accept two arguments, the file name and a directory relative to which
4967 the file name is interpreted in the production environment. If this
4968 function returns `nil', then the HTML generator will only insert a
4969 description into the HTML file, but no link. One option for this
4970 function is `org-publish-validate-link' which checks if the given file
4971 is part of any project in `org-publish-project-alist'.
4974 File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
4976 11.1.7 Project page index
4977 -------------------------
4979 The following properties may be used to control publishing of an index
4980 of files or summary page for a given project.
4982 `:auto-index' When non-nil, publish an index during
4983 org-publish-current-project or org-publish-all.
4984 `:index-filename' Filename for output of index. Defaults to `index.org'
4985 (which becomes `index.html').
4986 `:index-title' Title of index page. Defaults to name of file.
4987 `:index-function' Plugin function to use for generation of index.
4988 Defaults to `org-publish-org-index', which generates
4989 a plain list of links to all files in the project.
4992 File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
4994 11.2 Sample configuration
4995 =========================
4997 Below we provide two example configurations. The first one is a simple
4998 project publishing only a set of Org-mode files. The second example is
4999 more complex, with a multi-component project.
5003 * Simple example:: One-component publishing
5004 * Complex example:: A multi-component publishing example
5007 File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
5009 11.2.1 Example: simple publishing configuration
5010 -----------------------------------------------
5012 This example publishes a set of Org-mode files to the `public_html'
5013 directory on the local machine.
5015 (setq org-publish-project-alist
5017 :base-directory "~/org/"
5018 :publishing-directory "~/public_html"
5019 :section-numbers nil
5020 :table-of-contents nil
5021 :style "<link rel=stylesheet
5022 href=\"../other/mystyle.css\"
5023 type=\"text/css\">")))
5026 File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
5028 11.2.2 Example: complex publishing configuration
5029 ------------------------------------------------
5031 This more complicated example publishes an entire website, including
5032 org files converted to HTML, image files, emacs lisp source code, and
5033 stylesheets. The publishing-directory is remote and private files are
5036 To ensure that links are preserved, care should be taken to replicate
5037 your directory structure on the web server, and to use relative file
5038 paths. For example, if your org files are kept in `~/org' and your
5039 publishable images in `~/images', you'd link to an image with
5040 file:../images/myimage.png
5041 On the web server, the relative path to the image should be the
5042 same. You can accomplish this by setting up an "images" folder in the
5043 right place on the webserver, and publishing images to it.
5045 (setq org-publish-project-alist
5047 :base-directory "~/org/"
5048 :base-extension "org"
5049 :publishing-directory "/ssh:user@host:~/html/notebook/"
5050 :publishing-function org-publish-org-to-html
5051 :exclude "PrivatePage.org" ;; regexp
5053 :section-numbers nil
5054 :table-of-contents nil
5055 :style "<link rel=stylesheet
5056 href=\"../other/mystyle.css\" type=\"text/css\">"
5058 :auto-postamble nil)
5061 :base-directory "~/images/"
5062 :base-extension "jpg\\|gif\\|png"
5063 :publishing-directory "/ssh:user@host:~/html/images/"
5064 :publishing-function org-publish-attachment)
5067 :base-directory "~/other/"
5068 :base-extension "css\\|el"
5069 :publishing-directory "/ssh:user@host:~/html/other/"
5070 :publishing-function org-publish-attachment)
5071 ("website" :components ("orgfiles" "images" "other"))))
5074 File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
5076 11.3 Triggering publication
5077 ===========================
5079 Once org-publish is properly configured, you can publish with the
5080 following functions:
5083 Prompt for a specific project and publish all files that belong to
5087 Publish the project containing the current file.
5090 Publish only the current file.
5093 Publish all projects.
5095 Org uses timestamps to track when a file has changed. The above
5096 functions normally only publish changed files. You can override this and
5097 force publishing of all files by giving a prefix argument.
5100 File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
5107 * Completion:: M-TAB knows what you need
5108 * Customization:: Adapting Org-mode to your taste
5109 * In-buffer settings:: Overview of the #+KEYWORDS
5110 * The very busy C-c C-c key:: When in doubt, press C-c C-c
5111 * Clean view:: Getting rid of leading stars in the outline
5112 * TTY keys:: Using Org-mode on a tty
5113 * Interaction:: Other Emacs packages
5114 * Bugs:: Things which do not work perfectly
5117 File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
5122 Org-mode supports in-buffer completion. This type of completion does
5123 not make use of the minibuffer. You simply type a few letters into the
5124 buffer and use the key to complete text right there.
5127 Complete word at point
5128 * At the beginning of a headline, complete TODO keywords.
5130 * After `\', complete TeX symbols supported by the exporter.
5132 * After `*', complete headlines in the current buffer so that
5133 they can be used in search links like `[[*find this
5136 * After `:', complete tags. The list of tags is taken from the
5137 variable `org-tag-alist' (possibly set through the `#+TAGS'
5138 in-buffer option, *note Setting tags::), or it is created
5139 dynamically from all tags used in the current buffer.
5141 * After `[', complete link abbreviations (*note Link
5144 * After `#+', complete the special keywords like `TYP_TODO' or
5145 `OPTIONS' which set file-specific options for Org-mode. When
5146 the option keyword is already complete, pressing `M-<TAB>'
5147 again will insert example settings for this keyword.
5149 * In the line after `#+STARTUP: ', complete startup keywords,
5150 i.e. valid keys for this line.
5152 * Elsewhere, complete dictionary words using ispell.
5155 File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
5160 There are more than 180 variables that can be used to customize
5161 Org-mode. For the sake of compactness of the manual, I am not
5162 describing the variables here. A structured overview of customization
5163 variables is available with `M-x org-customize'. Or select `Browse Org
5164 Group' from the `Org->Customization' menu. Many settings can also be
5165 activated on a per-file basis, by putting special lines into the buffer
5166 (*note In-buffer settings::).
5169 File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
5171 12.3 Summary of in-buffer settings
5172 ==================================
5174 Org-mode uses special lines in the buffer to define settings on a
5175 per-file basis. These lines start with a `#+' followed by a keyword, a
5176 colon, and then individual words defining a setting. Several setting
5177 words can be in the same line, but you can also have multiple lines for
5178 the keyword. While these settings are described throughout the manual,
5179 here is a summary. After changing any of those lines in the buffer,
5180 press `C-c C-c' with the cursor still in the line to activate the
5181 changes immediately. Otherwise they become effective only when the
5182 file is visited again in a new Emacs session.
5185 This line sets options to be used at startup of org-mode, when an
5186 Org-mode file is being visited. The first set of options deals
5187 with the initial visibility of the outline tree. The
5188 corresponding variable for global default settings is
5189 `org-startup-folded', with a default value `t', which means
5191 overview top-level headlines only
5192 content all headlines
5193 showall no folding at all, show everything
5194 Then there are options for aligning tables upon visiting a file.
5195 This is useful in files containing narrowed table columns. The
5196 corresponding variable is `org-startup-align-all-tables', with a
5197 default value `nil'.
5198 align align all tables
5199 noalign don't align tables on startup
5200 Logging TODO state changes and clock intervals (variable
5201 `org-log-done') can be configured using these options.
5202 logging record a timestamp when an item is marked DONE
5203 nologging don't record when items are marked DONE
5204 lognotedone record timestamp and a note when DONE
5205 lognotestate record timestamp, note when TODO state changes
5206 lognoteclock-out record timestamp and a note when clocking out
5207 Here are the options for hiding leading stars in outline headings.
5208 The corresponding variables are `org-hide-leading-stars' and
5209 `org-odd-levels-only', both with a default setting `nil' (meaning
5210 `showstars' and `oddeven').
5211 hidestars make all but one of the stars starting a headline invisible.
5212 showstars show all stars starting a headline
5213 odd allow only odd outline levels (1,3,...)
5214 oddeven allow all outline levels
5215 To turn on custom format overlays over time stamps (variables
5216 `org-put-time-stamp-overlays' and
5217 `org-time-stamp-overlay-formats'), use
5218 customtime overlay custom time format
5219 The following options influence the table spreadsheet (variable
5220 `constants-unit-system').
5221 constcgs `constants.el' should use the c-g-s unit system
5222 constSI `constants.el' should use the SI unit system
5224 `#+SEQ_TODO: #+TYP_TODO:'
5225 These lines set the TODO keywords and their interpretation in the
5226 current file. The corresponding variables are `org-todo-keywords'
5227 and `org-todo-interpretation'.
5229 `#+TAGS: TAG1(c1) TAG2(c2)'
5230 These lines (several such lines are allowed) specify the legal
5231 tags in this file, and (potentially) the corresponding _fast tag
5232 selection_ keys. The corresponding variable is `org-tag-alist'.
5234 `#+LINK: linkword replace'
5235 These lines (several are allowed) specify link abbreviations.
5236 *Note Link abbreviations::. The corresponding variable is
5237 `org-link-abbrev-alist'.
5240 This line sets the category for the agenda file. The category
5241 applies for all subsequent lines until the next `#+CATEGORY' line,
5242 or the end of the file. The first such line also applies to any
5245 `#+ARCHIVE: %s_done::'
5246 This line sets the archive location for the agenda file. It
5247 applies for all subsequent lines until the next `#+CATEGORY' line,
5248 or the end of the file. The first such line also applies to any
5249 entries before it. The corresponding variable is
5250 `org-archive-location'.
5253 This line contains the formulas for the table directly above the
5256 `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
5257 These lines provide settings for exporting files. For more
5258 details see *Note Export options::.
5261 File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
5263 12.4 The very busy C-c C-c key
5264 ==============================
5266 The key `C-c C-c' has many purposes in org-mode, which are all
5267 mentioned scattered throughout this manual. One specific function of
5268 this key is to add _tags_ to a headline (*note Tags::). In many other
5269 circumstances it means something like _Hey Org-mode, look here and
5270 update according to what you see here_. Here is a summary of what this
5271 means in different contexts.
5273 - If there are highlights in the buffer from the creation of a sparse
5274 tree, or from clock display, remove these highlights.
5276 - If the cursor is in one of the special `#+KEYWORD' lines, this
5277 triggers scanning the buffer for these lines and updating the
5280 - If the cursor is inside a table, realign the table. This command
5281 works even if the automatic table editor has been turned off.
5283 - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
5286 - If the cursor is inside a table created by the `table.el' package,
5287 activate that table.
5289 - If the current buffer is a remember buffer, close the note and
5290 file it. With a prefix argument, file it, without further
5291 interaction, to the default location.
5293 - If the cursor is on a `<<<target>>>', update radio targets and
5294 corresponding links in this buffer.
5296 - If the cursor is in a plain list item with a checkbox, toggle the
5297 status of the checkbox.
5299 - If the cursor is on a numbered item in a plain list, renumber the
5303 File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
5305 12.5 A cleaner outline view
5306 ===========================
5308 Some people find it noisy and distracting that the Org-mode headlines
5309 are starting with a potentially large number of stars. For example the
5310 tree from *Note Headlines:::
5312 * Top level headline
5318 * Another top level headline
5320 Unfortunately this is deeply ingrained into the code of Org-mode and
5321 cannot be easily changed. You can, however, modify the display in such
5322 a way that all leading stars become invisible and the outline more easy
5323 to read. To do this, customize the variable `org-hide-leading-stars'
5326 (setq org-hide-leading-stars t)
5328 or change this on a per-file basis with one of the lines (anywhere in
5331 #+STARTUP: showstars
5332 #+STARTUP: hidestars
5334 Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
5337 With stars hidden, the tree becomes:
5339 * Top level headline
5345 * Another top level headline
5347 Note that the leading stars are not truly replaced by whitespace, they
5348 are only fontified with the face `org-hide' that uses the background
5349 color as font color. If you are not using either white or black
5350 background, you may have to customize this face to get the wanted
5351 effect. Another possibility is to set this font such that the extra
5352 stars are almost invisible, for example using the color `grey90' on a
5355 Things become cleaner still if you skip all the even levels and use
5356 only odd levels 1, 3, 5..., effectively adding two stars to go from one
5357 outline level to the next:
5359 * Top level headline
5365 * Another top level headline
5367 In order to make the structure editing and export commands handle this
5368 convention correctly, use
5370 (setq org-odd-levels-only t)
5372 or set this on a per-file basis with one of the following lines (don't
5373 forget to press `C-c C-c' with the cursor in the startup line to
5374 activate changes immediately).
5379 You can convert an Org-mode file from single-star-per-level to the
5380 double-star-per-level convention with `M-x org-convert-to-odd-levels
5381 RET' in that file. The reverse operation is `M-x
5382 org-convert-to-oddeven-levels'.
5385 File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
5387 12.6 Using org-mode on a tty
5388 ============================
5390 Org-mode uses a number of keys that are not accessible on a tty. This
5391 applies to most special keys like cursor keys, <TAB> and <RET>, when
5392 these are combined with modifier keys like <Meta> and/or <Shift>.
5393 Org-mode uses these bindings because it needs to provide keys for a
5394 large number of commands, and because these keys appeared particularly
5395 easy to remember. In order to still be able to access the core
5396 functionality of Org-mode on a tty, alternative bindings are provided.
5397 Here is a complete list of these bindings, which are obviously more
5398 cumbersome to use. Note that sometimes a work-around can be better.
5399 For example changing a time stamp is really only fun with `S-<cursor>'
5400 keys. On a tty you would rather use `C-c .' to re-insert the
5403 Default Alternative 1 Alternative 2
5404 `S-<TAB>' `C-u <TAB>'
5405 `M-<left>' `C-c C-x l' `<Esc> <left>'
5406 `M-S-<left>'`C-c C-x L'
5407 `M-<right>' `C-c C-x r' `<Esc>
5409 `M-S-<right>'`C-c C-x R'
5410 `M-<up>' `C-c C-x u' `<Esc> <up>'
5411 `M-S-<up>' `C-c C-x U'
5412 `M-<down>' `C-c C-x d' `<Esc> <down>'
5413 `M-S-<down>'`C-c C-x D'
5414 `S-<RET>' `C-c C-x c'
5415 `M-<RET>' `C-c C-x m' `<Esc> <RET>'
5416 `M-S-<RET>' `C-c C-x M'
5419 `S-<right>' `C-c C-x
5427 File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
5429 12.7 Interaction with other packages
5430 ====================================
5432 Org-mode lives in the world of GNU Emacs and interacts in various ways
5433 with other code out there.
5437 * Cooperation:: Packages Org-mode cooperates with
5438 * Conflicts:: Packages that lead to conflicts
5441 File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
5443 12.7.1 Packages that Org-mode cooperates with
5444 ---------------------------------------------
5446 `calc.el' by Dave Gillespie
5447 Org-mode uses the calc package for implementing spreadsheet
5448 functionality in its tables (*note The spreadsheet::). Org-mode
5449 checks for the availability of calc by looking for the function
5450 `calc-eval' which should be autoloaded in your setup if calc has
5451 been installed properly. As of Emacs 22, calc is part of the Emacs
5452 distribution. Another possibility for interaction between the two
5453 packages is using calc for embedded calculations. *Note Embedded
5454 Mode: (calc)Embedded Mode.
5456 `constants.el' by Carsten Dominik
5457 In a table formula (*note The spreadsheet::), it is possible to use
5458 names for natural constants or units. Instead of defining your own
5459 constants in the variable `org-table-formula-constants', install
5460 the `constants' package which defines a large number of constants
5461 and units, and lets you use unit prefixes like `M' for `Mega' etc.
5462 You will need version 2.0 of this package, available at
5463 `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
5464 function `constants-get', which has to be autoloaded in your
5465 setup. See the installation instructions in the file
5468 `cdlatex.el' by Carsten Dominik
5469 Org-mode can make use of the cdlatex package to efficiently enter
5470 LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
5472 `remember.el' by John Wiegley
5473 Org mode cooperates with remember, see *Note Remember::.
5474 `Remember.el' is not part of Emacs, find it on the web.
5476 `table.el' by Takaaki Ota
5477 Complex ASCII tables with automatic line wrapping, column- and
5478 row-spanning, and alignment can be created using the Emacs table
5479 package by Takaaki Ota (`http://sourceforge.net/projects/table',
5480 and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
5481 such a table, Org-mode will call `table-recognize-table' and move
5482 the cursor into the table. Inside a table, the keymap of Org-mode
5483 is inactive. In order to execute Org-mode-related commands, leave
5487 Recognize `table.el' table. Works when the cursor is in a
5491 Insert a table.el table. If there is already a table at
5492 point, this command converts it between the table.el format
5493 and the Org-mode format. See the documentation string of the
5494 command `org-convert-table' for the restrictions under which
5496 `table.el' is part of Emacs 22.
5499 File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
5501 12.7.2 Packages that lead to conflicts with Org-mode
5502 ----------------------------------------------------
5504 `allout.el' by Ken Manheimer
5505 Startup of Org-mode may fail with the error message
5506 `(wrong-type-argument keymapp nil)' when there is an outdated
5507 version `allout.el' on the load path, for example the version
5508 distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
5509 will disappear. If for some reason you cannot do this, make sure
5510 that org.el is loaded _before_ `allout.el', for example by putting
5511 `(require 'org)' early enough into your `.emacs' file.
5513 `CUA.el' by Kim. F. Storm
5514 Keybindings in Org-mode conflict with the `S-<cursor>' keys used
5515 by CUA-mode (as well as pc-select-mode and s-region-mode) to
5516 select and extend the region. If you want to use one of these
5517 packages along with Org-mode, configure the variable
5518 `org-CUA-compatible'. When set, Org-mode will move the following
5519 keybindings in org-mode files, and in the agenda buffer (but not
5520 during date selection).
5522 S-UP -> M-p S-DOWN -> M-n
5523 S-LEFT -> M-- S-RIGHT -> M-+
5526 Yes, these are unfortunately more difficult to remember. If you
5527 want to have other replacement keys, look at the variable
5528 `org-disputed-keys'.
5530 `windmove.el' by Hovav Shacham
5531 Also this package uses the `S-<cursor>' keys, so everything written
5532 in the paragraph above about CUA mode also applies here.
5535 File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
5540 Here is a list of things that should work differently, but which I have
5541 found too hard to fix.
5543 * If a table field starts with a link, and if the corresponding table
5544 column is narrowed (*note Narrow columns::) to a width too small to
5545 display the link, the field would look entirely empty even though
5546 it is not. To prevent this, Org-mode throws an error. The
5547 work-around is to make the column wide enough to fit the link, or
5548 to add some text (at least 2 characters) before the link in the
5551 * Narrowing table columns does not work on XEmacs, because the
5552 `format' function does not transport text properties.
5554 * Text in an entry protected with the `QUOTE' keyword should not
5557 * When the application called by `C-c C-o' to open a file link fails
5558 (for example because the application does not exist or refuses to
5559 open the file), it does so silently. No error message is
5562 * Recalculating a table line applies the formulas from left to right.
5563 If a formula uses _calculated_ fields further down the row,
5564 multiple recalculation may be needed to get all fields consistent.
5565 You may use the command `org-table-iterate' (`C-u C-c *') to
5566 recalculate until convergence.
5568 * A single letter cannot be made bold, for example `*a*'.
5570 * The exporters work well, but could be made more efficient.
5573 File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
5575 Appendix A Extensions, Hooks and Hacking
5576 ****************************************
5578 This appendix lists extensions for Org-mode written by other authors.
5579 It also covers some aspects where users can extend the functionality of
5584 * Extensions:: Existing 3rd-part extensions
5585 * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
5586 * Dynamic blocks:: Automatically filled blocks
5587 * Special agenda views:: Customized views
5590 File: org, Node: Extensions, Next: Tables in arbitrary syntax, Prev: Extensions and Hacking, Up: Extensions and Hacking
5592 A.1 Third-party extensions for Org-mode
5593 =======================================
5595 The following extensions for Org-mode have been written by other people:
5597 `org-publish.el' by David O'Toole
5598 This package provides facilities for publishing related sets of
5599 Org-mode files together with linked files like images as webpages.
5600 It is highly configurable and can be used for other publishing
5601 purposes as well. As of Org-mode version 4.30, `org-publish.el'
5602 is part of the Org-mode distribution. It is not yet part of
5603 Emacs, however, a delay caused by the preparations for the 22.1
5604 release. In the mean time, `org-publish.el' can be downloaded
5605 from David's site: `http://dto.freeshell.org/e/org-publish.el'.
5607 `org-mouse.el' by Piotr Zielinski
5608 This package implements extended mouse functionality for Org-mode.
5609 It allows you to cycle visibility and to edit the document
5610 structure with the mouse. Best of all, it provides a
5611 context-sensitive menu on <mouse-3> that changes depending on the
5612 context of a mouse-click. As of Org-mode version 4.53,
5613 `org-mouse.el' is part of the Org-mode distribution. It is not
5614 yet part of Emacs, however, a delay caused by the preparations for
5615 the 22.1 release. In the mean time, `org-mouse.el' can be
5616 downloaded from Piotr's site:
5617 `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
5619 `org-blog.el' by David O'Toole
5620 A blogging plug-in for `org-publish.el'.
5621 `http://dto.freeshell.org/notebook/OrgMode.html'.
5623 `blorg.el' by Bastien Guerry
5624 Publish Org-mode files as blogs.
5625 `http://www.cognition.ens.fr/~guerry/blorg.html'.
5627 `org2rem.el' by Bastien Guerry
5628 Translates Org-mode files into something readable by Remind.
5629 `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
5632 File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Extensions, Up: Extensions and Hacking
5634 A.2 Tables in arbitrary syntax
5635 ==============================
5637 Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
5638 frequent feature request has been to make it work with native tables in
5639 specific languages, for example LaTeX. However, this is extremely hard
5640 to do in a general way, would lead to a customization nightmare, and
5641 would take away much of the simplicity of the Orgtbl-mode table editor.
5643 This appendix describes a different approach. We keep the
5644 Orgtbl-mode table in its native format (the source table), and use a
5645 custom function to translate the table to the correct syntax, and to
5646 install it in the right location (the target table). This puts the
5647 burden of writing conversion functions on the user, but it allows for a
5648 very flexible system.
5652 * Radio tables:: Sending and receiving
5653 * A LaTeX example:: Step by step, almost a tutorial
5654 * Translator functions:: Copy and modify
5657 File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
5662 To define the location of the target table, you first need to create two
5663 lines that are comments in the current mode, but contain magic words for
5664 Orgtbl-mode to find. Orgtbl-mode will insert the translated table
5665 between these lines, replacing whatever was there before. For example:
5667 /* BEGIN RECEIVE ORGTBL table_name */
5668 /* END RECEIVE ORGTBL table_name */
5670 Just above the source table, we put a special line that tells
5671 Orgtbl-mode how to translate this table and where to install it. For
5673 #+ORGTBL: SEND table_name translation_function arguments....
5675 `table_name' is the reference name for the table that is also used in
5676 the receiver lines. `translation_function' is the Lisp function that
5677 does the translation. Furthermore, the line can contain a list of
5678 arguments (alternating key and value) at the end. The arguments will be
5679 passed as a property list to the translation function for
5680 interpretation. A few standard parameters are already recognized and
5681 acted upon before the translation function is called:
5684 Skip the first N lines of the table. Hlines do count!
5686 `:skipcols (n1 n2 ...)'
5687 List of columns that should be skipped. If the table has a column
5688 with calculation marks, that column is automatically discarded as
5689 well. Please note that the translator function sees the table
5690 _after_ the removal of these columns, the function never knows
5691 that there have been additional columns.
5693 The one problem remaining is how to keep the source table in the buffer
5694 without disturbing the normal workings of the file, for example during
5695 compilation of a C file or processing of a LaTeX file. There are a
5696 number of different solutions:
5698 * The table could be placed in a block comment if that is supported
5699 by the language. For example, in C-mode you could wrap the table
5700 between `/*' and `*/' lines.
5702 * Sometimes it is possible to put the table after some kind of END
5703 statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
5705 * You can just comment the table line by line whenever you want to
5706 process the file, and uncomment it whenever you need to edit the
5707 table. This only sounds tedious - the command `M-x
5708 orgtbl-toggle-comment' does make this comment-toggling very easy,
5709 in particular if you bind it to a key.
5712 File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
5714 A.2.2 A LaTeX example
5715 ---------------------
5717 The best way to wrap the source table in LaTeX is to use the `comment'
5718 environment provided by `comment.sty'. It has to be activated by
5719 placing `\usepackage{comment}' into the document header. Orgtbl-mode
5720 can insert a radio table skeleton(1) with the command `M-x
5721 orgtbl-insert-radio-table'. You will be prompted for a table name,
5722 lets say we use `salesfigures'. You will then get the following
5725 % BEGIN RECEIVE ORGTBL salesfigures
5726 % END RECEIVE ORGTBL salesfigures
5728 #+ORGTBL: SEND salesfigures orgtbl-to-latex
5732 The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
5733 `orgtbl-to-latex' to convert the table into LaTeX and to put it into
5734 the receiver location with name `salesfigures'. You may now fill in
5735 the table, feel free to use the spreadsheet features(2):
5737 % BEGIN RECEIVE ORGTBL salesfigures
5738 % END RECEIVE ORGTBL salesfigures
5740 #+ORGTBL: SEND salesfigures orgtbl-to-latex
5741 | Month | Days | Nr sold | per day |
5742 |-------+------+---------+---------|
5743 | Jan | 23 | 55 | 2.4 |
5744 | Feb | 21 | 16 | 0.8 |
5745 | March | 22 | 278 | 12.6 |
5746 #+TBLFM: $4=$3/$2;%.1f
5747 % $ (optional extra dollar to keep font-lock happy, see footnote)
5750 When you are done, press `C-c C-c' in the table to get the converted
5751 table inserted between the two marker lines.
5753 Now lets assume you want to make the table header by hand, because
5754 you want to control how columns are aligned etc. In this case we make
5755 sure that the table translator does skip the first 2 lines of the source
5756 table, and tell the command to work as a splice, i.e. to not produce
5757 header and footer commands of the target table:
5759 \begin{tabular}{lrrr}
5760 Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
5761 % BEGIN RECEIVE ORGTBL salesfigures
5762 % END RECEIVE ORGTBL salesfigures
5766 #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
5767 | Month | Days | Nr sold | per day |
5768 |-------+------+---------+---------|
5769 | Jan | 23 | 55 | 2.4 |
5770 | Feb | 21 | 16 | 0.8 |
5771 | March | 22 | 278 | 12.6 |
5772 #+TBLFM: $4=$3/$2;%.1f
5775 The LaTeX translator function `orgtbl-to-latex' is already part of
5776 Orgtbl-mode. It uses a `tabular' environment to typeset the table and
5777 marks horizontal lines with `\hline'. Furthermore, it interprets the
5778 following parameters:
5781 When set to t, return only table body lines, don't wrap them into a
5782 tabular environment. Default is nil.
5785 A format to be used to wrap each field, should contain `%s' for the
5786 original field value. For example, to wrap each field value in
5787 dollars, you could use `:fmt "$%s$"'. This may also be a property
5788 list with column numbers and formats. for example `:fmt (2 "$%s$"
5792 Use this format to print numbers with exponentials. The format
5793 should have `%s' twice for inserting mantissa and exponent, for
5794 example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
5795 may also be a property list with column numbers and formats, for
5796 example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
5797 After `efmt' has been applied to a value, `fmt' will also be
5800 ---------- Footnotes ----------
5802 (1) By default this works only for LaTeX, HTML, and TeXInfo.
5803 Configure the variable `orgtbl-radio-tables' to install templates for
5806 (2) If the `#+TBLFM' line contains an odd number of dollar
5807 characters, this may cause problems with font-lock in latex-mode. As
5808 shown in the example you can fix this by adding an extra line inside the
5809 `comment' environment that is used to balance the dollar expressions.
5810 If you are using AUCTeX with the font-latex library, a much better
5811 solution is to add the `comment' environment to the variable
5812 `LaTeX-verbatim-environments'.
5815 File: org, Node: Translator functions, Prev: A LaTeX example, Up: Tables in arbitrary syntax
5817 A.2.3 Translator functions
5818 --------------------------
5820 Orgtbl-mode has several translator functions built-in:
5821 `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
5822 for `orgtbl-to-html'(1), these all use a generic translator,
5823 `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
5824 short function that computes the column definitions for the `tabular'
5825 environment, defines a few field and line separators and then hands
5826 over to the generic translator. Here is the entire code:
5828 (defun orgtbl-to-latex (table params)
5829 "Convert the orgtbl-mode TABLE to LaTeX."
5830 (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
5831 org-table-last-alignment ""))
5834 :tstart (concat "\\begin{tabular}{" alignment "}")
5835 :tend "\\end{tabular}"
5836 :lstart "" :lend " \\\\" :sep " & "
5837 :efmt "%s\\,(%s)" :hline "\\hline")))
5838 (orgtbl-to-generic table (org-combine-plists params2 params))))
5840 As you can see, the properties passed into the function (variable
5841 PARAMS) are combined with the ones newly defined in the function
5842 (variable PARAMS2). The ones passed into the function (i.e. the ones
5843 set by the `ORGTBL SEND' line) take precedence. So if you would like
5844 to use the LaTeX translator, but wanted the line endings to be
5845 `\\[2mm]' instead of the default `\\', you could just overrule the
5848 #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
5850 For a new language, you can either write your own converter function
5851 in analogy with the LaTeX translator, or you can use the generic
5852 function directly. For example, if you have a language where a table
5853 is started with `!BTBL!', ended with `!ETBL!', and where table lines are
5854 started with `!BL!', ended with `!EL!' and where the field separator is
5855 a TAB, you could call the generic translator like this (on a single
5858 #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
5859 :lstart "!BL! " :lend " !EL!" :sep "\t"
5861 Please check the documentation string of the function
5862 `orgtbl-to-generic' for a full list of parameters understood by that
5863 function and remember that you can pass each of them into
5864 `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
5865 the generic function.
5867 Of course you can also write a completely new function doing
5868 complicated things the generic translator cannot do. A translator
5869 function takes two arguments. The first argument is the table, a list
5870 of lines, each line either the symbol `hline' or a list of fields. The
5871 second argument is the property list containing all parameters
5872 specified in the `#+ORGTBL: SEND' line. The function must return a
5873 single string containing the formatted table. If you write a generally
5874 useful translator, please post it on `emacs-orgmode@gnu.org' so that
5875 others can benefit from your work.
5877 ---------- Footnotes ----------
5879 (1) The HTML translator uses the same code that produces tables
5883 File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
5888 Org-mode documents can contain _dynamic blocks_. These are specially
5889 marked regions that are updated by some user-written function. A good
5890 example for such a block is the clock table inserted by the command
5891 `C-c C-x C-r' (*note Clocking work time::).
5893 Dynamic block are enclosed by a BEGIN-END structure that assigns a
5894 name to the block and can also specify parameters for the function
5895 producing the content of the block.
5897 #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
5901 Dynamic blocks are updated with the following commands
5904 Update dynamic block at point.
5907 Update all dynamic blocks in the current file.
5909 Updating a dynamic block means to remove all the text between BEGIN
5910 and END, parse the BEGIN line for parameters and then call the specific
5911 writer function for this block to insert the new content. For a block
5912 with name `myblock', the writer function is `org-dblock-write:myblock'
5913 with as only parameter a property list with the parameters given in the
5914 begin line. Here is a trivial example of a block that keeps track of
5915 when the block update function was last run:
5917 #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
5921 The corresponding block writer function could look like this:
5923 (defun org-dblock-write:block-update-time (params)
5924 (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
5925 (insert "Last block update at: "
5926 (format-time-string fmt (current-time)))))
5928 If you want to make sure that all dynamic blocks are always
5929 up-to-date, you could add the function `org-update-all-dblocks' to a
5930 hook, for example `before-save-hook'. `org-update-all-dblocks' is
5931 written in a way that is does nothing in buffers that are not in
5935 File: org, Node: Special agenda views, Prev: Dynamic blocks, Up: Extensions and Hacking
5937 A.4 Special Agenda Views
5938 ========================
5940 Org-mode provides a special hook that can be used to narrow down the
5941 selection made by any of the agenda views. You may specify a function
5942 that is used at each match to verify if the match should indeed be part
5943 of the agenda view, and if not, how much should be skipped.
5945 Let's say you want to produce a list of projects that contain a
5946 WAITING tag anywhere in the project tree. Let's further assume that
5947 you have marked all tree headings that define a project with the todo
5948 keyword PROJECT. In this case you would run a todo search for the
5949 keyword PROJECT, but skip the match unless there is a WAITING tag
5950 anywhere in the subtree belonging to the project line.
5952 To achieve this, you must write a function that searches the subtree
5953 for the tag. If the tag is found, the function must return `nil' to
5954 indicate that this match should not be skipped. If there is no such
5955 tag, return the location of the end of the subtree, to indicate that
5956 search should continue from there.
5958 (defun my-skip-unless-waiting ()
5959 "Skip trees that are not waiting"
5960 (let ((subtree-end (save-excursion (org-end-of-subtree t))))
5961 (if (re-search-forward ":WAITING:" subtree-end t)
5962 nil ; tag found, do not skip
5963 subtree-end))) ; tag not found, continue after end of subtree
5965 Furthermore you must write a command that uses `let' to temporarily
5966 put this function into the variable `org-agenda-skip-function', sets
5967 the header string for the agenda buffer, and calls the todo-list
5968 generator while asking for the specific TODO keyword PROJECT. The
5969 function must also accept one argument MATCH, but it can choose to
5970 ignore it(1) (as we do in the example below). Here is the example:
5972 (defun my-org-waiting-projects (&optional match)
5973 "Produce a list of projects that contain a WAITING tag.
5974 MATCH is being ignored."
5976 (let ((org-agenda-skip-function 'my-skip-unless-waiting)
5977 (org-agenda-overriding-header "Projects waiting for something: "))
5979 (org-todo-list "PROJECT")))
5981 ---------- Footnotes ----------
5983 (1) MATCH must be present in case you want to define a custom
5984 command for producing this special list. Custom commands always supply
5985 the MATCH argument, but it can be empty if you do not specify it while
5986 defining the command(*note Custom agenda views::).
5989 File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
5991 Appendix B History and Acknowledgments
5992 **************************************
5994 Org-mode was borne in 2003, out of frustration over the user interface
5995 of the Emacs outline-mode. I was trying to organize my notes and
5996 projects, and using Emacs seemed to be the natural way to go. However,
5997 having to remember eleven different commands with two or three keys per
5998 command, only to hide and unhide parts of the outline tree, that seemed
5999 entirely unacceptable to me. Also, when using outlines to take notes, I
6000 constantly want to restructure the tree, organizing it parallel to my
6001 thoughts and plans. _Visibility cycling_ and _structure editing_ were
6002 originally implemented in the package `outline-magic.el', but quickly
6003 moved to the more general `org.el'. As this environment became
6004 comfortable for project planning, the next step was adding _TODO
6005 entries_, basic _time stamps_, and _table support_. These areas
6006 highlight the two main goals that Org-mode still has today: To create a
6007 new, outline-based, plain text mode with innovative and intuitive
6008 editing features, and to incorporate project planning functionality
6009 directly into a notes file.
6011 Since the first release, hundreds of emails to me or on
6012 `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
6013 feedback, new ideas, and sometimes patches and add-on code. Many
6014 thanks to everyone who has helped to improve this package. I am trying
6015 to keep here a list of the people who had significant influence in
6016 shaping one or more aspects of Org-mode. The list may not be complete,
6017 if I have forgotten someone, please accept my apologies and let me know.
6019 * Thomas Baumann contributed the code for links to the MH-E email
6022 * Alex Bochannek provided a patch for rounding time stamps.
6024 * Charles Cave's suggestion sparked the implementation of templates
6027 * Pavel Chalmoviansky influenced the agenda treatment of items with
6030 * Gregory Chernov patched support for lisp forms into table
6031 calculations and improved XEmacs compatibility, in particular by
6032 porting `nouline.el' to XEmacs.
6034 * Sacha Chua suggested to copy some linking code from Planner.
6036 * Eddward DeVilla proposed and tested checkbox statistics.
6038 * Kees Dullemond used to edit projects lists directly in HTML and so
6039 inspired some of the early development, including HTML export. He
6040 also asked for a way to narrow wide table columns.
6042 * Christian Egli converted the documentation into TeXInfo format,
6043 patched CSS formatting into the HTML exporter, and inspired the
6046 * Nic Ferrier contributed mailcap and XOXO support.
6048 * John Foerch figured out how to make incremental search show context
6049 around a match in a hidden outline tree.
6051 * Niels Giessen had the idea to automatically archive DONE trees.
6053 * Bastien Guerry provided extensive feedback and some patches, and
6054 translated David O'Toole's tutorial into French.
6056 * Kai Grossjohann pointed out key-binding conflicts with other
6059 * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
6060 provided frequent feedback and some patches.
6062 * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
6065 * Rick Moynihan proposed to allow multiple TODO sequences in a file.
6067 * Todd Neal provided patches for links to Info files and elisp forms.
6069 * Tim O'Callaghan suggested in-file links, search options for general
6070 file links, and TAGS.
6072 * Takeshi Okano translated the manual and David O'Toole's tutorial
6075 * Oliver Oppitz suggested multi-state TODO items.
6077 * Scott Otterson sparked the introduction of descriptive text for
6078 links, among other things.
6080 * Pete Phillips helped during the development of the TAGS feature,
6081 and provided frequent feedback.
6083 * T.V. Raman reported bugs and suggested improvements.
6085 * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
6088 * Kevin Rogers contributed code to access VM files on remote hosts.
6090 * Frank Ruell solved the mystery of the `keymapp nil' bug, a
6091 conflict with `allout.el'.
6093 * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
6095 * Philip Rooke created the Org-mode reference card and provided lots
6098 * Christian Schlauer proposed angular brackets around links, among
6101 * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
6102 `organizer-mode.el'.
6104 * Daniel Sinder came up with the idea of internal archiving by
6107 * Dale Smith proposed link abbreviations.
6109 * David O'Toole wrote `org-publish.el' and drafted the manual
6110 chapter about publishing.
6112 * Ju"rgen Vollmer contributed code generating the table of contents
6115 * Chris Wallace provided a patch implementing the `QUOTE' keyword.
6117 * David Wainberg suggested archiving, and improvements to the linking
6120 * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
6121 development of Org-mode was fully independent, and both systems are
6122 really different beasts in their basic ideas and implementation
6123 details. I later looked at John's code, however, and learned from
6124 his implementation of (i) links where the link itself is hidden
6125 and only a description is shown, and (ii) popping up a calendar to
6128 * Carsten Wimmer suggested some changes and helped fix a bug in
6131 * Roland Winkler requested additional keybindings to make Org-mode
6134 * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
6135 contributed various ideas and code snippets.
6138 File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
6146 * abbreviation, links: Link abbreviations. (line 6)
6147 * acknowledgments: History and Acknowledgments.
6149 * action, for publishing: Publishing action. (line 6)
6150 * activation: Activation. (line 6)
6151 * active region <1>: Export commands. (line 6)
6152 * active region <2>: ASCII export. (line 9)
6153 * active region <3>: Built-in table editor.
6155 * active region: Structure editing. (line 64)
6156 * agenda: Weekly/Daily agenda. (line 6)
6157 * agenda dispatcher: Agenda dispatcher. (line 6)
6158 * agenda files: Agenda files. (line 6)
6159 * agenda files, removing buffers: Agenda commands. (line 228)
6160 * agenda views: Agenda views. (line 6)
6161 * agenda views, custom: Custom agenda views. (line 6)
6162 * agenda views, user-defined: Special agenda views.
6164 * agenda, batch production: Batch processing. (line 6)
6165 * agenda, with block views: Block agenda. (line 6)
6166 * align, STARTUP keyword: In-buffer settings. (line 29)
6167 * allout.el: Conflicts. (line 6)
6168 * angular brackets, around links: External links. (line 43)
6169 * archive locations: Moving subtrees. (line 21)
6170 * archiving: Archiving. (line 6)
6171 * ASCII export: ASCII export. (line 6)
6172 * author: Feedback. (line 6)
6173 * autoload: Activation. (line 6)
6174 * backtrace of an error: Feedback. (line 27)
6175 * BBDB links: External links. (line 6)
6176 * block agenda: Block agenda. (line 6)
6177 * blorg.el: Extensions. (line 32)
6178 * bold text: Enhancing text. (line 15)
6179 * Boolean logic, for tag searches: Tag searches. (line 23)
6180 * bug reports: Feedback. (line 6)
6181 * bugs: Bugs. (line 6)
6182 * C-c C-c, overview: The very busy C-c C-c key.
6184 * calc package: The spreadsheet. (line 6)
6185 * calc.el: Cooperation. (line 6)
6186 * calculations, in tables <1>: The spreadsheet. (line 6)
6187 * calculations, in tables: Built-in table editor.
6189 * calendar commands, from agenda: Agenda commands. (line 191)
6190 * calendar integration: Weekly/Daily agenda. (line 24)
6191 * calendar, for selecting date: The date/time prompt.
6193 * category: Categories. (line 6)
6194 * CDLaTeX: CDLaTeX mode. (line 6)
6195 * cdlatex.el: Cooperation. (line 29)
6196 * checkbox statistics: Checkboxes. (line 23)
6197 * checkboxes: Checkboxes. (line 6)
6198 * children, subtree visibility state: Visibility cycling. (line 10)
6199 * clean outline view: Clean view. (line 6)
6200 * CLOCK keyword: Time stamps. (line 71)
6201 * CLOSED keyword: Time stamps. (line 65)
6202 * column formula: Column formulas. (line 6)
6203 * commands, in agenda buffer: Agenda commands. (line 6)
6204 * comment lines: Comment lines. (line 6)
6205 * completion, of dictionary words: Completion. (line 6)
6206 * completion, of file names: Handling links. (line 41)
6207 * completion, of link abbreviations: Completion. (line 6)
6208 * completion, of links: Handling links. (line 25)
6209 * completion, of option keywords <1>: Completion. (line 6)
6210 * completion, of option keywords <2>: Export options. (line 6)
6211 * completion, of option keywords: Per file keywords. (line 17)
6212 * completion, of tags <1>: Completion. (line 6)
6213 * completion, of tags: Setting tags. (line 11)
6214 * completion, of TeX symbols: Completion. (line 6)
6215 * completion, of TODO keywords <1>: Completion. (line 6)
6216 * completion, of TODO keywords: Workflow states. (line 12)
6217 * constants, in calculations: References. (line 82)
6218 * constants.el: Cooperation. (line 14)
6219 * constcgs, STARTUP keyword: In-buffer settings. (line 52)
6220 * constSI, STARTUP keyword: In-buffer settings. (line 52)
6221 * content, STARTUP keyword: In-buffer settings. (line 22)
6222 * contents, global visibility state: Visibility cycling. (line 22)
6223 * copying, of subtrees: Structure editing. (line 6)
6224 * creating timestamps: Creating timestamps. (line 6)
6225 * CUA.el: Conflicts. (line 15)
6226 * custom agenda views: Custom agenda views. (line 6)
6227 * custom date/time format: Custom time format. (line 6)
6228 * custom search strings: Custom searches. (line 6)
6229 * customization: Customization. (line 6)
6230 * customtime, STARTUP keyword: In-buffer settings. (line 49)
6231 * cutting, of subtrees: Structure editing. (line 6)
6232 * cycling, of TODO states: TODO basics. (line 13)
6233 * cycling, visibility: Visibility cycling. (line 6)
6234 * daily agenda: Weekly/Daily agenda. (line 6)
6235 * date format, custom: Custom time format. (line 6)
6236 * date stamps <1>: Time stamps. (line 6)
6237 * date stamps: Timestamps. (line 6)
6238 * date, reading in minibuffer: The date/time prompt.
6240 * DEADLINE keyword: Time stamps. (line 53)
6241 * deadlines: Time stamps. (line 6)
6242 * deadlines, repeating: Repeating items. (line 6)
6243 * debugging, of table formulas: Editing and debugging formulas.
6245 * demotion, of subtrees: Structure editing. (line 6)
6246 * diary entries, creating from agenda: Agenda commands. (line 196)
6247 * diary integration: Weekly/Daily agenda. (line 24)
6248 * dictionary word completion: Completion. (line 6)
6249 * directories, for publishing: Sources and destinations.
6251 * dispatching agenda commands: Agenda dispatcher. (line 6)
6252 * display changing, in agenda: Agenda commands. (line 65)
6253 * document structure: Document structure. (line 6)
6254 * DONE, final TODO keyword: Per file keywords. (line 20)
6255 * dynamic blocks: Dynamic blocks. (line 6)
6256 * editing tables: Tables. (line 6)
6257 * editing, of table formulas: Editing and debugging formulas.
6259 * elisp links: External links. (line 6)
6260 * emphasized text: Export options. (line 25)
6261 * enhancing text: Enhancing text. (line 6)
6262 * evaluate time range: Creating timestamps. (line 64)
6263 * even, STARTUP keyword: In-buffer settings. (line 42)
6264 * exporting: Exporting. (line 6)
6265 * exporting, not: Comment lines. (line 6)
6266 * extended TODO keywords: TODO extensions. (line 6)
6267 * extension, third-party: Extensions. (line 6)
6268 * external archiving: Moving subtrees. (line 6)
6269 * external links: External links. (line 6)
6270 * external links, in HTML export: Links. (line 6)
6271 * FAQ: Summary. (line 53)
6272 * feedback: Feedback. (line 6)
6273 * field formula: Field formulas. (line 6)
6274 * field references: References. (line 15)
6275 * file links: External links. (line 6)
6276 * file links, searching: Search options. (line 6)
6277 * file name completion: Handling links. (line 41)
6278 * files for agenda: Agenda files. (line 6)
6279 * files, adding to agenda list: Agenda files. (line 12)
6280 * files, selecting for publishing: Selecting files. (line 6)
6281 * fixed width: Enhancing text. (line 28)
6282 * fixed-width sections: Export options. (line 25)
6283 * folded, subtree visibility state: Visibility cycling. (line 10)
6284 * folding, sparse trees: Sparse trees. (line 6)
6285 * following links: Handling links. (line 56)
6286 * format specifier: Formula syntax for Calc.
6288 * format, of links: Link format. (line 6)
6289 * formula debugging: Editing and debugging formulas.
6291 * formula editing: Editing and debugging formulas.
6293 * formula syntax, Calc: Formula syntax for Calc.
6295 * formula, for individual table field: Field formulas. (line 6)
6296 * formula, for table column: Column formulas. (line 6)
6297 * formula, in tables: Built-in table editor.
6299 * global cycling: Visibility cycling. (line 22)
6300 * global keybindings: Activation. (line 6)
6301 * global TODO list: Global TODO list. (line 6)
6302 * global visibility states: Visibility cycling. (line 22)
6303 * GNUS links: External links. (line 6)
6304 * hand-formatted lists: Enhancing text. (line 11)
6305 * headline levels: Export options. (line 25)
6306 * headline levels, for exporting <1>: Export commands. (line 17)
6307 * headline levels, for exporting: ASCII export. (line 18)
6308 * headline navigation: Motion. (line 6)
6309 * headline tagging: Tags. (line 6)
6310 * headline, promotion and demotion: Structure editing. (line 6)
6311 * headlines: Headlines. (line 6)
6312 * hide text: Visibility cycling. (line 6)
6313 * hidestars, STARTUP keyword: In-buffer settings. (line 42)
6314 * hiding leading stars: Clean view. (line 6)
6315 * history: History and Acknowledgments.
6317 * horizontal rules, in exported files: Enhancing text. (line 18)
6318 * HTML export: HTML export. (line 6)
6319 * HTML, and orgtbl-mode: Translator functions.
6321 * hyperlinks: Hyperlinks. (line 6)
6322 * iCalendar export: iCalendar export. (line 6)
6323 * images, inline in HTML: Images. (line 6)
6324 * in-buffer settings: In-buffer settings. (line 6)
6325 * inactive timestamp: Time stamps. (line 24)
6326 * index, of published pages: Project page index. (line 6)
6327 * Info links: External links. (line 6)
6328 * inheritance, of tags: Tag inheritance. (line 6)
6329 * inlining images in HTML: Images. (line 6)
6330 * inserting links: Handling links. (line 25)
6331 * installation: Installation. (line 6)
6332 * internal archiving: ARCHIVE tag. (line 6)
6333 * internal links: Internal links. (line 6)
6334 * internal links, in HTML export: Links. (line 6)
6335 * introduction: Introduction. (line 6)
6336 * italic text: Enhancing text. (line 15)
6337 * jumping, to headlines: Motion. (line 6)
6338 * keybindings, global: Activation. (line 6)
6339 * keyword options: Per file keywords. (line 6)
6340 * LaTeX fragments <1>: Export options. (line 25)
6341 * LaTeX fragments: LaTeX fragments. (line 6)
6342 * LaTeX fragments, export: Enhancing text. (line 21)
6343 * LaTeX fragments, preview: Processing LaTeX fragments.
6345 * LaTeX interpretation: Embedded LaTeX. (line 6)
6346 * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
6347 * level, require for tags match: Tag searches. (line 68)
6348 * linebreak preservation: Export options. (line 25)
6349 * linebreak, forced: Enhancing text. (line 35)
6350 * link abbreviations: Link abbreviations. (line 6)
6351 * link abbreviations, completion of: Completion. (line 6)
6352 * link completion: Handling links. (line 25)
6353 * link format: Link format. (line 6)
6354 * links, external: External links. (line 6)
6355 * links, finding next/previous: Handling links. (line 89)
6356 * links, handling: Handling links. (line 6)
6357 * links, in HTML export: Links. (line 6)
6358 * links, internal: Internal links. (line 6)
6359 * links, publishing: Publishing links. (line 6)
6360 * links, radio targets: Radio targets. (line 6)
6361 * links, returning to: Handling links. (line 83)
6362 * Lisp forms, as table formulas: Formula syntax for Lisp.
6364 * lists, hand-formatted: Enhancing text. (line 11)
6365 * lists, ordered: Plain lists. (line 6)
6366 * lists, plain: Plain lists. (line 6)
6367 * logdone, STARTUP keyword: In-buffer settings. (line 33)
6368 * logging, of progress: Progress logging. (line 6)
6369 * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 33)
6370 * lognotedone, STARTUP keyword: In-buffer settings. (line 33)
6371 * lognotestate, STARTUP keyword: In-buffer settings. (line 33)
6372 * maintainer: Feedback. (line 6)
6373 * mark ring: Handling links. (line 79)
6374 * marking characters, tables: Advanced features. (line 40)
6375 * matching, of tags: Matching headline tags.
6377 * matching, tags: Tags. (line 6)
6378 * math symbols: Math symbols. (line 6)
6379 * MH-E links: External links. (line 6)
6380 * minor mode for tables: orgtbl-mode. (line 6)
6381 * mode, for calc: Formula syntax for Calc.
6383 * motion commands in agenda: Agenda commands. (line 19)
6384 * motion, between headlines: Motion. (line 6)
6385 * name, of column or field: References. (line 82)
6386 * named references: References. (line 82)
6387 * names as TODO keywords: TODO types. (line 6)
6388 * narrow columns in tables: Narrow columns. (line 6)
6389 * noalign, STARTUP keyword: In-buffer settings. (line 29)
6390 * nologging, STARTUP keyword: In-buffer settings. (line 33)
6391 * occur, command: Sparse trees. (line 6)
6392 * odd, STARTUP keyword: In-buffer settings. (line 42)
6393 * option keyword completion: Completion. (line 6)
6394 * options, for custom agenda views: Setting Options. (line 6)
6395 * options, for customization: Customization. (line 6)
6396 * options, for export: Export options. (line 6)
6397 * options, for publishing: Publishing options. (line 6)
6398 * ordered lists: Plain lists. (line 6)
6399 * org-agenda, command: Weekly/Daily agenda. (line 9)
6400 * org-blog.el: Extensions. (line 28)
6401 * org-mode, turning on: Activation. (line 22)
6402 * org-mouse.el: Extensions. (line 16)
6403 * org-publish-project-alist: Project alist. (line 6)
6404 * org-publish.el: Extensions. (line 8)
6405 * org2rem.el: Extensions. (line 36)
6406 * orgtbl-mode <1>: Tables in arbitrary syntax.
6408 * orgtbl-mode: orgtbl-mode. (line 6)
6409 * outline tree: Headlines. (line 6)
6410 * outline-mode: Outlines. (line 6)
6411 * outlines: Outlines. (line 6)
6412 * overview, global visibility state: Visibility cycling. (line 22)
6413 * overview, STARTUP keyword: In-buffer settings. (line 22)
6414 * packages, interaction with other: Interaction. (line 6)
6415 * pasting, of subtrees: Structure editing. (line 6)
6416 * per file keywords: Per file keywords. (line 6)
6417 * plain lists: Plain lists. (line 6)
6418 * plain text external links: External links. (line 43)
6419 * presentation, of agenda items: Presentation and sorting.
6421 * printing sparse trees: Sparse trees. (line 41)
6422 * priorities: Priorities. (line 6)
6423 * priorities, of agenda items: Sorting of agenda items.
6425 * progress logging: Progress logging. (line 6)
6426 * projects, for publishing: Project alist. (line 6)
6427 * promotion, of subtrees: Structure editing. (line 6)
6428 * publishing: Publishing. (line 6)
6429 * quoted HTML tags: Export options. (line 25)
6430 * radio tables: Radio tables. (line 6)
6431 * radio targets: Radio targets. (line 6)
6432 * range references: References. (line 60)
6433 * ranges, time: Time stamps. (line 6)
6434 * recomputing table fields: Updating the table. (line 6)
6435 * references: References. (line 6)
6436 * references, named: References. (line 82)
6437 * references, to fields: References. (line 15)
6438 * references, to ranges: References. (line 60)
6439 * region, active <1>: Export commands. (line 6)
6440 * region, active <2>: ASCII export. (line 9)
6441 * region, active <3>: Built-in table editor.
6443 * region, active: Structure editing. (line 64)
6444 * regular expressions, with tags search: Tag searches. (line 63)
6445 * remember.el <1>: Cooperation. (line 33)
6446 * remember.el: Remember. (line 6)
6447 * remote editing, from agenda: Agenda commands. (line 106)
6448 * remote editing, undo: Agenda commands. (line 107)
6449 * richer text: Enhancing text. (line 6)
6450 * RMAIL links: External links. (line 6)
6451 * SCHEDULED keyword: Time stamps. (line 40)
6452 * scheduling: Time stamps. (line 6)
6453 * scheduling, repeating: Repeating items. (line 6)
6454 * search option in file links: Search options. (line 6)
6455 * search strings, custom: Custom searches. (line 6)
6456 * searching for tags: Tag searches. (line 6)
6457 * section-numbers: Export options. (line 25)
6458 * setting tags: Setting tags. (line 6)
6459 * SHELL links: External links. (line 6)
6460 * show all, command: Visibility cycling. (line 33)
6461 * show all, global visibility state: Visibility cycling. (line 22)
6462 * show hidden text: Visibility cycling. (line 6)
6463 * showall, STARTUP keyword: In-buffer settings. (line 22)
6464 * showstars, STARTUP keyword: In-buffer settings. (line 42)
6465 * sorting, of agenda items: Sorting of agenda items.
6467 * sparse tree, for deadlines: Creating timestamps. (line 39)
6468 * sparse tree, for TODO: TODO basics. (line 26)
6469 * sparse tree, tag based: Tags. (line 6)
6470 * sparse trees: Sparse trees. (line 6)
6471 * special keywords: In-buffer settings. (line 6)
6472 * spreadsheet capabilities: The spreadsheet. (line 6)
6473 * statistics, for checkboxes: Checkboxes. (line 23)
6474 * storing links: Handling links. (line 9)
6475 * structure editing: Structure editing. (line 6)
6476 * structure of document: Document structure. (line 6)
6477 * sublevels, inclusion into tags match: Tag inheritance. (line 6)
6478 * sublevels, inclusion into todo list: Global TODO list. (line 33)
6479 * subscript: Subscripts and Superscripts.
6481 * subtree cycling: Visibility cycling. (line 10)
6482 * subtree visibility states: Visibility cycling. (line 10)
6483 * subtree, cut and paste: Structure editing. (line 6)
6484 * subtree, subtree visibility state: Visibility cycling. (line 10)
6485 * subtrees, cut and paste: Structure editing. (line 6)
6486 * summary: Summary. (line 6)
6487 * superscript: Subscripts and Superscripts.
6489 * syntax, of formulas: Formula syntax for Calc.
6491 * table editor, built-in: Built-in table editor.
6493 * table editor, table.el: Cooperation. (line 37)
6494 * table of contents: Export options. (line 25)
6495 * table.el: Cooperation. (line 34)
6496 * tables <1>: Export options. (line 25)
6497 * tables: Tables. (line 6)
6498 * tables, export: Enhancing text. (line 24)
6499 * tables, in other modes: Tables in arbitrary syntax.
6501 * tag completion: Completion. (line 6)
6502 * tag searches: Tag searches. (line 6)
6503 * tags: Tags. (line 6)
6504 * tags view: Matching headline tags.
6506 * tags, setting: Setting tags. (line 6)
6507 * targets, for links: Internal links. (line 6)
6508 * targets, radio: Radio targets. (line 6)
6509 * tasks, breaking down: Breaking down tasks. (line 6)
6510 * templates, for remember: Remember templates. (line 6)
6511 * TeX interpretation: Embedded LaTeX. (line 6)
6512 * TeX macros <1>: Export options. (line 25)
6513 * TeX macros: Math symbols. (line 6)
6514 * TeX macros, export: Enhancing text. (line 21)
6515 * TeX symbol completion: Completion. (line 6)
6516 * TeX-like syntax for sub- and superscripts: Export options. (line 25)
6517 * thanks: History and Acknowledgments.
6519 * time format, custom: Custom time format. (line 6)
6520 * time grid: Time-of-day specifications.
6522 * time stamps <1>: Time stamps. (line 6)
6523 * time stamps: Timestamps. (line 6)
6524 * time, reading in minibuffer: The date/time prompt.
6526 * time-of-day specification: Time-of-day specifications.
6528 * time-sorted view: Timeline. (line 6)
6529 * timeline, single file: Timeline. (line 6)
6530 * timerange: Time stamps. (line 31)
6531 * timestamp: Time stamps. (line 14)
6532 * timestamp, inactive: Time stamps. (line 24)
6533 * timestamps, creating: Creating timestamps. (line 6)
6534 * TODO items: TODO items. (line 6)
6535 * TODO items, repeating: Repeating items. (line 6)
6536 * TODO keyword matching: Global TODO list. (line 17)
6537 * TODO keyword matching, with tags search: Tag searches. (line 40)
6538 * todo keyword sets: Multiple sets in one file.
6540 * TODO keywords completion: Completion. (line 6)
6541 * TODO list, global: Global TODO list. (line 6)
6542 * TODO types: TODO types. (line 6)
6543 * TODO workflow: Workflow states. (line 6)
6544 * transient-mark-mode <1>: Export commands. (line 6)
6545 * transient-mark-mode <2>: ASCII export. (line 9)
6546 * transient-mark-mode <3>: Built-in table editor.
6548 * transient-mark-mode: Structure editing. (line 64)
6549 * translator function: Translator functions.
6551 * trees, sparse: Sparse trees. (line 6)
6552 * trees, visibility: Visibility cycling. (line 6)
6553 * tty keybindings: TTY keys. (line 6)
6554 * types as TODO keywords: TODO types. (line 6)
6555 * underlined text: Enhancing text. (line 15)
6556 * undoing remote-editing events: Agenda commands. (line 107)
6557 * updating, table: Updating the table. (line 6)
6558 * URL links: External links. (line 6)
6559 * USENET links: External links. (line 6)
6560 * variables, for customization: Customization. (line 6)
6561 * vectors, in table calculations: Formula syntax for Calc.
6563 * visibility cycling: Visibility cycling. (line 6)
6564 * visible text, printing: Sparse trees. (line 41)
6565 * VM links: External links. (line 6)
6566 * WANDERLUST links: External links. (line 6)
6567 * weekly agenda: Weekly/Daily agenda. (line 6)
6568 * windmove.el: Conflicts. (line 33)
6569 * workflow states as TODO keywords: Workflow states. (line 6)
6570 * XEmacs: Installation. (line 6)
6571 * XOXO export: XOXO export. (line 6)
6574 File: org, Node: Key Index, Prev: Index, Up: Top
6582 * $: Agenda commands. (line 121)
6583 * ': CDLaTeX mode. (line 43)
6584 * +: Agenda commands. (line 143)
6585 * ,: Agenda commands. (line 135)
6586 * -: Agenda commands. (line 149)
6587 * .: Agenda commands. (line 98)
6588 * :: Agenda commands. (line 129)
6589 * <: The date/time prompt.
6591 * <left>: Agenda commands. (line 95)
6592 * <RET> <1>: Agenda commands. (line 39)
6593 * <RET> <2>: Setting tags. (line 76)
6594 * <RET> <3>: The date/time prompt.
6596 * <RET>: Built-in table editor.
6598 * <right>: Agenda commands. (line 90)
6599 * <SPC> <1>: Agenda commands. (line 28)
6600 * <SPC>: Setting tags. (line 73)
6601 * <TAB> <1>: CDLaTeX mode. (line 23)
6602 * <TAB> <2>: Agenda commands. (line 33)
6603 * <TAB> <3>: Setting tags. (line 68)
6604 * <TAB> <4>: Editing and debugging formulas.
6606 * <TAB> <5>: Built-in table editor.
6608 * <TAB> <6>: Plain lists. (line 41)
6609 * <TAB>: Visibility cycling. (line 10)
6610 * > <1>: Agenda commands. (line 171)
6611 * >: The date/time prompt.
6613 * ^: CDLaTeX mode. (line 33)
6614 * _: CDLaTeX mode. (line 33)
6615 * `: CDLaTeX mode. (line 39)
6616 * a: Agenda commands. (line 132)
6617 * b: Agenda commands. (line 49)
6618 * C: Agenda commands. (line 211)
6619 * c: Agenda commands. (line 191)
6620 * C-#: Advanced features. (line 9)
6621 * C-': Agenda files. (line 18)
6622 * C-,: Agenda files. (line 18)
6623 * C-_: Agenda commands. (line 107)
6624 * C-a a L: Timeline. (line 10)
6625 * C-c !: Creating timestamps. (line 19)
6626 * C-c #: Checkboxes. (line 56)
6627 * C-c %: Handling links. (line 79)
6628 * C-c &: Handling links. (line 83)
6629 * C-c ': Editing and debugging formulas.
6631 * C-c *: Updating the table. (line 13)
6632 * C-c +: Built-in table editor.
6634 * C-c ,: Priorities. (line 18)
6635 * C-c -: Built-in table editor.
6637 * C-c .: Creating timestamps. (line 10)
6638 * C-c /: Sparse trees. (line 15)
6639 * C-c :: Enhancing text. (line 32)
6640 * C-c ;: Comment lines. (line 10)
6641 * C-c <: Creating timestamps. (line 23)
6642 * C-c <TAB>: Built-in table editor.
6644 * C-c = <1>: Editing and debugging formulas.
6646 * C-c =: Column formulas. (line 26)
6647 * C-c >: Creating timestamps. (line 27)
6648 * C-c ?: Editing and debugging formulas.
6650 * C-c [: Agenda files. (line 12)
6651 * C-c \: Tag searches. (line 9)
6652 * C-c ]: Agenda files. (line 15)
6653 * C-c ^ <1>: Built-in table editor.
6655 * C-c ^: Structure editing. (line 52)
6656 * C-c `: Built-in table editor.
6658 * C-c a !: Stuck projects. (line 14)
6659 * C-c a #: Stuck projects. (line 13)
6660 * C-c a a: Weekly/Daily agenda. (line 9)
6661 * C-c a C: Storing searches. (line 9)
6662 * C-c a M: Matching headline tags.
6664 * C-c a m: Matching headline tags.
6666 * C-c a M: Tag searches. (line 16)
6667 * C-c a m: Tag searches. (line 12)
6668 * C-c a T: Global TODO list. (line 14)
6669 * C-c a t <1>: Global TODO list. (line 9)
6670 * C-c a t: TODO basics. (line 33)
6671 * C-c C-a: Visibility cycling. (line 33)
6672 * C-c C-b: Motion. (line 15)
6673 * C-c C-c <1>: Cooperation. (line 37)
6674 * C-c C-c <2>: The very busy C-c C-c key.
6676 * C-c C-c <3>: Processing LaTeX fragments.
6678 * C-c C-c <4>: Setting tags. (line 10)
6679 * C-c C-c <5>: Checkboxes. (line 37)
6680 * C-c C-c <6>: Editing and debugging formulas.
6682 * C-c C-c <7>: Built-in table editor.
6684 * C-c C-c: Plain lists. (line 78)
6685 * C-c C-d <1>: Agenda commands. (line 156)
6686 * C-c C-d: Creating timestamps. (line 35)
6687 * C-c C-e: Exporting. (line 19)
6688 * C-c C-e a: ASCII export. (line 9)
6689 * C-c C-e b: Export commands. (line 7)
6690 * C-c C-e c: iCalendar export. (line 21)
6691 * C-c C-e h: Export commands. (line 6)
6692 * C-c C-e I: iCalendar export. (line 16)
6693 * C-c C-e i: iCalendar export. (line 14)
6694 * C-c C-e t: Export options. (line 13)
6695 * C-c C-e v <1>: XOXO export. (line 11)
6696 * C-c C-e v: Sparse trees. (line 41)
6697 * C-c C-e v a: ASCII export. (line 13)
6698 * C-c C-e v b: Export commands. (line 10)
6699 * C-c C-e v h: Export commands. (line 10)
6700 * C-c C-e x: XOXO export. (line 10)
6701 * C-c C-f: Motion. (line 12)
6702 * C-c C-j: Motion. (line 21)
6703 * C-c C-l: Handling links. (line 25)
6704 * C-c C-n: Motion. (line 8)
6705 * C-c C-o <1>: Creating timestamps. (line 31)
6706 * C-c C-o: Handling links. (line 56)
6707 * C-c C-p: Motion. (line 9)
6708 * C-c C-q <1>: Editing and debugging formulas.
6710 * C-c C-q: Built-in table editor.
6712 * C-c C-r <1>: Editing and debugging formulas.
6714 * C-c C-r: Visibility cycling. (line 34)
6715 * C-c C-s <1>: Agenda commands. (line 153)
6716 * C-c C-s: Creating timestamps. (line 46)
6717 * C-c C-t <1>: Clocking work time. (line 27)
6718 * C-c C-t: TODO basics. (line 13)
6719 * C-c C-u: Motion. (line 18)
6720 * C-c C-v: TODO basics. (line 26)
6721 * C-c C-w: Creating timestamps. (line 39)
6722 * C-c C-x b: Visibility cycling. (line 41)
6723 * C-c C-x C-a: ARCHIVE tag. (line 28)
6724 * C-c C-x C-b: Checkboxes. (line 38)
6725 * C-c C-x C-c: Agenda commands. (line 218)
6726 * C-c C-x C-d: Clocking work time. (line 35)
6727 * C-c C-x C-i: Clocking work time. (line 12)
6728 * C-c C-x C-k: Structure editing. (line 39)
6729 * C-c C-x C-l: Processing LaTeX fragments.
6731 * C-c C-x C-n: Handling links. (line 89)
6732 * C-c C-x C-o: Clocking work time. (line 14)
6733 * C-c C-x C-p: Handling links. (line 89)
6734 * C-c C-x C-r: Clocking work time. (line 43)
6735 * C-c C-x C-s: Moving subtrees. (line 10)
6736 * C-c C-x C-t: Custom time format. (line 12)
6737 * C-c C-x C-u: Dynamic blocks. (line 21)
6738 * C-c C-x C-w <1>: Built-in table editor.
6740 * C-c C-x C-w: Structure editing. (line 39)
6741 * C-c C-x C-x: Clocking work time. (line 31)
6742 * C-c C-x C-y <1>: Built-in table editor.
6744 * C-c C-x C-y: Structure editing. (line 46)
6745 * C-c C-x M-w <1>: Built-in table editor.
6747 * C-c C-x M-w: Structure editing. (line 43)
6748 * C-c C-y <1>: Clocking work time. (line 22)
6749 * C-c C-y: Creating timestamps. (line 64)
6750 * C-c l: Handling links. (line 9)
6751 * C-c { <1>: CDLaTeX mode. (line 21)
6752 * C-c {: Editing and debugging formulas.
6754 * C-c |: Built-in table editor.
6756 * C-c }: Editing and debugging formulas.
6758 * C-c ~: Cooperation. (line 48)
6759 * C-k: Agenda commands. (line 115)
6760 * C-S-<left>: Multiple sets in one file.
6762 * C-S-<right>: Multiple sets in one file.
6764 * C-TAB: ARCHIVE tag. (line 38)
6765 * C-u C-c *: Updating the table. (line 16)
6766 * C-u C-c .: Creating timestamps. (line 14)
6767 * C-u C-c = <1>: Editing and debugging formulas.
6769 * C-u C-c =: Field formulas. (line 24)
6770 * C-u C-c C-c: Updating the table. (line 19)
6771 * C-u C-c C-l: Handling links. (line 41)
6772 * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
6773 * C-u C-c C-x C-s: Moving subtrees. (line 12)
6774 * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
6775 * C-u C-c C-x C-u: Clocking work time. (line 70)
6776 * C-u C-u C-c *: Updating the table. (line 22)
6777 * C-u C-u C-c =: Editing and debugging formulas.
6779 * C-x C-s: Editing and debugging formulas.
6781 * D: Agenda commands. (line 72)
6782 * d: Agenda commands. (line 69)
6783 * f: Agenda commands. (line 42)
6784 * g: Agenda commands. (line 76)
6785 * H: Agenda commands. (line 215)
6786 * i: Agenda commands. (line 196)
6787 * I: Agenda commands. (line 176)
6788 * l: Agenda commands. (line 55)
6789 * L: Agenda commands. (line 30)
6790 * M: Agenda commands. (line 202)
6791 * M-<down> <1>: Editing and debugging formulas.
6793 * M-<down>: Built-in table editor.
6795 * M-<left> <1>: Built-in table editor.
6797 * M-<left>: Structure editing. (line 21)
6798 * M-<RET> <1>: Plain lists. (line 46)
6799 * M-<RET>: Structure editing. (line 6)
6800 * M-<right> <1>: Built-in table editor.
6802 * M-<right>: Structure editing. (line 24)
6803 * M-<TAB> <1>: Completion. (line 10)
6804 * M-<TAB> <2>: Setting tags. (line 6)
6805 * M-<TAB> <3>: Per file keywords. (line 17)
6806 * M-<TAB>: Editing and debugging formulas.
6808 * M-<up> <1>: Editing and debugging formulas.
6810 * M-<up>: Built-in table editor.
6812 * M-S-<down> <1>: Editing and debugging formulas.
6814 * M-S-<down> <2>: Built-in table editor.
6816 * M-S-<down> <3>: Plain lists. (line 63)
6817 * M-S-<down>: Structure editing. (line 36)
6818 * M-S-<left> <1>: The date/time prompt.
6820 * M-S-<left> <2>: Built-in table editor.
6822 * M-S-<left> <3>: Plain lists. (line 69)
6823 * M-S-<left>: Structure editing. (line 27)
6824 * M-S-<RET> <1>: Checkboxes. (line 53)
6825 * M-S-<RET> <2>: Plain lists. (line 56)
6826 * M-S-<RET>: Structure editing. (line 18)
6827 * M-S-<right> <1>: The date/time prompt.
6829 * M-S-<right> <2>: Built-in table editor.
6831 * M-S-<right> <3>: Plain lists. (line 69)
6832 * M-S-<right>: Structure editing. (line 30)
6833 * M-S-<up> <1>: Editing and debugging formulas.
6835 * M-S-<up> <2>: Built-in table editor.
6837 * M-S-<up> <3>: Plain lists. (line 63)
6838 * M-S-<up>: Structure editing. (line 33)
6839 * mouse-1 <1>: Agenda commands. (line 33)
6840 * mouse-1 <2>: The date/time prompt.
6842 * mouse-1: Handling links. (line 70)
6843 * mouse-2 <1>: Agenda commands. (line 33)
6844 * mouse-2: Handling links. (line 70)
6845 * mouse-3 <1>: Agenda commands. (line 28)
6846 * mouse-3: Handling links. (line 75)
6847 * n: Agenda commands. (line 19)
6848 * O: Agenda commands. (line 180)
6849 * o: Agenda commands. (line 65)
6850 * P: Agenda commands. (line 140)
6851 * p: Agenda commands. (line 20)
6852 * q: Agenda commands. (line 227)
6853 * r <1>: Agenda commands. (line 80)
6854 * r: Global TODO list. (line 20)
6855 * S: Agenda commands. (line 206)
6856 * s: Agenda commands. (line 87)
6857 * S-<down> <1>: Agenda commands. (line 149)
6858 * S-<down> <2>: The date/time prompt.
6860 * S-<down> <3>: Creating timestamps. (line 56)
6861 * S-<down> <4>: Priorities. (line 23)
6862 * S-<down> <5>: Editing and debugging formulas.
6864 * S-<down>: Plain lists. (line 59)
6865 * S-<left> <1>: Agenda commands. (line 167)
6866 * S-<left> <2>: The date/time prompt.
6868 * S-<left> <3>: Creating timestamps. (line 51)
6869 * S-<left> <4>: Multiple sets in one file.
6871 * S-<left> <5>: TODO basics. (line 20)
6872 * S-<left>: Editing and debugging formulas.
6874 * S-<RET>: Built-in table editor.
6876 * S-<right> <1>: Agenda commands. (line 159)
6877 * S-<right> <2>: The date/time prompt.
6879 * S-<right> <3>: Creating timestamps. (line 51)
6880 * S-<right> <4>: Multiple sets in one file.
6882 * S-<right> <5>: TODO basics. (line 20)
6883 * S-<right>: Editing and debugging formulas.
6885 * S-<TAB> <1>: Built-in table editor.
6887 * S-<TAB>: Visibility cycling. (line 22)
6888 * S-<up> <1>: Agenda commands. (line 143)
6889 * S-<up> <2>: The date/time prompt.
6891 * S-<up> <3>: Creating timestamps. (line 56)
6892 * S-<up> <4>: Priorities. (line 23)
6893 * S-<up> <5>: Editing and debugging formulas.
6895 * S-<up>: Plain lists. (line 59)
6896 * T: Agenda commands. (line 124)
6897 * t: Agenda commands. (line 111)
6898 * w: Agenda commands. (line 66)
6899 * x: Agenda commands. (line 228)
6900 * X: Agenda commands. (line 183)
6906 Node: Introduction
\x7f11536
6907 Node: Summary
\x7f11951
6908 Node: Installation
\x7f14960
6909 Node: Activation
\x7f16338
6910 Node: Feedback
\x7f17587
6911 Node: Document structure
\x7f19663
6912 Node: Outlines
\x7f20437
6913 Node: Headlines
\x7f21097
6914 Node: Visibility cycling
\x7f21720
6915 Ref: Visibility cycling-Footnote-1
\x7f23934
6916 Ref: Visibility cycling-Footnote-2
\x7f23992
6917 Ref: Visibility cycling-Footnote-3
\x7f24042
6918 Node: Motion
\x7f24311
6919 Node: Structure editing
\x7f25095
6920 Node: Archiving
\x7f27921
6921 Node: ARCHIVE tag
\x7f28479
6922 Node: Moving subtrees
\x7f30272
6923 Node: Sparse trees
\x7f31583
6924 Ref: Sparse trees-Footnote-1
\x7f33715
6925 Ref: Sparse trees-Footnote-2
\x7f33897
6926 Node: Plain lists
\x7f34012
6927 Ref: Plain lists-Footnote-1
\x7f37781
6928 Ref: Plain lists-Footnote-2
\x7f38139
6929 Node: Tables
\x7f38323
6930 Node: Built-in table editor
\x7f38837
6931 Node: Narrow columns
\x7f45856
6932 Ref: Narrow columns-Footnote-1
\x7f47789
6933 Node: orgtbl-mode
\x7f47835
6934 Node: The spreadsheet
\x7f48639
6935 Node: References
\x7f49726
6936 Ref: References-Footnote-1
\x7f53855
6937 Node: Formula syntax for Calc
\x7f54144
6938 Node: Formula syntax for Lisp
\x7f56610
6939 Node: Field formulas
\x7f57879
6940 Node: Column formulas
\x7f59187
6941 Node: Editing and debugging formulas
\x7f60786
6942 Node: Updating the table
\x7f64939
6943 Node: Advanced features
\x7f65974
6944 Node: Hyperlinks
\x7f70499
6945 Node: Link format
\x7f71272
6946 Node: Internal links
\x7f72565
6947 Ref: Internal links-Footnote-1
\x7f74490
6948 Node: Radio targets
\x7f74622
6949 Node: External links
\x7f75313
6950 Node: Handling links
\x7f77717
6951 Ref: Handling links-Footnote-1
\x7f82827
6952 Ref: Handling links-Footnote-2
\x7f83064
6953 Node: Link abbreviations
\x7f83138
6954 Node: Search options
\x7f84817
6955 Ref: Search options-Footnote-1
\x7f86597
6956 Node: Custom searches
\x7f86678
6957 Node: Remember
\x7f87726
6958 Node: Setting up remember
\x7f88713
6959 Node: Remember templates
\x7f89295
6960 Ref: Remember templates-Footnote-1
\x7f92609
6961 Node: Storing notes
\x7f92707
6962 Node: TODO items
\x7f94515
6963 Node: TODO basics
\x7f95498
6964 Node: TODO extensions
\x7f97025
6965 Node: Workflow states
\x7f97894
6966 Node: TODO types
\x7f98879
6967 Ref: TODO types-Footnote-1
\x7f100537
6968 Node: Per file keywords
\x7f100619
6969 Ref: Per file keywords-Footnote-1
\x7f101740
6970 Node: Multiple sets in one file
\x7f101941
6971 Node: Priorities
\x7f103299
6972 Node: Breaking down tasks
\x7f104545
6973 Ref: Breaking down tasks-Footnote-1
\x7f105065
6974 Node: Checkboxes
\x7f105161
6975 Node: Timestamps
\x7f107916
6976 Node: Time stamps
\x7f108450
6977 Ref: Time stamps-Footnote-1
\x7f111944
6978 Ref: Time stamps-Footnote-2
\x7f112060
6979 Node: Creating timestamps
\x7f112215
6980 Node: The date/time prompt
\x7f114873
6981 Ref: The date/time prompt-Footnote-1
\x7f116834
6982 Node: Custom time format
\x7f116940
6983 Node: Repeating items
\x7f118498
6984 Node: Progress logging
\x7f120308
6985 Node: Closing items
\x7f120954
6986 Ref: Closing items-Footnote-1
\x7f121888
6987 Ref: Closing items-Footnote-2
\x7f121957
6988 Node: Tracking TODO state changes
\x7f122030
6989 Node: Clocking work time
\x7f122886
6990 Ref: Clocking work time-Footnote-1
\x7f126532
6991 Ref: Clocking work time-Footnote-2
\x7f126610
6992 Node: Tags
\x7f126736
6993 Node: Tag inheritance
\x7f127498
6994 Node: Setting tags
\x7f128435
6995 Ref: Setting tags-Footnote-1
\x7f132958
6996 Ref: Setting tags-Footnote-2
\x7f133070
6997 Node: Tag searches
\x7f133153
6998 Node: Agenda views
\x7f135864
6999 Node: Agenda files
\x7f137809
7000 Ref: Agenda files-Footnote-1
\x7f138775
7001 Ref: Agenda files-Footnote-2
\x7f138924
7002 Node: Agenda dispatcher
\x7f139117
7003 Node: Built-in agenda views
\x7f140808
7004 Node: Weekly/Daily agenda
\x7f141386
7005 Node: Global TODO list
\x7f143515
7006 Node: Matching headline tags
\x7f145688
7007 Node: Timeline
\x7f146759
7008 Node: Stuck projects
\x7f147425
7009 Node: Presentation and sorting
\x7f149124
7010 Node: Categories
\x7f149915
7011 Node: Time-of-day specifications
\x7f150579
7012 Node: Sorting of agenda items
\x7f152550
7013 Node: Agenda commands
\x7f153832
7014 Node: Custom agenda views
\x7f160561
7015 Node: Storing searches
\x7f161236
7016 Node: Block agenda
\x7f163148
7017 Node: Setting Options
\x7f164378
7018 Node: Batch processing
\x7f167090
7019 Node: Embedded LaTeX
\x7f168220
7020 Ref: Embedded LaTeX-Footnote-1
\x7f169312
7021 Node: Math symbols
\x7f169502
7022 Node: Subscripts and Superscripts
\x7f170267
7023 Node: LaTeX fragments
\x7f171111
7024 Ref: LaTeX fragments-Footnote-1
\x7f173219
7025 Node: Processing LaTeX fragments
\x7f173481
7026 Node: CDLaTeX mode
\x7f174427
7027 Ref: CDLaTeX mode-Footnote-1
\x7f176911
7028 Node: Exporting
\x7f177059
7029 Node: ASCII export
\x7f178373
7030 Node: HTML export
\x7f179663
7031 Node: Export commands
\x7f180282
7032 Node: Quoting HTML tags
\x7f181006
7033 Node: Links
\x7f181636
7034 Node: Images
\x7f182333
7035 Ref: Images-Footnote-1
\x7f183204
7036 Node: CSS support
\x7f183265
7037 Ref: CSS support-Footnote-1
\x7f184584
7038 Node: XOXO export
\x7f184697
7039 Node: iCalendar export
\x7f185136
7040 Node: Text interpretation
\x7f186355
7041 Node: Comment lines
\x7f186897
7042 Node: Initial text
\x7f187292
7043 Node: Enhancing text
\x7f188900
7044 Node: Export options
\x7f190718
7045 Node: Publishing
\x7f192611
7046 Ref: Publishing-Footnote-1
\x7f193407
7047 Node: Configuration
\x7f193603
7048 Node: Project alist
\x7f194321
7049 Node: Sources and destinations
\x7f195387
7050 Node: Selecting files
\x7f196117
7051 Node: Publishing action
\x7f196865
7052 Node: Publishing options
\x7f198098
7053 Node: Publishing links
\x7f200250
7054 Node: Project page index
\x7f201763
7055 Node: Sample configuration
\x7f202541
7056 Node: Simple example
\x7f203033
7057 Node: Complex example
\x7f203706
7058 Node: Triggering publication
\x7f205782
7059 Node: Miscellaneous
\x7f206467
7060 Node: Completion
\x7f207101
7061 Node: Customization
\x7f208572
7062 Node: In-buffer settings
\x7f209155
7063 Node: The very busy C-c C-c key
\x7f213632
7064 Node: Clean view
\x7f215276
7065 Node: TTY keys
\x7f217853
7066 Node: Interaction
\x7f219462
7067 Node: Cooperation
\x7f219859
7068 Node: Conflicts
\x7f222601
7069 Node: Bugs
\x7f224193
7070 Node: Extensions and Hacking
\x7f225689
7071 Node: Extensions
\x7f226285
7072 Node: Tables in arbitrary syntax
\x7f228232
7073 Node: Radio tables
\x7f229309
7074 Node: A LaTeX example
\x7f231812
7075 Ref: A LaTeX example-Footnote-1
\x7f235458
7076 Ref: A LaTeX example-Footnote-2
\x7f235606
7077 Node: Translator functions
\x7f236041
7078 Ref: Translator functions-Footnote-1
\x7f239150
7079 Node: Dynamic blocks
\x7f239238
7080 Node: Special agenda views
\x7f241210
7081 Ref: Special agenda views-Footnote-1
\x7f243489
7082 Node: History and Acknowledgments
\x7f243749
7083 Node: Index
\x7f249609
7084 Node: Key Index
\x7f280590