可以让 longtable 从一页的中间开始吗?

发布于 2024-08-21 14:14:14 字数 993 浏览 8 评论 0原文

意识到旧版本的 longtable 在页面中间启动表格时遇到问题,我已经下载了最新的 longtable.sty,它与我的文档位于同一目录中;但我的表格前面仍然有分页符(大约 75% 的空白页),这特别令人沮丧,因为表格只有三页多一点。


两个问题:

  • 我能否确定将 longtable.sty 放在与我的文档相同的目录中,当我 \usepackage{longtable}(是的,事实证明这没问题)

  • 我可以做些什么来强制表尽快启动吗?


编辑:我的latex --version是:

pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
...
Compiled with libpng 1.2.26; using libpng 1.2.26
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.01

虽然我无法轻易更改它,因为我正在使用托管系统。


再次编辑:
我已上传了重现该问题的文档的缩减版本:
http://codepad.org/zbCQtRg8(主文件)
http://codepad.org/Xv8lRABi (包含长表的文件)

Aware that old versions of longtable had trouble starting tables halfway down a page I have downloaded the latest longtable.sty, and it's in the same directory as my document; but there is still page break (and an approximately 75% blank page) before my table, which is particularly frustrating since the table runs to just over three pages.

Two questions:

  • Can I be sure that putting longtable.sty in the same directory as my document it will be picked up when I \usepackage{longtable} (yes, it turns out this is okay)

  • Is there anything I can do to force the table to start as soon as possible?

EDIT: my latex --version is:

pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
...
Compiled with libpng 1.2.26; using libpng 1.2.26
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.01

Though I can't easily change this as I'm working on a managed system.

EDIT again:
I've uploaded a cut down version of the document that reproduces the problem at:
http://codepad.org/zbCQtRg8 (main file)
http://codepad.org/Xv8lRABi (included file with longtable)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟─花易冷 2024-08-28 14:14:14

\include{test-data} 更改为 \input{test-data},表格将出现在节标题的正下方。

\include{} 命令相当于 \clearpage \input{file} \clearpage 这就是为什么你的表格直到下一页才开始。

\input{} 命令只是插入文件的内容,没有任何额外的废话。

Change your \include{test-data} to \input{test-data} and the table appears right under the section header.

the \include{} command is equivalent to \clearpage \input{file} \clearpage which is why your table didn't start until the next page.

the \input{} command just inserts the content of the file, with no extra non-sense.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文