论文类参考文献的字体怎样统一?

论文类参考文献的字体怎样统一?

我想知道该怎么做才能统一文档中的字体,尤其是参考文献中的字体。如您所见,至少 arXiv 部分存在问题,其字体较大(并且还出现了两次,这是不想要的):

在此处输入图片描述

我正在使用从这里。正如您从我的 MWE 中看到的,我将字体更改为libertine,我可能希望保留它。我从某处复制粘贴了这三行。此外,我(有点盲目地)复制粘贴了以 开头的部分,以实现指向特定书目网址的书目参考中的可点击标题(在 eprint 字段的+\newbibmacro中默认有效,但不适用于 url,感谢 cfr 指出这一点)。biblatexhyperref

我理解解决方案可能不仅在于编辑这些行,还在于编辑Thesis.cls模板中的类文件。

我的问题是:

  • 我需要编辑哪些地方才能实现字体的统一?
  • 查看代码,还有其他我需要注意的吗?
  • 有什么\renewcommand*\familydefault{\sfdefault}影响?
  • 目前我还没有在主文档中看到任何问题,但如果您注意到任何可能对其中的字体产生负面影响的内容,也请告诉我。

我的 MWE:

\documentclass[11pt, oneside]{Thesis} % The default font size and one-sided printing (no margin offsets)

\usepackage[doi=false,url=false,isbn=false,sorting=none,style=numeric-comp,backref=true]{biblatex} % use of biblatex instead of bibtex (matja add) 

% the following makes bibliography display clickable names of references, pointing to a given doi/url/isbn, in this order of preference
%-------
\newbibmacro{string+doiurlisbn}[1]{%
\iffieldundef{doi}{%
  \iffieldundef{url}{%
    \iffieldundef{isbn}{%
      \iffieldundef{issn}{%
            #1%
           }{%
         \href{http://books.google.com/books?vid=ISSN\thefield{issn}}{#1}%
       }%
     }{%
   \href{http://books.google.com/books?vid=ISBN\thefield{isbn}}{#1}%
   }%
   }{%
    \href{\thefield{url}}{#1}% 
    }%
  }{%
  \href{http://dx.doi.org/\thefield{doi}}{#1}%
 }%
 }
  \DeclareFieldFormat{title}{\usebibmacro{string+doiurlisbn}{\mkbibemph{#1}}}
  \DeclareFieldFormat[article,incollection]{title}%
  {\usebibmacro{string+doiurlisbn}{\mkbibquote{#1}}}
  \appto{\biburlsetup}{\renewcommand*{\UrlFont}{\normalfont\itshape}}
  \appto{\citesetup}{\normalfont}

% I would like to use this font for everything
%-------
\usepackage{libertine} % new font
\renewcommand*\familydefault{\sfdefault}  %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
%-------

\hypersetup{urlcolor=blue, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying


\begin{filecontents*}{database.bib}
@article{Gupta1993,
archivePrefix = {arXiv},
arxivId = {arXiv:hep-th/9305052v2},
author = {Gupta, K. S. and Rajeev, S. G.},
doi = {10.1103/PhysRevD.48.5940},
eprint = {9305052v2},
file = {:home/matja/MEGAsync/mendeley/1993/Gupta, Rajeev - 1993 - Renormalization in quantum mechanics.pdf:pdf},
issn = {0556-2821},
journal = {Physical Review D},
month = dec,
number = {12},
pages = {5940--5945},
primaryClass = {arXiv:hep-th},
title = "{{Renormalization in quantum mechanics}}",
url = {http://link.aps.org/doi/10.1103/PhysRevD.48.5940},
volume = {48},
year = {1993}
} 
\end{filecontents*}
\addbibresource{database.bib}

\begin{document}
This reference has mixed fonts~\cite{Gupta1993}.
\printbibliography
\end{document}

答案1

打字机字体确实太大了。要缩小字体很容易,而且不会对字体产生其他影响:只需将包调用libertine

\usepackage[ttscale=0.8]{libertine}

相关内容