5

To typeset some displayed equations, only the array environment was powerful enough. However, the spacing of the array environment doesn't match the spacing of the align environment.

How do I set the spacing of the array environment, such that equals the vertical spacing of the align environment.

For instance:

\begin{align*}
a & = b + c \\
d & = e + f
\end{align*}

and

\[\begin{array}{rl}
a & = b + c \\
d & = e + f
\end{array}\]

have different spacing.

bas
  • 267

1 Answers1

3
\documentclass[12pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{align*}
a & = b + c \\
d & = e + f
\end{align*}

\[
\begin{array}{rl}
a & = b + c \\
d & = e + f
\end{array}
\]

\arraycolsep=1.4pt
\def\arraystretch{1.2}
\[
\begin{array}{rl}
a & = b + c \\
d & = e + f
\end{array}
\]
\end{document}
  • The horizontal space is now correct. Thanks. However, the vertical spacing still differs. A propos: where did you find the 1.4pt? – bas Dec 25 '10 at 14:32
  • see example with defining the array stretch –  Dec 25 '10 at 14:43
  • Thanks again! The spacing is not exactly the same, though. See http://img143.imageshack.us/img143/7700/aboutright.png I've colored the {array} one red and moved it on top of the original {align*}. – bas Dec 25 '10 at 15:16
  • It seems to work in the intended situation though. ( See http://tex.stackexchange.com/questions/7730/multi-column-delimiter-in-align ) – bas Dec 25 '10 at 19:50