0

For the following Longtable MWE, how can I make the third vertical line and the second horizontal line thicker than the other lines?

\documentclass[12pt, twoside]{article} 
\usepackage{longtable}
\begin{document}
\begin{longtable}[c]{|l|c|c|c|}
\hline
 & Col 2 & Col 3 & Col 4 \\ \hline
\endfirsthead
Row 2 & a & b & c \\ \hline
Row 3 & x & y & z \\ \hline
\end{longtable}
\end{document}
CraigS
  • 23
  • There is the accepted answer to the similar problem of yours here. Is it helpful? – Celdor Jun 06 '22 at 01:41
  • Not quite... the closest to success was with with V{num}, but it highlighted that for some reason the edges of the cells in my table aren't perfectly lined up vertically. It may have worked in the MWE. – CraigS Jun 06 '22 at 12:13
  • Well, solutions in the link seem to be working for me. You could try tabularray. It provides very intuitive interface to create complex tables where lines, spaces, alignments, etc. are easy to tune. You don't really need any other package but code may take a bit longer to compile. – Celdor Jun 06 '22 at 12:33
  • Okay - thanks for the suggestions. Maybe there's something special about Longtable that's causing the issue. – CraigS Jun 06 '22 at 14:45

1 Answers1

2

Does the following example work for you

\documentclass[12pt, twoside]{article}
\usepackage{array}
\usepackage{longtable}
\usepackage{booktabs}

\begin{document}

\begin{longtable}{l | c | c !{\vrule width 2pt} c} \hline & Col 2 & Col 3 & Col 4 \ \specialrule{.2em}{0em}{0em} \endhead \specialrule{.1em}{0em}{0em} \endfoot \specialrule{.2em}{0em}{0em} \endlastfoot Row 2 & a & b & c \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \ \hline Row 3 & x & y & z \end{longtable}

\end{document}

   
enter image description here enter image description here
enter image description here
Celdor
  • 9,058