![BibLaTeX:更改字体大小时缩进错误?](https://linux22.com/image/266341/BibLaTeX%EF%BC%9A%E6%9B%B4%E6%94%B9%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F%E6%97%B6%E7%BC%A9%E8%BF%9B%E9%94%99%E8%AF%AF%EF%BC%9F.png)
当我更改字体大小时,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}
如何避免这种情况?
附言:我的论文中有些文本必须是 10pt,其他文本(如参考书目)必须是 12pt。遗憾的是,这是给我的,我对此无能为力。
答案1
长度的计算\labelalphawidth
是根据默认字体大小进行的。您的情况是 11pt。您之前更改了字体大小,\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}