summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/latex2e-html/ensuremath.html
blob: 10f0dea161126b900892c6684c27d86db4766bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head><title>Help On LaTeX2e \ensuremath</title></head>
<body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#cc0000" alink="#cc0000">
<h1><font size="-2">Hypertext Help with LaTeX</font><br><font color="#cc0000">\ensuremath (<strong>LaTeX2e</strong>)</font></h1>
<tt>\ensuremath{Text set in math mode}</tt>
<p>
The argument of the <tt>\ensuremath</tt> command is always set in 
math mode, regardless of the current mode. Note that math mode 
is <strong>not</strong> specifically invoked in the argument of
the <tt>\ensuremath</tt> command. 
<p>
Thus <tt>\ensuremath{$\alpha^2+\beta^2$}</tt> is <strong>not 
correct</strong>.<br>
The <strong>correct</strong> form is <tt>\ensuremath{\alpha^2+\beta^2}</tt>.
<p>
See also <a href="ltx-18.html"><tt>\newcommand</tt></a>
<hr>
Go to <a href="ltx-2.html">LaTeX Table of Contents</a><br>
<hr>
<address>
Revised: Sheldon Green, 4 May 1995.
</address>
</body></html>