當我更改字體大小時,BibLaTeX 似乎計算出錯誤的縮排。第一行後面的行比第一行稍微靠左(參見紅線)。
微量元素:
\documentclass[titlepage,listof=totoc,final]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[style=alphabetic,backend=biber,maxnames=4,minnames=3,maxbibnames=99,block=space,abbreviate=true,firstinits=true]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{GLS:datasheet,
title = "GLS Datasheet",
organization = "Optoelectronics Research Centre",
howpublished = "Website",
date = "2004-09",
urldate = "2013-07-01",
url = "http://www.southampton.XXXX",
address = "Southampton, United Kingdom"
}
@article{Labadie:First_fringes,
author = {Labadie, L. and Mart\'{\i}n, G. and Anheier, N. C. and Arezki, B. and Qiao, H. A. and Bernacki, B. and Kern, P.},
title = {First fringes with an integrated-optics beam combiner at 10},
DOI= "10.1051/0004-6361/201116727",
journal = {A\&A},
year = 2011,
volume = 531,
pages = "A48"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\KOMAoptions{fontsize=12pt}
\nocite{*}
\printbibliography
\end{document}
可以採取什麼措施來避免這種情況?
PS:我論文中的一些文本必須是10pt,而其他文本(例如參考書目)必須是12pt。可悲的是,這是給我的,我對此無能為力。
答案1
長度的計算\labelalphawidth
是使用預設字體大小完成的。在你的情況下11點。您之前更改了字體大小\printbibliography
,這對 的計算沒有影響\labelalphawidth
。標籤寬度依 計算\bibfont
。
Audrey 在評論中提供了以下解決方案
要獲得正確的計算,biblatex
您可以操作命令bibfont
。在biblatex.def
此定義為:
\newcommand*{\bibfont}{\normalfont\normalsize}.
所以你可以使用
\renewcommand*{\bibfont}{\normalfont\changefontsizes{12pt}}
在序言中。
以你的例子:
\documentclass[titlepage,listof=totoc,final]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[style=alphabetic,backend=biber,maxnames=4,minnames=3,maxbibnames=99,block=space,abbreviate=true,firstinits=true]{biblatex}
\renewcommand*{\bibfont}{\normalfont\changefontsizes{12pt}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{GLS:datasheet,
title = "GLS Datasheet",
organization = "Optoelectronics Research Centre",
howpublished = "Website",
date = "2004-09",
urldate = "2013-07-01",
url = "http://www.southampton.XXXX",
address = "Southampton, United Kingdom"
}
@article{Labadie:First_fringes,
author = {Labadie, L. and Mart\'{\i}n, G. and Anheier, N. C. and Arezki, B. and Qiao, H. A. and Bernacki, B. and Kern, P.},
title = {First fringes with an integrated-optics beam combiner at 10},
DOI= "10.1051/0004-6361/201116727",
journal = {A\&A},
year = 2011,
volume = 531,
pages = "A48"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\KOMAoptions{fontsize=12pt}
\printbibliography
\end{document}