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.

146 Chapter 5. Mathematical Formulas<br />

5.5.2 Selecting font size in formulas<br />

It is possible <strong>to</strong> alter the font sizes that T E X selects for the various parts<br />

of the formula. First we must explain what sizes are available in math<br />

mode <strong>and</strong> what T E X’s selection rules are.<br />

In math mode there are four font sizes that may be chosen, their actual<br />

sizes being relative <strong>to</strong> the basic font size of the document class:<br />

\displaystyle D Normal size for displayed formulas<br />

\textstyle T Normal size for text formulas<br />

\scriptstyle S Normal size for first sub-, superscript<br />

\scriptscriptstyle SS Normal size for later sub-, superscripts<br />

From now on we shall make use of the symbolic abbreviations D, T , S,<br />

<strong>and</strong> SS. When math mode is switched on, the active font size becomes D<br />

for displayed <strong>and</strong> T for text formulas. Their only difference lies in those<br />

symbols that appear in two sizes, plus the corresponding style of those<br />

superscripts <strong>and</strong> subscripts (Section 5.3.7). The larger symbols belong <strong>to</strong><br />

D, the smaller <strong>to</strong> T .<br />

Starting from these base sizes, various math elements will be set in<br />

other sizes. Once another size has been chosen for an element, it remains<br />

the active size within that element.<br />

The table below shows the selection<br />

rules:<br />

Active Fractions Super-,<br />

size upper lower subscripts<br />

D T T S<br />

T S S S<br />

S SS SS SS<br />

SS SS SS SS<br />

If the active size is D, size T is selected<br />

for both parts of the fraction. That is,<br />

for both numera<strong>to</strong>r <strong>and</strong> denomina<strong>to</strong>r<br />

T becomes the active size. If they in<br />

turn contain further fractions, these<br />

will be set in S. If the active size is<br />

D or T , superscripts <strong>and</strong> subscripts<br />

(exponents <strong>and</strong> indices) appear in S;<br />

within them S is the active size <strong>and</strong><br />

any fractions or shiftings inside them<br />

will be set in SS.<br />

The T E X elements { \a<strong>to</strong>p } <strong>and</strong> { \choose } are treated as fractions.<br />

The active font size inside an array environment is T .<br />

The smallest available math font size is SS. Once it has been reached,<br />

no further reduction is possible, so that all subsequent superscripts <strong>and</strong><br />

subscripts appear in SS as well.<br />

From the table one easily sees that<br />

\[ a_0 + \frac{1}{a_1 + \frac{1}{a_2<br />

+ \frac{1}{a_3 + \frac{1}{a_4}}}} \]<br />

must appear as shown at the right.<br />

a0 +<br />

a1 +<br />

1<br />

1<br />

a2+ 1<br />

a 3 + 1<br />

a 4<br />

Such a math structure, called a continued fraction, is normally printed as

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

Saved successfully!

Ooh no, something went wrong!