标准字体的参考书目

标准字体的参考书目

我希望引用和参考书目采用无衬线字体。

我设法将引用更改为无衬线字体\addtokomafont{footnote}{\footnotesize\sffamily}

但是,我无法将参考书目也更改为无衬线字体。我该怎么做?

   \RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{darwin,
  author    = {Charles Darwin},
  publisher = {Cambridge University Press},
  title     = {The Correspondence of Charles Darwin, 1821--1836},
  year      = {1985},
}
@electronic{wade,
  title   = {Darwin, Ahead of His Time, Is Still Influential},
  author  = {Nicholas Wade},
  date    = {2009-02-09},
  url     = {https://www.nytimes.com/2009/02/10/science/10evolution.html},
  urldate = {2018-10-08},
}
\end{filecontents*}

\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=verbose]{biblatex}


  \addtokomafont{footnote}{\footnotesize\sffamily}

\addbibresource{\jobname.bib}

\begin{document}
Let's cite  \autocite{darwin}  \autocite{wade}

\printbibliography
\end{document}

答案1

默认情况下,引文和参考书目采用文档字体。在此示例中,它甚至恰好是标准 LaTeX 字体。

我强烈建议不要将引文和参考书目更改为与文档其余部分不同的字体。这看起来很奇怪。

您可以通过重新定义来更改参考书目的字体\bibfont

\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=verbose]{biblatex}

\addtokomafont{footnote}{\sffamily}
\renewcommand*{\bibfont}{\normalfont\normalsize\sffamily}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{darwin,
  author    = {Charles Darwin},
  publisher = {Cambridge University Press},
  title     = {The Correspondence of Charles Darwin, 1821--1836},
  year      = {1985},
}
@electronic{wade,
  title   = {Darwin, Ahead of His Time, Is Still Influential},
  author  = {Nicholas Wade},
  date    = {2009-02-09},
  url     = {https://www.nytimes.com/2009/02/10/science/10evolution.html},
  urldate = {2018-10-08},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
Let's cite  \autocite{darwin}  \autocite{wade}

\printbibliography
\end{document}

采用无衬线字体的参考书目。

相关内容