繁体   English   中英

paracol 和脚注放置在 Latex

[英]paracol and footnote placing in Latex

对于我当前的项目,我需要在两列中排列两个文本。 这个想法是,一列显示原始语言,第二列显示其翻译,一行一行地整齐排列。 package 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}

如您所见,脚注破坏了 alignment 行。 如何解决这个问题?

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

\footnotelayout{p}

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

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

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

)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM