\begin{}...\end{}
constructs, helps
you with the syntax, etc.
To invoke it, put in your ~/.emacs file the command
(require 'tex-site)
; invoke the AUCTeX package (LaTeX support)
(this assumes that the package is available on your machine; if not, you
can dowload it from http://www.nongnu.org/auctex/).
Next time you run Emacs, whenever you start a file whose name ends in
.tex (or other related ending), Emacs will switch to AUCTeX.
Note that this over-rules the "default" treatment of TeX files.
If you prefer that, comment out the above line from ~/.emacs.
WARNING: AUCTeX does not know all the LaTeX commands; you might have to type some by hand (instead of relying only on the choices offered by Emacs).
Here are a few more often used commands (you can find them on the menus as well):
C-c C-e
C-c RETURN
C-c ]
C-c C-c
C-c C-v
TeX-view
TeX-view-mouse
:
start TeX-view
at mouse position
C-c #
auto
; you can remove the directory without any loss
(do "C-c #
" again next time you work on
the file).
M-TAB
(or ESC TAB
, if M-TAB
has another meaning on your system)
\ref{}
or \eqref{}
,
complete from the list of known \label
's
\cite{}
, complete from the list of
known \bibitem
's
C-c #
to update this
information.
C-c `
(note: this is the "backward" quote)
C-c C-w
TeX-toggle-debug-bad-boxes
, which is an
interactive compiled Lisp function in tex.el