![紧接在 longtblr 之前的章节标题进入下边距并与页码重叠(甚至可能更低)](https://linux22.com/image/471139/%E7%B4%A7%E6%8E%A5%E5%9C%A8%20longtblr%20%E4%B9%8B%E5%89%8D%E7%9A%84%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98%E8%BF%9B%E5%85%A5%E4%B8%8B%E8%BE%B9%E8%B7%9D%E5%B9%B6%E4%B8%8E%E9%A1%B5%E7%A0%81%E9%87%8D%E5%8F%A0%EF%BC%88%E7%94%9A%E8%87%B3%E5%8F%AF%E8%83%BD%E6%9B%B4%E4%BD%8E%EF%BC%89.png)
喂食latex
或pdflatex
与
\documentclass{article}
\usepackage{tabularray}
%\usepackage{tabularx}
\begin{document}
Text
%%% For tabularray:
\vspace*{122.63ex}%%% The lengthy section title overlaps the page number; this is wrong. With .01ex more, the lengthy section title correctly goes to the next page.
%%% For tabularx:
%\vspace*{107.55ex}%%% The lengthy section title doesn't overlap the page number; this is correct. With .01ex more, the lengthy section title correctly goes to the next page.
Text
\section{Lengthy section title}
\SetTblrInner[longtblr]{rowsep=0pt}\begin{longtblr}[label=none]{@{}lX@{}}
%\begin{tabularx}{\linewidth}{@{}lX@{}}
short symbol 1 & long, multi-line explanation 1\\
short symbol 2 & long, multi-line explanation 2
\end{longtblr}
%\end{tabularx}
\end{document}
产量
在第一页的底部。特别是,章节标题“冗长的章节标题”与页码“1”重叠。这是错误的。
为了找到错误的根源,我们尝试使用以下方法重现该问题表格型代替表格数组—我们失败了(参见上面输入中的评论)。因此,很可能表格数组这方面有一个错误。
下面是一个更短更清晰(但毫无意义)的文档,揭露了同样的错误:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
Text
\vspace*{122.63ex}
Text
\section{Lengthy section title}
\begin{longtblr}[label=none]{l}
table
\end{longtblr}
\end{document}
在我的非最小示例中(我无法提供它 - 我很抱歉),部分标题甚至完全从页面上消失,可能是因为标题太低了。
在https://github.com/lvjr/tabularray/issues/454,我们恳请修复一个错误。
在 TeX.SE,我们恳请大家提供一个解决方法或替代包,以便为我们提供替代的longtabu
(来自已故的禁忌您可以使用一个包来设置分页符和一列的自动宽度。
在非最小示例中,列规范{@{}lX@{}}
是我们唯一需要的东西。第一列将很窄(每个表格单元格最多有几个符号)。第二列包含符号的解释;这些解释中至少有一个跨越多行。在我们最紧迫的非最小示例中,我们的表格不是很长——我们最多希望其中有一个分页符。(在其他示例中,表格最多可以有 10 页。)