Page styles determine if/how page headings and numbers are to be displayed. Page
style can be set with \pagestyle, which changes the style from the current
page on throughout the remainder of your document, or \thispagestyle, which
changes the style for the current page only. Both \pagestyle{option} and
\thispagestyle{option} take the following options:
- empty: no headers, footers or page numbers
- plain: only page numbers
- headings: headers only (the document style specifies what goes in the headings)
- myheadings: headers only (you specify what goes in the heading via \markboth or \markright)
Page numbering can be specified via \pagenumbering{style} and there are
different styles, such as:
- arabic (1, 2, 3, ...)
- roman (i, ii, iii, ...)
- Roman (I, II, III, ...)
- alph (a, b, c, ...)
- Alph (A, B, C, ...)
Page numbering style affects the pages (obviously), table of contents and page references.
Page numbers are tracked down by a dedicated counter. This counter can be
manually set via \setcounter{page}{number}. Changing page numbering styles or
modifying the page counter can result in page numbering clashes. When using the
hyperref package, which requires each page to have a unique identifier (i.e.,
page number), this can be a problem. The solution is to avoid having two pages
with the same page number by changing the page numbering style whenever a
counter is reset, for example, via \frontmatter , \mainmatter or
\backmatter. Page clashes can also occur when using roman and alph page
numbering style, because the i of the alph is the same as the i of roman.
Tags: LaTeX