[Tex/LaTex] Draw vertical line on top of horizontal table lines

tablestabularx

I'm using two \hline for horizontal line and \begin{tabular}{c | c c c c c} option for vertical line. This is some part of my table:

enter image description here

I want vertical line on top of double horizontal lines. How can I do that?

Best Answer

I know there is a package that can do this (which I cannot recall), but here it is hardwired as \dhline, which must be defined based on the point size of the document (since I don't know the macros that define the rule thicknesses and vertical skips inside tabular)

\documentclass[11pt]{article}
%\def\dhline{\\[-10.2pt]\hline\\[-14.2pt]\hline\\[-10.pt]}% for 10pt
\def\dhline{\\[-11.6pt]\hline\\[-16.0pt]\hline\\[-11.6pt]}% for 11pt
%\def\dhline{\\[-12.5pt]\hline\\[-16.8pt]\hline\\[-12.6pt]}% for 12pt
\begin{document}
\tabcolsep=2pt
hline:
\begin{tabular}{c|c}
\hline
&\\
\hline
\hline
&\\
\hline
\hline
&\\
\hline
\end{tabular}
dhline:
\begin{tabular}{c|c}
\hline
&\\
\dhline
&\\
\dhline
&\\
\hline
\end{tabular}
\end{document}

enter image description here

And here is an example showing actual content in such tabulars:

enter image description here