I would like to use the cases environment in a table with alternating row colours. Here is some example code.
\usepackage[table]{xcolor}
\usepackage{amsmath}
\begin{document}
\rowcolors{2}{gray!25}{white}
\begin{tabular}{cc}
1 & 7\\
2 & \(\displaystyle
\begin{cases}
a & \quad b\\
c & \quad d
\end{cases}\)\\
3 & 4
\end{tabular}
\end{document}
Unfortunately, this results in the braces being overlapped by white. How can I fix this?
\rowcolors{2}{gray!25}{ }
, you have no problem.