可以让 longtable 从一页的中间开始吗?
意识到旧版本的 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(yes, it turns out this is okay)\usepackage{longtable}
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
\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.