aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2006-06-28 09:50:05 +0000
committerCarsten Dominik2006-06-28 09:50:05 +0000
commitdbdd75346821ac587644adfaab540a6b33d170fd (patch)
treeff69aec99fb1291db556ed7be87047772bdf7945
parentc9ca81df739101aa7e599ed7195443a11026fdab (diff)
downloademacs-dbdd75346821ac587644adfaab540a6b33d170fd.tar.gz
emacs-dbdd75346821ac587644adfaab540a6b33d170fd.zip
(Embedded LaTeX): Fix typos and implement small improvements
throughout this chapter.
-rw-r--r--man/org.texi46
1 files changed, 27 insertions, 19 deletions
diff --git a/man/org.texi b/man/org.texi
index cfd1db5ea28..26d0f25f90b 100644
--- a/man/org.texi
+++ b/man/org.texi
@@ -3,7 +3,7 @@
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
@@ -198,7 +198,7 @@ The weekly/daily agenda
198 198
199Embedded LaTeX 199Embedded 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
@@ -3372,7 +3372,7 @@ not necessary (but OK) to surround multi-character sub- and superscripts
3372with curly braces. For example 3372with curly braces. For example
3373 3373
3374@example 3374@example
3375The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius o 3375The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
3376the sun is R_@{sun@} = 6.96 x 10^8 m. 3376the sun is R_@{sun@} = 6.96 x 10^8 m.
3377@end example 3377@end example
3378 3378
@@ -3400,13 +3400,16 @@ snippets will be identified as LaTeX source code:
3400@itemize @bullet 3400@itemize @bullet
3401@item 3401@item
3402Environments of any kind. The only requirement is that the 3402Environments 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
3404whitespace. 3404whitespace.
3405@item 3405@item
3406Text within the usual La@TeX{} math delimiters. Org-mode recognizes 3406Text within the usual La@TeX{} math delimiters. To avoid conflicts with
3407single @samp{$} characters as math delimiters only if they are directly 3407currency specifications, single @samp{$} characters are only recognized
3408attached to the surrounded text, with no whitespace in between. For the 3408as math delimiters if the enclosed text contains at most two line breaks,
3409other delimiters, there is no such restriction. 3409is directly attached to the @samp{$} characters with no whitespace in
3410between, and if the closing @samp{$} is followed by whitespace or
3411punctuation. For the other delimiters, there is no such restriction, so
3412when in doubt, use @samp{\(...\)} as inline math delimiters.
3410@end itemize 3413@end itemize
3411 3414
3412@noindent For example: 3415@noindent For example:
@@ -3416,7 +3419,7 @@ other delimiters, there is no such restriction.
3416x=\sqrt@{b@} % even tables, figures 3419x=\sqrt@{b@} % even tables, figures
3417\end@{equation@} % etc 3420\end@{equation@} % etc
3418 3421
3419If $a=\sqrt@{b@}$ and \( b=2 \), then the solution must be 3422If $a^2=b$ and \( b=2 \), then the solution must be
3420either $$ a=+\sqrt@{2@} $$ or \[ a=-\sqrt@{2@} \]. 3423either $$ a=+\sqrt@{2@} $$ or \[ a=-\sqrt@{2@} \].
3421@end example 3424@end example
3422 3425
@@ -3459,8 +3462,12 @@ setting is active:
3459CDLaTeX-mode is a minor mode that is normally used in combination with a 3462CDLaTeX-mode is a minor mode that is normally used in combination with a
3460major LaTeX mode like AUCTeX in order to speed-up insertion of 3463major LaTeX mode like AUCTeX in order to speed-up insertion of
3461environments and math templates. Inside Org-mode, you can make use of 3464environments and math templates. Inside Org-mode, you can make use of
3462some of the features of cdlatex-mode by turning on a special minor mode 3465some of the features of cdlatex-mode. You need to install
3463with @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
3467AUCTeX) from @url{http://www.astro.uva.nl/~dominik/Tools/cdlatex}.
3468Don't turn cdlatex-mode itself under Org-mode, but use the light
3469version @code{org-cdlatex-mode} that comes as part of Org-mode. Turn it
3470on for the current buffer with @code{M-x org-cdlatex-mode}, or for all
3464Org-mode files with 3471Org-mode files with
3465 3472
3466@lisp 3473@lisp
@@ -3476,8 +3483,8 @@ Environment templates can be inserted with @kbd{C-c @{}.
3476@item 3483@item
3477@kindex @key{TAB} 3484@kindex @key{TAB}
3478The @key{TAB} key will do template expansion if the cursor is inside a 3485The @key{TAB} key will do template expansion if the cursor is inside a
3479LaTeX fragment@footnote{Org-mode has a heuristic method to test if the 3486LaTeX fragment@footnote{Org-mode has a method to test if the cursor is
3480cursor is inside such a fragment, see the documentation of the function 3487inside 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
3482expand @code{fr} to @code{\frac@{@}@{@}} and position the cursor 3489expand @code{fr} to @code{\frac@{@}@{@}} and position the cursor
3483correctly inside the first brace. Another @key{TAB} will get you into 3490correctly inside the first brace. Another @key{TAB} will get you into
@@ -3485,8 +3492,7 @@ the second brace. Even outside fragments, @key{TAB} will expand
3485environment abbreviations at the beginning of a line. For example, if 3492environment abbreviations at the beginning of a line. For example, if
3486you write @samp{equ} at the beginning of a line and press @key{TAB}, 3493you write @samp{equ} at the beginning of a line and press @key{TAB},
3487this abbreviation will be expanded to an @code{equation} environment. 3494this abbreviation will be expanded to an @code{equation} environment.
3488To get a list of all abbreviations, type @kbd{M-x 3495To get a list of all abbreviations, type @kbd{M-x cdlatex-command-help}.
3489cdlatex-command-help}.
3490@item 3496@item
3491@kindex _ 3497@kindex _
3492@kindex ^ 3498@kindex ^
@@ -3570,8 +3576,8 @@ at a different level, specify it with a prefix argument. For example,
3570creates only top level headlines and does the rest as items. When 3576creates only top level headlines and does the rest as items. When
3571headlines are converted to items, the indentation of the text following 3577headlines are converted to items, the indentation of the text following
3572the headline is changed to fit nicely under the item. This is done with 3578the headline is changed to fit nicely under the item. This is done with
3573the assumption that the first bodyline indicates the base indenation of 3579the assumption that the first bodyline indicates the base indentation of
3574the body text. Any indenation larger than this is adjusted to preserve 3580the body text. Any indentation larger than this is adjusted to preserve
3575the layout relative to the first line. Should there be lines with less 3581the layout relative to the first line. Should there be lines with less
3576indentation than the first, these are left alone. 3582indentation than the first, these are left alone.
3577 3583
@@ -4369,7 +4375,7 @@ what this means in different contexts.
4369 4375
4370@itemize @minus 4376@itemize @minus
4371@item 4377@item
4372If there are highlichts in the buffer from the creation of a sparse 4378If there are highlights in the buffer from the creation of a sparse
4373tree, or from clock display, remove these highlights. 4379tree, or from clock display, remove these highlights.
4374@item 4380@item
4375If the cursor is in one of the special @code{#+KEYWORD} lines, this 4381If the cursor is in one of the special @code{#+KEYWORD} lines, this
@@ -4838,6 +4844,8 @@ patched CSS formatting into the HTML exporter, and inspired the agenda.
4838@i{Kai Grossjohann} pointed out key-binding conflicts caused by 4844@i{Kai Grossjohann} pointed out key-binding conflicts caused by
4839Org-mode. 4845Org-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
4842happy. 4850happy.
4843@item 4851@item
@@ -4872,7 +4880,7 @@ other things.
4872Linking to VM/BBDB/GNUS was inspired by @i{Tom Shannon}'s 4880Linking 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
4876subtrees. 4884subtrees.
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