BibLaTeX: Recuo errado ao alterar o tamanho da fonte?

BibLaTeX: Recuo errado ao alterar o tamanho da fonte?

O BibLaTeX parece calcular o recuo errado quando altero o tamanho da fonte. As linhas seguintes à primeira estão um pouco à esquerda da primeira linha (veja a linha vermelha).

Imagem que mostra o problema

MWE:

\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}

O que pode ser feito para evitar isso?

PS: Alguns textos das minhas teses têm que ter 10pt, e outros (como a bibliografia) 12pt. Infelizmente, isso me foi dado e não posso fazer nada a respeito.

Responder1

O cálculo do comprimento \labelalphawidthé feito com o tamanho de fonte padrão. No seu caso 11pt. Você alterou o tamanho da fonte antes, \printbibliographyo que não afeta o cálculo de \labelalphawidth. A largura da etiqueta é calculada em \bibfont.

A seguinte solução foi fornecida por Audrey em um comentário

Para obter a computação correta, biblatexvocê pode manipular o comando bibfont. Neste biblatex.defé definido como:

 \newcommand*{\bibfont}{\normalfont\normalsize}. 

Então você poderia usar

 \renewcommand*{\bibfont}{\normalfont\changefontsizes{12pt}}

no preâmbulo.

Com o seu exemplo:

\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}

informação relacionada