(calendar-increment-month): Typo in last change.
[emacs.git] / etc / orgcard.tex
blob064d9decc955fcd2a3942063d56767903ad36064
1 % Reference Card for Org Mode 4.04
3 %**start of header
4 \newcount\columnsperpage
6 % This file can be printed with 1, 2, or 3 columns per page (see below).
7 % At the moment this card works quite nicely in 3 column format and
8 % currently takes 2 full pages. It is thus suited to producing one
9 % double-side page when printed.
11 % There are a couple of tweaks in the format of this card which make it work
12 % slightly better on A4 paper. The changes due, I think, to Stephen Eglen,
13 % are commented below. Revert the changes if you want letter sized paper.
15 % Try running something like
16 % tex org-mode-ref.tex; dvips -t landscape org-mode-ref.dvi
17 % to print the card
19 \columnsperpage=3
21 % Copyright (C) 2005, 2006 Free Software Foundation, Inc.
22 % Copyright (c) 2004 Philip Rooke
24 % GNU Emacs is free software; you can redistribute it and/or modify
25 % it under the terms of the GNU General Public License as published by
26 % the Free Software Foundation; either version 2, or (at your option)
27 % any later version.
29 % GNU Emacs is distributed in the hope that it will be useful,
30 % but WITHOUT ANY WARRANTY; without even the implied warranty of
31 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 % GNU General Public License for more details.
34 % You should have received a copy of the GNU General Public License
35 % along with GNU Emacs; see the file COPYING. If not, write to
36 % the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
37 % Boston, MA 02111-1307, USA.
39 % This file is intended to be processed by plain TeX (TeX82).
41 % The final reference card has six columns, three on each side.
42 % This file can be used to produce it in any of three ways:
43 % 1 column per page
44 % produces six separate pages, each of which needs to be reduced to 80%.
45 % This gives the best resolution.
46 % 2 columns per page
47 % produces three already-reduced pages.
48 % You will still need to cut and paste.
49 % 3 columns per page
50 % produces two pages which must be printed sideways to make a
51 % ready-to-use 8.5 x 11 inch reference card.
52 % For this you need a dvi device driver that can print sideways.
53 % Which mode to use is controlled by setting \columnsperpage above.
55 % Author:
56 % Stephen Gildea
57 % Internet: gildea@stop.mail-abuse.org
59 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
60 % for their many good ideas.
62 \def\orgversionnumber{4.04}
63 \def\year{2006}
65 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
66 \centerline{\small \copyright\ 2004, 2005, 2006\ Free Software Foundation, Inc.
67 Permissions on back. v\orgversionnumber}}
69 \def\copyrightnotice{
70 \vskip 1ex plus 100 fill\begingroup\small
71 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
72 \centerline{v\orgversionnumber{} for Org-Mode \orgversionnumber{}, \year}
73 \centerline{Author: Philip Rooke}
74 \centerline{based on refcard design and format by Stephen Gildea}
76 Permission is granted to make and distribute copies of
77 this card provided the copyright notice and this permission notice
78 are preserved on all copies.
80 \endgroup}
82 % make \bye not \outer so that the \def\bye in the \else clause below
83 % can be scanned without complaint.
84 \def\bye{\par\vfill\supereject\end}
86 \newdimen\intercolumnskip %horizontal space between columns
87 \newbox\columna %boxes to hold columns already built
88 \newbox\columnb
90 \def\ncolumns{\the\columnsperpage}
92 \message{[\ncolumns\space
93 column\if 1\ncolumns\else s\fi\space per page]}
95 \def\scaledmag#1{ scaled \magstep #1}
97 % This multi-way format was designed by Stephen Gildea October 1986.
98 % Note that the 1-column format is fontfamily-independent.
99 \if 1\ncolumns %one-column format uses normal size
100 \hsize 4in
101 \vsize 10in
102 \voffset -.7in
103 \font\titlefont=\fontname\tenbf \scaledmag3
104 \font\headingfont=\fontname\tenbf \scaledmag2
105 \font\smallfont=\fontname\sevenrm
106 \font\smallsy=\fontname\sevensy
108 \footline{\hss\folio}
109 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
110 \else %2 or 3 columns uses prereduced size
111 \hsize 3.2in
113 % FIXME - Try to make things more A4 friendly
114 % \vsize 7.95in
115 \vsize 7.65in
116 % \hoffset -.75in
117 \hoffset -.25in
118 \voffset -.745in
119 \font\titlefont=cmbx10 \scaledmag2
120 \font\headingfont=cmbx10 \scaledmag1
121 \font\smallfont=cmr6
122 \font\smallsy=cmsy6
123 \font\eightrm=cmr8
124 \font\eightbf=cmbx8
125 \font\eightit=cmti8
126 \font\eighttt=cmtt8
127 \font\eightmi=cmmi8
128 \font\eightsy=cmsy8
129 \textfont0=\eightrm
130 \textfont1=\eightmi
131 \textfont2=\eightsy
132 \def\rm{\eightrm}
133 \def\bf{\eightbf}
134 \def\it{\eightit}
135 \def\tt{\eighttt}
137 % FIXME - Try to make things more A4 friendly
138 % \normalbaselineskip=.8\normalbaselineskip
139 \normalbaselineskip=.7\normalbaselineskip
140 \normallineskip=.8\normallineskip
141 \normallineskiplimit=.8\normallineskiplimit
142 \normalbaselines\rm %make definitions take effect
144 \if 2\ncolumns
145 \let\maxcolumn=b
146 \footline{\hss\rm\folio\hss}
147 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
148 \else \if 3\ncolumns
149 \let\maxcolumn=c
150 \nopagenumbers
151 \else
152 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
153 \errmessage{Illegal number of columns per page}
154 \fi\fi
156 \intercolumnskip=.46in
157 \def\abc{a}
158 \output={% %see The TeXbook page 257
159 % This next line is useful when designing the layout.
160 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
161 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
162 \else\if a\abc
163 \global\setbox\columna\columnbox \global\def\abc{b}
164 %% in case we never use \columnb (two-column mode)
165 \global\setbox\columnb\hbox to -\intercolumnskip{}
166 \else
167 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
168 \def\multicolumnformat{\shipout\vbox{\makeheadline
169 \hbox{\box\columna\hskip\intercolumnskip
170 \box\columnb\hskip\intercolumnskip\columnbox}
171 \makefootline}\advancepageno}
172 \def\columnbox{\leftline{\pagebody}}
174 \def\bye{\par\vfill\supereject
175 \if a\abc \else\null\vfill\eject\fi
176 \if a\abc \else\null\vfill\eject\fi
177 \end}
180 % we won't be using math mode much, so redefine some of the characters
181 % we might want to talk about
182 %\catcode`\^=12
183 \catcode`\_=12
185 % we also need the tilde, for file names.
186 \catcode`\~=12
188 \chardef\\=`\\
189 \chardef\{=`\{
190 \chardef\}=`\}
192 \hyphenation{mini-buf-fer}
194 \parindent 0pt
195 \parskip 1ex plus .5ex minus .5ex
197 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
199 % newcolumn - force a new column. Use sparingly, probably only for
200 % the first column of a page, which should have a title anyway.
201 \outer\def\newcolumn{\vfill\eject}
203 % title - page title. Argument is title text.
204 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
206 % section - new major section. Argument is section name.
207 \outer\def\section#1{\par\filbreak
208 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
209 \vskip 2ex plus 1ex minus 1.5ex}
211 \newdimen\keyindent
213 % beginindentedkeys...endindentedkeys - key definitions will be
214 % indented, but running text, typically used as headings to group
215 % definitions, will not.
216 \def\beginindentedkeys{\keyindent=1em}
217 \def\endindentedkeys{\keyindent=0em}
218 \endindentedkeys
220 % paralign - begin paragraph containing an alignment.
221 % If an \halign is entered while in vertical mode, a parskip is never
222 % inserted. Using \paralign instead of \halign solves this problem.
223 \def\paralign{\vskip\parskip\halign}
225 % \<...> - surrounds a variable name in a code example
226 \def\<#1>{{\it #1\/}}
228 % kbd - argument is characters typed literally. Like the Texinfo command.
229 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
231 % beginexample...endexample - surrounds literal text, such a code example.
232 % typeset in a typewriter font with line breaks preserved
233 \def\beginexample{\par\leavevmode\begingroup
234 \obeylines\obeyspaces\parskip0pt\tt}
235 {\obeyspaces\global\let =\ }
236 \def\endexample{\endgroup}
238 % key - definition of a key.
239 % \key{description of key}{key-name}
240 % prints the description left-justified, and the key-name in a \kbd
241 % form near the right margin.
242 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
243 {\hsize=.75\hsize\rightskip=1em
244 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
246 \newbox\metaxbox
247 \setbox\metaxbox\hbox{\kbd{M-x }}
248 \newdimen\metaxwidth
249 \metaxwidth=\wd\metaxbox
251 % metax - definition of a M-x command.
252 % \metax{description of command}{M-x command-name}
253 % Tries to justify the beginning of the command name at the same place
254 % as \key starts the key name. (The "M-x " sticks out to the left.)
255 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
256 {\hskip\keyindent\relax#1\hfil}%
257 \hskip -\metaxwidth minus 1fil
258 \kbd{#2}\hfil}}
260 % threecol - like "key" but with two key names.
261 % for example, one for doing the action backward, and one for forward.
262 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
263 &\kbd{#3}\hfil\quad\cr}
265 %**end of header
268 \title{Org-Mode Reference Card (1/2)}
270 \centerline{(for version \orgversionnumber)}
272 \section{Getting Started}
274 %Put the following in your \kbd{~/.emacs}$^1$
275 \vskip -1mm
276 \beginexample%
277 %(autoload 'org-mode "org" "Org mode" t)
278 %(autoload 'org-diary "org" "Org mode diary entries")
279 %(autoload 'org-agenda "org" "Agenda from Org files" t)
280 %(autoload 'org-todo-list "org" "Global TODO list" t)
281 %(autoload 'org-store-link "org" "Store org link" t)
282 %(autoload 'orgtbl-mode "org" "Orgtbl minor mode" t)
283 %(autoload 'turn-on-orgtbl "org" "Orgtbl minor mode")
284 (add-to-list 'auto-mode-alist '("\\\\.org\$" . org-mode))
285 (define-key global-map "\\C-cl" 'org-store-link)$^2$
286 (define-key global-map "\\C-ca" 'org-agenda)$^2$
287 \endexample
289 \metax{For the many customization options try}{M-x org-customize}
290 \metax{To read the on-line documentation try}{M-x org-info}
292 \section{Visibility Cycling}
294 \key{rotate current subtree between states}{TAB}
295 \key{rotate entire buffer between states}{S-TAB}
296 \key{show the whole file}{C-c C-a}
297 %\key{show branches}{C-c C-k}
299 \section{Motion}
301 \key{next heading}{C-c C-n}
302 \key{previous heading}{C-c C-p}
303 \key{next heading, same level}{C-c C-f}
304 \key{previous heading, same level}{C-c C-b}
305 \key{backward to higher level heading}{C-c C-u}
306 \key{jump to another place in document}{C-c C-j}
308 \section{Structure Editing}
310 \key{insert new heading/item at current level}{M-RET}
311 \key{insert new TODO entry}{M-S-RET}
313 \key{promote current heading up one level}{M-LEFT}
314 \key{demote current heading down one level}{M-RIGHT}
315 \key{promote current subtree up one level}{M-S-LEFT}
316 \key{demote current subtree down one level}{M-S-RIGHT}
318 \key{move subtree/list item up}{M-S-UP}
319 \key{move subtree/list item down}{M-S-DOWN}
320 \key{kill subtree}{C-c C-x C-w}
321 \key{copy subtree}{C-c C-x M-w}
322 \key{yank subtree}{C-c C-x C-y}
324 \key{archive subtree}{C-c \$}
325 To set archive location for current file, add a line like$^3$:
326 \vskip -1mm
327 \beginexample%
328 \#+ARCHIVE: archfile::* Archived Tasks
329 \endexample
331 \section{Filtering and Sparse Trees}
333 \key{show sparse tree for all matches of a regexp}{C-c /}
334 \key{view TODO's in sparse tree}{C-c C-v}
335 \key{global TODO list in agenda mode}{C-c t$^2$}
336 \key{create sparse tree with all deadlines due}{C-c C-w}
337 \key{time sorted view of current org file}{C-c C-r}
338 %\key{agenda for the week}{C-c a$^2$}
339 %\key{agenda for date at cursor}{C-c C-o}
341 \section{Tags}
343 \key{set tags for current heading}{C-c C-c}
344 \key{realign tags in all headings}{C-u C-c C-c}
345 \key{create sparse tree with matching tags}{C-c \\}
346 \key{globally (agenda) match tags at cursor}{C-c C-o}
348 \section{TODO Items}
350 \key{rotate the state of the current item}{C-c C-t}
351 \key{view TODO items in a sparse tree}{C-c C-v}
352 \key{view 3rd TODO keyword's sparse tree}{C-3 C-c C-v}
354 \key{set the priority of the current item}{C-c , [ABC]}
355 \key{remove priority cookie from current item}{C-c , SPC}
356 \key{raise priority of current item}{S-UP$^4$}
357 \key{lower priority of current item}{S-DOWN$^4$}
359 \vskip 1mm
360 per-file TODO workflow states: add line(s) like$^3$:
361 \vskip -1mm
362 \beginexample%
363 \#+SEQ_TODO: TODO PROCRASTINATE BLUFF DONE
364 \endexample
365 \vskip -1mm
366 per-file TODO keywords: add line(s) like$^3$:
367 \vskip -1mm
368 \beginexample%
369 \#+TYP_TODO: Phil home work DONE
370 \endexample
372 \section{Timestamps}
374 \key{prompt for date and insert timestamp}{C-c .}
375 \key{like \kbd{C-c} . but insert date and time format}{C-u C-c .}
376 \key{Like \kbd{C-c .} but make stamp inactive}{C-c !} % FIXME
377 \key{insert DEADLINE timestamp}{C-c C-d}
378 \key{insert SCHEDULED timestamp}{C-c C-s}
379 \key{create sparse tree with all deadlines due}{C-c C-w}
380 \key{the time between 2 dates in a time range}{C-c C-y}
381 \key{change timestamp at cursor by $-1$ day}{S-LEFT$^4$}
382 \key{change timestamp at cursor by $+1$ day}{S-RIGHT$^4$}
383 \key{change year/month/day at cursor by $-1$}{S-DOWN$^4$}
384 \key{change year/month/day at cursor by $+1$}{S-UP$^4$}
385 \key{access the calendar for the current date}{C-c >}
386 \key{insert timestamp matching date in calendar}{C-c <}
387 \key{access agenda for current date}{C-c C-o}
388 \key{Select date while prompted}{mouse-1/RET}
389 %\key{... select date in calendar}{mouse-1/RET}
390 %\key{... scroll calendar back/forward one month}{< / >}
391 %\key{... forward/backward one day}{S-LEFT/RIGHT}
392 %\key{... forward/backward one week}{S-UP/DOWN}
393 %\key{... forward/backward one month}{M-S-LEFT/RIGT}
395 \section{Links}
397 \key{globally store link to the current location}{C-c l$^2$}
398 \key{insert a link (TAB completes stored links)}{C-c C-l}
399 \key{insert file link with file name completion}{C-u C-c C-l}
401 \key{open link at point}{C-c C-o}
402 \key{open file links in emacs}{C-u C-c C-o}
403 \key{open link at point}{mouse-2}
404 \key{open file links in emacs}{mouse-3}
406 {\bf Link types}
408 \key{\kbd{*CamelCaseWord}}{\rm search headline}
409 \key{\kbd{CamelCaseWord}}{\rm search in buffer}
410 \key{\kbd{<file:/home/dominik/img/mars.jpg>}}{\rm file, absolute}
411 \key{\kbd{<file:papers/last.pdf>}}{\rm file, relative}
412 \key{\kbd{<file:~/code/main.c:255>}}{\rm file with line nr.}
413 \key{\kbd{<file:projects.org::*CamelCaseWord>}}{\rm search headline}
414 \key{\kbd{<file:projects.org::find me>}}{\rm search string}
415 \key{\kbd{<file:projects.org::/regexp/>}}{\rm search regexp}
416 \key{\kbd{<http://www.astro.uva.nl/~dominik>}}{\rm on the web}
417 \key{\kbd{<mailto:adent@galaxy.net>}}{\rm EMail address}
418 \key{\kbd{<news:comp.emacs>}}{\rm Usenet group}
419 \key{\kbd{<bbdb:Richard Stallman>}}{\rm BBDB person}
420 \key{\kbd{<shell:ls *.org>}}{\rm shell command}
421 \key{\kbd{<gnus:group>}}{\rm GNUS group}
422 \key{\kbd{<gnus:group\#id>}}{\rm GNUS message}
423 \key{\kbd{<vm:folder>}}{\rm VM folder}
424 \key{\kbd{<vm:folder\#id>}}{\rm VM message}
425 % FIXME: would like to get this back in.
426 %\key{\kbd{<vm://myself@some.where.org/folder\#id>}}{\rm VM remote}
427 Wanderlust \kbd{<wl:...>} and RMAIL \kbd{<rmail:...>} like VM
428 %\key{\kbd{<wl:folder>}}{\rm Wanderlust f.}
429 %\key{\kbd{<wl:folder\#id>}}{\rm Wanderlust m.}
430 %\key{\kbd{<rmail:folder>}}{\rm RMAIL folder}
431 %\key{\kbd{<rmail:folder\#id>}}{\rm RMAIL msg}
433 \section{Tables}
435 %Org-mode has its own built-in intuitive table editor with unique
436 %capabilities.
438 {\bf Creating a table}
440 \metax{insert a new Org-mode table}{M-x org-table-create}
441 \metax{... or just start typing, e.g.}{|Name|Phone|Age RET |- TAB}
442 \key{convert region to table}{C-c C-c}
443 \key{... separator at least 3 spaces}{C-3 C-c C-c}
444 %\key{... prompt for separator regexp}{C-u C-c C-c}
446 {\bf Commands available inside tables}
448 The following commands work when the cursor is {\it inside a table}.
449 Outside of tables, the same keys may have other functionality.
451 {\bf Re-aligning and field motion}
453 \key{re-align the table without moving the cursor}{C-c C-c}
454 \key{re-align the table, move to next field}{TAB}
455 \key{move to previous field}{S-TAB}
456 \key{re-align the table, move to next row}{RET}
458 {\bf Row and column editing}
460 \key{move the current column left}{M-LEFT}
461 \key{move the current column right}{M-RIGHT}
462 \key{kill the current column}{M-S-LEFT}
463 \key{insert new column to left of cursor position}{M-S-RIGHT}
465 \key{move the current row up}{M-UP}
466 \key{move the current row down}{M-DOWN}
467 \key{kill the current row or horizontal line}{M-S-UP}
468 \key{insert new row above the current row}{M-S-DOWN}
469 \key{insert horizontal line below the current row}{C-c -}
470 \key{insert horizontal line above the current row}{C-u C-c -}
471 \key{sort lines in region}{C-c \^{}}
473 {\bf Regions}
475 \key{cut rectangular region}{C-c C-x C-w}
476 \key{copy rectangular region}{C-c C-x M-w}
477 \key{paste rectangular region}{C-c C-x C-y}
478 \key{fill paragraph across selected cells}{C-c C-q}
480 {\bf Calculations}
482 These need the Emacs calc package installed.
484 \key{set and eval column formula}{C-c =}
485 \key{set and eval named-field formula}{C-u C-c =}
486 \key{edit formulas in separate buffer}{C-c '}
487 \key{re-apply all stored equations to current line}{C-c *}
488 \key{re-apply all stored equations to entire table}{C-u C-c *}
490 \kbd{TAB}, \kbd{RET} and \kbd{C-c C-c} trigger automatic recalculation
491 in lines starting with: {\tt | \# |}.
493 \key{rotate calculation mark through \# * ! \^ \_ \$}{C-\#}
495 \key{display column number cursor is in}{C-c ?}
496 \key{sum numbers in current column/rectangle}{C-c +}
497 \key{copy down with increment}{S-RET$^4$}
499 A formula can also be typed directly into into a field and will
500 executed by \kbd{TAB}, \kbd{RET} and \kbd{C-c C-c}. A leading \kbd{=}
501 introduces a column formula, \kbd{:=} a named-field formula.
503 \key{Example: Add Col1 and Col2}{=\$1+\$2}
504 \key{... with printf format specification}{=\$1+\$2;\%.2f}
505 \key{... with constants from constants.el}{=\$1/\$c/\$cm}
506 \key{sum from 3rd hline above to here}{:=vsum(\&III)}
507 \key{apply current column formula}{=}
509 {\bf Miscellaneous}
511 \key{toggle visibility of vertical lines}{C-c |}
512 \metax{export as tab-separated file}{M-x org-table-export}
513 \metax{import tab-separated file}{M-x org-table-import}
515 {\bf Tables created with the \kbd{table.el} package}
517 \key{insert a new \kbd{table.el} table}{C-c ~}
518 \key{recognize existing table.el table}{C-c C-c}
519 \key{convert table (Org-mode $\leftrightarrow$ table.el)}{C-c ~}
521 \newcolumn
522 \title{Org-Mode Reference Card (2/2)}
524 \centerline{(for version \orgversionnumber)}
526 \section{Agenda Views}
528 \key{add/move current file to front of agenda}{C-c [}
529 \key{remove current file from your agenda}{C-c ]}
530 \key{cycle through agenda file list}{C-,}
532 \key{compile agenda for the current week}{C-c a a$^2$}
533 \key{compile global TODO list}{C-c a t$^2$}
534 \key{compile TODO list for specific keyword}{C-c a T$^2$}
535 \key{match tags in agenda files}{C-c a m$^2$}
536 \key{agenda for date at cursor}{C-c C-o}
537 \key{show timeline of current org file}{C-c C-r}
539 \vskip 1mm
540 To set categories, add lines like$^3$:
541 \vskip -1mm
542 \beginexample%
543 \#+CATEGORY: MyCateg
544 \endexample
546 {\bf Commands available in an agenda buffer}
548 {\bf View Org file}
550 \key{show original location of item}{SPC}
551 \key{... also available with}{mouse-3}
552 \key{show and recenter window}{L}
553 \key{goto original location in other window}{TAB}
554 \key{... also available with}{mouse-2}
555 \key{goto original location, delete other windows}{RET}
556 \key{toggle follow-mode}{f}
558 {\bf Change display}
560 \key{delete other windows}{o}
561 \key{switch to daily / weekly view}{d / w}
562 \key{toggle inclusion of diary entries}{D}
563 \key{toggle time grid for daily schedule}{g}
564 \key{toggle display of logbook entries}{l}
565 \key{refresh agenda buffer with any changes}{r}
566 \key{display the following \kbd{org-agenda-ndays}}{RIGHT}
567 \key{display the previous \kbd{org-agenda-ndays}}{LEFT}
568 \key{goto today}{.}
570 {\bf Remote editing}
572 \key{digit argument}{0-9}
573 \key{change state of current TODO item}{t}
574 \key{show tags of current headline}{T}
575 \key{set tags for current headline}{:}
576 \key{set priority of current item}{p}
577 \key{raise/lower priority of current item}{S-UP/DOWN$^4$}
578 %\key{lower priority of current item}{S-DOWN$^4$}
579 \key{display weighted priority of current item}{P}
580 \key{change timestamp to one day earlier/later}{S-LEFT/RIGHT$^4$}
581 %\key{change timestamp to one day earlier}{S-LEFT$^4$}
582 %\key{change timestamp to one day later}{S-RIGHT$^4$}
583 \key{change timestamp to today}{>}
584 \key{insert new entry into diary}{i}
586 {\bf Calendar commands}
588 \key{find agenda cursor date in calendar}{c}
589 \key{compute agenda for calendar cursor date}{c}
590 \key{show phases of the moon}{M}
591 \key{show sunrise/sunset times}{S}
592 \key{show holidays}{H}
593 \key{convert date to other calendars}{C}
595 {\bf Quit and Exit}
597 \key{quit agenda, remove agenda buffer}{q}
598 \key{exit agenda, remove all agenda buffers}{x}
600 \section{Exporting}
602 Exporting creates files with extensions {\it .txt\/} and {\it .html\/}
603 in the current directory.
605 \key{export as ASCII file}{C-c C-x a}
606 \key{export visible text only (e.g. for printing)}{C-c C-x v}
607 \key{export as HTML file}{C-c C-x h}
608 \key{export as HTML and open in browser}{C-c C-x b}
609 \key{prefix arg sets nb. of headline levels, e.g.}{C-3 C-c C-x h}
611 \key{export as iCalendar file}{C-c C-x i}
612 \key{export all agenda files as iCalendar files}{C-c C-x C-i}
613 \key{combine all agenda files to single iCal file}{C-c C-x C-c}
615 \key{insert template of export options}{C-c C-x t}
617 \key{toggle fixed width for entry or region}{C-c :}
619 {\bf HTML formatting}
621 \key{make words {\bf bold}}{*bold*}
622 \key{make words {\it italic}}{/italic/}
623 \key{make words \underbar{underlined}}{_underlined_}
624 \key{sub- and superscripts}{x\^{}3, J_dust}
625 \key{\TeX{}-like macros}{\\alpha, \\to}
626 \key{typeset lines in fixed width font}{start with :}
627 \key{tables are exported as HTML tables}{start with |}
628 \key{links become HTML links}{http:... etc}
629 \key{include html tags}{@<b>...@</b>}
631 {\bf Export options}
633 Include additional information for export by putting these anywhere in the
634 org file. Use {\tt M-TAB} completion to make sure to get the right
635 keywords. {\tt M-TAB} again just after keyword is complete inserts examples.
637 \key{the title to be shown}{\#+TITLE:}
638 \key{the author}{\#+AUTHOR:}
639 \key{authors email address}{\#+EMAIL:}
640 \key{language code for html}{\#+LANGUAGE:}
641 \key{free text description of file}{\#+TEXT:}
642 \key{... which can carry over multiple lines}{\#+TEXT:}
643 \key{settings for the export process - see below}{\#+OPTIONS:}
645 {\bf Settings for the OPTIONS line}
647 \key{set number of headline levels for export}{H:2}
648 \key{turn on/off section numbers}{num:t}
649 \key{turn on/off table of contents}{toc:t}
650 \key{turn on/off linebreak preservation}{\\n:nil}
651 \key{turn on/off quoted html tags}{@:t}
652 \key{turn on/off fixed width sections}{::t}
653 \key{turn on/off tables}{|:t}
654 \key{turn on/off \TeX\ syntax for sub/super-scripts}{\^{}:t}
655 \key{turn on/off emphasised text}{*:nil}
656 \key{turn on/off \TeX\ macros}{TeX:t}
658 {\bf Comments: Text not being exported}
660 Text before the first headline is not considered part of the document
661 and is therefore never exported.
662 Lines starting with \kbd{\#} are comments and are not exported.
663 Subtrees whose header starts with COMMENT are never exported.
665 \key{toggle COMMENT keyword on entry}{C-c ;}
667 \section{Completion}
669 In-buffer completion completes TODO keywords at headline start, TeX
670 macros after ``{\tt \\}'', option keywords after ``{\tt \#-}'', TAGS
671 after ``{\tt :}'', and dictionary words elsewhere.
673 \key{Complete word at point}{M-TAB}
675 \newcolumn
677 \section{Calendar and Diary Integration}
679 To include entries from the Emacs diary in your Org-mode agenda:
680 \beginexample%
681 (setq org-agenda-include-diary t)
682 \endexample
684 To include the Org-mode agenda in the normal diary, make sure you're
685 using the fancy diary display
687 %\beginexample%
688 %(add-hook 'diary-display-hook 'fancy-diary-display)
689 %\endexample
691 and in the \kbd{~/diary} file add
693 \beginexample%
694 \&\%\%(org-diary)
695 \endexample
697 to include all the files listed in \kbd{org-agenda-files}. For more
698 selective file inclusion use a line for each file:
700 \beginexample%
701 \&\%\%(org-diary) ~/path/to/some/org-file.org
702 \endexample
704 \section{Remember-mode Integration}
706 See the manual for how to make remember.el use Org-mode links and
707 files. The note-finishing command \kbd{C-c C-c} will first prompt for
708 an org file. In the file, find a location with:
710 \key{rotate subtree visibility}{TAB}
711 \key{next heading}{DOWN}
712 \key{previous heading}{UP}
714 Insert the note with one of the following:
716 \key{as sublevel of heading at cursor}{RET}
717 \key{right here (cursor not on heading)}{RET}
718 \key{before current heading}{LEFT}
719 \key{after current heading}{RIGHT}
720 \key{shortcut to end of buffer (cursor at buf-start)}{RET}
721 \key{Abort}{q}
723 \section{CUA and pc-select compatibility}
725 Configure the variable {\tt org-CUA-compatibility} to make Org-mode
726 avoid the \kbd{S-<cursor>} bindings used by these modes. When set,
727 Org-mode will change the following keybindings (also in the agenda
728 buffer, but not during date selection). See note mark four$^4$
729 throughout the reference card.
730 %\vskip-mm
731 \beginexample
732 S-UP $\to$ M-p S-DOWN $\to$ M-n
733 S-LEFT $\to$ M-- S-RIGHT $\to$ M-+
734 S-RET $\to$ C-S-RET
735 \endexample
737 \section{Notes}
738 $^1$ The six autoload forms are only needed if Org-mode is not part of
739 Emacs, or an XEmacs package.
741 $^2$ This is only a suggestion for a binding of this command. Choose
742 you own key as shown under INSTALLATION.
744 $^3$ After changing a \kbd{\#+KEYWORD} line, press \kbd{C-c C-c} with
745 the cursor still in a line to make Org-mode notice the change.
747 $^4$ Keybinding affected by {\tt org-CUA-compatibility}.
749 \copyrightnotice
751 \bye
754 % arch-tag: 139f6750-5cfc-49ca-92b5-237fe5795290
756 %%% Local Variables:
757 %%% mode: latex
758 %%% TeX-master: t
759 %%% End: