1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689 |
- \input texinfo
- setfilename ../../info/orgguide
- set VERSION 7.5
- c Use proper quote and backtick for code sections in PDF output
- set txicodequoteundirected
- c Version and Contact Info
- uref{http://orgmode.org,maintainers webpage}
- set MAINTAINER Carsten Dominik
- email{carsten at orgmode dot org}
- uref{mailto:carsten at orgmode dot org,contact the maintainer}
- finalout
- iftex
- hyphenation{time-stamp time-stamps time-stamp-ing time-stamp-ed}
- c Subheadings inside a table.
- ifinfo
- end ifinfo
- item
- end ifnotinfo
- macro seealso{text}
- b{Further reading}noindent \text\
- copying
- Copyright
- quotation
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.3 or
- any later version published by the Free Software Foundation; with no
- Invariant Sections, with the Front-Cover texts being ``A GNU Manual,''
- and with the Back-Cover Texts as in (a) below. A copy of the license
- is included in the section entitled ``GNU Free Documentation License.''
- (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
- modify this GNU manual. Buying copies from the FSF supports it in
- developing GNU and promoting software freedom.''
- This document is part of a collection distributed under the GNU Free
- Documentation License. If you want to distribute this document
- separately from the collection, you can do so by adding a copy of the
- license to the document, as described in section 6 of the license.
- end copying
- direntry
- * Org Mode Guide: (orgguide). Abbreviated Org-mode Manual
- titlepage
- subtitle Release
- author by Carsten Dominik
- page
- insertcopying
- c Output the table of contents at the beginning.
- ifnottex
- top Org Mode Guide
- end ifnottex
- detailmenu
- --- The Detailed Node Listing ---
- Introduction
- * Preface:: Welcome
- * Installation:: How to install a downloaded version of Org
- * Activation:: How to activate Org for certain buffers
- * Feedback:: Bug reports, ideas, patches etc.
- Document Structure
- * Outlines:: Org is based on Outline mode
- * Headlines:: How to typeset Org tree headlines
- * Visibility cycling:: Show and hide, much simplified
- * Motion:: Jumping to other headlines
- * Structure editing:: Changing sequence and level of headlines
- * Sparse trees:: Matches embedded in context
- * Plain lists:: Additional structure within an entry
- * Footnotes:: How footnotes are defined in Org's syntax
- Hyperlinks
- * Link format:: How links in Org are formatted
- * Internal links:: Links to other places in the current file
- * External links:: URL-like links to the world
- * Handling links:: Creating, inserting and following
- * Targeted links:: Point at a location in a file
- TODO Items
- * Using TODO states:: Setting and switching states
- * Multi-state workflows:: More than just on/off
- * Progress logging:: Dates and notes for progress
- * Priorities:: Some things are more important than others
- * Breaking down tasks:: Splitting a task into manageable pieces
- * Checkboxes:: Tick-off lists
- Progress logging
- * Closing items:: When was this entry marked DONE?
- * Tracking TODO state changes:: When did the status change?
- Tags
- * Tag inheritance:: Tags use the tree structure of the outline
- * Setting tags:: How to assign tags to a headline
- * Tag searches:: Searching for combinations of tags
- Dates and Times
- * Timestamps:: Assigning a time to a tree entry
- * Creating timestamps:: Commands which insert timestamps
- * Deadlines and scheduling:: Planning your work
- * Clocking work time:: Tracking how long you spend on a task
- Capture - Refile - Archive
- * Capture::
- * Refiling notes:: Moving a tree from one place to another
- * Archiving:: What to do with finished projects
- Capture
- * Setting up a capture location:: Where notes will be stored
- * Using capture:: Commands to invoke and terminate capture
- * Capture templates:: Define the outline of different note types
- Agenda Views
- * Agenda files:: Files being searched for agenda information
- * Agenda dispatcher:: Keyboard access to agenda views
- * Built-in agenda views:: What is available out of the box?
- * Agenda commands:: Remote editing of Org trees
- * Custom agenda views:: Defining special searches and views
- The built-in agenda views
- * Weekly/daily agenda:: The calendar page with current tasks
- * Global TODO list:: All unfinished action items
- * Matching tags and properties:: Structured information with fine-tuned search
- * Timeline:: Time-sorted view for single file
- * Search view:: Find entries by searching for text
- Markup for rich export
- * Structural markup elements:: The basic structure as seen by the exporter
- * Images and tables:: Tables and Images will be included
- * Literal examples:: Source code examples with special formatting
- * Include files:: Include additional files into a document
- * Embedded LaTeX:: LaTeX can be freely used inside Org documents
- Structural markup elements
- * Document title:: Where the title is taken from
- * Headings and sections:: The document structure as seen by the exporter
- * Table of contents:: The if and where of the table of contents
- * Paragraphs:: Paragraphs
- * Emphasis and monospace:: Bold, italic, etc.
- * Comment lines:: What will *not* be exported
- Exporting
- * Export options:: Per-file export settings
- * The export dispatcher:: How to access exporter commands
- * ASCII/Latin-1/UTF-8 export:: Exporting to flat files with encoding
- * HTML export:: Exporting to HTML
- * LaTeX and PDF export:: Exporting to La
- end detailmenu
- node Introduction, Document Structure, Top, Top
- menu
- * Preface:: Welcome
- * Installation:: How to install a downloaded version of Org
- * Activation:: How to activate Org for certain buffers
- * Feedback:: Bug reports, ideas, patches etc.
- node Preface, Installation, Introduction, Introduction
- i{This document is a much compressed derivative of the
- node Installation, Activation, Preface, Introduction
- b{Important:}
- ref{Activation}.}
- If you have downloaded Org from the Web, either as a distribution
- file{.tar} file, or as a Git archive, it is best to run it directly from
- the distribution directory. You need to add the
- file{.emacs}:
- end smallexample
- smallexample
- make
- file{.emacs}. It is needed so that
- Emacs can autoload functions that are located in files not immediately loaded
- when Org-mode starts.
- end smalllisp
- section Activation
- Add the following lines to your
- emph{global} keys for some commands --- please choose suitable keys
- yourself.
- end smalllisp
- With this setup, all files with extension
- node Feedback, , Activation, Introduction
- email{emacs-orgmodegnu.org}.
- For information on how to submit bug reports, see the main manual.
- chapter Document Structure
- Org is based on Outline mode and provides flexible commands to
- edit the structure of the document.
- end menu
- section Outlines
- Org is implemented on top of Outline mode. Outlines allow a
- document to be organized in a hierarchical structure, which (at least
- for me) is the best representation of notes and thoughts. An overview
- of this structure is achieved by folding (hiding) large parts of the
- document to show only the general document structure and the parts
- currently being worked on. Org greatly simplifies the use of
- outlines by compressing the entire show/hide functionality into a single
- command, key{TAB} key.
- section Headlines
- Headlines define the structure of an outline tree. The headlines in
- Org start with one or more stars, on the left margin
- code{org-special-ctrl-a/e} to configure special behavior
- of kbd{C-e} in headlines.}. For example:
- end smallexample
- ref{Clean view}, describes a setup to realize this.
- section Visibility cycling
- Outlines make it possible to hide parts of the text in the buffer.
- Org uses just two commands, bound to
- kbd{S-
- table
- item
- emph{Subtree cycling}: Rotate current subtree among the states
- end smallexample
- When called with a prefix argument (key{TAB}}) or with the shift
- key, global cycling is invoked.
- key{TAB} key{TAB}
- smallexample
- ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
- '--------------------------------------'
- item C-u C-u C-u
- end table
- When Emacs first visits an Org file, the global state is set to
- OVERVIEW, i.e.
- code{org-startup-folded}, or on a
- per-file basis by adding a startup keyword code{content},
- smallexample
- #+STARTUP: content
- node Motion, Structure editing, Visibility cycling, Document Structure
- table
- item C-c C-n
- Next heading.
- item C-c C-f
- Next heading same level.
- item C-c C-u
- Backward to higher level heading.
- node Structure editing, Sparse trees, Motion, Document Structure
- table
- item M-
- pxref{Plain lists}). When this command is
- used in the middle of a line, the line is split and the rest of the line
- becomes the new headline
- code{org-M-RET-may-split-line}.}.
- key{RET}
- Insert new TODO entry with same level as current heading.
- key{TAB}
- key{TAB} will cycle through reasonable
- levels.
- key{left}key{right}
- Promote/demote current heading by one level.
- key{left}key{right}
- Promote/demote the current subtree by one level.
- key{up}key{down}
- Move subtree up/down (swap with previous/next subtree of same
- level).
- xref{Refiling notes}.
- end table
- When there is an active region (Transient Mark mode), promotion and
- demotion work on all headlines in the region.
- section Sparse trees
- An important feature of Org mode is the ability to construct
- footnote{See also the
- variables code{org-show-following-heading},
- code{org-show-entry-below} for detailed
- control on how much context is shown around each match.}. Just try it out
- and you will see immediately how it works.
- Org mode contains several commands creating such trees, all these
- commands can be accessed through a dispatcher:
- kbd
- item C-c / r
- Occur. Prompts for a regexp and shows a sparse tree with all matches. Each
- match is also highlighted; the highlights disappear by pressing
- end table
- The other sparse tree commands select headings based on TODO keywords,
- tags, or properties and will be discussed later in this manual.
- section Plain lists
- Within an entry of the outline tree, hand-formatted lists can provide
- additional structure. They also provide a way to create lists of
- checkboxes (
- pxref{Exporting}) parses and formats them.
- Org knows ordered lists, unordered lists, and description lists.
- bullet
- emph{Unordered} list items start with samp{+}, or
- item
- samp{1.} or
- item
- samp{ :: } to separate the
- end itemize
- Items belonging to the same list must have the same indentation on the first
- line. An item ends before the next line that is indented like its
- bullet/number, or less. A list ends when all items are closed, or before two
- blank lines. An example:
- group
- ** Lord of the Rings
- My favorite scenes are (in this order)
- 1. The attack of the Rohirrim
- 2. Eowyn's fight with the witch king
- + this was already my favorite scene in the book
- + I really like Miranda Otto.
- Important actors in this film are:
- -
- b{Sean Austin} :: He plays Sam, Frodo's friend.
- end smallexample
- The following commands act on items when the cursor is in the first line of
- an item (the line with the bullet or number).
- kbd
- key{TAB}
- Items can be folded just like headline levels.
- key{RET}
- Insert new item at current level. With a prefix argument, force a new
- heading (
- item M-S-
- pxref{Checkboxes}).
- key{up}key{down}
- Move the item including subitems up/down (swap with previous/next item
- of same indentation). If the list is ordered, renumbering is
- automatic.
- key{left}key{right}
- Decrease/increase the indentation of an item, leaving children alone.
- key{left}key{right}
- Decrease/increase the indentation of the item, including subitems.
- pxref{Checkboxes}) in the item line, toggle the
- state of the checkbox. Also verify bullets and indentation consistency in
- the whole list.
- samp{-}, samp{*}, samp{1)}).
- node Footnotes, , Plain lists, Document Structure
- smallexample
- The Org homepage[fn:1] now looks a lot better than it used to.
- ...
- [fn:1] The link is: http://orgmode.org
- noindent The following commands handle footnotes:
- kbd
- item C-c C-c
- Jump between definition and reference.
- seealso{
- *
- node Tables, Hyperlinks, Document Structure, Top
- file{calc}
- package
- pxref{Top,Calc,,Calc,Gnu Emacs Calculator Manual}).
- ifnotinfo
- (see the Emacs Calculator manual for more information about the Emacs
- calculator).
- samp{|} as the first non-whitespace character is considered part of a
- table.
- smallexample
- | Name | Phone | Age |
- |-------+-------+-----|
- | Peter | 1234 | 17 |
- | Anna | 4321 | 25 |
- key{TAB} or
- kbd{C-c C-c} inside the table.
- key{RET} to the next row) and creates new table rows
- at the end of the table or before horizontal lines. The indentation
- of the table is set by the first line. Any line starting with
- smallexample
- |Name|Phone|Age|
- |-
- noindent and then press
- code{|Name|Phone|Age} followed by
- key{RET}}.
- When typing text into a field, Org treats
- key{Backspace}, and all character keys in a special way, so that
- inserting and deleting avoids shifting other fields. Also, when
- typing
- kbd{kbd{S-kbd{
- table
- tsubheading{Creation and conversion}
- *
- If there is no active region, this command creates an empty Org
- table. But it's easier just to start typing, like
- key{RET}}.
- item C-c C-c
- Re-align the table without moving the cursor.
- item
- c
- key{TAB}
- Re-align, move to previous field.
- item
- tsubheading{Column and row editing}
- key{left}
- key{right}
- Move the current column left/right.
- item M-S-
- c
- key{right}
- Insert a new column to the left of the cursor position.
- item M-
- itemx M-
- c
- key{up}
- Kill the current row or horizontal line.
- item M-S-
- c
- c
- key{RET}
- Insert a horizontal line below current row, and move the cursor into the row
- below that line.
- item C-c ^
- Sort the table lines in the region. The position of point indicates the
- column to be used for sorting, and the range of lines is the range
- between the nearest horizontal separator lines, or the entire table.
- seealso{
- *
- *
- *
- node Hyperlinks, TODO Items, Tables, Top
- menu
- * Link format:: How links in Org are formatted
- * Internal links:: Links to other places in the current file
- * External links:: URL-like links to the world
- * Handling links:: Creating, inserting and following
- * Targeted links:: Point at a location in a file
- node Link format, Internal links, Hyperlinks, Hyperlinks
- smallexample
- [[link][description]]
- end smallexample
- samp{description} is displayed instead of
- samp{link} is displayed instead of
- samp{link} part, use
- node Internal links, External links, Link format, Hyperlinks
- samp{[[#my-custom-id]]} which will link to the entry with the
- samp{my-custom-id}.
- Links such as samp{[[My Target][Find my target]]}
- lead to a text search in the current file for the corresponding target which
- looks like
- node External links, Handling links, Internal links, Hyperlinks
- smallexample
- http://www.astro.uva.nl/~dominik
- r{file, absolute path}
- /home/dominik/images/jupiter.jpg
- r{file, relative path}
- file:projects.org
- r{open file in doc-view mode at page NNN}
- id:B7423F4D-2E8A-471B-8810-C40F074717E9
- r{Usenet link}
- mailto:adentgalaxy.net
- r{VM folder link}
- vm:folder#id
- r{WANDERLUST message link}
- mhe:folder#id
- r{RMAIL message link}
- gnus:group#id
- r{BBDB link (with regexp)}
- irc:/irc.com/#emacs/bob
- r{Info node link (with encoded space)}
- pxref{Link
- format}), for example:
- end smallexample
- pxref{HTML export}) will inline the image as a clickable button. If there
- is no description at all and the link points to an image, that image will be
- inlined into the exported HTML file.
- section Handling links
- Org provides methods to create a link in the correct syntax, to
- insert it into an Org file, and to follow the link.
- kbd
- emph{global} command (you
- must create the key binding yourself) which can be used in any buffer to
- create a link. The link will be stored for later insertion into an Org
- buffer (see below).
- item C-c C-l
- Insert a link. This prompts for a link to be inserted into the buffer. You
- can just type a link, or use history keys key{down} to access
- stored links. You will be prompted for the description part of the link.
- When called with a
- c
- r{(with cursor on existing link)}
- When the cursor is on an existing link,
- c
- r{or} mouse-1
- item C-c &
- Jump back to a recorded position. A position is recorded by the
- commands following internal links, and by
- c
- node Targeted links, , Handling links, Hyperlinks
- smallexample
- [[file:~/code/main.c::255]]
- r{Find
- r{Find entry with custom id}
- seealso{
- node TODO Items, Tags, Hyperlinks, Top
- footnote{Of
- course, you can make a document that contains only long lists of TODO items,
- but this is not required.}. Instead, TODO items are an integral part of the
- notes file, because TODO items usually come up while taking notes! With Org
- mode, simply mark any entry in a tree as being a TODO item. In this way,
- information is not duplicated, and the entire context from which the TODO
- item emerged is always present.
- Of course, this technique for managing TODO items scatters them
- throughout your notes file. Org mode compensates for this by providing
- methods to give you an overview of all the things that you have to do.
- end menu
- section Using TODO states
- Any headline becomes a TODO item when it starts with the word
- smallexample
- *** TODO Write letter to Sam Fortune
- noindent
- The most important commands to work with TODO entries are:
- kbd
- smallexample
- ,-> (unmarked) -> TODO -> DONE --.
- '--------------------------------'
- kbd{t} command key (
- item S-r{/}
- item C-c / t
- View TODO items in a pxref{Sparse trees}). Folds the
- buffer, but shows all TODO items and the headings hierarchy above
- them.
- pxref{Agenda Views}) into a single buffer.
- item S-M-
- end table
- code{org-todo-state-tags-triggers} for details.
- section Multi-state workflows
- You can use TODO keywords to indicate different
- smalllisp
- (setq org-todo-keywords
- '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
- emph{need
- action}) from the DONE states (which need
- kbd{C-c C-t} will cycle an entry from TODO
- to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
- Sometimes you may want to use different sets of TODO keywords in
- parallel. For example, you may want to have the basic
- code{DONE}, but also a workflow for bug fixing, and a
- separate state indicating that an item has been canceled (so it is not
- DONE, but also does not require action). Your setup would then look
- like this:
- end smalllisp
- The keywords should all be different, this helps Org mode to keep track of
- which subsequence should be used for a given entry. The example also shows
- how to define keys for fast access of a particular state, by adding a letter
- in parenthesis after each keyword - you will be prompted for the key after
- smallexample
- #+TODO: TODO(t) | DONE(d)
- #+TODO: REPORT(r) BUG(b) KNOWNCAUSE(k) | FIXED(f)
- #+TODO: | CANCELED(c)
- kbd{C-c C-c} with the cursor still in
- the line to make the changes known to Org mode.
- section Progress logging
- Org mode can automatically record a timestamp and possibly a note when
- you mark a TODO item as DONE, or even each time you change the state of
- a TODO item. This system is highly configurable, settings can be on a
- per-keyword basis and can be localized to a file or even a subtree. For
- information on how to clock working time for a task, see
- menu
- * Closing items:: When was this entry marked DONE?
- * Tracking TODO state changes:: When did the status change?
- node Closing items, Tracking TODO state changes, Progress logging, Progress logging
- emph{when} a certain TODO
- item was finished. This is achieved with
- code{#+STARTUP: logdone}}.
- end smalllisp
- samp{CLOSED: [timestamp]} will be inserted just after
- the headline. If you want to record a note along with the timestamp,
- usecode{#+STARTUP:
- lognotedone}}
- end smalllisp
- samp{Closing Note} heading.
- unnumberedsubsec Tracking TODO state changes
- You might want to keep track of TODO state changes. You can either record
- just a timestamp, or a time-stamped note for a change. These records will be
- inserted after the headline as an itemized list. When taking a lot of notes,
- you might want to get the notes out of the way into a drawer. Customize the
- variable
- samp{!} (for a timestamp) and
- smallexample
- #+TODO: TODO(t) WAIT(w/!) | DONE(d!) CANCELED(c)
- noindent
- will define TODO keywords and fast access keys, and also request that a time
- is recorded when the entry is set to DONE, and that a note is recorded when
- switching to WAIT or CANCELED. The same syntax works also when setting
- node Priorities, Breaking down tasks, Progress logging, TODO Items
- emph{priority cookie} into the headline of a TODO item, like this
- end smallexample
- samp{A}, samp{C}.
- samp{B} the default if none is given. Priorities
- make a difference only in the agenda.
- kbd
- kbd{C-c ,}
- Set the priority of the current headline. Press samp{B} or
- key{SPC} to remove the cookie.
- item S-
- itemx S-
- end table
- section Breaking tasks down into subtasks
- It is often advisable to break down large tasks into smaller, manageable
- subtasks. You can do this by creating an outline tree below a TODO item,
- with detailed subtasks on the tree. To keep the overview over the fraction
- of subtasks that are already completed, insert either
- samp{[%]} anywhere in the headline. These cookies will be updated each time
- the TODO status of a child changes, or when pressing
- smallexample
- * Organize Party [33%]
- ** TODO Call people [1/2]
- *** TODO Peter
- *** DONE Sarah
- ** TODO Buy food
- ** DONE Talk to neighbor
- node Checkboxes, , Breaking down tasks, TODO Items
- pxref{Plain lists}) can be made into a checkbox
- by starting it with the string
- smallexample
- * TODO Organize party [1/3]
- - [-] call people [1/2]
- - [ ] Peter
- - [X] Sarah
- - [X] order food
- - [ ] think about what music to play
- noindent The following commands work with checkboxes:
- kbd
- item M-S-
- pxref{Plain lists}).
- seealso{
- *
- *
- node Tags, Properties, TODO Items, Top
- i{tags} to headlines. Org mode has extensive
- support for tags.
- Every headline can contain a list of tags; they occur at the end of the
- headline. Tags are normal words containing letters, numbers,
- samp{}. Tags must be preceded and followed by a single colon, e.g.,
- samp{:work:urgent:}.
- Tags will by default be in bold face with the same color as the headline.
- end menu
- section Tag inheritance
- smallexample
- * Meeting with the French group :work:
- ** Summary by Frank :boss:notes:
- *** TODO Prepare slides for him :action:
- noindent
- the final heading will have the tags samp{:boss:},
- samp{:action:} even though the final heading is not
- explicitly marked with those tags. You can also set tags that all entries in
- a file should inherit just as if these tags were defined in a hypothetical
- level zero that surrounds the entire file. Use a line like this
- kbd{C-c C-c} activates any
- changes in the line.}:
- end smallexample
- section Setting tags
- Tags can simply be typed into the buffer at the end of a headline.
- After a colon, key{TAB}} offers completion on tags. There is
- also a special command for inserting tags:
- kbd
- key{RET}, the tags will be inserted and aligned
- to kbd{C-u} prefix, all
- tags in the current buffer will be aligned to that column, just to make
- things look nice.
- kbd{C-c C-q}.
- emph{list of tags}. By
- default this list is constructed dynamically, containing all tags
- currently used in the buffer. You may also globally specify a hard list
- of tags with the variable
- smallexample
- #+TAGS: work home tennisclub
- #+TAGS: laptop car pc sailboat
- emph{fast tag selection}. This allows you to select and
- deselect tags with just a single key press. For this to work well you should
- assign unique letters to most of your commonly used tags. You can do this
- globally by configuring the variable
- file{.emacs} file. For example, you may find the need to tag many items in
- different files with
- smalllisp
- (setq org-tag-alist '(("work" . ?w) ("home" . ?h) ("laptop" . ?l)))
- noindent If the tag is only relevant to the file you are working on, then you
- can instead set the TAGS option line as:
- end smallexample
- section Tag searches
- Once a system of tags has been set up, it can be used to collect related
- information into special lists.
- kbd
- itemx C-c / m
- Create a sparse tree with all headlines matching a tags search. With a
- item C-c a m
- Create a global list of tag matches from all agenda files.
- item C-c a M
- Create a global list of tag matches from all agenda files, but check
- only TODO items and force checking subitems (see variable
- end table
- These commands all prompt for a match string which allows basic Boolean logic
- like samp{boss} and
- samp{project1}, or
- samp{Kathy} or
- ref{Matching tags and properties}.
- uref{http://orgmode.org/manual/Tags.html#Tags, Chapter 6 of the manual}
- uref{http://sachachua.com/wp/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/,
- Sacha Chua's article about tagging in Org-mode}}
- chapter Properties
- Properties are key-value pairs associates with and entry. They live in a
- special drawer with the name
- smallexample
- * CD collection
- ** Classic
- *** Goldberg Variations
- :PROPERTIES:
- :Title: Goldberg Variations
- :Composer: J.S. Bach
- :Publisher: Deutsche Grammophon
- :NDisks: 1
- :END:
- samp{:Xyz:}
- by setting a property
- emph{inherited}, so if you set it in a level 1 entry, it will apply to
- the entire tree. When allowed values are defined, setting the
- corresponding property becomes easier and is less prone to typing
- errors. For the example with the CD collection, we can predefine
- publishers and the number of disks in a box like this:
- end smallexample
- or globally using
- smallexample
- #+PROPERTY: NDisks_ALL 1 2 3 4
- table
- item C-c C-x p
- Set a property. This prompts for a property name and a value.
- end table
- To create sparse trees and special lists with selection based on properties,
- the same commands are used as for tag searches (
- ref{Matching tags and
- properties}.
- kbd
- seealso{
- *
- node Dates and Times, Capture - Refile - Archive, Properties, Top
- emph{timestamp} in Org mode.
- end menu
- section Timestamps
- A timestamp is a specification of a date (possibly with a time or a range of
- times) in a special format, either
- samp{<2003-09-16 Tue 09:39>} or
- pxref{Weekly/daily agenda}). We distinguish:
- b{Plain timestamp; Event; Appointment}
- smallexample
- * Meet Peter at the movies <2006-11-01 Wed 19:15>
- * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
- noindent *
- A timestamp may contain a
- smallexample
- * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
- noindent *
- For more complex date specifications, Org mode supports using the
- special sexp diary entries implemented in the Emacs calendar/diary
- package. For example
- end smallexample
- b{Time/Date range}
- samp{--} denote a range.
- end smallexample
- b{Inactive timestamp}
- emph{not} trigger an entry to show up in the agenda.
- end smallexample
- section Creating timestamps
- For Org mode to recognize timestamps, they need to be in the specific
- format. All commands listed below produce timestamps in the correct
- format.
- kbd
- c
- kbd{C-c .}, but insert an inactive timestamp that will not cause
- an agenda entry.
- item S-r{/}
- c
- key{up}key{down}
- Change the item under the cursor in a timestamp. The cursor can be on a
- year, month, day, hour or minute. When the timestamp contains a time range
- like
- end table
- When Org mode prompts for a date/time, it will accept any string containing
- some date and/or time information, and intelligently interpret the string,
- deriving defaults for unspecified information from the current date and time.
- You can also select a date in the pop-up calendar. See the manual for more
- information on how exactly the date/time prompt works.
- section Deadlines and scheduling
- A timestamp may be preceded by special keywords to facilitate planning:
- b{DEADLINE}
- table
- item C-c C-d
- Insert
- end table
- On the deadline date, the task will be listed in the agenda. In
- addition, the agenda for
- code{org-deadline-warning-days} before the due date, and continuing
- until the entry is marked DONE. An example:
- end smallexample
- b{SCHEDULED}
- i{planning to start working} on that task on the given
- date
- i{scheduling a meeting}, which is done in Org-mode by just inserting a time
- stamp without keyword.}.
- kbd
- samp{SCHEDULED} keyword along with a stamp, in the line following the
- headline.
- footnote{It will still
- be listed on that date after it has been marked DONE. If you don't like
- this, set the variable
- emph{today}, until the entry is marked DONE.
- I.e.
- smallexample
- *** TODO Call Trillian for a date on New Years Eve.
- SCHEDULED: <2004-12-25 Sat>
- smallexample
- ** TODO Pay the rent
- DEADLINE: <2005-10-01 Sat +1m>
- noindent
- the
- node Clocking work time, , Deadlines and scheduling, Dates and Times
- table
- item C-c C-x C-i
- Start the clock on the current item (clock-in). This inserts the CLOCK
- keyword together with a timestamp. When called with a
- c
- samp{=>
- HH:MM}.
- item C-c C-x C-x
- Cancel the current clock. This is useful if a clock was started by
- mistake, or if you ended up working on something else.
- kbd{C-u} prefix arg, select the target task from a list of recently clocked
- tasks.
- smallexample
- #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
- #+END: clocktable
- noindent
- For details about how to customize this view, see
- item C-c C-c
- Update dynamic block at point. The cursor needs to be in the
- end table
- The pxref{Timeline}) and in
- the agenda (
- seealso{
- *
- *
- node Capture - Refile - Archive, Agenda Views, Dates and Times, Top
- i{attachments}) in a special directory. Once in the system, tasks and
- projects need to be moved around. Moving completed project trees to an
- archive file keeps the system compact and fast.
- end menu
- section Capture
- Org's method for capturing new items is heavily inspired by John Wiegley
- excellent remember package. It lets you store quick notes with little
- interruption of your work flow. Org lets you define templates for new
- entries and associate them with different targets for storing notes.
- end menu
- unnumberedsubsec Setting up a capture location
- The following customization sets a default target
- ref{Capture templates}.} file for notes, and defines a global
- keykbd{C-c c} is only a suggestion.}
- for capturing new stuff.
- end example
- unnumberedsubsec Using capture
- kbd
- item C-c C-c
- Once you are done entering information into the capture buffer,
- item C-c C-w
- Finalize by moving the entry to a refile location (
- item C-c C-k
- Abort the capture process and return to the previous state.
- node Capture templates, , Using capture, Capture
- samp{Tasks} in file
- file{journal.org} you could
- use:
- end smallexample
- kbd{M-x org-capture}, Org will prompt for a key to select the
- template (if you have more than one template) and then prepare the buffer like
- var{link to where you were when initiating capture}]]
- noindent
- During expansion of the template, special footnote{If you
- need one of these sequences literally, escape the
- smallexample
- %a code{org-store-link}}
- %i
- r{timestamp, date only}
- %T
- r{like the above, but inactive timestamps}
- node Refiling notes, Archiving, Capture, Capture - Refile - Archive
- table
- item C-c C-w
- Refile the entry or region at point. This command offers possible locations
- for refiling the entry and lets you select one with completion. The item (or
- all items in the region) is filed below the target heading as a subitem.
- code{org-refile-targets} for details.
- item C-u C-u C-c C-w
- Jump to the location where
- end table
- section Archiving
- When a project represented by a (sub)tree is finished, you may want
- to move the tree out of the way and to stop it from contributing to the
- agenda. Archiving is important to keep your working files compact and global
- searches like the construction of agenda views fast.
- The most common archiving action is to move a project tree to another file,
- the archive file.
- kbd
- code{org-archive-default-command}.
- C-c $
- Archive the subtree starting at the cursor position to the location
- given by
- end table
- The default archive location is a file in the same directory as the
- current file, with the name derived by appending
- code{org-archive-location}. There is also an in-buffer option for
- setting this variable, for example
- end smallexample
- uref{http://orgmode.org/manual/Capture-_002d-Refile-_002d-Archive.html#Capture-_002d-Refile-_002d-Archive,
- Chapter 9 of the manual}
- uref{http://members.optusnet.com.au/~charles57/GTD/remember.html, Charles
- Cave's remember tutorial}
- uref{http://orgmode.org/worg/org-tutorials/org-protocol-custom-handler.php,
- Sebastian Rose's tutorial for capturing from a web browser}}*
- chapter Agenda Views
- Due to the way Org works, TODO items, time-stamped items, and tagged
- headlines can be scattered throughout a file or even a number of files. To
- get an overview of open action items, or of events that are important for a
- particular date, this information must be collected, sorted and displayed in
- an organized way. There are several different views, see below.
- The extracted information is displayed in a special
- ref{Agenda
- commands}.
- end menu
- section Agenda files
- The information to be shown is normally collected from all
- code{org-agenda-files}.
- kbd
- item C-c ]
- Remove current file from the list of agenda files.
- end table
- section The agenda dispatcher
- The views are created through a dispatcher, which should be bound to a
- global key---for example pxref{Installation}). After
- pressing
- table
- item a
- The calendar-like agenda (
- item t
- pxref{Global TODO list}).
- r{/} M
- A list of headlines matching a TAGS expression (
- item L
- The timeline view for the current buffer (
- item s
- A list of entries selected by a boolean expression of keywords
- and/or regular expressions that must or must not occur in the entry.
- node Built-in agenda views, Agenda commands, Agenda dispatcher, Agenda Views
- menu
- * Weekly/daily agenda:: The calendar page with current tasks
- * Global TODO list:: All unfinished action items
- * Matching tags and properties:: Structured information with fine-tuned search
- * Timeline:: Time-sorted view for single file
- * Search view:: Find entries by searching for text
- node Weekly/daily agenda, Global TODO list, Built-in agenda views, Built-in agenda views
- emph{agenda} is to act like a page of a
- paper agenda, showing all the tasks for the current week or day.
- kbd
- end table
- Emacs contains the calendar and diary by Edward M. Reingold. Org-mode
- understands the syntax of the diary and allows you to use diary sexp entries
- directly in Org files:
- footnote{Note that the order of the arguments (month, day, year) depends on the setting of
- end smallexample
- Org can interact with Emacs appointments notification facility. To add all
- the appointments of your agenda files, use the command
- node Global TODO list, Matching tags and properties, Weekly/daily agenda, Built-in agenda views
- ref{Agenda commands}.
- kbd
- pxref{Agenda Views}) into a single buffer.
- end table
- subsection Matching tags and properties
- If headlines in the agenda files are marked with pxref{Tags}),
- or have properties (
- kbd{C-c /
- m}. The commands available in the tags list are described in
- table
- item C-c a m
- Produce a list of all headlines that match a given set of tags. The
- command prompts for a selection criterion, which is a boolean logic
- expression with tags, like
- samp{work|home} (
- pxref{Agenda dispatcher}).
- kbd{C-c a m}, but only select headlines that are also TODO items.
- subsubheading Match syntax
- A search string can use Boolean operators samp{|} for
- OR. samp{|}. Parentheses are currently
- not implemented. Each element in the search is either a tag, a regular
- expression matching tags, or an expression like
- samp{-}, to select against it, and
- samp{&} is optional when
- samp{-} is present. Here are some examples, using only tags.
- samp
- samp{:work:}, but discard those also tagged
- item work|laptop
- Selects lines tagged samp{:laptop:}.
- samp{:laptop:} lines to be tagged also
- end table
- You may also test for properties at the same
- time as matching tags, see the manual for more information.
- subsection Timeline for a single file
- The timeline summarizes all time-stamped items from a single Org mode
- file in a
- table
- item C-c a L
- Show a time-sorted view of the Org file, with all time-stamped items.
- When called with a
- end table
- subsection Search view
- This agenda view is a general text search facility for Org mode entries.
- It is particularly useful to find notes.
- kbd
- end table
- For example, the search string
- samp{computer equipment} as a substring.
- Search view can also search for specific keywords in the entry, using Boolean
- logic. The search string {8\.11[bg]
- code{computer}
- and code{ethernet}, and which are also
- not matched by the regular expression
- code{org-agenda-text-search-extra-files}.
- section Commands in the agenda buffer
- Entries in the agenda buffer are linked back to the Org file or diary
- file where they originate. Commands are provided to show and jump to the
- original entry location, and to edit the Org files ``remotely'' from
- the agenda buffer. This is just a selection of the many commands, explore
- the
- table
- tsubheading{Motion}
- key{up} and
- item p
- Previous line (same as kbd{C-n}).
- item mouse-3
- key{SPC}
- Display the original location of the item in another window.
- With prefix arg, make sure that the entire entry is made visible in the
- outline, not only the heading.
- itemx
- kbd{mouse-1} will also works for this.
- itemx
- c
- item o
- Delete other windows.
- item d
- c
- r{and} b
- Go forward/backward in time to display the following
- c
- c
- c
- l
- Toggle Logbook mode. In Logbook mode, entries that were marked DONE while
- logging was on (variable
- kbd{C-u}
- prefix, show all possible logbook entries, including state changes.
- item r
- item s
- Save all Org buffers in the current Emacs session, and also the locations of
- IDs.
- item /
- Filter the current agenda view with respect to a tag. You are prompted for a
- letter to select a tag. Press
- item \
- Narrow the current agenda filter by an additional condition.
- item 0-9
- Digit argument.
- item t
- Change the TODO state of the item, in the agenda and in the
- org file.
- item C-k
- Delete the current agenda item along with the entire subtree belonging
- to it in the original Org file.
- item C-c C-w
- Refile the entry at point.
- item C-c C-x C-a r{or short}
- code{org-archive-default-command}.
- item C-c C-x C-s r{or short}
- c
- c
- c
- key{right} key{left}
- Change the timestamp associated with the current line by one day.
- item I
- Start the clock on the current item.
- item O / X
- Stop/cancel the previously started clock.
- end table
- section Custom agenda views
- The main application of custom searches is the definition of keyboard
- shortcuts for frequently used searches, either creating an agenda
- buffer, or a sparse tree (the latter covering of course only the current
- buffer).
- Custom commands are configured in the variable
- kbd{C-c a C}. You can also directly set it with
- Emacs Lisp in
- smalllisp
- end group
- noindent
- The initial string in each entry defines the keys you have to press after the
- dispatcher command
- table
- item C-c a w
- as a global search for TODO entries with
- item C-c a u
- as a global tags search for headlines marked
- samp{:urgent:}
- kbd{C-c a u}, but limiting the search to
- headlines that are also TODO items
- seealso{
- *
- *
- node Markup, Exporting, Agenda Views, Top
- TeX{}, or DocBook allow much richer formatting,
- Org mode has rules on how to prepare text for rich export. This section
- summarizes the markup rules used in an Org-mode buffer.
- end menu
- section Structural markup elements
- end menu
- subheading Document title
- smallexample
- #+TITLE: This is the title of the document
- node Headings and sections, Table of contents, Document title, Structural markup elements
- ref{Document
- Structure}, forms the basis for defining sections of the exported document.
- However, since the outline structure is also used for (for example) lists of
- tasks, only the first three outline levels will be used as headings. Deeper
- levels will become itemized lists. You can change the location of this
- switch globally by setting the variable
- smallexample
- #+OPTIONS: H:4
- node Table of contents, Paragraphs, Headings and sections, Structural markup elements
- smallexample
- #+OPTIONS: toc:2 (only to two levels in TOC)
- #+OPTIONS: toc:nil (no TOC at all)
- node Paragraphs, Emphasis and monospace, Table of contents, Structural markup elements
- samp{\\} at the end of a line.
- To keep the line breaks in a region, but otherwise use normal formatting, you
- can use this construct, which can also be used to format poetry.
- end smallexample
- When quoting a passage from another document, it is customary to format this
- as a paragraph that is indented on both the left and the right margin. You
- can include quotations in Org-mode documents like this:
- end smallexample
- If you would like to center some text, do it like this:
- end smallexample
- subheading Emphasis and monospace
- You can make words i{/italic/}, _underlined_,
- code{~verbatim~}, and, if you must,
- node Comment lines, , Emphasis and monospace, Structural markup elements
- samp{#} in column zero are treated as comments and will
- never be exported. If you want an indented line to be treated as a comment,
- start it with
- samp{COMMENT} will never be exported. Finally, regions surrounded by
- samp{#+END_COMMENT} will not be exported.
- kbd
- end table
- section Images and Tables
- For Org mode tables, the lines before the first horizontal separator line
- will become table header lines. You can use the following lines somewhere
- before the table to assign a caption and a label for cross references, and in
- the text you can refer to the object with {tab:basic-data
- smallexample
- #+CAPTION: This is the caption for the next table (or link)
- #+LABEL: tbl:basic-data
- | ... | ...|
- |-----|----|
- TeX{}, and DocBook) allow you to directly include
- images into the exported document. Org does this, if a link to an image
- files does not have a description part, for example
- smallexample
- #+CAPTION: This is the caption for the next figure link (or table)
- #+LABEL: fig:SED-HR4049
- [[./img/a.jpg]]
- node Literal examples, Include files, Images and tables, Markup
- smallexample
- #+BEGIN_EXAMPLE
- Some example from a text file.
- #+END_EXAMPLE
- smallexample
- Here is an example
- : Some example from a text file.
- smallexample
- #+BEGIN_SRC emacs-lisp
- (defun org-xor (a b)
- "Exclusive or."
- (if a (not b) b))
- #+END_SRC
- kbd{C-c '} to both enter and leave the editing buffer.
- section Include files
- During export, you can include the content of another file. For example, to
- include your
- smallexample
- #+INCLUDE: "~/.emacs" src emacs-lisp
- noindent
- The optional second and third parameter are the markup (e.g.samp{quote},
- samp{src}), and, if the markup is
- kbd{C-c '} will visit the included file.
- section Embedded La
- TeX{} code into
- its files. You can directly use TeX-like macros for special symbols, enter
- formulas and entire LaTeX environments.
- {sun
- {2{2
- {equation
- {b
- {equation
- end smallexample
- uref{http://orgmode.org/manual/LaTeX-fragments.html#LaTeX-fragments,special
- setup}, LaTeX snippets will be included as images when exporting to HTML.
- uref{http://orgmode.org/manual/Markup.html#Markup, Chapter 11 of the manual}}
- chapter Exporting
- Org-mode documents can be exported into a variety of other formats: ASCII
- export for inclusion into emails, HTML to publish on the web, La
- menu
- * Export options:: Per-file export settings
- * The export dispatcher:: How to access exporter commands
- * ASCII/Latin-1/UTF-8 export:: Exporting to flat files with encoding
- * HTML export:: Exporting to HTML
- * LaTeX and PDF export:: Exporting to La
- end menu
- section Export options
- The exporter recognizes special lines in the buffer which provide
- additional information. These lines may be put anywhere in the file.
- The whole set of lines can be inserted into the buffer with
- table
- item C-c C-e t
- Insert template with export options, see example below.
- smallexample
- #+TITLE: the title to be shown (default is the buffer name)
- #+AUTHOR: the author (default taken from
- code{format-time-string}
- #+EMAIL: his/her email address (default from
- : for the XHTML meta tag
- #+KEYWORDS: the page keywords, e.g.
- : code{org-export-default-language})
- #+TEXT: Some descriptive text to be inserted at the beginning.
- #+TEXT: Several lines may be given.
- #+OPTIONS: H:2 num:t toc:t \n:nil :t ::t |:t ^:t f:t TeX:t ...
- #+LINK_UP: the ``up'' link of an exported page
- #+LINK_HOME: the ``home'' link of an exported page
- #+LATEX_HEADER: extra line(s) for the LaTeX header, like \usepackage}
- node The export dispatcher, ASCII/Latin-1/UTF-8 export, Export options, Exporting
- table
- item C-c C-e
- Dispatcher for export and publishing commands.
- node ASCII/Latin-1/UTF-8 export, HTML export, The export dispatcher, Exporting
- table
- item C-c C-e a
- Export as ASCII file.
- r{and} C-c C-e N
- Like the above commands, but use Latin-1 encoding.
- r{and} C-c C-e U
- Like the above commands, but use UTF-8 encoding.
- node HTML export, LaTeX and PDF export, ASCII/Latin-1/UTF-8 export, Exporting
- table
- item C-c C-e h
- Export as HTML file
- item C-c C-e b
- Export as HTML file and immediately open it with a browser.
- smallexample
- #+HTML: Literal HTML code for export
- noindent or
- end smallexample
- section La
- table
- item C-c C-e l
- Export as Lafile{myfile.tex}.
- TeX{} and then process to PDF.
- TeX{} and then process to PDF, then open the resulting PDF file.
- TeX{} output uses the class
- code{#+LaTeX_CLASS: myclass} in your
- file. The class must be listed in
- TeX{} as described in
- TeX{} file. Similarly to the HTML exporter, you can use
- code{#+BEGIN_LaTeX ... #+END_LaTeX} construct to add
- verbatim LaTeX code.
- section DocBook export
- kbd
- end table
- Similarly to the HTML exporter, you can use
- code{#+BEGIN_DocBook ... #+END_DocBook} construct to add verbatim LaTeX
- code.
- section iCalendar export
- kbd
- file{.ics} file.
- code{org-agenda-files} and write it to the file given by
- end table
- uref{http://orgmode.org/manual/Exporting.html#Exporting, Chapter 12 of the manual}
- uref{http://orgmode.org/worg/org-tutorials/images-and-xhtml-export.php,
- Sebastian Rose's image handling tutorial}
- uref{http://orgmode.org/worg/org-tutorials/org-latex-export.php, Thomas
- Dye's LaTeX export tutorial}
- node Publishing, Working With Source Code, Exporting, Top
- emph{projects} composed of interlinked org
- files. You can also configure Org to automatically upload your exported HTML
- pages and related attachments, such as images and source code files, to a web
- server. For detailed instructions about setup, see the manual.
- Here is an example:
- end smalllisp
- kbd
- item C-c C-e P
- Publish the project containing the current file.
- item C-c C-e E
- Publish every project.
- seealso{
- *
- *
- node Working With Source Code, Miscellaneous, Publishing, Top
- subheading Structure of Code Blocks
- The structure of code blocks is as follows:
- end example
- Where
- code{<language>} specifies the language of the code block
- (e.g.code{emacs-lisp}, code{R},
- code{<switches>} can be used to control export of the code block,
- code{<body>} contains the actual source
- code.
- kbd{C-c '} to edit the current code block. This brings up a language
- major-mode edit buffer containing the body of the code block. Saving this
- buffer will write the new contents back to the Org buffer. Use
- subheading Evaluating code blocks
- Use
- code{emacs-lisp} code blocks, however support exists for evaluating blocks
- in many languages. For a complete list of supported languages see the
- manual. The following shows a code block and its results.
- end example
- kbd{C-c C-v t} to create pure source code files by extracting code from
- source blocks in the current buffer. This is referred to as ``tangling''---a
- term adopted from the literate programming community. During ``tangling'' of
- code blocks their bodies are expanded using
- code{:tangle} header argument, see the
- manual for details.
- kbd{C-c C-v l} to load the code blocks from an Org-mode files into the
- ``Library of Babel'', these blocks can then be evaluated from any Org-mode
- buffer. A collection of generally useful code blocks is distributed with
- Org-mode in
- subheading Header Arguments
- Many aspects of the evaluation and export of code blocks are controlled
- through header arguments. These can be specified globally, at the file
- level, at the outline subtree level, and at the individual code block level.
- The following describes some of the header arguments.
- code
- code{:var} header argument is used to pass arguments to code blocks.
- The values passed to arguments can be literal values, values from org-mode
- tables and literal example blocks, or the results of other named code blocks.
- code{:results} header argument controls the
- emph{type}, and
- code{output} or
- code{vector},
- code{file} code{html} code{code} specify the
- type of the results of the code block which dictates how they will be
- incorporated into the Org-mode buffer. Values of
- code{replace}, code{append} specify handling of code
- block results, specifically if and how the results should be inserted into
- the Org-mode buffer.
- code{:session} will cause the code block to be
- evaluated in a persistent interactive inferior process in Emacs. This allows
- for persisting state between code block evaluations, and for manual
- inspection of the results of evaluation.
- emph{code} or the
- code{:results} header
- argument to code{results} code{both}.
- code{:tangle yes} will cause a code block's contents to
- be tangled to a file named after the filename of the Org-mode buffer. An
- alternate file name can be specified with
- item :cache
- A header argument of
- item :noweb
- A header argument of
- item :file
- Code blocks which output results to files (e.g.
- code{:file filename} header argument in which case the results
- are saved to the named file, and a link to the file is inserted into the
- Org-mode buffer.
- seealso{
- *
- node Miscellaneous, , Working With Source Code, Top
- menu
- * Completion:: M-TAB knows what you need
- * Clean view:: Getting rid of leading stars in the outline
- * MobileOrg:: Org-mode on the iPhone
- node Completion, Clean view, Miscellaneous, Miscellaneous
- kbd{M-
- TeX{} symbols after
- samp{:} in a
- headline.
- section A cleaner outline view
- Some people find it noisy and distracting that the Org headlines start with a
- potentially large number of stars, and that text below the headlines is not
- indented. While this is no problem when writing a
- emph{list-oriented} outline, indented structure is a lot cleaner:
- group
- * Top level headline | * Top level headline
- ** Second level | * Second level
- *** 3rd level | * 3rd level
- some text | some text
- *** 3rd level | * 3rd level
- more text | more text
- * Another top level headline | * Another top level headline
- end smallexample
- code{org-indent-mode}, which will prepend intangible space to each line.
- You can turn on
- code{org-startup-indented}, or you can turn it on for individual
- files using
- end smallexample
- If you want a similar effect in earlier version of Emacs and/or Org, or if
- you want the indentation to be hard space characters so that the plain text
- file looks as similar as possible to the Emacs display, Org supports you by
- helping to indent (with
- smallexample
- #+STARTUP: hidestars odd
- node MobileOrg, , Clean view, Miscellaneous
- i{MobileOrg} is an application originally developed for the
- seealso{
- *
- *
- bye
- end ignore
- c fill-column: 77
- c LocalWords: webdavhost pre
|