TEXprovides two environmentsthat cause their contents to ...a 58 Carrying On 3.5 Figu 3.5 Figures...

1
a 58 Carrying On 3.5 Figu 3.5 Figures and Other Floating Bodies formatting command 3.5.1 Figures and Tables single float . y ; can be use TpX will break a sentence across pages to avoid a partially filled page. But IATRX some things, such as pictures, cannot be split; they must be “floated” to con- top of op venient places, like the top of the following page, to prevent half-empty pages. contains ! TEX provides two environments that cause their contents to float in this way: by wy figure and table. There are packages that define or allow you to define other influence environments for floating objects, such as a program environment for computer 2 Aguicio programs. IATEX doesn’t care what you use any of these environments for; so far as it’s concerned, the only difference between them is how they are captioned. The caption on a figure or table is made with a \caption command hav- 3.5.2 1 ing the caption’s text as its argument. This is a moving argument, so fragile A margina commands must be \protect’ed (see Section 2.2.3). The figure or table envi- argument. ronment is placed in with the text, usually just past the point where the figure ext conbal or table is first mentioned. sargtiol 9 The body of the figure goes here. This figure hap- This is the place in the running text that and, having pened to float to the top of the current page. mentions Figure™7 for the first time. line even \begin{figure} mode when Figure 7: The caption goes here. The body of the figure goes here. ood HISD This figure ... the current page. : \caption{The caption goes here.} The sta | \end{figure} default), ir | This is the place in the running text that mentions The figure will not be put on an ... document- Figure 7 for the first time. The figure will not be (the twoco put on an earlier page than the text preceding the y figure environment. put them i You mz Tables are numbered separately from figures, using the same numbering scheme. For examp Section 4.2 explains how to number cross-references automatically, so you never arrow in t have to type the actual figure numbers. \marginpa You can put anything you want in the body of a figure or table; BTEX if the note processes it in paragraph mode just like any other text. The figure environment the note g ) is generally used for pictures and the table environment for tabular information. \ Simple pictures can be drawn with the picture environment of Section 7.1. You can insert pictures prepared with other programs using the graphics package, makes an a described in Section 7.2. You can also use the \vspace command of Section 6.4.2 in.3 to leave room for a picture to be pasted in later. Tabular material can be A mary formatted with the tabular environment of Section 3.6.2. Section 6.5 explains extend bel how to center the figure or table. the page tc The body of a figure or table is typeset as a paragraph the same width as in the ordinary running text. Section 6.4.3 explains how to make paragraphs fs a of different widths, position two half-width figures side by side, and do other horizontal pe 1 of

Transcript of TEXprovides two environmentsthat cause their contents to ...a 58 Carrying On 3.5 Figu 3.5 Figures...

Page 1: TEXprovides two environmentsthat cause their contents to ...a 58 Carrying On 3.5 Figu 3.5 Figures and Other Floating Bodies formatting command 3.5.1 Figures and Tables singlefloat.

a

58 Carrying On 3.5 Figu

3.5 Figures and Other Floating Bodies formattingcommand

3.5.1 Figures and Tables single float. y ; can be use

TpX will break a sentence across pages to avoid a partially filled page. But IATRXsome things, such as pictures, cannot be split; they must be “floated” to con- top of opvenient places, like the top of the following page, to prevent half-empty pages. contains !TEX provides two environments that cause their contents to float in this way: by wyfigure and table. There are packages that define or allow you to define other influenceenvironments for floating objects, such as a program environment for computer 2 Aguicioprograms. IATEX doesn’t care what you use any of these environments for; so faras it’s concerned, the only difference between them is how they are captioned.

The caption on a figure or table is made with a \caption command hav- 3.5.2 1ing the caption’s text as its argument. This is a moving argument, so fragile A marginacommands must be \protect’ed (see Section 2.2.3). The figure or table envi- argument.ronment is placed in with the text, usually just past the point where the figure ext conbalor table is first mentioned. sargtiol 9

The body of the figure goes here. This figure hap- This is the place in the running text that and, havingpened to float to the top of the current page. mentions Figure™7 for the first time. line even

\begin{figure} mode whenFigure 7: The caption goes here. The body of the figure goes here. ood HISD

This figure ... the current page.

: \caption{The caption goes here.} The sta| \end{figure} default), ir| This is the place in the running text that mentions The figure will not be put on an ... document-

Figure 7 for the first time. The figure will not be (the twocoput on an earlier page than the text preceding the yfigure environment. put them iYou mz

Tables are numbered separately from figures, using the same numbering scheme. For exampSection 4.2 explains how to number cross-references automatically, so you never arrow in thave to type the actual figure numbers. \marginpa

You can put anything you want in the body of a figure or table; BTEX if the noteprocesses it in paragraph mode just like any other text. The figure environment the note g

) is generally used for pictures and the table environment for tabular information. \Simple pictures can be drawn with the picture environment of Section 7.1. Youcan insert pictures prepared with other programs using the graphics package, makes an adescribed in Section 7.2. You can also use the \vspace command of Section 6.4.2 in.3to leave room for a picture to be pasted in later. Tabular material can be A maryformatted with the tabular environment of Section 3.6.2. Section 6.5 explains extend belhow to center the figure or table. the page tc

The body of a figure or table is typeset as a paragraph the same width as —in the ordinary running text. Section 6.4.3 explains how to make paragraphs fsaof different widths, position two half-width figures side by side, and do other horizontal pe

1

of