
私はendnotes
パッケージを使用して文末脚注を作成していますが、既存のテキスト本文にはすでに多くの脚注が含まれているため、I use \let\footnote=\endnote
脚注を文末脚注に変換しています。
\documentclass{article}
\usepackage{endnotes}
\usepackage{hyperref}
\let\footnote=\endnote
\begin{document}
Sample text.\footnote{Sample footnote}.
\theendnotes
\end{document}
しかし、元の脚注は適切に相互参照されていましたが、変換ではそれが保持されません。相互参照を保持しながら変換する方法はありますか?
答え1
文末脚注を機能させるにはhyperref
、enotez
enotez
代わりに をロードしendnotes
、\printendnotes
の代わりにを使用するだけです\theendnotes
。
\documentclass{article}
\usepackage[backref]{enotez} % <-- instead of \usepackage{endnotes}
\usepackage{hyperref}
\let\footnote=\endnote
\begin{document}
Sample text.\footnote{Sample footnote}.
\printendnotes % <-- instead of \theendnotes
\end{document}
編集: 注釈からテキスト内のマークへの参照を戻したい場合は、オプションを使用します。backref
更新: 新しいバージョンではenotez
設定が異なります (コメントの注記を参照)
\documentclass{article}
\usepackage{enotez}
\setenotez{backref=true} % <-- options are set like this nowadays
\usepackage{hyperref}
\let\footnote=\endnote
\begin{document}
Sample text.\footnote{Sample footnote}.
\printendnotes
\end{document}