\usepackage{colortbl}
\usepackage{arydshln}\usepackage{multirow}\usepackage{multicol}
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\begin{table}[htbp]
\small
\renewcommand{\arraystretch}{1.3}
\centering
\begin{tabular}{|l|l|m{170pt}<{\centering}|}
\hline
\textbf{Category} & \textbf{Types} & \textbf{Primary Argument} \\
\hline
\multirow{5}{2cm}{gg} & qq & qq \\
\arrayrulecolor{gray} \cdashline{2-3}[0.8pt/2pt]
& aa$\_$ww & ww( \\
\cdashline{2-3}[0.8pt/2pt]
& aa$\_$ww & ww) \\
\cdashline{2-3}[0.8pt/2pt]
& gg & ww \\
\cdashline{2-3}[0.8pt/2pt]
& tt & rr \\
\hline
tt & tt & tt+ \\
\hline
\multirow{3}{2cm}{aa} & aa & \tabincell{c}{aa, bb}\\
\cdashline{2-3}[0.8pt/2pt]
& aa & \tabincell{c}{gg, yy}\\
\cdashline{2-3}[0.8pt/2pt]
& bb & \tabincell{c}{rr, rr}\\
\hline
\end{tabular}
\caption{Event types and primary arguments}
\label{event:eventTypes}
\end{table}
本文展示了一个使用LaTeX编写的复杂表格示例,该表格采用了多种格式化技巧,包括使用不同的包来实现表格的跨行合并、虚线分割以及单元格内的多行文本等效果。
1460

被折叠的 条评论
为什么被折叠?



