Page Numbering and Headings

The command \pagestyle controls page numbering and headings. It should always go between the \documentclass{article} and the \begin{document} commands. It can take the following forms:

  1. \pagestyle{plain} is the default, which puts the page number at the center of the bottom of the page and provides no headings.
  2. \pagestyle{empty} provides neither page numbers nor headings.
  3. \pagestyle{headings} will provide page numbers and headings from any \section's that you are using.
  4. \pagestyle{myheadings} will provide page numbers and custom headings.

These commands can also be applied to a single page using \thispagestyle instead of \pagestyle.

Practice: Prepare two documents entitled format1.tex and format2.tex containing any text that you want and using the first two different page styles.


2002-02-28