[texhax] \cline spaces

Sam Albers tonightsthenight at gmail.com
Thu May 13 17:39:59 CEST 2010


>
>
> see the booktabs package, it also has better spacing above and below its
> special rules
>
> the booktabs equivalent to \cline i called \cmidrule and has options to
> make a separation between two \cmidrule's that would collide.
>
> /daleif
>
>
Thanks Lars! Here is my example modified using the booktabs package for
completeness sake.

\documentclass[12pt, pdftex]{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{table}[htp]
\begin{center}
{\scriptsize

\begin{tabular}{lrrrrrrr}
\hline
 &  & \multicolumn{2}{c}{level1} & \multicolumn{2}{c}{level2} &
\multicolumn{2}{c}{level3} \\
 \cmidrule(lr{.75em}){3-4}  \cmidrule(lr{.75em}){5-6}
\cmidrule(lr{.75em}){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/20100513/e4baee32/attachment.html>


More information about the texhax mailing list