簡體   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