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.

4.7. Boxes 85<br />

tentative 2004 = $100 000.00 for deficiency 2003<br />

2005 = $ 50 000.00 2004<br />

+ $100 000.00 excess for 2003 in 2004<br />

Commitments 2003 = $100 000.00<br />

2004 = $150 000.00 signed: H. André<br />

Hint: the first line in the tabbing environment should read<br />

Project: \=Total Requirements\= = \$900\,000.00 \+\\<br />

What is the effect of the \+ comm<strong>and</strong> at the end of this line? How do you arrange,<br />

using these tab s<strong>to</strong>ps, for the years 2003, 2004, <strong>and</strong> 2005 in the second <strong>to</strong> fourth<br />

lines all <strong>to</strong> be positioned before the second tab s<strong>to</strong>p? Which comm<strong>and</strong> should<br />

be at the end of the second line just before the \\termina<strong>to</strong>r?<br />

Lines 1–4 <strong>and</strong> 8–12 all use the same set of tab s<strong>to</strong>ps, even though there are<br />

additional s<strong>to</strong>ps set in the eighth line. With \$1\=00\,000.00 one can align the<br />

entry \$\>50\,000.00 in the ninth line <strong>to</strong> match the decimal places of the lines<br />

above.<br />

Lines 5–7 have their own tab s<strong>to</strong>ps. Use the save <strong>and</strong> recall feature <strong>to</strong> s<strong>to</strong>re the<br />

preset tab s<strong>to</strong>ps <strong>and</strong> <strong>to</strong> bring them back. The left border of lines 5–7 correspond<br />

<strong>to</strong> the first s<strong>to</strong>p of the first group. What comm<strong>and</strong> is at the end of the fourth line<br />

<strong>to</strong> ensure that the left border is reset <strong>to</strong> one s<strong>to</strong>p earlier? How is the left border<br />

of the second-<strong>to</strong>-last line reset?<br />

The last line contains ‘signed: H. André’ right justified. With what tabbing<br />

comm<strong>and</strong> was this produced? Watch out for the accent é in this entry within the<br />

tabbing environment!<br />

4.7 Boxes<br />

A box is a piece of text that T E X treats as a unit, like a single character. A<br />

box (along with the text within it) can be moved left, right, up, or down.<br />

Since the box is a unit, T E X cannot break it up again, even it was originally<br />

made up of smaller individual boxes. It is, however, possible <strong>to</strong> put those<br />

smaller boxes <strong>to</strong>gether as one pleases when constructing the overall box.<br />

This is exactly what T E X does internally when it carries out the formatting:<br />

the individual characters are packed in character boxes, which<br />

are put <strong>to</strong>gether in<strong>to</strong> line boxes horizontally with rubber lengths inserted<br />

between the words. The line boxes are stacked vertically in<strong>to</strong> paragraph<br />

boxes, again with rubber lengths separating them. These then go in<strong>to</strong> the<br />

page body box, which with the head <strong>and</strong> foot boxes constitutes the page<br />

box.<br />

L AT E X offers the user a choice of three box types: LR boxes, paragraph<br />

boxes, <strong>and</strong> rule boxes. The LR (left–right) box contains material that is<br />

ordered horizontally from left <strong>to</strong> right in a single line. A paragraph box<br />

will have its contents made in<strong>to</strong> vertically stacked lines. A rule box is<br />

a rectangle filled solidly with black, usually for drawing horizontal <strong>and</strong><br />

vertical lines.

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

Saved successfully!

Ooh no, something went wrong!