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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\tiny smallest<br />

\scriptsize very small<br />

\footnotesize smaller<br />

\small small<br />

\normalsize normal<br />

\large large<br />

4.1. Changing font 63<br />

\Large larger<br />

\LARGE even larger<br />

\huge still larger<br />

\Huge largest<br />

all of which are relative <strong>to</strong> the st<strong>and</strong>ard size selected in the document<br />

class option. In this book, the st<strong>and</strong>ard size is 10 pt, which is then the<br />

size selected with \normalsize.<br />

The font size declarations behave as all other declarations: they make<br />

an immediate change that remains in effect until counteracted by another<br />

size declaration, or until the current environment comes <strong>to</strong> an end. If<br />

issued within curly braces {..}, the effect of the declaration extends only<br />

<strong>to</strong> the closing brace, as in a nameless environment:<br />

normal {\large large \Large larger} normal again<br />

normal large larger normal again<br />

Changing the font size with one of the above comm<strong>and</strong>s also au<strong>to</strong>matically<br />

! changes the interline spacing. For every font size, there is a corresponding natural<br />

line spacing \baselineskip. This may be altered at any time. If the natural<br />

line spacing is 12 pt, the comm<strong>and</strong> \setlength{\baselineskip}{15pt} will<br />

increase it <strong>to</strong> 15 pt.<br />

The value of \baselineskip that is effective at the end of the paragraph<br />

is used <strong>to</strong> make up the whole paragraph. This means that if there are several<br />

changes <strong>to</strong> \baselineskip within a paragraph, only the last value given will be<br />

taken in<strong>to</strong> account.<br />

With every change in font size, \baselineskip is reset <strong>to</strong> its natural value<br />

for that size. Any previous setting with \setlength will be nullified.<br />

In order <strong>to</strong> create a change in the line spacing that is valid for all font sizes,<br />

one must make use of the fac<strong>to</strong>r \baselinestretch, which has a normal value<br />

of 1. The true interline spacing is really<br />

\baselinestretch×\baselineskip<br />

which maintains the same relative spacing for all font sizes. The user may change<br />

this spacing at any time with:<br />

\renewcomm<strong>and</strong>{\baselinestretch}{fac<strong>to</strong>r}<br />

where fac<strong>to</strong>r is any decimal number. A value of 1.5 increases the interline spacing<br />

(baseline <strong>to</strong> baseline) by 50% over its natural size for all font sizes.<br />

The new value of \baselinestretch does not take effect until the next<br />

change in font size. In order <strong>to</strong> implement a new value in the current font size, it<br />

is necessary <strong>to</strong> switch <strong>to</strong> another size <strong>and</strong> back again immediately. If the present<br />

font size is \normalsize, the sequence<br />

\small\normalsize<br />

will do the trick. Any size comm<strong>and</strong> may be used in place of \small.

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

Saved successfully!

Ooh no, something went wrong!