我想将\parencite
s 和\footnote
s 转移到尾注。以下这线程,我成功了一半。它在每个实例上都运行良好,除了有页面参数的实例(示例 5)。
\documentclass{article}
\usepackage[backend=biber,
style=authoryear-comp]{biblatex}
\begin{filecontents}{\ref.bib}
@article{A,
author = {Doe, Jane and Doe, John},
title = {Title},
journal = {Journal of Something},
volume = {1},
number = {1},
pages = {1-29},
year = {1997},
type = {Journal Article}
}
@article{B,
author = {Doe, Janelle and Doe, Jack},
title = {Title},
journal = {Journal of Something},
volume = {1},
number = {1},
pages = {1-29},
year = {2000},
type = {Journal Article}
}
@article{C,
author = {Doe, Jasmin and Doe, Jared},
title = {Title},
journal = {Journal of Something},
volume = {1},
number = {1},
pages = {1-29},
year = {2001},
type = {Journal Article}
}
@article{D,
author = {Doe, Janelle and Doe, Jack},
title = {Title},
journal = {Journal of Something},
volume = {1},
number = {1},
pages = {1-29},
year = {2002},
type = {Journal Article}
}
@article{E,
author = {Doe, Janelle and Doe, Jack},
title = {Title},
journal = {Journal of Something},
volume = {1},
number = {1},
pages = {1-29},
year = {2004},
type = {Journal Article}
}
\end{filecontents}
\addbibresource{ref.bib}
\usepackage{endnotes}
\let\footnote=\endnote
\renewcommand{\parencite}[1]{\footnote{\cite{#1}}}
\begin{document}
Example\footnote{Text.}.
Example\parencite{A}.
Example\parencite{A,B,C,D,E}.
Example\footnote{\cite[31--32]{A} More text after cite.}.
Example\parencite[337]{A}.
\theendnotes
\printbibliography
\end{document}