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.

2.7. Side margins\setlength{\textheight}{41\baselineskip + \topskip}\settypeblocksize{41\baselineskip + \topskip}{33pc}{*}<strong>The</strong> \fixthelayout macro finally implements the layout, making due adjustementfor any binding allowance, and calculates the values for all the standard La<strong>TeX</strong> layoutparameters (such that packages can use these expected values). If you have used the <strong>class</strong>macros to change the layout in any way, you must call \checkandfixthelayout afteryou have made all the necessary changes. As an aid, the final layout parameter values aredisplayed on the terminal and written out to the log file.\typeoutlayout\typeoutstandardlayout\settypeoutlayoutunit{〈unit〉}\typeoutlayout writes the current <strong>class</strong> layout parameter values to the terminal and thelog file. It is called by \checkandfixthelayout but you can use it yourself at any time.<strong>The</strong> macro \typeoutstandardlayout writes the standard layout parameter values to theterminal and log file so that you can compare the two sets of parameter values.By using the macro \settypeoutlayoutunit, the user can change the unit in whichthe layout list is shown. Very handy when designing in, say, centimeters. Supported unitsare pt, pc, mm, cm, in, bp, dd and cc, default being pt, see Table 2 for more informationabout the units.2.7 SIDE MARGINSIn twoside printing the spine margin is normally the same on both recto and verso pagesand, unless the spine and fore-edge margins are the same, the typeblock is shifted side toside when printing the recto and verso pages. Additionally you can have different headersand footers for the recto and verso pages. However, in oneside printing the typeblock isnot moved and the headers and footers are the same for both odd and even pages.Some documents are designed to have, say, a very wide righthand margin in which toput illustrations; this leads to needing the spine margin on verso pages to be much largerthan the spine margin on recto pages. This can be done with the oneside option. However,different headers and footers are required for the recto and verso pages, which can only bedone with the twoside option. <strong>The</strong> way to get the desired effects is like this (twoside is thedefault <strong>class</strong> option):\document<strong>class</strong>{<strong>memoir</strong>}%%% set up the recto page layout\checkandfixthelayout% or perhaps \checkandfixthelayout[lines]\setlength{\evensidemargin}{\oddsidemargin}% after \checkandfix......2.8 PRINTING AND VIEWINGWhen pdfLa<strong>TeX</strong> is used to generate a PDF version of a <strong>memoir</strong> document some specialsetup must be done.\fixpdflayout25

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

Saved successfully!

Ooh no, something went wrong!