如何統一論文類參考文獻中的字體?

如何統一論文類參考文獻中的字體?

我想知道如何統一文件中的字體,特別是參考文獻中的字體。正如你所看到的,至少 arXiv 部分有一個問題,它使用了更大的字體(而且它還出現了兩次,這是不希望的):

在此輸入影像描述

我正在使用從下載的論文模板這裡。正如您從我的 MWE 中看到的,我將字體更改為libertine,我可能想保留它。我從某處複製並貼上了這三行。另外,我(有點盲目地)複製貼上了從 開始的部分,以\newbibmacro在參考書目中實現可點擊的標題,指向特定的參考書目 url(對於 eprint 字段, biblatex+是默認的hyperref,但不是url,感謝cfr 指出了這一點)。

我知道解決方案可能不僅在於編輯這些行,還在於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}

相關內容