Next: , Previous: , Up: Commands for graphics   [Contents][Index]

22.3.3 \scalebox


\scalebox{horizontal factor}{material}
\scalebox{horizontal factor}[vertical factor]{material}

Scale the material.

This example halves the size, both horizontally and vertically, of the first text and doubles the size of the second.

\scalebox{0.5}{DRINK ME} and \scalebox{2.0}{Eat Me}

If you do not specify the optional vertical factor then it defaults to the same value as the horizontal factor.

You can use this command to resize a graphic, as here.


If you use the graphicx package then you can accomplish the same thing with optional arguments to \includegraphics (see \includegraphics).

The \reflectbox command abbreviates \scalebox{-1}[1]{material}. Thus, Able was I\reflectbox{Able was I} will show the phrase ‘Able was I’ immediately followed by its mirror reflection.

Unofficial LaTeX2e reference manual