具有合并列和长文本的多行表

具有合并列和长文本的多行表

我一直在努力用 Latex 制作这张表格。有人可以帮忙吗?我正在写一篇论文,但要花很长时间才能将我的表格移到 Overleaf 中。

在此处输入图片描述

答案1

像这样

在此处输入图片描述

\documentclass{article}

\usepackage{tabularx,booktabs}

\begin{document}

\begin{center}
  \begin{tabularx}{\linewidth}{ll>{\raggedright}Xr}
    \toprule
\textbf{Label 1}& \textbf{Label 2}&\textbf{Label 3}& $N$\\
\midrule
WORD &Short phrase&
Description on several lines. Description on several lines.
Description on several lines. Description on several lines.
& 2
\\
 &Short phrase&
New Description on several lines. Description on several lines.
Description on several lines. Description on several lines.
& 3
\\
\midrule
WORD &Short phrase&
Description on several lines. Description on several lines.
Description on several lines. Description on several lines.
&4
\\
 &Short phrase&
New Description on several lines. Description on several lines.
Description on several lines. Description on several lines.
&5
\\
\bottomrule
  \end{tabularx}
\end{center}
\end{document}

相关内容