[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
AUCTeX may automatically indent your document as you write it. By
pressing LFD instead of RET at the end of a line, the
current line is indented by two spaces according to the current
environment level, and the cursor is moved down one line. By pressing
TAB, the current line is indented, and the cursor stays where it
is. The well-known Emacs feature fill-paragraph
(M-q) is
reimplemented especially for AUCTeX to follow the indentation (even
in commented parts of the document). A special command
LaTeX-fill-buffer
lets you indent an entire document like the
well-known C utility indent (this time, only according to the LaTeX
structure :-).