[Tugindia] Question about horizontal lines in Tables
Radhakrishnan CV
cvr at river-valley.org
Thu Dec 11 05:17:40 CET 2003
>>>>> "Gupta" == S Gupta <gupg at yahoo.com> writes:
Gupta> Hi In the following latex code of a table, there is a
Gupta> "double" vertical line separating columns A & B. There is
Gupta> also a vertical line that runs across both these columns
Gupta> (below the row that has A & B headings). I want the
Gupta> horizontal line to stop at the first vertical bar and then
Gupta> continue from the second vertical bar ( _| |_ instead of
Gupta> _|_|_ ).
\usepackage{hhline}
Your modified code is given below:
\begin{table*}[t]
\begin{center}
\begin{tabular}{l|l||l}
\hline
\multicolumn{1}{c|}{Case}
& \multicolumn{2}{|c}{$Example 1$} \\ \cline{2-3}
& \multicolumn{1}{|c||}{A} & \multicolumn{1}{|c}{B}
\\ \hhline{--||-}
% States Cycles States Cycles
Baseline & 42 & 3931 \\
Base + Case1
& 48(+14.3 \%) & 3163(-19.5 \%)\\
Base + Case2
& 31(-26.2 \%) & 2831(-28 \%)\\
\hhline{--||-}
\end{tabular}
\end{center}
\end{table*}
Please get back if you have further problems,
Best regards
Radhakrishnan
More information about the tugindia
mailing list