Previous: Previewing LaTeX fragments, Up: Embedded LaTeX

11.7.5 Using CDLaTeX to enter math

CDLaTeX mode is a minor mode that is normally used in combination with a major LaTeX mode like AUCTeX in order to speed-up insertion of environments and math templates. Inside Org mode, you can make use of some of the features of CDLaTeX mode. You need to install cdlatex.el and texmathp.el (the latter comes also with AUCTeX) from http://www.astro.uva.nl/~dominik/Tools/cdlatex. Don't use CDLaTeX mode itself under Org mode, but use the light version org-cdlatex-mode that comes as part of Org mode. Turn it on for the current buffer with M-x org-cdlatex-mode, or for all Org files with

     (add-hook 'org-mode-hook 'turn-on-org-cdlatex)

When this mode is enabled, the following features are present (for more details see the documentation of CDLaTeX mode):


Footnotes

[1] Org mode has a method to test if the cursor is inside such a fragment, see the documentation of the function org-inside-LaTeX-fragment-p.