【问题标题】:How to fix longtable and bigfoot LaTeX packages conflict?如何修复 longtable 和 bigfoot LaTeX 包冲突?
【发布时间】:2015-08-28 11:36:29
【问题描述】:

当我在本地机器上编译单个 *.tex 文件时,似乎 longtablebigfoot 包冲突导致下一页表头的错误“粘贴”。 代码:

\documentclass{scrbook}

\usepackage{bigfoot}
\usepackage{longtable}

\begin{document}

\begin{longtable}{ | c | c | }
\hline
\textbf{First column}  & \textbf{Second column}     \\ \hline
\endhead
test & test \\ \hline
...
test & test \\ \hline
\end{longtable}

\end{document}

第一页是正确的,而所有后续页面都是错误的:它们的标题行与表格分离。

奇怪的是,当我评论 \usepackage{bigfoot} 行时,它起作用了。

根据我的调查:

  • 它适用于同时具有pdflatexlatex 的其他机器;
  • 在我的电脑上使用pdflatexlatex 都失败了。

我在 Ubuntu 中安装了大部分 texlive-* 软件包,我发现 bigfoot 在编译期间会加载以下内容:

/usr/share/texlive/texmf-dist/tex/latex/bigfoot/bigfoot.sty
/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty
/usr/share/texlive/texmf-dist/tex/latex/ncctools/manyfoot.sty
/usr/share/texlive/texmf-dist/tex/latex/ncctools/nccfoots.sty
/usr/share/texlive/texmf-dist/tex/latex/bigfoot/suffix.sty
/usr/share/texlive/texmf-dist/tex/latex/bigfoot/perpage.sty

我需要使用bigfoot 包,因为它在我正在使用的项目中使用,但我想用longtable 修复错误。有什么想法吗?

【问题讨论】:

标签: latex longtable


【解决方案1】:

正如 egreg 用户在 tex.stackexchange.com 上的 answered,问题出在过时的 bigfoot 包中。 有问题的包显示:Package: bigfoot 2006/07/15 1.25 makes footnotes work

我做了什么来解决这个问题:

  1. 从 CTAN 下载最新的 bigfoot 包(zip 存档)
  2. 解压后运行tex bigfoot.ins生成bigfoot.sty
  3. 将其移至编译我的 pdf 时发现的目录: sudo cp bigfoot.sty /usr/share/texlive/texmf-dist/tex/latex/bigfoot/;
  4. 更新了一些乳胶缓存:sudo mktexlsr

bigfoot.sty 2015/08/30 2.1 makes footnotes work 可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-10-23
    • 1970-01-01
    • 2022-06-23
    • 1970-01-01
    • 1970-01-01
    • 2017-04-18
    • 1970-01-01
    相关资源
    最近更新 更多