Beamer:使用 ISO960 biblatex 样式时,参考文献列表中的 DOI 使用无衬线字体

Beamer:使用 ISO960 biblatex 样式时,参考文献列表中的 DOI 使用无衬线字体

beamer和以前一样,我使用biblatex和 ISO960 引用样式 ( style=iso-authoryear)。当参考文献包含 DOI 时,使用此样式时,术语 ,,DOI`` 本身会以小写字母打印;在 中beamer,这使用与默认无衬线字体冲突的衬线字体,我想解决这个问题。

以下是 MWE:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8
%!TEX spellcheck = en_US
\documentclass{beamer}
\usepackage[style=iso-authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{beamer-references-test.bib}
@Article{Hines2010,
  author    = {James R. Hines},
  journal   = {Journal of Economic Perspectives},
  title     = {Treasure {Islands}},
  year      = {2010},
  month     = nov,
  number    = {4},
  pages     = {103--126},
  volume    = {24},
  doi       = {10.1257/jep.24.4.103},
  publisher = {American Economic Association},
}
\end{filecontents}
\addbibresource{beamer-references-test.bib}
\usepackage{hyperref}
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}
\begin{document}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \nocite{*}
        \printbibliography
    \end{frame}
\end{document}

得出的结果为:

在此处输入图片描述

是否有合适的无衬线小型大写字体?如果有,我该如何确保它在这里使用?

或者:我不太喜欢使用小写字母。有没有办法用常规大写字母代替“DOI”这个词?

答案1

您可以重新定义\mkbibacro宏以使用较小的字体大小而不是小写字母:

\documentclass{beamer}
\usepackage[style=iso-authoryear]{biblatex}
\begin{filecontents}{beamer-references-test.bib}
@Article{Hines2010,
  author    = {James R. Hines},
  journal   = {Journal of Economic Perspectives},
  title     = {Treasure {Islands}},
  year      = {2010},
  month     = nov,
  number    = {4},
  pages     = {103--126},
  volume    = {24},
  doi       = {10.1257/jep.24.4.103},
  publisher = {American Economic Association},
}
\end{filecontents}
\addbibresource{beamer-references-test.bib}
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}

\makeatletter
\renewcommand*{\mkbibacro}[1]{%
  {\scriptsize\MakeUppercase{#1}}
}
\makeatother

\begin{document}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \nocite{*}
        \printbibliography
    \end{frame}
\end{document}

在此处输入图片描述

或者,您可以使用具有无衬线小型大写字母的字体:


\documentclass{beamer}
\usepackage[style=iso-authoryear]{biblatex}
\begin{filecontents}{beamer-references-test.bib}
@Article{Hines2010,
  author    = {James R. Hines},
  journal   = {Journal of Economic Perspectives},
  title     = {Treasure {Islands}},
  year      = {2010},
  month     = nov,
  number    = {4},
  pages     = {103--126},
  volume    = {24},
  doi       = {10.1257/jep.24.4.103},
  publisher = {American Economic Association},
}
\end{filecontents}
\addbibresource{beamer-references-test.bib}
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}

\usepackage[sfmath]{kpfonts}

\begin{document}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \nocite{*}
        \printbibliography
    \end{frame}
\end{document}

在此处输入图片描述

相关内容