I'm trying to put more space between \hline \hline in a longtable or
tabular environment. Unfortunatly \hline \vspace{5pt} \hline doesn't do
the job.
Any ideas?
best regards - Chris
> Hi
>
> I'm trying to put more space between \hline \hline in a longtable or
> tabular environment. Unfortunatly \hline \vspace{5pt} \hline doesn't do
> the job.
>
> Any ideas?
Change the length \doublerulesep.
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
Ah ... but this only works for tabular and doesn't affect longtable.
Chris
here is works just fine, please post a minimal example.
\documentclass{article}
\usepackage{longtable}
\begin{document}
\addtolength\doublerulesep{4pt}
\begin{longtable}{cc}
s &g\\
\hline\hline
\end{longtable}
\end{document}
Remember that regarding longtables you might have to compile a few times before
the changes kicks in.
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/amslatex.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.
Ups ... you're right! In the same example you posted it works. But when
I put this in my thesis, it doesn't work.
[10 minutes later]
I have a \usepackage{colortbl} in my document which caused this. Try the
following example:
\documentclass{article}
\usepackage{colortbl}
\usepackage{longtable}
\begin{document}
\addtolength\doublerulesep{4pt}
\begin{longtable}{cc}
s &g\\
\hline\hline
\end{longtable}
\end{document}
Currently I don't need colored rowes and column but this would be a good
thing to have for the future.
Chris
This seems to be a bug that has been reported in 1999 already. At this
time the author, David Carlisle, suggested to replace in colortbl.sty
every LT@next by @let@token
I tried this in a copy colortbl_fix.sty and it seems to work fine. I
would suggest that you write to the author and ask him to correct this
bug.
\documentclass{article}
\usepackage{longtable}
\usepackage{colortbl}
\makeatletter
\AtBeginDocument{
\ifx\longtable\@undefined\else
\def\LT@@hline{%
\ifx\@let@token\hline
\global\let\@let@token\@gobble
\ifx\CT@drsc@\relax
\gdef\CT@LT@sep{%
\noalign{\penalty-\@medpenalty\vskip\doublerulesep}}%
\else
\gdef\CT@LT@sep{%
\multispan\LT@cols{%
\CT@drsc@\leaders\hrule\@height\doublerulesep\hfill}\cr}%
\fi
\else
\global\let\@let@token\@empty
\gdef\CT@LT@sep{%
\noalign{\penalty-\@lowpenalty\vskip-\arrayrulewidth}}%
\fi
\ifnum0=`{\fi}%
\multispan\LT@cols
{\CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill}\cr
\CT@LT@sep
\multispan\LT@cols
{\CT@arc@\leaders\hrule\@height\arrayrulewidth\hfill}\cr
\noalign{\penalty\@M}%
\@let@token}
\fi}
\makeatother
\addtolength\doublerulesep{14pt}
\begin{document}
\begin{longtable}{cc}
s &g\\
\hline\hline
s &g\\
\hline\hline
\end{longtable}
\end{document}
Or equivalently make a global change in colortbl.sty of
\LT@next to \@let@token and change the optional argument of
\ProvidesPackage{colortbl}
in colortbl.sty to say
[... + fix to LT double hline]
David
Chris