使用尾注代替脚注,并附上页码

使用尾注代替脚注,并附上页码

我想将\parencites 和\footnotes 转移到尾注。以下线程,我成功了一半。它在每个实例上都运行良好,除了有页面参数的实例(示例 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}

在此处输入图片描述

答案1

您应该在其中包含一个可选参数,\renewcommand以便它可以处理prenote

\renewcommand{\parencite}[2][]{\footnote{\cite[#1]{#2}.}}

根据您的使用情况,这可能不太理想。它不会处理postnotes,也不会处理parencitesetc。转换parencitefootnote/endnote也需要本地干预,因为相对于标点的位置(通常parencite会跟在空格后面,然后是句号,而会footcite跟在句号后面,然后是空格)。但我遵循了你对这个问题的初步处理方法。

结果是:

在此处输入图片描述

相关内容