[texhax] nopagebreak \hline in a longtable
Nico Van Cleemput
nico.vancleemput at gmail.com
Thu Oct 16 20:40:16 CEST 2008
Thanks, I had done several searches with slightly different keywords
and the first pages of Google gave nothing.
2008/10/16 Ulrike Fischer <news2 at nililand.de>:
> Am Thu, 16 Oct 2008 09:39:48 +0200 schrieb Nico Van Cleemput:
>
>
> a search google.groups ("hline longtable nopagebreak") gives this
> solution:
>
> \documentclass{article}
> \usepackage{longtable}
>
> \makeatletter
> \newcommand*{\nonbreakhline}{\cline{1-\LT at cols}}
> \makeatother
> \begin{document}
> \begin{longtable}{llll}
> links & mitte links & mitte rechts & rechts \\\nonbreakhline
> links & mitte links & mitte rechts & rechts \\*\nonbreakhline
> links & mitte links & mitte rechts & rechts \\
> \end{longtable}
> \end{document}
>
> --
> Ulrike Fischer
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
More information about the texhax
mailing list