The standard use case for longtable
must be as follows:
- Headers on every page
- Caption on the first page
- Table x: Continued... on each subsequent page
So why does this seem so hard to do? This SE answer suggests that the right way to do this is:
\documentclass{article}
\usepackage{booktabs}
\usepackage{longtable}
\begin{document}
\begin{longtable}{ll}
\caption{My favourite caption}\label{tbl:table}\\
\toprule
& foo \\
\midrule
\endfirsthead
\caption{Continued...}\\
\toprule
& foo \\
\midrule
\endhead
bar & 1 \\
baz & 2 \\
\bottomrule
\end{longtable}
\end{document}
But this seems to me to be a seriously flawed workflow. If I notice a typo in the column headers (and there may be many column headers!) I have to fix it in two different places!
Is there really no way to achieve what seems to me to be the completely standard use case without breaking this pretty fundamental rule of coding?