
ドキュメント、特に参考文献のフォントを統一するにはどうすればいいか知りたいです。ご覧のとおり、少なくとも arXiv の部分には問題があります。フォントが大きいためです (また、2 回表示されるため、望ましくありません)。
私は以下からダウンロードした論文テンプレートを使用しています。ここ。私の MWE からわかるように、フォントを に変更しましたがlibertine
、おそらくそのままにしておきたいと思います。この 3 行はどこかからコピーして貼り付けました。また、 で始まる部分を (やや盲目的に) コピーして貼り付け、特定の参考文献 URL を指す参考文献の参照でクリック可能なタイトルを実現しました (eprint フィールドの+\newbibmacro
ではデフォルトで機能しますが、URL では機能しません。この点を指摘してくれた cfr に感謝します)。biblatex
hyperref
解決策はおそらくこれらの行を編集するだけでなく、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}