使用 biblatex-apa 显示 eprint 字段,尽管 doi

使用 biblatex-apa 显示 eprint 字段,尽管 doi

我想在参考文献中显示 doi 和 eprint 字段,但即使启用了 eprint=true,它也只显示 doi。我如何才能强制 biblatex 在 apa 样式下也显示 eprint 字段?(我意识到这可能不符合 APA 样式,但我想向读者展示文章的 doi 及其预印本)

\documentclass{article}
\usepackage[backend=biber, style=apa, eprint=true]{biblatex}
\usepackage[symbolpackage=pict2e, symbol=plos]{biblatex-ext-oa}

\usepackage{filecontents}
\usepackage[colorlinks]{hyperref}

\begin{filecontents}{\jobname.bib}
    @article{dolan1,
    author      = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
    title       = {Higgs self-coupling measurements at the {LHC}},
    journal     = {Journal of High Energy Physics},
    volume      = {2012},
    number      = {10},
    doi         = {10.1007/jhep10(2012)112},
    date        = {2012},
    eprint      = {1206.5001},
    eprinttype  = {arxiv},
    }
    @article{dolan2,
    author      = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
    title       = {Higgs self-coupling measurements at the {LHC}},
    journal     = {Journal of High Energy Physics},
    volume      = {2012},
    number      = {10},
    date        = {2012},
    eprint      = {1206.5001},
    eprinttype  = {arxiv},
    }
    @article{dolan3,
    author      = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
    title       = {Higgs self-coupling measurements at the {LHC}},
    journal     = {Journal of High Energy Physics},
    volume      = {2012},
    number      = {10},
    doi         = {10.1007/jhep10(2012)112},
    date        = {2012},   
    }
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}
    
    \nocite{*}
\printbibliography

\end{document}

在此处输入图片描述

使用 apa-6 仍然有效:

在此处输入图片描述

答案1

eprint字段似乎根本没有在驱动程序中打印article。您可以修补它:

\documentclass{article}
\usepackage[backend=biber, style=apa, eprint=true]{biblatex}
\usepackage[symbolpackage=pict2e, symbol=plos]{biblatex-ext-oa}
\usepackage[colorlinks]{hyperref}
\begin{filecontents}[overwrite]{\jobname.bib}
@article{dolan1,
  author     = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
  title      = {Higgs self-coupling measurements at the {LHC}},
  journal    = {Journal of High Energy Physics},
  volume     = {2012},
  number     = {10},
  doi        = {10.1007/jhep10(2012)112},
  date       = {2012},
  eprint     = {1206.5001},
  eprinttype = {arxiv},
}
@article{dolan2,
  author     = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
  title      = {Higgs self-coupling measurements at the {LHC}},
  journal    = {Journal of High Energy Physics},
  volume     = {2012},
  number     = {10},
  date       = {2012},
  eprint     = {1206.5001},
  eprinttype = {arxiv},
}
@article{dolan3,
  author     = {Matthew J. Dolan and Christoph Englert and Michael Spannowsky},
  title      = {Higgs self-coupling measurements at the {LHC}},
  journal    = {Journal of High Energy Physics},
  volume     = {2012},
  number     = {10},
  doi        = {10.1007/jhep10(2012)112},
  date       = {2012},   
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage{xpatch}
\xpatchbibdriver{article}
  {\usebibmacro{doi+url}}
  {\usebibmacro{doi+url}%
   \newunit\newblock
   \usebibmacro{eprint}}
  {}
  {}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

输出

相关内容