Next: , Previous: , Up: Boxes   [Contents][Index]

20.4 \raisebox

Synopsis, one of:


Raise or lower text. This command is fragile (see \protect).

This example makes a command for the restriction of a function by lowering the vertical bar symbol.


The first mandatory argument distance specifies how far to raise the second mandatory argument text. This is a rigid length (see Lengths). If it is negative then it lowers text. The text is processed in LR mode so it cannot contain line breaks (see Modes).

The optional arguments height and depth are dimensions. If they are specified, they override the natural height and depth of the box LaTeX gets by typesetting text.

In the arguments distance, height, and depth you can use the following lengths that refer to the dimension of the box that LaTeX gets on typesetting text: \depth, \height, \width, \totalheight (this is the box’s height plus its depth).

This will align two graphics on their top (see Graphics).

\usepackage{graphicx} \usepackage{calc}  % in preamble

The first \height is the height of lion.png while the second is the height of meta.png.

Unofficial LaTeX2e reference manual