I'm using \extrarowheight (in combination with booktabs) to make the tables in my thesis more readable. However, this also affects the layout of the cases environment, which now look strange; in the following example, the X is placed too far down now.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{booktabs}
\setlength{\extrarowheight}{4pt}
\setlength{\belowrulesep}{0pt}
\begin{document}
\[
a = \begin{cases}
X \\
Y
\end{cases}
\]
\begin{tabular}{llll}\toprule
$a^b$ & $a_b$ & $a$ & $b$ \\ \midrule
a & b & c & d \\
\bottomrule
\end{tabular}
\end{document}

Is there any way to ignore the \extrarowheight in the cases environment?
I guess there is some \renewcommand magic that can do this, but I'm not if that's the right way to go, let alone where I would start... I also realize that I could reset \extrarowheight to 0 before the \cases and set it again afterwards, but my DRY alarm tells me not to ;).


casesusesarray. However you can consider usingmathtools'cases*which does not rely onarray– Francis Nov 20 '13 at 14:09