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.

334 Chapter 15. Presentation Material<br />

Margins<br />

Normally the material within a slide is centered vertically. The declaration<br />

comm<strong>and</strong>s<br />

\centerslidefalse <strong>and</strong> \centerslidetrue<br />

turns this centering off <strong>and</strong> on, respectively. Without centering, the text<br />

is pushed <strong>to</strong> the <strong>to</strong>p of the slide.<br />

The text is left justified by default, with a ragged right margin. This<br />

can be changed with<br />

\raggedslides[len]<br />

where len is the maximum space between the end of the line <strong>and</strong> the right<br />

margin. Omitting len produces a ragged right margin, while a value of 0 pt<br />

yields right justification; giving 2 em, say, creates a semi-ragged margin.<br />

The margins between the slide area <strong>and</strong> the edge of the page are set<br />

with the comm<strong>and</strong>s<br />

\slideleftmargin \sliderightmargin<br />

\slide<strong>to</strong>pmargin \slidebot<strong>to</strong>mmargin<br />

which are all set initially <strong>to</strong> 0.6 in. Since these are comm<strong>and</strong>s, not lengths,<br />

they must be changed with \renewcomm<strong>and</strong>.<br />

Framing<br />

The slide area can be framed, the default being a rectangular box like that<br />

produced by \fbox (which is exactly what it is). The frame style can be<br />

chosen with<br />

\slideframe[cmds]{style}<br />

The possible values for style are plain (the default) or none. The optional<br />

cmds are settings <strong>to</strong> adjust the frame parameters, such as \fboxrule<br />

<strong>and</strong> \fboxsep. By including the fancybox package, one also has shadow,<br />

double, oval, <strong>and</strong> Oval as allowed values for style, with their corresponding<br />

parameters (Section 4.7.9).<br />

All frames make use of the lengths<br />

\slideframewidth <strong>and</strong> \slideframesep<br />

for the frame thickness <strong>and</strong> separation from text. These may only be<br />

altered (with \setlength) outside the \slideframe comm<strong>and</strong>; in the<br />

optional cmds, one must alter \fboxrule <strong>and</strong> \fboxsep directly.<br />

It is possible <strong>to</strong> define one’s own frame style with<br />

\newslideframe{new style}[cmds]{\box cmd{#1}}

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

Saved successfully!

Ooh no, something went wrong!