【问题标题】:Create table in Latex with multi-row and multi-column在 Latex 中创建具有多行和多列的表
【发布时间】:2021-09-26 07:45:11
【问题描述】:

我正在尝试在 Latex 中制作表格,但遇到了麻烦。我尝试了多种选择,但没有一个对我有用。我想制作一张类似于下面的表格: Here open the image

谁能告诉我如何在 Latex 中做到这一点?

【问题讨论】:

    标签: latex multiple-columns tabular overleaf multirow


    【解决方案1】:

    当您需要在 Latex 中创建此类表时,请使用包 multirow。您可以在 Latex 中创建所需的表,如下所示:

    \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage{multirow}
    \title{Tables}
    
    \begin{document}
    \maketitle
    \begin{table}[htb]
    \begin{tabular}{|c|l|l|l|l|l|l|l|}
    \hline
    \multicolumn{1}{|l|}{A} & B & \multicolumn{2}{c|}{C} & \multicolumn{2}{c|}{D} & \multicolumn{2}{c|}{E} \\ \hline
    \multirow{2}{*}{F}      &   &            &           &            &           &            &           \\ \cline{2-8} 
                            &   &            &           &            &           &            &           \\ \hline
    \end{tabular}
    \end{table}
    \end{document}
    
    

    这会产生您想要的如下表:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多