旁注和脚注放置在Latex中。

问题描述 投票:1回答:1

在我目前的项目中,我需要两个文本排成两列。我的想法是,一列显示原文,第二列显示译文,整齐地逐行排列。包中的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个回答
0
投票

我找到了解决自己问题的方法,在加载paracol包后添加了以下一行。

\footnotelayout{p}

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

(由于我还添加了带有 perpage 参数的 footmisc,所以我也不得不删除 perpage 参数并添加这行。

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

)

© www.soinside.com 2019 - 2024. All rights reserved.