【问题标题】:paracol and footnote placing in Latex在 Latex 中放置 paracol 和脚注
【发布时间】:2020-05-17 00:23:53
【问题描述】:

对于我当前的项目,我需要将两个文本排成两列。这个想法是,一列显示原始语言,第二列显示其翻译,一行一行地整齐排列。包 paracol 做了我想要的,除了一件事:脚注放置。

如果其中一列有脚注而另一列没有脚注,则原文和译文的行不会放在一起。脚注打乱了行的排列。

这是一个示例,您可以在该示例中看到“应该在左列中的行旁边的一些其他文本”未与原始行对齐。都是因为脚注。

\documentclass[twoside,a4paper,11pt]{book}
\usepackage{paracol}
\usepackage{lipsum}
\begin{document}
\begin{paracol}{2}
\lipsum[1-2]
\switchcolumn
\lipsum[1-2]
\switchcolumn
text with footnote\footnote{the footnote}

and some other text

\switchcolumn
the translation without footnote

some other text that should be next to the line in the left column

\end{paracol}
\end{document}

如您所见,脚注打乱了行的对齐方式。如何解决这个问题?

【问题讨论】:

    标签: latex


    【解决方案1】:

    我通过在加载 paracol 包后添加以下行找到了自己问题的解决方案:

    \footnotelayout{p}
    

    这可确保为整个页面布置脚注,而不是默认的每列。

    (由于我还使用 perpage 参数添加了 footmisc,因此我还必须删除 perpage 参数并添加以下内容:

    \usepackage{everypage}
    \AddEverypageHook{\setcounter{footnote}{0}} % resets footnote counter on every page
    

    )

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-06
      相关资源
      最近更新 更多