Consider the following MWE
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather*}
\renewcommand{\arraystretch}{1.2}
\begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} \\
\begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix}
\end{gather*}
\begin{gather*}
\renewcommand{\arraystretch}{1.2}
\begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} \\
\renewcommand{\arraystretch}{1.2}
\begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix}
\end{gather*}
\end{document}
The first gather
produces two arrays; in the first, the fractions are properly spaced, while in the second, they are crowded together with the default vertical spacing. Why do I need to re-specify \renewcommand{\arraystretch}{1.2}
after the newline? Is there a better way to do this? (I realize I could enclose the whole gather inside a {}
pair with a \renewcommand{\arraystretch}{1.2}
after the opening {
).