当我尝试放置一些高级表格时,表格的问题是 LateX

问题描述 投票:0回答:1

我一直在尝试找到该表的解决方案,其余的很简单,但前 3 行让我很困难。问题是HCI总是在EP2下而不是交互下

这是我尝试过的:


\begin{table}[H]
\centering
\begin{tabular}{|l|l|l|l|l|l|}
\hline
EP.2 & \multicolumn{4}{c|}{EP1} & Interaction \\ \hline
     & \multicolumn{4}{c|}{Méthodes d'expression des émotions} & \\ \hline
     & Tâches passives & Tâches actives & Tâches passives + actives & HCI & HHI \\ \hline
\end{tabular}
\caption{Description des différentes bases de données}
\label{tab:bases-donnees}
\end{table}

enter image description here

latex tex overleaf
1个回答
0
投票

你的

multicolumns
应该设置为3,而不是4。试试这个,

\begin{table}[h]
\centering
\begin{tabular}{|l|l|l|l|l|l|}
\hline
{EP.2}&\multicolumn{3}{c|}{EP.1}  & \multicolumn{2}{c|}{Interaction}  \\ \cmidrule{2-4}
     &  \multicolumn{3}{c|}{Methodes d'expression des emotions} &\multicolumn{2}{c|}{}\\ \cmidrule{2-6}
     & \begin{tabular}{@{}c@{}}Taches \\ passives\end{tabular}  & \begin{tabular}{@{}c@{}}Taches \\ actives\end{tabular} & \begin{tabular}{@{}c@{}}Taches passives \\ + actives\end{tabular}    & HCI & HHI \\ \hline
\end{tabular}
\caption{Description des differentes bases de donnees}
\label{tab:bases-donnees}
\end{table} 

给出以下输出, output with columns

不过我更愿意放弃垂直线,

\begin{table}[h]
\centering
\begin{tabular}{@{}lcccccc@{}}
\hline
{EP.2}&\multicolumn{3}{@{}c@{}}{EP.1}  & \multicolumn{2}{@{}c@{}}{Interaction}  \\ \cmidrule{2-4}
     &  \multicolumn{3}{@{}c@{}}{Methodes d'expression des emotions} &\multicolumn{2}{@{}c@{}}{}\\ \cmidrule{2-6}
     & \begin{tabular}{@{}c@{}}Taches \\ passives\end{tabular}  & \begin{tabular}{@{}c@{}}Taches \\ actives\end{tabular} & \begin{tabular}{@{}c@{}}Taches passives \\ + actives\end{tabular}    & HCI & HHI \\ \hline
\end{tabular}
\caption{Description des differentes bases de donnees}
\label{tab:bases-donnees}
\end{table}

这导致 putput without columns

© www.soinside.com 2019 - 2024. All rights reserved.