Next: , Previous: , Up: LaTeX   [Contents][Index]


10.1.3.4 Sections in LaTeX

FWEB’s sectioning commands ‘@*’ and ‘@*n’ are converted into LaTeX’s section commands such as \section (n=0), \subsection (n=1), and \subsubsection (n=2). During LaTeX’s processing of the .tex file, it keeps track of the maximum depth achieved by ‘@*n’. This number is written as the last item in the aux file. During the next LaTeX run, that number is used to map the untitled ‘ commands to the next most insignificant sectioning command. That level of sectioning command is slightly redefined from LaTeX’s default, so don’t try to redefine it.

The previous scheme means that it may be necessary to run LaTeX as many as three times in order to resolve all sectioning and cross-reference information correctly. You should be warned in such cases. If not, you will recognize difficulties by noting that the Table of Contents or section numbering is incomplete.

The aux file is also used by both processors to generate appropriate error messages that refer to the LaTeX section number instead of the internal one.

A discussion of alternative section-numbering schemes is given in Numbering.