![表格:交替使用颜色时括号与白色重叠的情况](https://linux22.com/image/411927/%E8%A1%A8%E6%A0%BC%EF%BC%9A%E4%BA%A4%E6%9B%BF%E4%BD%BF%E7%94%A8%E9%A2%9C%E8%89%B2%E6%97%B6%E6%8B%AC%E5%8F%B7%E4%B8%8E%E7%99%BD%E8%89%B2%E9%87%8D%E5%8F%A0%E7%9A%84%E6%83%85%E5%86%B5.png)
答案1
看看以下解决方案是否满足您的期望:
\documentclass[12pt]{article}
\usepackage[table]{xcolor} %to use direct sum symbol
\usepackage{mathtools} % <---
\usepackage{cellspace} % <---
\setlength\cellspacetoplimit{3pt} % <---
\setlength\cellspacebottomlimit{3pt}% <---
\begin{document}
\begin{center}
\rowcolors{2}{gray!25}{white}
\begin{tabular}{cSc}
1 & 7 \\
2 & \(
\begin{dcases} % <---
a & \quad b\\
c & \quad d
\end{dcases}\) \\
3 & 4
\end{tabular}
\end{center}
\end{document}