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\global\floatattopfalse\global\floatatbotfalse}\endinput\floatattop is probably set true if there is a float at the top of the page and\floatatbot is probably set true if there is a float at the bottom of the page.7.4 THE SHOWLOCS PAGESTYLE<strong>The</strong> showlocs pagestyle is somewhat special as it is meant to be used as an aid whendesigning a page layout. Lines are drawn showing the vertical positions of the headersand footers and a box is drawn around the textblock. It is implemented using two zerosizedpictures. 2\framepichead\framepictextfoot\framepichook\showheadfootlocoff\showtextblockoff<strong>The</strong> macro \framepichead creates a zero-sized picture that draws a line at the headerlocation, and the macro \framepictextfoot creates a zero-sized picture that draws a lineat the footer location and also draws a box around the typeblock. Following the declaration\showheadfootlocoff the macros \framepichead and \framepictextfoot do notdraw lines showing the header and footer locations. <strong>The</strong> declaration \showtextblockoffprevents \framepictextfoot from drawing a box around the textblock.In case you want to change the color of the showlocs, simply do\renewcommnand\framepichook{\color{red}}If you generally want a box around the textblock you may want to create your ownpagestyle using \framepictextfoot and the showlocs code as a starting point, see<strong>memoir</strong>.cls for details.7.5 OTHER THINGS TO DO WITH PAGE STYLESBack on page 111 we presented a way of adding some draft information. Here is a moreadvanced example of this.One interesting use for page styles is to provide extra information below the footer.This might be some kind of copyright information. Or if your document is under versioncontrol with a system like Subversion, and you have all your chapter laying in seperatefiles, then why not add information at the start of very chapter, specifying who did thelast change to this chapter at which time. See the svn-multi package ([Sch09]) and thePracTEX Journal article [Sch07] by the same author. <strong>The</strong>n this information can be added tothe start of every chapter using something like:\usepackage[filehooks]{svn-multi}\makeatletter% remember to define a darkgray color2 A zero-sized picture starts off with begin{picture}(0,0)....120

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

Saved successfully!

Ooh no, something went wrong!