我正在用该包写一篇论文biblatex-chicago
,该包enotez
用于将脚注转换为尾注,这是 MWE:
\documentclass[a4paper]{article}
\usepackage{xcolor}
\definecolor{urlblue}{rgb}{0.19,0.54,0.92}
\definecolor{winered}{rgb}{0.5,0,0}
%%%%%%%%%%%%%%%%%%%% hyperref
\usepackage[
colorlinks=true,
linkcolor=winered,
urlcolor=urlblue,
citecolor=winered,
anchorcolor=cyan,
hyperfootnotes=true,
]{hyperref}
% Convert footnotes to endnotes
\usepackage{enotez}
\setenotez{list-name={Bibliographies \& Notes},list-style=itemize,backref=true,totoc}
\let\footnote=\endnote
\usepackage[notes,abbreviate=true,doi=false,url=false,notetype=endonly,backend=biber]{biblatex-chicago}
% Make the title of the bibliography section a hyperlink with DOI or URL if available
% https://tex.stackexchange.com/a/48409/176776
\newbibmacro{string+doiurl}[1]{%
\iffieldundef{doi}{%
\iffieldundef{url}{\textquotedblleft#1\textquotedblright}%
{\textquotedblleft\href{\thefield{url}}{#1}\textquotedblright}%
}{%
\textquotedblleft\href{https://doi.org/\thefield{doi}}{#1}\textquotedblright%
}%
}
\DeclareFieldFormat{title}{\usebibmacro{string+doiurl}{\mkbibemph{#1}}}
\DeclareFieldFormat[article,incollection,online]{title}{\usebibmacro{string+doiurl}{#1}}
\DeclareFieldFormat[online]{url}{}
\addbibresource{bibliography.bib}
\begin{document}
This is the first sentence\autocite[38]{vandergeest1995}.
The second citation\autocite[222]{kwon2010}
And a citation appears again\autocite[100]{vandergeest1995}.
% Endnotes
\printendnotes
\end{document}
这是的内容bibliography.bib
:
@article{vandergeest1995,
title = {Territorialization and State Power in {{Thailand}}},
author = {Vandergeest, Peter and Peluso, Nancy Lee},
date = {1995},
journaltitle = {Theory and Society},
volume = {24},
number = {3},
pages = {385--426},
doi = {10.1007/BF00993352}
}
@book{kwon2010,
title = {The {{Other Cold War}}},
author = {Kwon, Heonik},
date = {2010},
publisher = {{Columbia University Press}},
location = {{New York}},
doi = {10.7312/kwon15304}
}
使用上面的 LaTeX 代码,如果出现过参考书目条目,稍后再次引用它将以简化格式链接到第一个条目的位置,这是一个我非常喜欢的好实现。但是,这遇到了与引号有关的问题。如下面的屏幕截图所示,左引号是超链接的,而右引号没有。但是,我想让两个都不可点击(或反之亦然),我该怎么做?提前谢谢!