Here's a (minimal?) working example that illustrates both the issues I am having:
\documentclass{article}
\usepackage{longtable,booktabs,lipsum,array}
\usepackage{pgfplots}
\newcommand{\sheaf}{\mathcal}
\begin{document}
\begin{longtable}{>{\raggedright}m{2.5in} c c c c c c c}
\caption{Degree 8 curves\label{table:degree_8}}\\ \toprule
Rational curve: \\$[t,s] \mapsto$ & $\sheaf E_{1} |_C$ & $\sheaf E_{2} |_C$ & $\sheaf E_{3} |_C$ & $\sheaf E_{4} |_C$ & $\sheaf E_{5} |_C$ & $\sheaf E_{6} |_C$\\ \midrule
\endfirsthead
\caption[]{Degree 8 curves (continued)}\\ \toprule
Rational curve: \\$[t,s] \mapsto$ & $\sheaf E_{1} |_C$ & $\sheaf E_{2} |_C$ & $\sheaf E_{3} |_C$ & $\sheaf E_{4} |_C$ & $\sheaf E_{5} |_C$ & $\sheaf E_{6} |_C$\\ \midrule
\multicolumn{1}{c}{\vdots} & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ \cmidrule{2-7}
\endhead
\multicolumn{1}{c}{\vdots} & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots\\ \bottomrule
\endfoot
\endlastfoot
\pgfplotsforeachungrouped \i in {0,...,22}
{
\lipsum[\i] & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ \\
\cmidrule{2-7}
}
\lipsum[1] & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ & $\Sigma$ \\ \bottomrule
\end{longtable}
\end{document}
I'm not even going to try to post a picture, but here are the issues:
- On the first page (and almost every page thereafter), the
\cmidrulecomes right before the footer. I would prefer for the\cmidrulehere to be eliminated altogether. Is there any way to manage this? - The
\cmidruleat the end of page 13 has been pushed onto page 14, producing an obviously unwanted effect. Assuming my first request is not feasible, is there a way to correct this (that does not involve manual adjustments to the page breaking, which kind of defeats the whole purpose of usinglongtable)?