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

\ensuremath (LaTeX2e)

\ensuremath{Text set in math mode}

The argument of the \ensuremath command is always set in math mode, regardless of the current mode. Note that math mode is not specifically invoked in the argument of the \ensuremath command.

Thus \ensuremath{$\alpha^2+\beta^2$} is not correct. The correct form is \ensuremath{\alpha^2+\beta^2}.

See also \newcommand


Go to LaTeX Table of Contents


Revised 4 May 1995.