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.

7. PAGINATION AND HEADERS<strong>The</strong> \copypagestyle command creates a new pagestyle called 〈copy〉 using the 〈original〉pagestyle specification.If an alias and a copy pagestyle are created based on the same 〈original〉 and later the〈original〉 is modified, the alias and copy behave differently. <strong>The</strong> appearance of the aliaspagestyle will continue to match the modified 〈original〉 but the copy pagestyle is unaffectedby any change to the 〈original〉. You cannot modify an alias pagestyle but you canmodify a copy pagestyle.\makeevenhead{〈style〉}{〈left〉}{〈center〉}{〈right〉}\makeoddhead{〈style〉}{〈left〉}{〈center〉}{〈right〉}\makeevenfoot{〈style〉}{〈left〉}{〈center〉}{〈right〉}\makeoddfoot{〈style〉}{〈left〉}{〈center〉}{〈right〉}<strong>The</strong> macro \makeevenhead defines the 〈left〉, 〈center〉, and 〈right〉 portions of the〈style〉 pagestyle header for even numbered (verso) pages. Similarly \makeoddhead,\makeevenfoot, and \makeoddfoot define the 〈left〉, 〈center〉 and 〈right〉 portions of the〈style〉 header for odd numbered (recto) pages, and the footers for verso and recto pages.<strong>The</strong>se commands for 〈style〉 should be used after the corresponding \makepagestyle for〈style〉.\makerunningwidth{〈style〉}[〈footwidth〉]{〈headwidth〉}\headwidth<strong>The</strong> macro \makerunningwidth sets the widths of the 〈style〉 pagestyle headers and footers.<strong>The</strong> header width is set to 〈headwidth〉. If the optional 〈footwidth〉 is present, then thefooter width is set to that, otherwise to 〈headwidth〉. <strong>The</strong> header width is stored as thelength \〈style 〉headrunwidth and the footer width as \〈style 〉footrunwidth.<strong>The</strong> \makepagestyle initialises the widths to be the textwidth, so the macro need onlybe used if some other width is desired. <strong>The</strong> length \headwidth is provided as a (scratch)length that may be used for headers or footers, or any other purpose.\makeheadrule{〈style〉}{〈width〉}{〈thickness〉}\makefootrule{〈style〉}{〈width〉}{〈thickness〉}{〈skip〉}\makeheadfootprefix{〈style〉}{〈for headrule〉}{〈for footrule〉}A header may have a rule drawn between it and the top of the typeblock, and similarlya rule may be drawn between the bottom of the typeblock and the footer. <strong>The</strong>\makeheadrule macro specifies the 〈width〉 and 〈thickness〉 of the rule below the 〈style〉pagestyle header, and the \makefootrule does the same for the rule above the footer;the additional 〈skip〉 argument is a distance that specifies the vertical positioning of thefoot rule (see \footruleskip). <strong>The</strong> \makepagestyle macro initialises the 〈width〉 tothe \textwidth and the 〈thickness〉 to 0pt, so by default no rules are visible. <strong>The</strong> macro\makeheadfootruleprefix is intended for adding alternative colors to the head/footrules, e.g.\makeheadfootruleprefix{mystyle}{\color{red}}{\color{blue}}\normalrulethickness110

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

Saved successfully!

Ooh no, something went wrong!