28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

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.

50 Chapter 3. Document Layout <strong>and</strong> Organization<br />

paperwidth=pwidth <strong>and</strong> paperheight=pheight, or as papersize=<br />

{pwidth,pheight}.<br />

• By default, the other layout parameters are set so that \textwidth is<br />

80% of \paperwidth <strong>and</strong> \textheight + \headheight + \headsep<br />

+ \footskip is 90% of \paperheight, centered horizontally <strong>and</strong><br />

vertically.<br />

• The text width <strong>and</strong> height may be set explicitly with width=width<br />

<strong>and</strong> height=height, or with body={width,height}. The margins are<br />

then set <strong>to</strong> center. Here height means <strong>to</strong>tal text height including<br />

head <strong>and</strong> footlines.<br />

• Margins may be explicitly given with left=lmarg <strong>and</strong> right=rmarg,<br />

or with hmargin={lmarg,rmarg}. Similarly with <strong>to</strong>p=tmarg <strong>and</strong><br />

bot<strong>to</strong>m=bmarg, or vmargin={tmarg,bmarg}. If only one value of a<br />

pair is given, the other is set <strong>to</strong> that same value, unless the corresponding<br />

text height or width has been given explicitly. All margins<br />

may be set <strong>to</strong> a common value with margin=marg.<br />

Unlike L AT E X st<strong>and</strong>ard \oddsidemargin <strong>and</strong> \<strong>to</strong>pmargin, geometry’s<br />

margins are measured from the edge of the paper, <strong>and</strong> not from a<br />

point 1 inch removed.<br />

• With nohead, nofoot, noheadfoot, one tells geometry not <strong>to</strong> include<br />

the corresponding head or footline in the height calculation.<br />

Thus with noheadfoot, the <strong>to</strong>tal height is identical <strong>to</strong> \textheight.<br />

• With includemp, the marginal note parameters \marginparwidth<br />

<strong>and</strong> \marginparsep (Section 4.10.5) are included in the <strong>to</strong>tal width<br />

calculation, which is then less than \textwidth. With reversemp,<br />

the marginal notes appear in the left margin.<br />

• The text width <strong>and</strong> height may be set <strong>to</strong> a fraction of the paper<br />

size with hscale=h <strong>and</strong> vscale=v, or scale={h,v}. With scale=s,<br />

both h <strong>and</strong> v are set <strong>to</strong> s. For example, \geometry{scale=0.8}<br />

sets width <strong>and</strong> height <strong>to</strong> 80% of \paperwidth <strong>and</strong> \paperheight<br />

respectively.<br />

• For two-sided output, add the option twoside. In this case, the values<br />

of the left <strong>and</strong> right margins will switch for even page numbers.<br />

In addition, a quantity of 20 pt is added <strong>to</strong> <strong>and</strong> subtracted from<br />

the left margin of odd <strong>and</strong> even pages, respectively. This value may<br />

be changed with twosideshift=shift, which also sets the twoside<br />

option au<strong>to</strong>matically.<br />

• With the verbose option, the calculated values of all the layout<br />

parameters are printed <strong>to</strong> the moni<strong>to</strong>r <strong>and</strong> <strong>to</strong> the transcript file.

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

Saved successfully!

Ooh no, something went wrong!