Hi there,
I observed that after using \multicolumn in the table enviroment, a vertical line is not visible in that row. Here is an example:
\begin{table}
\centering
\begin{tabular}{ll||ccc|ccc|ccc||c|c}
\hline
&& \multicolumn{6}{c}{experiments} & \multicolumn{3}{c}{simulation} & x & y \\
\hline
1 & 2& 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 \\
1 & 2& 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 \\
\end{tabular}
\end{table}
and the result:
However, the double line is not visible after the word 'simulation', and that is what I wanted. How to do this ?
Thanks in advance!
Steven
Graphics, Figures & Tables ⇒ vertical lines & multicolumn in tables
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical lines & multicolumn in tables
You better upload attachments to the forum server because external links can get lost with time. Furthermore there is the »Code« environment for posting code.
The \multicolumn command accepts in its second argument the same column settings as they are in the table head. Modify your code as shown below.
Thorsten
The \multicolumn command accepts in its second argument the same column settings as they are in the table head. Modify your code as shown below.
Code: Select all
\begin{table}[!ht]
\centering
\begin{tabular}{ll||ccc|ccc|ccc||c|c} \hline
& & \multicolumn{6}{c}{experiments} & \multicolumn{3}{c||}{simulation} & x & y \\\hline
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 \\
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 \\
\end{tabular}
\end{table}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical lines & multicolumn in tables
ok, I will keep in mind the board rules for the next time.
Thanks for the answer
Thanks for the answer