Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

more space between \hline \hline

373 views
Skip to first unread message

Chris Burkert

unread,
May 12, 2005, 9:22:45 AM5/12/05
to
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?

best regards - Chris

Ulrike Fischer

unread,
May 12, 2005, 9:54:03 AM5/12/05
to
Chris Burkert <ch...@chrisburkert.de> schrieb:

> 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 @.

Chris Burkert

unread,
May 12, 2005, 10:46:30 AM5/12/05
to
Ulrike Fischer wrote:
> Change the length \doublerulesep.

Ah ... but this only works for tabular and doesn't affect longtable.

Chris

Lars Madsen

unread,
May 12, 2005, 10:53:40 AM5/12/05
to

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.

Chris Burkert

unread,
May 13, 2005, 3:13:03 AM5/13/05
to
Lars Madsen wrote:
> here is works just fine, please post a minimal example.

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

Ulrike Fischer

unread,
May 13, 2005, 4:36:43 AM5/13/05
to
Chris Burkert <ch...@chrisburkert.de> schrieb:

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.

David Carlisle

unread,
May 13, 2005, 5:55:50 AM5/13/05
to

This works


\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 Burkert

unread,
May 13, 2005, 7:43:47 AM5/13/05
to
Thanks for all the comments!

Chris

0 new messages