summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-eqnarray.html
blob: f79aa214b0475eb6716606025881cd956c301b9f (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
<head>
<title>UK TeX FAQ -- question label eqnarray</title>
</head><body>
<h3>Why not use <code>eqnarray</code>?</h3>
<p>The environment <code>eqnarray</code> is attractive for the
occasional user of mathematics in LaTeX documents: it seems to
allow aligned systems of equations.  Indeed it <em>does</em> supply such
things, but it makes a serious mess of spacing.  In the system:
<blockquote>
<pre>
\begin{eqnarray}
  a & = & b + c \\
  x & = & y - z
\end{eqnarray}
</pre>
</blockquote>
the spacing around the "=" signs is <em>not</em> that defined in the
metrics for the font from which the glyph comes - it's
<code>\</code><code>arraycolsep</code>, which may be set to some very odd value for reasons
associated with real arrays elsewhere in the document.
<p>The user is far better served by the AMSLaTeX bundle, which
provides an <code>align</code> environment, which is designed with
the needs of mathematicians in mind (as opposed to the convenience of
LaTeX programmers).  For this simple case (align is capable of far
greater things), code as:
<blockquote>
<pre>
\begin{align}
  a & = b + c \\
  x & = y - z
\end{align}
</pre>
</blockquote>
<dl>
<dt><tt><i>AMSLaTeX</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.zip">macros/latex/required/amslatex</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/amslatex/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=eqnarray">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=eqnarray</a>
</body>