Biber 添加 doi

Biber 添加 doi

正文

\documentclass[12pt]{report}
\usepackage{hyperref}

\usepackage{csquotes}
\usepackage[backend=biber,style=chem-angew, doi=true]{biblatex}
\addbibresource{bibliography.bib}

\hypersetup{
    colorlinks=true,
    urlcolor=black
}

\begin{document}

\tableofcontents

\chapter{Intro}

\cite{baffou2014nanoplasmonics}

\printbibliography[heading=bibintoc,title={Bibliography}]

\end{document}

参考书目

@article{baffou2014nanoplasmonics,
  title={Nanoplasmonics for chemistry},
  author={Baffou, Guillaume and Quidant, Romain},
  doi={10.1039/C3CS60364D},
  journal={Chemical Society Reviews},
  volume={43},
  number={11},
  pages={3898--3907},
  year={2014},
  publisher={Royal Society of Chemistry}
}

在此处输入图片描述

我想(:)在 DOI 后添加冒号,得到以下格式:... DOI: 10.1039/C3CS60364D

答案1

添加

\DeclareFieldFormat{doi}{%
  DOI\addcolon\space
  \ifhyperref
    {\href{https://doi.org/#1}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}%
}

您的代码:

\documentclass[12pt]{report}
\usepackage{hyperref}

\usepackage{csquotes}
\usepackage[backend=biber,style=chem-angew, doi=true]{biblatex}

\DeclareFieldFormat{doi}{%
  DOI\addcolon\space
  \ifhyperref
    {\href{https://doi.org/#1}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}%
}

\addbibresource{bibliography.bib}

\hypersetup{
    colorlinks=true,
    urlcolor=black
}

\begin{document}

\tableofcontents

\chapter{Intro}

\cite{baffou2014nanoplasmonics}

\printbibliography[heading=bibintoc,title={Bibliography}]

\end{document}

在此处输入图片描述

相关内容