尾註和腳註在同一個文檔中?

尾註和腳註在同一個文檔中?

是否有機會\chapter為同一\scrbook文件中的另一章建立腳註和尾註?尾註應直接出現在章節之後。

答案1

這是一個如何將腳註本地轉換為尾註的簡單範例。它只是\let腳註到尾註,反之亦然。

\documentclass{scrbook}

\usepackage{endnotes}
\let\ofootnote\footnote

\begin{document}
\chapter{Foonote 1}
Test\footnote{Quack}. This is a test\footnote{Test}.
\let\footnote\endnote
\chapter{Endnote}
Test\footnote{Quack}. This is a test\footnote{Test}.
\let\footnote\ofootnote
\chapter{Footnote 2}
Test\footnote{Quack}. This is a test\footnote{Test}.
\clearpage\theendnotes
\end{document}

相關內容