I am trying to make a longtable, that has repeating headers. Also, each row has rules. In the second page, however, the rule repeats twice.It looks unpolished. How do I fix this?
MWE
\documentclass[11pt, a4paper, oneside]{memoir}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{arydshln}
\setlength\dashlinedash{0.2pt}
\setlength\dashlinegap{1.5pt}
\setlength\arrayrulewidth{0.3pt}
\begin{document}
\begin{longtable}{l}
\toprule
Title \\
\midrule
\endfirsthead
\toprule
Title \\
\midrule
\endhead
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \hdashline
D \\ \hdashline
A \\ \hdashline
B \\ \hdashline
C \\ \bottomrule
\end{longtable}
\end{document}
The Economist too uses rules
longtable
and has nothing to do witharray
,booktabs
ormemoir
, so I deleted the tags\hddashline
directives. Thelongtable
will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.