我想要在表格前面有多行,但所有列上总是出现水平线。
梅威瑟:
\documentclass{scrartcl}
\usepackage{longtable}
\usepackage{multirow}
\begin{document}
\begin{longtable}{ | p{5cm} | p{5cm} | p{5cm} | }
\hline
\multirow{3}{*}{Multirow} & singlerow-1 & singelow-2\\
\hline
& singlerow-1 & singelow-2 \\
\hline
& singlerow-1 & singelow-2 \\
\hline
\end{longtable}
\end{document}
结果:
如何删除第一列的线条?
答案1
您可以通过以下方式进行
\documentclass{scrartcl}
\usepackage{longtable}
\usepackage{multirow}
\begin{document}
\begin{longtable}{| p{5cm} | p{5cm} | p{5cm} | }
\hline
\multirow{3}{*}{Multi row} & Single row-1 & Single row-2 \\ \cline{2-3}
& Single row-1 & Single row-2 \\ \cline{2-3}
& Single row-1 & Single row-2 \\ \hline
\end{longtable}
\end{document}