Mercurial > emacs
comparison man/org.texi @ 71508:c12f8a27aae5
(Embedded LaTeX): Fix typos and implement small improvements
throughout this chapter.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Wed, 28 Jun 2006 09:50:05 +0000 |
parents | 93e8ae57983b |
children | f3876738c127 |
comparison
equal
deleted
inserted
replaced
71507:b322992de32c | 71508:c12f8a27aae5 |
---|---|
1 \input texinfo | 1 \input texinfo |
2 @c %**start of header | 2 @c %**start of header |
3 @setfilename ../info/org | 3 @setfilename ../info/org |
4 @settitle Org Mode Manual | 4 @settitle Org Mode Manual |
5 | 5 |
6 @set VERSION 4.39 | 6 @set VERSION 4.40 |
7 @set DATE June 2006 | 7 @set DATE June 2006 |
8 | 8 |
9 @dircategory Emacs | 9 @dircategory Emacs |
10 @direntry | 10 @direntry |
11 * Org Mode: (org). outline-based notes management and organizer | 11 * Org Mode: (org). outline-based notes management and organizer |
196 * Calendar/Diary integration:: Integrating Anniversaries and more | 196 * Calendar/Diary integration:: Integrating Anniversaries and more |
197 * Sorting of agenda items:: The order of things | 197 * Sorting of agenda items:: The order of things |
198 | 198 |
199 Embedded LaTeX | 199 Embedded LaTeX |
200 | 200 |
201 * Math symbols:: TeX macros for symbols and greek letters | 201 * Math symbols:: TeX macros for symbols and Greek letters |
202 * Subscripts and Superscripts:: Simple syntax for raising/lowering text | 202 * Subscripts and Superscripts:: Simple syntax for raising/lowering text |
203 * LaTeX fragments:: Complex formulas made easy | 203 * LaTeX fragments:: Complex formulas made easy |
204 * Processing LaTeX fragments:: Previewing LaTeX processing | 204 * Processing LaTeX fragments:: Previewing LaTeX processing |
205 * CDLaTeX mode:: Speed up entering of formulas | 205 * CDLaTeX mode:: Speed up entering of formulas |
206 | 206 |
3370 math-mode delimiters. To increase the readability of ASCII text, it is | 3370 math-mode delimiters. To increase the readability of ASCII text, it is |
3371 not necessary (but OK) to surround multi-character sub- and superscripts | 3371 not necessary (but OK) to surround multi-character sub- and superscripts |
3372 with curly braces. For example | 3372 with curly braces. For example |
3373 | 3373 |
3374 @example | 3374 @example |
3375 The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius o | 3375 The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of |
3376 the sun is R_@{sun@} = 6.96 x 10^8 m. | 3376 the sun is R_@{sun@} = 6.96 x 10^8 m. |
3377 @end example | 3377 @end example |
3378 | 3378 |
3379 To avoid interpretation as raised or lowered text, you can quote | 3379 To avoid interpretation as raised or lowered text, you can quote |
3380 @samp{^} and @samp{_} with a backslash: @samp{\_} and @samp{\^}. | 3380 @samp{^} and @samp{_} with a backslash: @samp{\_} and @samp{\^}. |
3398 La@TeX{} fragments don't need any special marking at all. The following | 3398 La@TeX{} fragments don't need any special marking at all. The following |
3399 snippets will be identified as LaTeX source code: | 3399 snippets will be identified as LaTeX source code: |
3400 @itemize @bullet | 3400 @itemize @bullet |
3401 @item | 3401 @item |
3402 Environments of any kind. The only requirement is that the | 3402 Environments of any kind. The only requirement is that the |
3403 @code{\begin} statements appears on a new line, preceded by only | 3403 @code{\begin} statement appears on a new line, preceded by only |
3404 whitespace. | 3404 whitespace. |
3405 @item | 3405 @item |
3406 Text within the usual La@TeX{} math delimiters. Org-mode recognizes | 3406 Text within the usual La@TeX{} math delimiters. To avoid conflicts with |
3407 single @samp{$} characters as math delimiters only if they are directly | 3407 currency specifications, single @samp{$} characters are only recognized |
3408 attached to the surrounded text, with no whitespace in between. For the | 3408 as math delimiters if the enclosed text contains at most two line breaks, |
3409 other delimiters, there is no such restriction. | 3409 is directly attached to the @samp{$} characters with no whitespace in |
3410 between, and if the closing @samp{$} is followed by whitespace or | |
3411 punctuation. For the other delimiters, there is no such restriction, so | |
3412 when in doubt, use @samp{\(...\)} as inline math delimiters. | |
3410 @end itemize | 3413 @end itemize |
3411 | 3414 |
3412 @noindent For example: | 3415 @noindent For example: |
3413 | 3416 |
3414 @example | 3417 @example |
3415 \begin@{equation@} % arbitrary environments, | 3418 \begin@{equation@} % arbitrary environments, |
3416 x=\sqrt@{b@} % even tables, figures | 3419 x=\sqrt@{b@} % even tables, figures |
3417 \end@{equation@} % etc | 3420 \end@{equation@} % etc |
3418 | 3421 |
3419 If $a=\sqrt@{b@}$ and \( b=2 \), then the solution must be | 3422 If $a^2=b$ and \( b=2 \), then the solution must be |
3420 either $$ a=+\sqrt@{2@} $$ or \[ a=-\sqrt@{2@} \]. | 3423 either $$ a=+\sqrt@{2@} $$ or \[ a=-\sqrt@{2@} \]. |
3421 @end example | 3424 @end example |
3422 | 3425 |
3423 @noindent | 3426 @noindent |
3424 If you need any of the delimiter ASCII sequences for other purposes, you | 3427 If you need any of the delimiter ASCII sequences for other purposes, you |
3457 @section Using CDLaTeX to enter math | 3460 @section Using CDLaTeX to enter math |
3458 | 3461 |
3459 CDLaTeX-mode is a minor mode that is normally used in combination with a | 3462 CDLaTeX-mode is a minor mode that is normally used in combination with a |
3460 major LaTeX mode like AUCTeX in order to speed-up insertion of | 3463 major LaTeX mode like AUCTeX in order to speed-up insertion of |
3461 environments and math templates. Inside Org-mode, you can make use of | 3464 environments and math templates. Inside Org-mode, you can make use of |
3462 some of the features of cdlatex-mode by turning on a special minor mode | 3465 some of the features of cdlatex-mode. You need to install |
3463 with @code{M-x org-cdlatex-mode}. You can also turn it on for all | 3466 @file{cdlatex.el} and @file{texmathp.el} (the latter comes also with |
3467 AUCTeX) from @url{http://www.astro.uva.nl/~dominik/Tools/cdlatex}. | |
3468 Don't turn cdlatex-mode itself under Org-mode, but use the light | |
3469 version @code{org-cdlatex-mode} that comes as part of Org-mode. Turn it | |
3470 on for the current buffer with @code{M-x org-cdlatex-mode}, or for all | |
3464 Org-mode files with | 3471 Org-mode files with |
3465 | 3472 |
3466 @lisp | 3473 @lisp |
3467 (add-hook 'org-mode-hook 'turn-on-org-cdlatex) | 3474 (add-hook 'org-mode-hook 'turn-on-org-cdlatex) |
3468 @end lisp | 3475 @end lisp |
3474 @item | 3481 @item |
3475 Environment templates can be inserted with @kbd{C-c @{}. | 3482 Environment templates can be inserted with @kbd{C-c @{}. |
3476 @item | 3483 @item |
3477 @kindex @key{TAB} | 3484 @kindex @key{TAB} |
3478 The @key{TAB} key will do template expansion if the cursor is inside a | 3485 The @key{TAB} key will do template expansion if the cursor is inside a |
3479 LaTeX fragment@footnote{Org-mode has a heuristic method to test if the | 3486 LaTeX fragment@footnote{Org-mode has a method to test if the cursor is |
3480 cursor is inside such a fragment, see the documentation of the function | 3487 inside such a fragment, see the documentation of the function |
3481 @code{org-inside-LaTeX-fragment-p}.}. For example, @key{TAB} will | 3488 @code{org-inside-LaTeX-fragment-p}.}. For example, @key{TAB} will |
3482 expand @code{fr} to @code{\frac@{@}@{@}} and position the cursor | 3489 expand @code{fr} to @code{\frac@{@}@{@}} and position the cursor |
3483 correctly inside the first brace. Another @key{TAB} will get you into | 3490 correctly inside the first brace. Another @key{TAB} will get you into |
3484 the second brace. Even outside fragments, @key{TAB} will expand | 3491 the second brace. Even outside fragments, @key{TAB} will expand |
3485 environment abbreviations at the beginning of a line. For example, if | 3492 environment abbreviations at the beginning of a line. For example, if |
3486 you write @samp{equ} at the beginning of a line and press @key{TAB}, | 3493 you write @samp{equ} at the beginning of a line and press @key{TAB}, |
3487 this abbreviation will be expanded to an @code{equation} environment. | 3494 this abbreviation will be expanded to an @code{equation} environment. |
3488 To get a list of all abbreviations, type @kbd{M-x | 3495 To get a list of all abbreviations, type @kbd{M-x cdlatex-command-help}. |
3489 cdlatex-command-help}. | |
3490 @item | 3496 @item |
3491 @kindex _ | 3497 @kindex _ |
3492 @kindex ^ | 3498 @kindex ^ |
3493 Pressing @kbd{_} and @kbd{^} inside a LaTeX fragment will insert these | 3499 Pressing @kbd{_} and @kbd{^} inside a LaTeX fragment will insert these |
3494 characters together with a pair of braces. If you use @key{TAB} to move | 3500 characters together with a pair of braces. If you use @key{TAB} to move |
3568 | 3574 |
3569 @noindent | 3575 @noindent |
3570 creates only top level headlines and does the rest as items. When | 3576 creates only top level headlines and does the rest as items. When |
3571 headlines are converted to items, the indentation of the text following | 3577 headlines are converted to items, the indentation of the text following |
3572 the headline is changed to fit nicely under the item. This is done with | 3578 the headline is changed to fit nicely under the item. This is done with |
3573 the assumption that the first bodyline indicates the base indenation of | 3579 the assumption that the first bodyline indicates the base indentation of |
3574 the body text. Any indenation larger than this is adjusted to preserve | 3580 the body text. Any indentation larger than this is adjusted to preserve |
3575 the layout relative to the first line. Should there be lines with less | 3581 the layout relative to the first line. Should there be lines with less |
3576 indentation than the first, these are left alone. | 3582 indentation than the first, these are left alone. |
3577 | 3583 |
3578 @node HTML export, XOXO export, ASCII export, Exporting | 3584 @node HTML export, XOXO export, ASCII export, Exporting |
3579 @section HTML export | 3585 @section HTML export |
4367 here and update according to what you see here}. Here is a summary of | 4373 here and update according to what you see here}. Here is a summary of |
4368 what this means in different contexts. | 4374 what this means in different contexts. |
4369 | 4375 |
4370 @itemize @minus | 4376 @itemize @minus |
4371 @item | 4377 @item |
4372 If there are highlichts in the buffer from the creation of a sparse | 4378 If there are highlights in the buffer from the creation of a sparse |
4373 tree, or from clock display, remove these highlights. | 4379 tree, or from clock display, remove these highlights. |
4374 @item | 4380 @item |
4375 If the cursor is in one of the special @code{#+KEYWORD} lines, this | 4381 If the cursor is in one of the special @code{#+KEYWORD} lines, this |
4376 triggers scanning the buffer for these lines and updating the | 4382 triggers scanning the buffer for these lines and updating the |
4377 information. | 4383 information. |
4836 @i{Bastien Guerry} provoded extensive feedback. | 4842 @i{Bastien Guerry} provoded extensive feedback. |
4837 @item | 4843 @item |
4838 @i{Kai Grossjohann} pointed out key-binding conflicts caused by | 4844 @i{Kai Grossjohann} pointed out key-binding conflicts caused by |
4839 Org-mode. | 4845 Org-mode. |
4840 @item | 4846 @item |
4847 @i{Leon Liu} asked for embedded LaTeX and tested it. | |
4848 @item | |
4841 @i{Stefan Monnier} provided a patch to keep the Emacs-Lisp compiler | 4849 @i{Stefan Monnier} provided a patch to keep the Emacs-Lisp compiler |
4842 happy. | 4850 happy. |
4843 @item | 4851 @item |
4844 @i{Todd Neal} provided patches for links to Info files and elisp forms. | 4852 @i{Todd Neal} provided patches for links to Info files and elisp forms. |
4845 @item | 4853 @item |
4870 other things. | 4878 other things. |
4871 @item | 4879 @item |
4872 Linking to VM/BBDB/GNUS was inspired by @i{Tom Shannon}'s | 4880 Linking to VM/BBDB/GNUS was inspired by @i{Tom Shannon}'s |
4873 @file{organizer-mode.el}. | 4881 @file{organizer-mode.el}. |
4874 @item | 4882 @item |
4875 @i{Daniel Sinder} came up with the idea of internal archiving my locking | 4883 @i{Daniel Sinder} came up with the idea of internal archiving by locking |
4876 subtrees. | 4884 subtrees. |
4877 @item | 4885 @item |
4878 @i{David O'Toole} wrote @file{org-publish.el} and drafted the manual | 4886 @i{David O'Toole} wrote @file{org-publish.el} and drafted the manual |
4879 chapter about publishing. | 4887 chapter about publishing. |
4880 @item | 4888 @item |