Latex 代码在这里:
\begin{table}
\begin{center}
\rule{9cm}{2pt}
\makebox[2.9cm]{\small{Xxxx}} \rule{0.5pt}{1cm} \makebox[3.5cm]{\small{Xxxxxxxxx}} \rule{0.5pt}{1cm} \makebox[1cm]{\small{Xxxxx}}
\rule{9cm}{0.5pt}
\makebox[2.9cm]{\small{Xxxxxx Xxxxxxxx}} \rule{0.5pt}{1cm} \makebox[3.4cm]{\small{Xxxxxx Xxxxxx}} \rule{0.5pt}{1cm} \makebox[1cm]{Xxx}
\rule{9cm}{0.5pt}
\makebox[2.8cm]{\small{Xxxxxxxxxxx Xxxx}} \rule{0.5pt}{1cm} \makebox[3.5cm]{\small{Xx xx Xxxxxxxxxxx (N)}} \rule{0.5pt}{1cm} \makebox[1cm]{\small{Xxxx}}
\phantom{Xxxxxxxxxx Xxxxx} \rule{0.5pt}{1cm} \makebox[3.5cm]{\small{Xxxxx Xxx (X)}} \rule{0.5pt}{1cm} \makebox[1cm]{\small{x}}
\rule{9cm}{0.5pt}
\makebox[2.9cm]{\small{Xxxxxx Xx Xxxx}} \rule{0.5pt}{1cm} \makebox[3.7cm]{\small{Xxxxxx Xxxxxxxxx}} \rule{0.5pt}{1cm} \makebox[1cm]{\small{xx}}
\rule{9cm}{2pt}
\end{center}
\end{table}
有人好心帮助我。
答案1
这是一个带有booktabs
和的解决方案makecell
。垂直线的高度是通过在第一列的每个单元格的开头插入规定高度的不可见线来实现的。
\documentclass{article}
\usepackage{array,makecell, booktabs}
\begin{document}
\begin{table}[htb]
\centering\small\sffamily%
\setlength\aboverulesep{1ex}
\setlength\belowrulesep{1ex}
\renewcommand{\cellalign}{lc}
\setlength\arrayrulewidth{0.5pt}
\begin{tabular}{ >{\rule[-0.35cm]{0pt}{1cm}}m{2.9cm}|m{3.7 cm}|m{1cm}}
\toprule[2pt]
Xxxx & Xxxxxxxxx & Xxxxx \\
\midrule[0.5pt]
Xxxxxx Xxxxxxxx & Xxxxxx Xxxxxx & Xxx \\
\midrule[0.5pt]%
Xxxxxxxxxxx Xxxx & \makecell{Xx xx Xxxxxxxxxxx (N) \\ Xxxxx Xxx (X)} & \makecell{Xxxx \\ x} \\%
\midrule[0.5pt]%
Xxxxxx Xx Xxxx & Xxxxxx Xxxxxxxxx & xx \\
\bottomrule[2pt]%
\end{tabular}%
\end{table}%
\end{document}