5 Text in Boxes

Regular text is formatted into lines and paragraphs that are used to fill up the full width and height of the main page. However, there are occasions when a segment of text is to be set in a box on its own, possibly with differing line width, to be placed as a unit somewhere on the page, perhaps with a frame around it, or as two paragraphs side by side. LATEX provides several structures for doing this, described in the next section.

Footnotes and marginal notes, other methods for repackaging a piece of text to be placed as a block at a certain spot on the page, are also treated in this chapter.

5.1 Boxes

A box is a piece of text that TEX treats as a unit, like a single character. A box (along with the text within it) can be ...

Get Guide to LaTeX, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.