The space between two rows seems to differ if the cases environment is used. Have a look at the following example:
\documentclass{minimal}
\begin{document}
\[
\begin{array}{l}
f(x) =%
\begin{dcases}
-1 & x < 0 \\
1 & x > 0
\end{dcases} \\[2em]
g(x) = x \\[2em]
k(x) =%
\begin{dcases}
-1 & x < 0 \\
1 & x > 0
\end{dcases}
\end{array}
\]
\end{document}
I adjust the space between the rows by adding 2em
but it looks different. Does someone has an explanation for it?
Best Answer
array
increases the line spacing in a construct such as\\[2em]
by adding2em
to its standard strut depth. However, your construction produces something that is deeper than the standard strut already, so the adjustment is not as much as you thought you requested. As you are usingdcases
which is inmathtools
you could, or even should, use analign*
environment instead, and that will space correctly.