This page's content is no longer actively maintained, but the material has been kept on-line for historical purposes.
The page may contain broken links or outdated information, and parts may not function in current web browsers.

Hypertext Help with LaTeX

\mbox

\mbox{text}

The \mbox command creates a box just wide enough to hold the text in its argument. The text in the box is in LR mode which prevents it from being broken across lines.

The \makebox command is similar except that it allows you to specify a width which is not necessarily the natural width of the text and also to specify the placement within the box.

An \mbox within math mode does not use the current math font; rather it uses the typeface of the surrounding running text.

The \mbox command is robust.


See \fbox, \makebox
See also Spaces and Boxes
Return to LaTeX Table of Contents


Revised 8 Aug 1995.