12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SevenPagination and headers<strong>The</strong> focus of this chapter is on marking the pages with signposts so that the reader canmore readily navigate through the document.7.1 PAGINATION AND FOLIOSEvery page in a La<strong>TeX</strong> document is included in the pagination. That is, there is a numberassociated with every page and this is the value of the page counter. This value can bechanged at any time via either \setcounter or \addtocounter.\pagenumbering{〈rep〉}\pagenumbering*{〈rep〉}<strong>The</strong> macros \pagenumbering and \pagenumbering* cause the folios to be printed usingthe counter representation 〈rep〉 for the page number, where 〈rep〉 can be one of: Alph,alph, arabic, Roman or roman for uppercase and lowercase letters, arabic numerals, anduppercase and lowercase Roman numerals, respectively. As there are only 26 letters, Alphor alph can only be used for a limited number of pages. Effectively, the macros redefine\thepage to be \rep{page}.Additionally, the \pagenumbering command resets the page counter to one; thestarred version does not change the counter. It is usual to reset the page number backto one each time the style is changed, but sometimes it may be desirable to have a continuoussequence of numbers irrespective of their displayed form, which is where the starredversion comes in handy.\savepagenumber\restorepagenumber<strong>The</strong> macro \savepagenumber saves the current page number, and the macro\restorepagenumber sets the page number to the saved value. This pair of commandsmay be used to apparently interrupt the pagination. For example, perhaps some full pageillustrations will be electronically tipped in to the document and pagination is not requiredfor these. This could be done along the lines of:\clearpage% get onto next page\savepagenumber % save the page number\pagestyle{empty} % no headers or footers%% insert the illustrations\clearpage105Chapter last updated 2013/05/21 (revision 469)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!