LaTeX: Sections, Divisions, and Page Numbering

Sectioning

In the body of your document, sectioning commands provide the means to structure your text into units. These are all optional, but they can greatly assist in structuring your document.

Sections and Their Depths
Depth in document Section Command Depth for \secnumdepth Command
-1 \part (report and book class only) 1
0 \chapter (report and book class only) 2
1 \section 3
2 \subsection 4
3 \subsubsection 5
4 \paragraph 6
5 \subparagraph 7

In each case, the title of the part, chapter, section, etc goes in the curly braces after the command. LaTeX automatically calculates the correct numbering and prints the title in bold. See below for more on how to modify section numbering. Headings automatically get put into the Table of Contents, if you specify one. Because headings get put into the Table of Contents, LaTeX allows you to create a longer heading, for use in the paper, and a shorter heading for use in the Table of Contents, by specifying it within the heading title command:

Normal heading title command: \section{Some section title here}
With a long heading: \section[Shorter version]{Full, long heading which would be ugly and cumbersome on the Table of Contents}

Section Numbering

All document divisions get numbered by default. To get an unnumbered section, which does not go into the Table of Contents, follow the command name with an asterisk before the opening curly brace like this:

\subsection*{shopping list}

Default Numbering for Sections
Section Type Numbering Example
Parts Uppercase Roman Numerals Part I, Part II
Chapters and Sections Decimal Numbering 1.1, 2, 2.5
Appendixes Uppercase Letters A, B, C

You can change the depth to which section numbering occurs and you can turn it off selectively. To change the depth of the sections numbered, use the depths from the chart above on "Sections and Their Depths" with the command:
\setcounter{secnumdepth}{3}

This command tells LaTeX to set the counter for the section depth to 3, which would stop all numbering after parts, chapters, and sections, so no subsections, paragraphs, or subparagraphs would be numbered. A related counting feature is tocdepth, which specifies the depth to make the Table of Contents. Its command is:
\setcounter{tocdepth}{level}

Page Numbering and Page Style

\pagenumbering

\pagenumbering{num_style}

Specifies the style of page numbers. Possible values of `num_style’ are:

arabic Arabic numerals
roman Lowercase Roman numerals
Roman Uppercase Roman numerals
alph Lowercase letters
Alph Uppercase letters

\pagestyle

\pagestyle{option}

The `\pagestyle’ command changes the style from the current page on throughout the remainder of your document.

The valid options for the \pagestyle command are:

plain Just a plain page number.
empty Produces empty heads and feet – no page numbers.
headings Puts running headings on each page. The document style specifies what goes in the headings.
myheadings You specify what is to go in the heading with the \markboth or the \markright commands.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment