[texhax] \cline spaces
Sam Albers
tonightsthenight at gmail.com
Wed May 12 23:01:26 CEST 2010
Hello there,
I can't seem to find the answer to the following table issue I am having in
LaTeX. The example below work fine but I would like a small space between
the \cline's such that the level heading are better distinguished form each
other. So I would like a spaces in the line that separate the multi spanning
column headers but not the other horizontal lines.
Is this possible? The example below should illustrate what I am talking
about.
Thanks in advance!
Sam
\documentclass[12pt, pdftex]{article}
\usepackage{multirow}
\begin{document}
\begin{table}[htp]
\begin{center}
{\scriptsize
\begin{tabular}{lrrrrrrr}
\hline
& & \multicolumn{2}{c}{level1} & \multicolumn{2}{c}{level2} &
\multicolumn{2}{c}{level3} \\
\cline{3-4} \cline{5-6} \cline{7-8}
\noalign{\smallskip}
type & f1 & f2 & f3 & f4 & f5 & f6 & f7 \\
\hline
Section & 2.3 & 2.288 & 0.009 & 1.779 & 0.008 & 0.338 & 2.1\\
Period & 2.8 & 3.309 & 0.002 & 4.060 & 0.000 & 0.866 & 2.3\\
\hline
\end{tabular}
}
\end{center}
\end{table}
\end{document}
--
*****************************************************
Sam Albers
Geography Program
University of Northern British Columbia
3333 University Way
Prince George, British Columbia
Canada, V2N 4Z9
phone: 250 960-6777
*****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100512/6536d66d/attachment.html>
More information about the texhax
mailing list