Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
4_domaines_specialises:mathematiques:arguments_contre_eqnarray2 [2018/06/03 15:05] joseph.wright |
4_domaines_specialises:mathematiques:arguments_contre_eqnarray2 [2020/11/16 08:48] yannick.tanguy Suppression de la page reportée (et traduite) sur la page française. |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Why not use `eqnarray`? ====== |
- | title: Why not use `eqnarray`? | + | |
- | category: usage | + | |
- | permalink: /FAQ-eqnarray | + | |
- | --- | + | |
- | The environment `eqnarray` is attractive for the | + | |
+ | The environment ''eqnarray'' is attractive for the | ||
occasional user of mathematics in LaTeX documents: it seems to | occasional user of mathematics in LaTeX documents: it seems to | ||
- | allow aligned systems of equations. Indeed it _does_ supply such | + | allow aligned systems of equations. Indeed it //does// supply such |
things, but it makes a serious mess of spacing. In the system: | things, but it makes a serious mess of spacing. In the system: | ||
- | ```latex | + | |
+ | <code latex> | ||
\begin{eqnarray} | \begin{eqnarray} | ||
a & = & b + c \\ | a & = & b + c \\ | ||
x & = & y - z | x & = & y - z | ||
\end{eqnarray} | \end{eqnarray} | ||
- | ``` | + | </code> |
- | the spacing around the "=" signs is _not_ that defined in the | + | the spacing around the "=" signs is //not// that defined in the |
- | metrics for the font from which the glyph comes — it's | + | metrics for the font from which the glyph comes --- it's |
- | `\arraycolsep`, which may be set to some very odd value for reasons | + | ''\arraycolsep'', which may be set to some very odd value for reasons |
associated with real arrays elsewhere in the document. | associated with real arrays elsewhere in the document. | ||
- | The user is far better served by the AMSLaTeX bundle, which | + | The user is far better served by the |
- | provides an `align` environment, which is designed with | + | [[ctanpkg>amsmath|amsmath]] package, which |
+ | provides an ''align'' environment, which is designed with | ||
the needs of mathematicians in mind (as opposed to the convenience of | the needs of mathematicians in mind (as opposed to the convenience of | ||
- | LaTeX programmers). For this simple case (`align` and | + | LaTeX programmers). For this simple case (''align'' and |
- | other AMSLaTeX alignment environments are capable of far greater | + | other [[ctanpkg>amsmath|amsmath]] |
+ | alignment environments are capable of far greater | ||
things), code as: | things), code as: | ||
- | ```latex | + | |
+ | <code latex> | ||
\begin{align} | \begin{align} | ||
a & = b + c \\ | a & = b + c \\ | ||
x & = y - z | x & = y - z | ||
\end{align} | \end{align} | ||
- | ``` | + | </code> |
The matter is discussed in more detail in a | The matter is discussed in more detail in a | ||
- | [PracTeX journal paper](https://tug.org/pracjourn/2006-4/madsen/madsen.pdf) | + | [[https://tug.org/pracjourn/2006-4/madsen/madsen.pdf|PracTeX journal paper]] |
by Lars Madsen; Stefan Kottwitz offers a | by Lars Madsen; Stefan Kottwitz offers a | ||
- | [TeX blog entry](http://texblog.net/latex-archive/maths/eqnarray-align-environment/) | + | [[http://texblog.net/latex-archive/maths/eqnarray-align-environment/|TeX blog entry]] |
which includes screen shots of the output, convincingly demonstrating | which includes screen shots of the output, convincingly demonstrating | ||
the problem. | the problem. | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk>FAQ-eqnarray|Why not use `eqnarray`?]] | ||
+ | |||
+ | {{htmlmetatags>metatag-keywords=(LaTeX,usage) | ||
+ | metatag-og:title=(Why not use `eqnarray`?) | ||
+ | metatag-og:site_name=(FAQ LaTeX francophone) | ||
+ | }} | ||