blob: 8f92d8e25808ce0cd3984b9308918f768717ef35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<html>
<head><title>Help On LaTeX Displaymath</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">Displaymath</font></h1>
There are four environments that put LaTeX in math mode:
<a href="ltx-115.html#math">math</a>,
displaymath, <a href="ltx-223.html">eqnarray</a>,
and <a href="ltx-224.html">equation</a>.
The math environment is for formulas that
appear right in the text. The displaymath and equation environments are
for formulas that appear on their own line; they differ only insofar
as the latter prints an equation number. LaTeX will <strong>not</strong>
break lines in displaymath or equation environments unless told to do
so with a <a href="ltx-181.html"><tt>\\</tt></a> command.
<p>
The displaymath environment can be entered by
<pre>
<tt>\begin{displaymath}
math equation \\
second line of math equation
\end{displaymath}</tt>
</pre>
Because displaymath may be used frequently to display relatively
short equations, there are convenient alternative forms:
<pre>
<tt>\[ displayed math equation \]</tt>
</pre>
or (the following does not seem to be well documented, but appears to work)
<pre>
<tt>$$ dispalyed math equation $$</tt>
</pre>
<hr>
Related topics
<ul>
<li><a href="ltx-115.html#math">Math environment</a>
<li><a href="ltx-223.html">Eqnarray environment</a>
<li><a href="ltx-224.html">Equation environment</a>
<p>
<li><a href="ltx-130.html">LaTeX Modes</a>
<p>
<li><A href="ltx-117.html">Math Symbols</A>
<li><A href="ltx-179.html">Subscripts</A> and
<a href="ltx-180.html">Superscripts</a>
<li><A href="ltx-118.html">Spacing in Math Mode</A>
<li><A href="ltx-119.html">Math Miscellany</A>
</ul>
Back to the <a href="ltx-2.html">Table of Contents</a>
<hr>
<address>
Revised: Sheldon Green, 5 Jun 1995.
</address>
</body>
</html>
|