Commit | Line | Data |
---|---|---|
6f463292 | 1 | % Reference Card for Org Mode |
acedf35c | 2 | \def\orgversionnumber{7.4} |
ed21c5c8 | 3 | \def\versionyear{2010} % latest update |
970b9a42 | 4 | \def\year{2011} % latest copyright year |
dbc28aaa | 5 | |
6f463292 GM |
6 | %**start of header |
7 | \newcount\columnsperpage | |
873f531d | 8 | \newcount\letterpaper |
6f463292 GM |
9 | |
10 | % This file can be printed with 1, 2, or 3 columns per page (see below). | |
873f531d | 11 | % Specify how many you want here. |
873f531d | 12 | \columnsperpage=3 |
6f463292 | 13 | |
324f60ef GM |
14 | % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for |
15 | % a landscape layout. | |
16 | \input pdflayout.sty | |
17 | \pdflayout=(0l) | |
18 | ||
873f531d | 19 | % Nothing else needs to be changed below this line. |
73b0cd50 | 20 | % Copyright (C) 1987, 1993, 1996-1997, 2001-2011 Free Software Foundation, Inc. |
873f531d CD |
21 | |
22 | % This file is part of GNU Emacs. | |
6f463292 | 23 | |
b83446dd | 24 | % GNU Emacs is free software: you can redistribute it and/or modify |
6f463292 | 25 | % it under the terms of the GNU General Public License as published by |
b83446dd GM |
26 | % the Free Software Foundation, either version 3 of the License, or |
27 | % (at your option) any later version. | |
6f463292 GM |
28 | |
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. | |
33 | ||
34 | % You should have received a copy of the GNU General Public License | |
b83446dd | 35 | % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
6f463292 GM |
36 | |
37 | % This file is intended to be processed by plain TeX (TeX82). | |
38 | % | |
39 | % The final reference card has six columns, three on each side. | |
40 | % This file can be used to produce it in any of three ways: | |
41 | % 1 column per page | |
42 | % produces six separate pages, each of which needs to be reduced to 80%. | |
43 | % This gives the best resolution. | |
44 | % 2 columns per page | |
45 | % produces three already-reduced pages. | |
46 | % You will still need to cut and paste. | |
47 | % 3 columns per page | |
48 | % produces two pages which must be printed sideways to make a | |
49 | % ready-to-use 8.5 x 11 inch reference card. | |
50 | % For this you need a dvi device driver that can print sideways. | |
51 | % Which mode to use is controlled by setting \columnsperpage above. | |
52 | % | |
873f531d CD |
53 | % To compile and print this document: |
54 | % tex refcard.tex | |
55 | % dvips -t landscape refcard.dvi | |
56 | % | |
6f463292 GM |
57 | % Author: |
58 | % Stephen Gildea | |
59 | % Internet: gildea@stop.mail-abuse.org | |
60 | % | |
61 | % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik | |
62 | % for their many good ideas. | |
63 | ||
64 | \def\shortcopyrightnotice{\vskip 1ex plus 2 fill | |
65 | \centerline{\small \copyright\ \year\ Free Software Foundation, Inc. | |
66 | Permissions on back. v\orgversionnumber}} | |
67 | ||
68 | \def\copyrightnotice{ | |
69 | \vskip 1ex plus 100 fill\begingroup\small | |
70 | \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.} | |
71 | \centerline{v\orgversionnumber{} for Org-Mode \orgversionnumber{}, \versionyear} | |
72 | \centerline{Author: Philip Rooke} | |
73 | \centerline{based on refcard design and format by Stephen Gildea} | |
74 | ||
75 | Permission is granted to make and distribute copies of | |
76 | this card provided the copyright notice and this permission notice | |
77 | are preserved on all copies. | |
78 | ||
79 | \endgroup} | |
80 | ||
81 | % make \bye not \outer so that the \def\bye in the \else clause below | |
82 | % can be scanned without complaint. | |
83 | \def\bye{\par\vfill\supereject\end} | |
84 | ||
873f531d CD |
85 | \newdimen\intercolumnskip %horizontal space between columns |
86 | \newbox\columna %boxes to hold columns already built | |
6f463292 GM |
87 | \newbox\columnb |
88 | ||
89 | \def\ncolumns{\the\columnsperpage} | |
90 | ||
873f531d | 91 | \message{[\ncolumns\space |
6f463292 GM |
92 | column\if 1\ncolumns\else s\fi\space per page]} |
93 | ||
94 | \def\scaledmag#1{ scaled \magstep #1} | |
95 | ||
96 | % This multi-way format was designed by Stephen Gildea October 1986. | |
97 | % Note that the 1-column format is fontfamily-independent. | |
873f531d | 98 | \if 1\ncolumns %one-column format uses normal size |
6f463292 GM |
99 | \hsize 4in |
100 | \vsize 10in | |
101 | \voffset -.7in | |
102 | \font\titlefont=\fontname\tenbf \scaledmag3 | |
103 | \font\headingfont=\fontname\tenbf \scaledmag2 | |
104 | \font\smallfont=\fontname\sevenrm | |
105 | \font\smallsy=\fontname\sevensy | |
106 | ||
107 | \footline{\hss\folio} | |
108 | \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}} | |
873f531d | 109 | \else %2 or 3 columns uses prereduced size |
873f531d | 110 | \if 1\the\letterpaper |
39586cf3 | 111 | \hsize 3.2in |
873f531d | 112 | \vsize 7.95in |
39586cf3 CD |
113 | \hoffset -.75in |
114 | \voffset -.745in | |
873f531d | 115 | \else |
39586cf3 | 116 | \hsize 3.2in |
873f531d | 117 | \vsize 7.65in |
39586cf3 CD |
118 | \hoffset -.25in |
119 | \voffset -.745in | |
873f531d | 120 | \fi |
6f463292 GM |
121 | \font\titlefont=cmbx10 \scaledmag2 |
122 | \font\headingfont=cmbx10 \scaledmag1 | |
123 | \font\smallfont=cmr6 | |
124 | \font\smallsy=cmsy6 | |
125 | \font\eightrm=cmr8 | |
126 | \font\eightbf=cmbx8 | |
127 | \font\eightit=cmti8 | |
128 | \font\eighttt=cmtt8 | |
129 | \font\eightmi=cmmi8 | |
130 | \font\eightsy=cmsy8 | |
131 | \textfont0=\eightrm | |
132 | \textfont1=\eightmi | |
133 | \textfont2=\eightsy | |
134 | \def\rm{\eightrm} | |
135 | \def\bf{\eightbf} | |
136 | \def\it{\eightit} | |
137 | \def\tt{\eighttt} | |
873f531d CD |
138 | \if 1\the\letterpaper |
139 | \normalbaselineskip=.8\normalbaselineskip | |
140 | \else | |
141 | \normalbaselineskip=.7\normalbaselineskip | |
142 | \fi | |
6f463292 GM |
143 | \normallineskip=.8\normallineskip |
144 | \normallineskiplimit=.8\normallineskiplimit | |
873f531d | 145 | \normalbaselines\rm %make definitions take effect |
6f463292 GM |
146 | |
147 | \if 2\ncolumns | |
148 | \let\maxcolumn=b | |
149 | \footline{\hss\rm\folio\hss} | |
150 | \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}} | |
151 | \else \if 3\ncolumns | |
152 | \let\maxcolumn=c | |
153 | \nopagenumbers | |
154 | \else | |
155 | \errhelp{You must set \columnsperpage equal to 1, 2, or 3.} | |
156 | \errmessage{Illegal number of columns per page} | |
157 | \fi\fi | |
158 | ||
159 | \intercolumnskip=.46in | |
160 | \def\abc{a} | |
873f531d | 161 | \output={% %see The TeXbook page 257 |
6f463292 GM |
162 | % This next line is useful when designing the layout. |
163 | %\immediate\write16{Column \folio\abc\space starts with \firstmark} | |
164 | \if \maxcolumn\abc \multicolumnformat \global\def\abc{a} | |
165 | \else\if a\abc | |
873f531d | 166 | \global\setbox\columna\columnbox \global\def\abc{b} |
6f463292 GM |
167 | %% in case we never use \columnb (two-column mode) |
168 | \global\setbox\columnb\hbox to -\intercolumnskip{} | |
169 | \else | |
873f531d | 170 | \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi} |
6f463292 GM |
171 | \def\multicolumnformat{\shipout\vbox{\makeheadline |
172 | \hbox{\box\columna\hskip\intercolumnskip | |
173 | \box\columnb\hskip\intercolumnskip\columnbox} | |
174 | \makefootline}\advancepageno} | |
175 | \def\columnbox{\leftline{\pagebody}} | |
176 | ||
177 | \def\bye{\par\vfill\supereject | |
178 | \if a\abc \else\null\vfill\eject\fi | |
179 | \if a\abc \else\null\vfill\eject\fi | |
873f531d | 180 | \end} |
6f463292 GM |
181 | \fi |
182 | ||
183 | % we won't be using math mode much, so redefine some of the characters | |
184 | % we might want to talk about | |
185 | %\catcode`\^=12 | |
186 | \catcode`\_=12 | |
187 | ||
188 | % we also need the tilde, for file names. | |
189 | \catcode`\~=12 | |
190 | ||
191 | \chardef\\=`\\ | |
192 | \chardef\{=`\{ | |
193 | \chardef\}=`\} | |
194 | ||
195 | \hyphenation{mini-buf-fer} | |
196 | ||
197 | \parindent 0pt | |
198 | \parskip 1ex plus .5ex minus .5ex | |
199 | ||
200 | \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip} | |
201 | ||
202 | % newcolumn - force a new column. Use sparingly, probably only for | |
203 | % the first column of a page, which should have a title anyway. | |
204 | \outer\def\newcolumn{\vfill\eject} | |
205 | ||
206 | % title - page title. Argument is title text. | |
207 | \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex} | |
208 | ||
209 | % section - new major section. Argument is section name. | |
210 | \outer\def\section#1{\par\filbreak | |
211 | \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}% | |
212 | \vskip 2ex plus 1ex minus 1.5ex} | |
213 | ||
214 | \newdimen\keyindent | |
215 | ||
216 | % beginindentedkeys...endindentedkeys - key definitions will be | |
217 | % indented, but running text, typically used as headings to group | |
218 | % definitions, will not. | |
219 | \def\beginindentedkeys{\keyindent=1em} | |
220 | \def\endindentedkeys{\keyindent=0em} | |
221 | \endindentedkeys | |
222 | ||
223 | % paralign - begin paragraph containing an alignment. | |
224 | % If an \halign is entered while in vertical mode, a parskip is never | |
225 | % inserted. Using \paralign instead of \halign solves this problem. | |
226 | \def\paralign{\vskip\parskip\halign} | |
227 | ||
228 | % \<...> - surrounds a variable name in a code example | |
229 | \def\<#1>{{\it #1\/}} | |
230 | ||
231 | % kbd - argument is characters typed literally. Like the Texinfo command. | |
873f531d | 232 | \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows |
6f463292 GM |
233 | |
234 | % beginexample...endexample - surrounds literal text, such a code example. | |
235 | % typeset in a typewriter font with line breaks preserved | |
236 | \def\beginexample{\par\leavevmode\begingroup | |
237 | \obeylines\obeyspaces\parskip0pt\tt} | |
238 | {\obeyspaces\global\let =\ } | |
239 | \def\endexample{\endgroup} | |
240 | ||
241 | % key - definition of a key. | |
242 | % \key{description of key}{key-name} | |
243 | % prints the description left-justified, and the key-name in a \kbd | |
244 | % form near the right margin. | |
245 | \def\key#1#2{\leavevmode\hbox to \hsize{\vtop | |
246 | {\hsize=.75\hsize\rightskip=1em | |
247 | \hskip\keyindent\relax#1}\kbd{#2}\hfil}} | |
248 | ||
249 | \newbox\metaxbox | |
250 | \setbox\metaxbox\hbox{\kbd{M-x }} | |
251 | \newdimen\metaxwidth | |
252 | \metaxwidth=\wd\metaxbox | |
253 | ||
254 | % metax - definition of a M-x command. | |
255 | % \metax{description of command}{M-x command-name} | |
256 | % Tries to justify the beginning of the command name at the same place | |
257 | % as \key starts the key name. (The "M-x " sticks out to the left.) | |
258 | \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize | |
259 | {\hskip\keyindent\relax#1\hfil}% | |
260 | \hskip -\metaxwidth minus 1fil | |
261 | \kbd{#2}\hfil}} | |
262 | ||
263 | % threecol - like "key" but with two key names. | |
264 | % for example, one for doing the action backward, and one for forward. | |
265 | \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad | |
266 | &\kbd{#3}\hfil\quad\cr} | |
267 | ||
acedf35c CD |
268 | \def\noteone{{\small \hfill [1]}} |
269 | \def\notetwo{{\small \hfill [2]}} | |
270 | ||
271 | ||
6f463292 GM |
272 | %**end of header |
273 | \f | |
274 | ||
275 | \title{Org-Mode Reference Card (1/2)} | |
276 | ||
277 | \centerline{(for version \orgversionnumber)} | |
278 | ||
279 | \section{Getting Started} | |
6f463292 GM |
280 | \metax{To read the on-line documentation try}{M-x org-info} |
281 | ||
282 | \section{Visibility Cycling} | |
283 | ||
284 | \key{rotate current subtree between states}{TAB} | |
285 | \key{rotate entire buffer between states}{S-TAB} | |
a6520ff3 CD |
286 | \key{restore property-dependent startup visibility}{C-u C-u TAB} |
287 | \metax{show the whole file, including drawers}{C-u C-u C-u TAB} | |
6f463292 | 288 | \key{reveal context around point}{C-c C-r} |
6f463292 GM |
289 | |
290 | \section{Motion} | |
291 | ||
292 | \key{next/previous heading}{C-c C-n/p} | |
293 | \key{next/previous heading, same level}{C-c C-f/b} | |
294 | \key{backward to higher level heading}{C-c C-u} | |
295 | \key{jump to another place in document}{C-c C-j} | |
acedf35c | 296 | \key{previous/next plain list item}{S-UP/DOWN\notetwo} |
6f463292 GM |
297 | |
298 | \section{Structure Editing} | |
299 | ||
300 | \key{insert new heading/item at current level}{M-RET} | |
dbc28aaa | 301 | \key{insert new heading after subtree}{C-RET} |
6f463292 | 302 | \key{insert new TODO entry/checkbox item}{M-S-RET} |
a6520ff3 | 303 | \key{insert TODO entry/ckbx after subtree}{C-S-RET} |
7f36140a CD |
304 | \key{turn (head)line into item, cycle item type}{C-c -} |
305 | \key{turn item/line into headline}{C-c *} | |
b349f79f CD |
306 | \key{promote/demote heading}{M-LEFT/RIGHT} |
307 | \metax{promote/demote current subtree}{M-S-LEFT/RIGHT} | |
7f36140a | 308 | \metax{move subtree/list item up/down}{M-S-UP/DOWN} |
c8d0cf5c CD |
309 | \metax{sort subtree/region/plain-list}{C-c \^{}} |
310 | \metax{clone a subtree}{C-c C-x c} | |
7f36140a | 311 | \metax{kill/copy subtree}{C-c C-x C-w/M-w} |
1463de90 | 312 | \metax{yank subtree}{C-c C-x C-y or C-y} |
7f36140a | 313 | \metax{narrow buffer to subtree / widen}{C-x n s/w} |
6f463292 | 314 | |
acedf35c CD |
315 | \section{Capture - Refile - Archiving} |
316 | \key{capture a new item (C-u C-u = goto last)}{C-c c \noteone} | |
317 | \key{refile subtree (C-u C-u = goto last)}{C-c C-w} | |
8afcfab3 | 318 | \key{archive subtree using the default command}{C-c C-x C-a} |
7f6c6a23 | 319 | \key{move subtree to archive file}{C-c C-x C-s} |
8afcfab3 CD |
320 | \key{toggle ARCHIVE tag / to ARCHIVE sibling}{C-c C-x a/A} |
321 | \key{force cycling of an ARCHIVEd tree}{C-TAB} | |
6f463292 GM |
322 | |
323 | \section{Filtering and Sparse Trees} | |
324 | ||
dbc28aaa | 325 | \key{construct a sparse tree by various criteria}{C-c /} |
86fbb8ca | 326 | \key{view TODO's in sparse tree}{C-c / t/T} |
acedf35c | 327 | \key{global TODO list in agenda mode}{C-c a t \noteone} |
6f463292 | 328 | \key{time sorted view of current org file}{C-c a L} |
6f463292 GM |
329 | |
330 | \section{Tables} | |
331 | ||
332 | {\bf Creating a table} | |
333 | ||
334 | %\metax{insert a new Org-mode table}{M-x org-table-create} | |
335 | \metax{just start typing, e.g.}{|Name|Phone|Age RET |- TAB} | |
336 | \key{convert region to table}{C-c |} | |
337 | \key{... separator at least 3 spaces}{C-3 C-c |} | |
338 | ||
339 | {\bf Commands available inside tables} | |
340 | ||
341 | The following commands work when the cursor is {\it inside a table}. | |
342 | Outside of tables, the same keys may have other functionality. | |
343 | ||
344 | {\bf Re-aligning and field motion} | |
345 | ||
346 | \key{re-align the table without moving the cursor}{C-c C-c} | |
347 | \key{re-align the table, move to next field}{TAB} | |
348 | \key{move to previous field}{S-TAB} | |
349 | \key{re-align the table, move to next row}{RET} | |
c8d0cf5c | 350 | \key{move to beginning/end of field}{M-a/e} |
6f463292 GM |
351 | |
352 | {\bf Row and column editing} | |
353 | ||
873f531d | 354 | \key{move the current column left}{M-LEFT/RIGHT} |
6f463292 GM |
355 | \key{kill the current column}{M-S-LEFT} |
356 | \key{insert new column to left of cursor position}{M-S-RIGHT} | |
357 | ||
873f531d | 358 | \key{move the current row up/down}{M-UP/DOWN} |
6f463292 GM |
359 | \key{kill the current row or horizontal line}{M-S-UP} |
360 | \key{insert new row above the current row}{M-S-DOWN} | |
7f6c6a23 | 361 | \key{insert hline below (\kbd{C-u} : above) current row}{C-c -} |
7f36140a | 362 | \key{insert hline and move to line below it}{C-c RET} |
6f463292 GM |
363 | \key{sort lines in region}{C-c \^{}} |
364 | ||
365 | {\bf Regions} | |
366 | ||
ed21c5c8 CD |
367 | \metax{cut/copy/paste rectangular region}{C-c C-x C-w/M-w/C-y} |
368 | %\key{copy rectangular region}{C-c C-x M-w} | |
369 | %\key{paste rectangular region}{C-c C-x C-y} | |
6f463292 GM |
370 | \key{fill paragraph across selected cells}{C-c C-q} |
371 | ||
6f463292 GM |
372 | {\bf Miscellaneous} |
373 | ||
374 | \key{to limit column width to \kbd{N} characters, use}{...| <N> |...} | |
375 | \key{edit the current field in a separate window}{C-c `} | |
376 | \key{make current field fully visible}{C-u TAB} | |
377 | \metax{export as tab-separated file}{M-x org-table-export} | |
378 | \metax{import tab-separated file}{M-x org-table-import} | |
873f531d | 379 | \key{sum numbers in current column/rectangle}{C-c +} |
6f463292 GM |
380 | |
381 | {\bf Tables created with the \kbd{table.el} package} | |
382 | ||
383 | \key{insert a new \kbd{table.el} table}{C-c ~} | |
384 | \key{recognize existing table.el table}{C-c C-c} | |
385 | \key{convert table (Org-mode $\leftrightarrow$ table.el)}{C-c ~} | |
386 | ||
873f531d CD |
387 | {\bf Spreadsheet} |
388 | ||
389 | Formulas typed in field are executed by \kbd{TAB}, | |
390 | \kbd{RET} and \kbd{C-c C-c}. \kbd{=} introduces a column | |
391 | formula, \kbd{:=} a field formula. | |
392 | ||
393 | \key{Example: Add Col1 and Col2}{|=\$1+\$2 |} | |
394 | \key{... with printf format specification}{|=\$1+\$2;\%.2f|} | |
395 | \key{... with constants from constants.el}{|=\$1/\$c/\$cm |} | |
396 | \metax{sum from 2nd to 3rd hline}{|:=vsum(@II..@III)|} | |
397 | \key{apply current column formula}{| = |} | |
398 | ||
399 | \key{set and eval column formula}{C-c =} | |
400 | \key{set and eval field formula}{C-u C-c =} | |
401 | \key{re-apply all stored equations to current line}{C-c *} | |
402 | \key{re-apply all stored equations to entire table}{C-u C-c *} | |
403 | \key{iterate table to stability}{C-u C-u C-c *} | |
404 | \key{rotate calculation mark through \# * ! \^ \_ \$}{C-\#} | |
405 | \key{show line, column, formula reference}{C-c ?} | |
c8d0cf5c | 406 | \key{toggle grid / debugger}{C-c \}/\{} |
873f531d | 407 | |
39586cf3 | 408 | \newcolumn |
873f531d CD |
409 | {\it Formula Editor} |
410 | ||
411 | \key{edit formulas in separate buffer}{C-c '} | |
412 | \key{exit and install new formulas}{C-c C-c} | |
413 | \key{exit, install, and apply new formulas}{C-u C-c C-c} | |
414 | \key{abort}{C-c C-q} | |
415 | \key{toggle reference style}{C-c C-r} | |
416 | \key{pretty-print Lisp formula}{TAB} | |
417 | \key{complete Lisp symbol}{M-TAB} | |
418 | \key{shift reference point}{S-cursor} | |
419 | \key{shift test line for column references}{M-up/down} | |
420 | \key{scroll the window showing the table}{M-S-up/down} | |
421 | \key{toggle table coordinate grid}{C-c \}} | |
422 | ||
6f463292 GM |
423 | \section{Links} |
424 | ||
acedf35c | 425 | \key{globally store link to the current location}{C-c l \noteone} |
6f463292 GM |
426 | \key{insert a link (TAB completes stored links)}{C-c C-l} |
427 | \key{insert file link with file name completion}{C-u C-c C-l} | |
428 | \key{edit (also hidden part of) link at point}{C-c C-l} | |
429 | ||
430 | \key{open file links in emacs}{C-c C-o} | |
431 | \key{...force open in emacs/other window}{C-u C-c C-o} | |
432 | \key{open link at point}{mouse-1/2} | |
433 | \key{...force open in emacs/other window}{mouse-3} | |
434 | \key{record a position in mark ring}{C-c \%} | |
435 | \key{jump back to last followed link(s)}{C-c \&} | |
a6520ff3 CD |
436 | \key{find next link}{C-c C-x C-n} |
437 | \key{find previous link}{C-c C-x C-p} | |
438 | \key{edit code snippet of file at point}{C-c '} | |
86fbb8ca CD |
439 | \key{toggle inline display of linked images}{C-c C-x C-v} |
440 | ||
86fbb8ca CD |
441 | \section{Working with Code (Babel)} |
442 | ||
443 | \key{execute code block at point}{C-c C-c} | |
444 | \key{open results of code block at point}{C-c C-o} | |
445 | \key{view expanded body of code block at point}{C-c C-v v} | |
446 | \key{go to named code block}{C-c C-v g} | |
447 | \key{go to named result}{C-c C-v r} | |
afe98dfa | 448 | \key{go to the head of the current code block}{C-c C-v u} |
86fbb8ca CD |
449 | \key{go to the next code block}{C-c C-v n} |
450 | \key{go to the previous code block}{C-c C-v p} | |
afe98dfa CD |
451 | \key{demarcate a code block}{C-c C-v d} |
452 | \key{execute the next key sequence in the code edit buffer}{C-c C-v x} | |
86fbb8ca CD |
453 | \key{execute all code blocks in current buffer}{C-c C-v b} |
454 | \key{execute all code blocks in current subtree}{C-c C-v s} | |
455 | \key{tangle code blocks in current file}{C-c C-v t} | |
456 | \key{tangle code blocks in supplied file}{C-c C-v f} | |
afe98dfa | 457 | \key{ingest all code blocks in supplied file into the Library of Babel}{C-c C-v i} |
86fbb8ca | 458 | \key{switch to the session of the current code block}{C-c C-v z} |
afe98dfa | 459 | \key{load expanded body of the current code block into a session}{C-c C-v l} |
86fbb8ca | 460 | \key{view sha1 hash of the current code block}{C-c C-v a} |
6f463292 | 461 | |
6f463292 GM |
462 | \section{Completion} |
463 | ||
464 | In-buffer completion completes TODO keywords at headline start, TeX | |
465 | macros after ``{\tt \\}'', option keywords after ``{\tt \#-}'', TAGS | |
466 | after ``{\tt :}'', and dictionary words elsewhere. | |
467 | ||
c8d0cf5c | 468 | \key{complete word at point}{M-TAB} |
6f463292 GM |
469 | |
470 | ||
471 | \newcolumn | |
472 | \title{Org-Mode Reference Card (2/2)} | |
473 | ||
474 | \centerline{(for version \orgversionnumber)} | |
475 | ||
476 | \section{TODO Items and Checkboxes} | |
477 | ||
478 | \key{rotate the state of the current item}{C-c C-t} | |
873f531d CD |
479 | \metax{select next/previous state}{S-LEFT/RIGHT} |
480 | \metax{select next/previous set}{C-S-LEFT/RIGHT} | |
c8d0cf5c | 481 | \key{toggle ORDERED property}{C-c C-x o} |
6f463292 GM |
482 | \key{view TODO items in a sparse tree}{C-c C-v} |
483 | \key{view 3rd TODO keyword's sparse tree}{C-3 C-c C-v} | |
484 | ||
485 | \key{set the priority of the current item}{C-c , [ABC]} | |
486 | \key{remove priority cookie from current item}{C-c , SPC} | |
acedf35c | 487 | \key{raise/lower priority of current item}{S-UP/DOWN\notetwo} |
6f463292 GM |
488 | |
489 | \key{insert new checkbox item in plain list}{M-S-RET} | |
490 | \key{toggle checkbox(es) in region/entry/at point}{C-c C-x C-b} | |
491 | \key{toggle checkbox at point}{C-c C-c} | |
c8d0cf5c | 492 | %\metax{checkbox statistics cookies: insert {\tt [/]} or {\tt [\%]}}{} |
6f463292 GM |
493 | \key{update checkbox statistics (\kbd{C-u} : whole file)}{C-c \#} |
494 | ||
495 | \section{Tags} | |
496 | ||
71d35b24 CD |
497 | \key{set tags for current heading}{C-c C-q} |
498 | \key{realign tags in all headings}{C-u C-c C-q} | |
6f463292 GM |
499 | \key{create sparse tree with matching tags}{C-c \\} |
500 | \key{globally (agenda) match tags at cursor}{C-c C-o} | |
501 | ||
fecda3e8 CD |
502 | \section{Properties and Column View} |
503 | ||
ccfa8d36 | 504 | \key{set property/effort}{C-c C-x p/e} |
fecda3e8 CD |
505 | \key{special commands in property lines}{C-c C-c} |
506 | \key{next/previous allowed value}{S-left/right} | |
507 | \key{turn on column view}{C-c C-x C-c} | |
a6520ff3 | 508 | \key{capture columns view in dynamic block}{C-c C-x i} |
fecda3e8 CD |
509 | |
510 | \key{quit column view}{q} | |
c8d0cf5c | 511 | \key{show full value}{v} |
fecda3e8 | 512 | \key{edit value}{e} |
c8d0cf5c | 513 | \metax{next/previous allowed value}{n/p or S-left/right} |
fecda3e8 | 514 | \key{edit allowed values list}{a} |
fecda3e8 CD |
515 | \key{make column wider/narrower}{> / <} |
516 | \key{move column left/right}{M-left/right} | |
517 | \key{add new column}{M-S-right} | |
518 | \key{Delete current column}{M-S-left} | |
519 | ||
520 | ||
6f463292 GM |
521 | \section{Timestamps} |
522 | ||
523 | \key{prompt for date and insert timestamp}{C-c .} | |
524 | \key{like \kbd{C-c} . but insert date and time format}{C-u C-c .} | |
c8d0cf5c | 525 | \key{like \kbd{C-c .} but make stamp inactive}{C-c !} % FIXME |
6f463292 GM |
526 | \key{insert DEADLINE timestamp}{C-c C-d} |
527 | \key{insert SCHEDULED timestamp}{C-c C-s} | |
dbc28aaa | 528 | \key{create sparse tree with all deadlines due}{C-c / d} |
6f463292 | 529 | \key{the time between 2 dates in a time range}{C-c C-y} |
acedf35c CD |
530 | \metax{change timestamp at cursor $\pm 1$ day}{S-RIGHT/LEFT\notetwo} |
531 | \key{change year/month/day at cursor by $\pm 1$}{S-UP/DOWN\notetwo} | |
6f463292 GM |
532 | \key{access the calendar for the current date}{C-c >} |
533 | \key{insert timestamp matching date in calendar}{C-c <} | |
534 | \key{access agenda for current date}{C-c C-o} | |
c8d0cf5c | 535 | \key{select date while prompted}{mouse-1/RET} |
6f463292 GM |
536 | %\key{... select date in calendar}{mouse-1/RET} |
537 | %\key{... scroll calendar back/forward one month}{< / >} | |
538 | %\key{... forward/backward one day}{S-LEFT/RIGHT} | |
539 | %\key{... forward/backward one week}{S-UP/DOWN} | |
8afcfab3 | 540 | %\key{... forward/backward one month}{M-S-LEFT/RIGHT} |
c8d0cf5c | 541 | \key{toggle custom format display for dates/times}{C-c C-x C-t} |
6f463292 | 542 | |
fecda3e8 CD |
543 | \newcolumn |
544 | ||
873f531d | 545 | {\bf Clocking time} |
6f463292 GM |
546 | |
547 | \key{start clock on current item}{C-c C-x C-i} | |
ccfa8d36 | 548 | \key{stop/cancel clock on current item}{C-c C-x C-o/x} |
6f463292 GM |
549 | \key{display total subtree times}{C-c C-x C-d} |
550 | \key{remove displayed times}{C-c C-c} | |
551 | \key{insert/update table with clock report}{C-c C-x C-r} | |
552 | ||
6f463292 GM |
553 | \section{Agenda Views} |
554 | ||
555 | \key{add/move current file to front of agenda}{C-c [} | |
556 | \key{remove current file from your agenda}{C-c ]} | |
7f6c6a23 | 557 | \key{cycle through agenda file list}{C-'} |
dbc28aaa | 558 | \key{set/remove restriction lock}{C-c C-x </>} |
6f463292 | 559 | |
acedf35c CD |
560 | \key{compile agenda for the current week}{C-c a a \noteone} |
561 | \key{compile global TODO list}{C-c a t \noteone} | |
562 | \key{compile TODO list for specific keyword}{C-c a T \noteone} | |
563 | \key{match tags, TODO kwds, properties}{C-c a m \noteone} | |
564 | \key{match only in TODO entries}{C-c a M \noteone} | |
565 | \key{find stuck projects}{C-c a \# \noteone} | |
566 | \key{show timeline of current org file}{C-c a L \noteone} | |
567 | \key{configure custom commands}{C-c a C \noteone} | |
568 | %\key{configure stuck projects}{C-c a ! \noteone} | |
6f463292 GM |
569 | \key{agenda for date at cursor}{C-c C-o} |
570 | ||
6f463292 GM |
571 | {\bf Commands available in an agenda buffer} |
572 | ||
573 | {\bf View Org file} | |
574 | ||
575 | \key{show original location of item}{SPC/mouse-3} | |
576 | %\key{... also available with}{mouse-3} | |
577 | \key{show and recenter window}{L} | |
578 | \key{goto original location in other window}{TAB/mouse-2} | |
579 | %\key{... also available with}{mouse-2} | |
580 | \key{goto original location, delete other windows}{RET} | |
ccfa8d36 CD |
581 | \key{show subtree in indirect buffer, ded.\ frame}{C-c C-x b} |
582 | \key{toggle follow-mode}{F} | |
6f463292 GM |
583 | |
584 | {\bf Change display} | |
585 | ||
586 | \key{delete other windows}{o} | |
8afcfab3 | 587 | \key{view mode dispatcher}{v} |
c8d0cf5c | 588 | \key{switch to day/week/month/year view}{d w vm vy} |
8afcfab3 | 589 | \key{toggle diary entries / time grid / habits}{D / G / K} |
ccfa8d36 CD |
590 | \key{toggle entry text / clock report}{E / R} |
591 | \key{toggle display of logbook entries}{l / v l/L} | |
592 | \key{toggle inclusion of archived trees/files}{v a/A} | |
28a16a1b | 593 | \key{refresh agenda buffer with any changes}{r / g} |
8afcfab3 | 594 | \key{filter with respect to a tag}{/} |
6f463292 | 595 | \key{save all org-mode buffers}{s} |
ccfa8d36 | 596 | \key{display next/previous day,week,...}{f / b} |
c8d0cf5c | 597 | \key{goto today / some date (prompt)}{. / j} |
6f463292 GM |
598 | |
599 | {\bf Remote editing} | |
600 | ||
601 | \key{digit argument}{0-9} | |
602 | \key{change state of current TODO item}{t} | |
603 | \key{kill item and source}{C-k} | |
8afcfab3 | 604 | \key{archive default}{\$ / a} |
c8d0cf5c | 605 | \key{refile the subtree}{C-c C-w} |
ccfa8d36 CD |
606 | \key{set/show tags of current headline}{: / T} |
607 | \key{set effort property (prefix=nth)}{e} | |
608 | \key{set / compute priority of current item}{, / P} | |
acedf35c | 609 | \key{raise/lower priority of current item}{S-UP/DOWN\notetwo} |
a6520ff3 | 610 | \key{run an attachment command}{C-c C-a} |
6f463292 | 611 | \key{schedule/set deadline for this item}{C-c C-s/d} |
acedf35c | 612 | \metax{change timestamp one day earlier/later}{S-LEFT/RIGHT\notetwo} |
6f463292 GM |
613 | \key{change timestamp to today}{>} |
614 | \key{insert new entry into diary}{i} | |
fecda3e8 | 615 | \newcolumn |
dbc28aaa CD |
616 | \key{start/stop/cancel the clock on current item}{I / O / X} |
617 | \key{jump to running clock entry}{J} | |
c8d0cf5c | 618 | \key{mark / unmark / execute bulk action}{m / u / B} |
6f463292 | 619 | |
7f6c6a23 | 620 | {\bf Misc} |
6f463292 | 621 | |
ccfa8d36 | 622 | \key{follow one or offer all links in current entry}{C-c C-o} |
7f6c6a23 | 623 | |
6f463292 GM |
624 | {\bf Calendar commands} |
625 | ||
626 | \key{find agenda cursor date in calendar}{c} | |
627 | \key{compute agenda for calendar cursor date}{c} | |
628 | \key{show phases of the moon}{M} | |
629 | \key{show sunrise/sunset times}{S} | |
630 | \key{show holidays}{H} | |
631 | \key{convert date to other calendars}{C} | |
632 | ||
633 | {\bf Quit and Exit} | |
634 | ||
635 | \key{quit agenda, remove agenda buffer}{q} | |
636 | \key{exit agenda, remove all agenda buffers}{x} | |
637 | ||
fecda3e8 CD |
638 | \section{LaTeX and cdlatex-mode} |
639 | ||
640 | \key{preview LaTeX fragment}{C-c C-x C-l} | |
c8d0cf5c CD |
641 | \key{expand abbreviation (cdlatex-mode)}{TAB} |
642 | \key{insert/modify math symbol (cdlatex-mode)}{` / '} | |
643 | \key{insert citation using RefTeX}{C-c C-x [} | |
fecda3e8 | 644 | |
6f463292 GM |
645 | \section{Exporting and Publishing} |
646 | ||
647 | Exporting creates files with extensions {\it .txt\/} and {\it .html\/} | |
648 | in the current directory. Publishing puts the resulting file into | |
649 | some other place. | |
650 | ||
651 | \key{export/publish dispatcher}{C-c C-e} | |
652 | ||
653 | \key{export visible part only}{C-c C-e v} | |
c8d0cf5c | 654 | \key{insert template of export options}{C-c C-e t} |
6f463292 | 655 | \key{toggle fixed width for entry or region}{C-c :} |
86fbb8ca | 656 | \key{toggle pretty display of scripts, entities}{C-c C-x {\tt\char`\\}} |
6f463292 | 657 | |
6f463292 GM |
658 | {\bf Comments: Text not being exported} |
659 | ||
86fbb8ca CD |
660 | Lines starting with \kbd{\#} and subtrees starting with COMMENT are |
661 | never exported. | |
6f463292 GM |
662 | |
663 | \key{toggle COMMENT keyword on entry}{C-c ;} | |
664 | ||
6f463292 GM |
665 | \section{Dynamic Blocks} |
666 | ||
667 | \key{update dynamic block at point}{C-c C-x C-u} | |
668 | \metax{update all dynamic blocks}{C-u C-c C-x C-u} | |
669 | ||
670 | \section{Notes} | |
acedf35c | 671 | [1] This is only a suggestion for a binding of this command. Choose |
55773fe2 | 672 | your own key as shown under INSTALLATION. |
6f463292 | 673 | |
acedf35c | 674 | [2] Keybinding affected by {\tt org-support-shift-select} and also |
86fbb8ca | 675 | {\tt org-replace-disputed-keys}. |
6f463292 GM |
676 | |
677 | \copyrightnotice | |
678 | ||
679 | \bye | |
680 | \f | |
873f531d | 681 | % Local variables: |
28a16a1b | 682 | % compile-command: "tex refcard" |
873f531d | 683 | % End: |
6f463292 | 684 |