ltxprimer-1.0

130

XI . F LOATS

\includegraphics{ file.eps }

XI . 1 . 5 . Rotating and scaling objects In addition to the \includegraphics command, the graphicx package includes four other commands which rotate and scale any L A TEX object: text, EPS graphic, etc.

\scalebox{2}{\includegraphics{file.eps}} \resizebox{4in}{!}{\includegraphics{file.eps}} \rotatebox{45}{\includegraphics{file.eps}} produces the same three graphics as

\includegraphics[scale=2]{file.eps}

\includegraphics[width=4in]{file.eps} \includegraphics[angle=45]{file.eps} For example, the following are produced with

L A TEX \rotatebox{45}{\fbox{\LARGE{\LaTeX}}}

L A TEX \rotatebox{180}{\fbox{\LARGE{\LaTeX}}}

However, the \includegraphics is preferred because it is faster and produces more efficient PostScript.

XI . 2 . T HE table ENVIRONMENT With the box elements already explained in the previous chapter, it would be possible to produce all sorts of framed and unframed tables. However, L A TEXoffers the user far more convenient ways to build such complicated structures. XI . 2 . 1 . Constructing tables The environments tabular and tabular* are the basic tools with which tables can be constructed. The syntax for these environments is: \begin{ tabular }[ pos ]{ cols } rows \end{ tabular } \begin{ tabular* }{ width }[ pos ]{ cols } rows \end{ tabular* } Both the above environments actually create a minipage. The meaning of the above arguments is as follows: pos Vertical positioning arguments (see also the explanation of this argument for parboxes). It can take on the values:

Made with FlippingBook Publishing Software