(emacs)LaTeX Editing

Next: TeX Print Prev: TeX Editing Up: TeX Mode

LaTeX Editing Commands

   LaTeX mode provides a few extra features not applicable to plain TeX.

`C-c C-o'
     Insert `\begin' and `\end' for LaTeX block and position point on a
     line between them. (`tex-latex-block').

`C-c C-e'
     Close the last unended block for LaTeX (`tex-close-latex-block').

   In LaTeX input, `\begin' and `\end' commands are used to group
blocks of text.  To insert a `\begin' and a matching `\end' (on a new
line following the `\begin'), use `C-c C-o' (`tex-latex-block').  A
blank line is inserted between the two, and point is left there.

   Emacs knows all of the standard LaTeX block names and will
permissively complete a partially entered block name (*note
Completion::.).  You can add your own list of block names to those
known by Emacs with the variable `latex-block-names'.  For example, to
add `theorem', `corollary', and `proof', include the line

     (setq latex-block-names '("theorem" "corollary" "proof"))

to your `.emacs' file.

   In LaTeX input, `\begin' and `\end' commands must balance.  You can
use `C-c C-e' (`tex-close-latex-block') to insert automatically a
matching `\end' to match the last unmatched `\begin'.  The `\end' will
be indented to match the corresponding `\begin'.  The `\end' will be
followed by a newline if point is at the beginning of a line.

automatically generated by info2www