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.

2. LAYING OUT THE PAGEthe La<strong>TeX</strong> parameters directly using either \setlength or \addtolength applied to theparameter(s) to be modified. If you choose the latter route, those <strong>class</strong> parameters whichdiffer from the standard La<strong>TeX</strong> parameters will not be modified.<strong>The</strong> general process of setting up your own page layout is along these lines:• Decide on the required finished page size, and pick a stock size that is at least as largeas the page.• If needed, use \setstocksize to set the values of \stockheight and\stockwidth, followed by \settrimmedsize to specify the values of\paperheight and \paperwidth.If you use and print on, say, A4, the a4paper <strong>class</strong> option is enough, not\setstocksize needed.• Decide on the location of the page with respect to the stock. If the page and stocksizes are the same, then call \settrims{0pt}{0pt}. If they are not the same sizethen decide on the appropriate values for \trimtop and \trimedge to position thepage on the stock, and then set these through \settrims.• Decide on the size of the typeblock and use \settypeblocksize to specify the valuesof \textheight and \textwidth.• If you need a binding allowance, now is the time for \setbinding.• Pick the value for the spine margin, and use \setlrmargins to set the values forthe \spinemargin and \foremargin.An alternative sequence is to use \setlrmarginsandblock to set the\textwidth for a particular choice of side margins.• Pick the value for the upper margin and use \setulmargins to set the values forthe \uppermargin and \lowermargin.An alternative sequence is to use \setulmarginsandblock to set the\textheight for a particular choice of upper and lower margins.<strong>The</strong> typeblock is now located on the page.• Pick the values for the \headheight and \footskip and use \setheadfoot tospecify these.• Pick your value for \headskip and use \setheaderspaces to set this and\headmargin.• If you are going to have any marginal notes, use \setmarginnotes to specify thevalues for \marginparsep, \marginparwidth and \marginparpush.You can plan and specify your layout in any order that is convenient to you. Each ofthe page layout commands is independent of the others; also if a value is set at one point,say the \textwidth, and is then later changed in some way, only the last of the settings isused as the actual value.Comparing Figures 2.3 and 2.1 you can see the different layout parameters providedby the <strong>class</strong> and used by standard La<strong>TeX</strong>. For convenience, and because the figures do notshow all the parameters, the two sets of parameters are listed in Table 2.9.Unless you are satisfied with the default page layout, after specifying the layout thatyou want you have to call the \checkandfixthelayout command to finally implementyour specification.22\checkandfixthelayout[〈algorithm〉]\checkthelayout[〈algorithm〉]\fixthelayout\baselineskip \topskip

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

Saved successfully!

Ooh no, something went wrong!