最后,表格看起来应该是这样的
如何让“团队表”的顶行跨越多列?这就是我所取得的进展:
答案1
像这样?
以下代码可作为您未来问题的 MWE(最小工作示例)。肯定之前有人问过类似的问题...
\documentclass{article}
\usepackage{multirow}
\begin{document}
{
\renewcommand\arraystretch{1.2}
\begin{tabular}{| l | c | l |}
\hline
\multicolumn{3}{|c|}{Team sheet} \\
\hline
Goalkeeper & GK & Paul Robinson \\
\hline
\multirow{4}{*}{Goalkeeper}
& GK & Paul Robinson \\
& GK & Paul Robinson \\
& GK & Paul Robinson \\
& GK & Paul Robinson \\
\hline
\multirow{3}{*}{Goalkeeper}
& GK & Paul Robinson \\
& GK & Paul Robinson \\
& GK & Paul Robinson \\
\hline
\multirow{2}{*}{Goalkeeper}
& GK & Paul Robinson \\
& GK & Paul Robinson \\
\hline
\end{tabular}
}
\end{document}