I have a longtable spreading over 2 pages. Unfortunately, since I decided to use the booktabs package, I get a duplicate line separator between the table header of the second page and the next table entry. I found solutions like adding a *
behind the \\
but they didn't work.
I want to remove the annoying dashed line on the second page:
My minimal example:
\documentclass[a4paper, 12pt]{article}
\usepackage{longtable}
\usepackage{arydshln}
\usepackage{booktabs}
\begin{document}
\vspace*{17cm}
\begin{longtable}[c]{@{}llll@{}}\toprule
\# & A & B & C\\
\midrule
\endhead
1 & A & B & C \\
\hdashline
2 & A & B & C \\
\hdashline
A & A & B & C \\
\hdashline
3 & A & B & C \\
\hdashline
4 & A & B & C \\
\hdashline
5 & A & B & C\\
\hdashline
6 & A & B & C\\
\hdashline
7 & A & B & C \\
\bottomrule
\end{longtable}
\end{document}
\endfirsthead
etc. commands? But in this case, it's sufficient to interchange\midrule
and\endhead
, in my point of viewarydshline
breaks a little bit the advantages ofbooktabs
, reducing the space, perhaps this only my impression\hdashline
, such that this is shifted to the next page, making a double line with themidrule
from\endhead