Go to the first, previous, next, last section, table of contents.

Outlining the Document

Minor mode for editing outlines with selective display. Headings are lines which start with asterisks: one for major headings, two for sub-headings, etc. Lines not starting with asterisks are body lines.

Body text or sub-headings under a heading can be made temporarily invisible, or visible again. Invisible lines are attached to the end of the heading, so they move with it, if the line is killed and yanked back. A heading with text hidden under it is marked with an ellipsis (...).

C-c C-o C-n
outline-next-visible-heading move by visible headings
C-c C-o C-p
C-c C-o C-f
outline-forward-same-level similar but skip sub-headings
C-c C-o C-b
C-c C-o C-u
outline-up-heading move from sub heading to heading
C-c C-o C-t
hide-body make all text invisible (not headings).
C-c C-o C-a
show-all make everything in buffer visible.
C-c C-o C-o
outline-minor-mode leave outline mode.

The remaining commands are used when point is on a heading line. They apply to some of the body or sub-headings of that heading.

C-c C-o C-h
hide-subtree make body and sub-headings invisible.
C-c C-o C-s
show-subtree make body and sub-headings visible.
C-c C-o C-i
show-children make direct sub-headings visible. No effect on body, or sub-headings 2 or more levels down. With arg N, affects sub-headings N levels down.
C-c C-o C-c
hide-entry make immediately following body invisible.
C-c C-o C-e
show-entry make it visible.
C-c C-o C-l
hide-leaves make body under heading and under its sub-headings invisible. The sub-headings remain visible.
C-c C-o C-x
show-branches make all sub-headings at all levels visible.

User Option: outline-prefix-char

The prefix char (C-c C-o) used to activate the outline commands. You most likely want to set this to something shorter.

In LaTeX mode the default headings are the sectioning commands, and as top level headings `\documentstyle', `\appendix', TeX-trailer-start, and TeX-header-end. You can also define extra headings at any level, by setting the variable TeX-outline-extra.

User Option: 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. See LaTeX-section-list for existing header levels.

You can use outlining in other modes as well, the function to do this is outline-minor-mode.

Command: outline-minor-mode prefix

Enters outline minor mode. With prefix: no-nil: turn outline mode on. nil: turn outline mode off.

User Option: outline-regexp

Regular expression matching header lines. When using outline-minor mode outside AUC TeX, this is per default set to lines beginning with one or more stars.

User Option: outline-level-function

Function calculating the level of a header. Outside AUC TeX, this is per default the length of the string matched by outline-regexp.

Go to the first, previous, next, last section, table of contents.