-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong extra space in some bibliography elements in new versions of biblatex #983
Comments
I'll have a closer look later, but could this be a \documentclass[fontsize=10pt,paper=A5,DIV=13]{scrartcl}
\usepackage[english]{babel}
\usepackage[
style=gost-authoryear,
language=auto,
autolang=other,
blockpunct=emdash,
pagetracker=page,
alldates=comp,
]{biblatex}
\renewcommand*{\bibfont}{\Huge}
\begin{filecontents}{\jobname.bib}
@Article{Block2006,
author = {Block, J. and Block, J. H.},
title = {Nursery School Personality and Political Orientation Two Decades Later},
journaltitle = {Journal of Research in Personality},
volume = {40},
number = {5},
pages = {734-749},
year = {2006},
language = {english},
langid = {english},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite[]{Block2006}
\printbibliography
\end{document} |
Until today, I didn't even think of |
Hrmpf! I don't think we can say this is a \documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage[
style=authoryear,
autolang=other,
]{biblatex}
\makeatletter
\ExplSyntaxOn
\cs_set_nopar:Nn{\polyglossia@lang@frenchspacing:n}{
\prop_get:NxNTF \polyglossia@langsetup {#1/frenchspacing} \l_tmpa_tl
{
\typeout{Setting Frenchspacing}%
%\str_case_e:nnF{\l_tmpa_tl}{
% {true}{\frenchspacing}
% {false}{\nonfrenchspacing}
%}
%{\xpg@error{frenchspacing~should~be~true~or~false. Is~"\l_tmpa_ttl"~ for~ language~ "#1"}}
}
{
\xpg@error{Could~ not~ retrieve~ key~ frenchspacing~ for~ language~ "#1"}
\prop_show:N{\polyglossia@langsetup}
}
}
\ExplSyntaxOff
\makeatother
\renewcommand*{\newblockpunct}{\the\spacefactor\addnbspace\textemdash\space}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite[]{sigfridsson}
\printbibliography
\end{document}
|
It doesn't feel quite right, but in d7e3c82 we simply force If a user doesn't want the explicit \let\blx@beglang@spacefactors\@empty If you need a workaround now, try \documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage[
style=authoryear,
language=auto,
autolang=other,
]{biblatex}
\makeatletter
\@ifpackagelater{biblatex}{2020/04/05}
{\PackageError{biblatex}
{Fix for \#983 no longer required}
{Remove the code for the outdated fix}}
{\AtBeginDocument{%
\ifdef\blx@beglang
{\appto\blx@beglang{\frenchspacing}%
\iftoggle{blx@autolangbib}
{\let\blx@beglangbib\blx@beglang}
{}%
\iftoggle{blx@autolangcite}
{\let\blx@beglangcite\blx@beglang}
{}}
{}}}
\makeatother
\renewcommand*{\newblockpunct}{\addnbspace\textemdash\space}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson}
\printbibliography
\end{document} The code will automatically throw errors with (future) versions of |
Great, this works perfectly. Thanks! Ironically, I think that my problem report reutenauer/polyglossia#182 was among the causes that triggered respective changes in |
|
I'm trying to move from
biblatex-3.11
tobiblatex-3.14
, and I have a strange problem with spaces. I'm not sure if this is a bug; please help be to understand it. Consider the following code:The result with
biblatex-3-11
/biber-2.11
is on the left;biblatex-3.14
/biber-2-14
output is on the right.As you can see in the last two lines, in 3.14/2.14 version all emdashes are preceded by a strange big extra space. In this example, emdash is a part of blockpunct definition:
I can't find what exactly changed after
biblatex-3.11
. And I'm not sure if such extra spaces occur somewhere else as well, but bad blockpuncts break all my documents.The text was updated successfully, but these errors were encountered: