Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
domaines_specialises:mathematiques:arguments_contre_eqnarray2 [2018/05/24 17:00] – joseph.wright | domaines_specialises:mathematiques:arguments_contre_eqnarray2 [2020/11/16 07:48] (Version actuelle) – Suppression de la page reportée (et traduite) sur la page française. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | ||
- | section: Common misunderstandings | ||
- | subsection: Why shouldn' | ||
- | permalink: / | ||
- | date: 2014-06-10 | ||
- | --- | ||
- | |||
- | # Why not use `eqnarray`? | ||
- | |||
- | The environment `eqnarray` is attractive for the | ||
- | occasional user of mathematics in LaTeX documents: it seems to | ||
- | allow aligned systems of equations. | ||
- | things, but it makes a serious mess of spacing. | ||
- | ```latex | ||
- | \begin{eqnarray} | ||
- | a & = & b + c \\ | ||
- | x & = & y - z | ||
- | \end{eqnarray} | ||
- | ``` | ||
- | the spacing around the '' | ||
- | metrics for the font from which the glyph comes& | ||
- | `\arraycolsep`, | ||
- | associated with real arrays elsewhere in the document. | ||
- | |||
- | The user is far better served by the AMSLaTeX bundle, which | ||
- | provides an `align` environment, | ||
- | the needs of mathematicians in mind (as opposed to the convenience of | ||
- | LaTeX programmers). | ||
- | other AMSLaTeX alignment environments are capable of far greater | ||
- | things), code as: | ||
- | ```latex | ||
- | \begin{align} | ||
- | a & = b + c \\ | ||
- | x & = y - z | ||
- | \end{align} | ||
- | ``` | ||
- | The matter is discussed in more detail in a | ||
- | [PracTeX journal paper](http:// | ||
- | by Lars Madsen; Stefan Kottwitz offers a | ||
- | [TeX blog entry](http:// | ||
- | which includes screen shots of the output, convincingly demonstrating | ||
- | the problem. | ||
- | |||