我希望最后一行的文本完全左对齐。(视觉偏好分数。)
\begin{tabular}{| *{6}{c|} }
\hline
\multicolumn{2}{|c|}{\textbf{Visual}}
& \multicolumn{2}{c|}{\textbf{Auditory}}
& \multicolumn{2}{c|}{\textbf{Tactile}} \\ \hline
No. & Points. & No. & Points. & No. & Points. \\ \hline
2 & & 1 & & 4& \\ \hline
3 & & 5 & & 6& \\ \hline
7 & & 8 & & 9& \\ \hline
10 & & 11 & & 12& \\ \hline
14 & & 13 & & 15& \\ \hline
16 & & 18 & & 17& \\ \hline
19 & & 21 & & 20& \\ \hline
22 & & 24 & & 23& \\ \hline
\multicolumn{2}{|l|}{Visual Preference Score : } & \multicolumn{2}{l|}{Auditory Preference Score : } & \multicolumn{2}{l|}{Tactile Preference Score : } \\
\hline
\end{tabular}
\end{center}
这是我得到的输出。
答案1
像这样?我假设您希望三个“点”列具有相同的宽度。
\documentclass{article}
\usepackage{array} % for 'w' column type
\begin{document}
\begin{center}
\setlength\extrarowheight{1pt} % for a less-cramped look
\begin{tabular}{| *{3}{ c| w{c}{3.5cm}| } } % 3 groups of column pairs
\hline
\multicolumn{2}{|c|}{\textbf{Visual}} &
\multicolumn{2}{ c|}{\textbf{Auditory}} &
\multicolumn{2}{ c|}{\textbf{Tactile}} \\ \hline
No. & Points. & No. & Points. & No. & Points. \\ \hline
2 & & 1 & & 4 & \\ \hline
3 & & 5 & & 6 & \\ \hline
7 & & 8 & & 9 & \\ \hline
10 & & 11 & & 12 & \\ \hline
14 & & 13 & & 15 & \\ \hline
16 & & 18 & & 17 & \\ \hline
19 & & 21 & & 20 & \\ \hline
22 & & 24 & & 23 & \\ \hline
\multicolumn{2}{|@{}l|}{\,Visual Preference Score : } &
\multicolumn{2}{ @{}l|}{\,Auditory Preference Score : } &
\multicolumn{2}{ @{}l|}{\,Tactile Preference Score : } \\ \hline
\end{tabular}
\end{center}
\end{document}