[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5 Outlining the Document

AUC TeX supports the standard outline minor mode using LaTeX sectioning commands as header lines. See section `Outline Mode' in GNU Emacs Manual. By default outline-minor-mode will use the prefix key C-c which is also used by AUC TeX, so it is suggested that you choose another prefix key by inserting

 
  (setq outline-minor-mode-prefix "\C-c\C-o") ; Or whatever...

in your `.emacs' file.

You can add your own headings by setting the variable TeX-outline-extra.

Variable: TeX-outline-extra
List of extra TeX outline levels.

Each element is a list with two entries. The first entry is the regular expression matching a header, and the second is the level of the header. A `^' is automatically prepended to the regular expressions in the list, so they must match text at the beginning of the line.

See LaTeX-section-list for existing header levels.

The following example add `\item' and `\bibliography' headers, with `\bibliography' at the same outline level as `\section', and `\item' being below `\subparagraph'.

 
(setq TeX-outline-extra
      '(("[ \t]*\\\\\\(bib\\)?item\\b" 7)
        ("\\\\bibliography\\b" 2)))

You may want to check out the unbundled `out-xtra' package for even better outline support. It is available from your favorite emacs lisp archive.



This document was generated by Davide G. M. Salvetti on March, 18 2004 using texi2html