21.3.3 \scalebox

Synopses:

\scalebox{horizontal factor}{material}
\scalebox{horizontal factor}[vertical factor]{material}
\reflectbox{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.

\scalebox{0.5}{\includegraphics{lion}}

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 against a vertical axis.


Unofficial LaTeX2e reference manual