Skip to content

Commit

Permalink
enforce pagebreak before longtable
Browse files Browse the repository at this point in the history
For some reason the longtable can overlap with footers. In our case this
could happen if the page on which the longtable starts contains a
footnote. This can be easily prevented by pushing the stat of the
longtable on a separate page.
  • Loading branch information
TarikViehmann committed Apr 18, 2022
1 parent 3808ffc commit 7491abb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rulebook.tex
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
\usepackage{calc}
\usepackage{float}
\usepackage{hhline}
\usepackage{afterpage}
\usepackage{longtable}
\restylefloat{table}

Expand Down Expand Up @@ -1605,6 +1606,8 @@ \subsection{Task Fulfillment and Scoring}
full report for the machine name to claim points.
The scoring is shown in \reftab{tab:scoring}.

% start on a new page as longtables otherwise may overlap with the footer
\afterpage{%
% alternate row coloring
\rowcolors{1}{gray!0!white}{gray!10!white}
\begin{longtable}{p{\dimexpr.30\textwidth-2\tabcolsep}
Expand Down Expand Up @@ -1731,6 +1734,7 @@ \subsection{Task Fulfillment and Scoring}
\caption{Scoring Schemes}
\label{tab:scoring}
\end{longtable}
}

\subsection{Human Responsibilities During a Match}
\label{sec:during-match}
Expand Down

0 comments on commit 7491abb

Please sign in to comment.