37

How can I stretch the spacing between consecutive lines in an align* environment? I have a few lines with \fracs in which both the numerator and the denominator consist of textual phrases, not math symbols, and the result looks too cluttered.

\begin{align*}
X &= \frac{\textit{Some text here}}{\textit{And some text here}}\\
Y &= \frac{\textit{Will make everything}}{\textit{Look too close together}}
\end{align*}
55

You could add space manually like so:

\begin{align*}
X &= \frac{\textit{Some text here}}{\textit{And some text here}}\\[1em]
Y &= \frac{\textit{Will make everything}}{\textit{Look too close together}}
\end{align*}

change [1em] to suit how much space you want.

Thanks to Ian Thompson in the comments for pointing me to this slightly more elegant solution. If you want to add a little extra spacing to every row of an align:

\begingroup
\addtolength{\jot}{1em}
\begin{align*}
X &= \frac{\textit{Some text here}}{\textit{And some text here}}\\
Y &= \frac{\textit{Will make everything}}{\textit{Look too close together}}
\end{align*}
\endgroup

The \begingroup and \endgroup are to keep the extra alignment local to the environment. If you want all align environments to have the extra spacing, add \addtolength{\jot}{1em} to your preamble instead.

  • @Thomas this is a pretty crude way to do things. I expect there are cleverer ways like redefining \arraystretch locally or some such... But that's for array not align... – Seamus Mar 31 '11 at 14:58
  • @Seamus: Yeah, I was looking for something like \arraystretch, but adding space manually works perfectly fine for my case. – Thomas Mar 31 '11 at 15:01
  • @Thomas thanks for accepting, but it is customary to wait a while before accepting an answer: someone might suggest a better answer! Also, if it's good enough to accept, it should probably be good enough to upvote... – Seamus Mar 31 '11 at 15:04
  • 7
    @Seamus, @Thomas: I think \jot is the nearest thing to \arraystretch for this case. \addtolength{\jot}{1em} adds 1em to the default spacing between the rows. – Ian Thompson Mar 31 '11 at 15:12
  • 2
    the \jot solution is already available through the mathtools package as the spreadlines environment, makes the structure a bit 'nicer' – daleif Mar 31 '11 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.