我希望第一个表格为 1 (a),第二个表格为 1 (b) [而不是表格 1 和表格 2],而无需更改{center}
或{tabular}
环境。交替单元格已合并。可以这样做吗?
\documentclass{article}
\usepackage{array}
\usepackage{capt-of}
\begin{document}
\begin{center}
\setlength\extrarowheight{-5pt}
\begin{tabular}{ | m{6.85cm} | m{6.7cm} | }
\hline
\centering
\textbf{heading 1} & \textbf{heading 2} \\
\hline
1 \\
\hline
$$ eq. 1a $$ & $$ eq. 1b $$ \\
\hline
2 \\
\hline
$$ 2a $$ & $$ eq. 2b $$ \\
\hline
\end{tabular}
\captionof{table}{Table 1\label{t1}}
\end{center}
\begin{center}
\setlength\extrarowheight{-5pt}
\begin{tabular}{ | m{6.75cm} | m{6.75cm} | }
\hline
\centering
\textbf{heading 1} & \textbf{heading 2} \\
\hline
3 \\
\hline
$$ eq. 3a $$ & $$ eq. 3b $$\\
\hline
4 \\
\hline
$$ eq. 4a $$ & $$ eq. 4b $$ \\
\hline
\end{tabular}
\captionof{table}{Table 2\label{t2}}
\end{center}
\end{document}