longtable 不必要地被推到下一页

longtable 不必要地被推到下一页

第二个长表不必要地被推到下一页:

页面

我已尝试将其尽可能地变成一个最小的例子:

\documentclass[]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancyvrb}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
\usepackage{longtable,booktabs,array}

\begin{document}

Some line of text

\begin{longtable}[]{@{}l@{}}
\toprule
header \\
\midrule
\endhead
value \\
\bottomrule
\end{longtable}

\vspace*{97mm}

\begin{Highlighting}[]
1
2
3
4
5
6
7
\end{Highlighting}

\begin{Highlighting}[]
1
2
3
4
5
6
7
8
\end{Highlighting}

Another line of text

\begin{longtable}[]{@{}l@{}}
\toprule
header \\
\midrule
\endhead
value \\
\bottomrule
\end{longtable}

\end{document}

答案1

看来这个问题是一个错误,并且已在发布LaTeX2e <2020-10-01> patch level 4和发布之间的某个地方得到了修复LaTeX2e <2021-06-01> patch level 1

看:https://github.com/latex3/latex2e/issues/604

相关内容