我一直在尝试找到该表的解决方案,其余的很简单,但前 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}
你的
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}
不过我更愿意放弃垂直线,
\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}