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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7. PAGINATION AND HEADERS\makeevenhead{companion}%{\normalfont\bfseries\thepage}{}{%\normalfont\bfseries\leftmark}\makeoddhead{companion}%{\normalfont\bfseries\rightmark}{}{%\normalfont\bfseries\thepage}Now issuing the command \pagestyle{companion} will produce pages typeset withcompanion pagestyle headers. This pagestyle is part of the <strong>class</strong>.\addtopsmarks{〈pagestyle〉}{〈prepend〉}{〈append〉}\addtopsmarks{〈pagestyle〉}{〈prepend〉}{〈append〉} is the last of this group of helpermacros. It inserts 〈prepend〉 and 〈append〉 before and after the current definition of\makepsmarks for 〈pagestyle〉. For instance, if you wanted \subsection titles to appearin the page headers of the companion pagestyle then this would be a way of doing it:\addtopsmarks{companion}{}{%\createmark{subsection}{right}{shownumber}{}{. \space}}<strong>The</strong> ruled pagestyleFor practical reasons I prefer a page style with headings where the chapter title is at leastin the center of the page, and for technical works is at the fore-edge. I also prefer the pagenumber to be near the outside edge. When picking up a book and skimming through it,either to get an idea of what is in it or to find something more specific, I hold it in one handat the spine and use the other for flicking the pages. <strong>The</strong> book is half closed while doingthis and it’s much easier to spot things at the fore-edge than those nearer the spine. <strong>The</strong>ruled page style is like this. <strong>The</strong> general plan is defined as:\makepagestyle{ruled}\makeevenfoot {ruled}{\thepage}{}{} % page numbers at the outside\makeoddfoot {ruled}{}{}{\thepage}\makeheadrule {ruled}{\textwidth}{\normalrulethickness}\makeevenhead {ruled}{\scshape\leftmark}{}{} % small caps\makeoddhead {ruled}{}{}{\rightmark}<strong>The</strong> other part of the specification has to ensure that the \chapter and \section commandsmake the appropriate marks for the headers. I wanted the numbers to appear inthe headers, but not those for sections. <strong>The</strong> following code sets these up, as well as themarks for the other document elements.\makepsmarks{ruled}{%\nouppercaseheads\createmark{chapter}{left}{shownumber}{}{. \space}\createmark{section}{right}{nonumber}{}{}\createplainmark{toc}{both}{\contentsname}\createplainmark{lof}{both}{\listfigurename}\createplainmark{lot}{both}{\listtablename}\createplainmark{bib}{both}{\bibname}\createplainmark{index}{both}{\indexname}\createplainmark{glossary}{both}{\glossaryname}116

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

Saved successfully!

Ooh no, something went wrong!