TransWikia.com

A phantom linebreak with Polyglossia and BibLaTeX

TeX - LaTeX Asked by Telemachus on February 20, 2021

Edit: it is a problem with BibLaTeX. The good news is that there appears to be a fix coming soon—and you can add it to your preamble now. Thanks, Ulrike Fischer for the pointer.

A picture is worth a thousand words. If you check the screenshot below you will see that there is a strange linebreak right after an opening parenthesis. This phantom linebreak happens the first time I use textgreek to enter ancient Greek text. This unwanted linebreak never appears again. (You can see that from the image and MWE: I include the exact same sentence later in the paragraph, but there is no phantom linebreak the second time.) I cannot figure out exactly what causes the linebreak, but I think I’ve narrowed it down to an interaction (?) Polyglossia and Windy City.

enter image description here

My MWE is below. After adding and removing things, the problem seems to be Polyglossia and Windy City. If I remove Windy City, the problem goes away. If I swap Babel for Polyglossia, the problem goes away. But I don’t want to remove either Windy City or Polyglossia if I can avoid it. If it’s a bug on one side or the other, I am happy to file a bug report, but I am not sure where to start looking.

documentclass[12pt,letterpaper]{article}

usepackage[no-math]{fontspec}
setmainfont{Baskerville}

usepackage[nolocalmarks]{polyglossia}
setdefaultlanguage{english}
setotherlanguage[variant=classic]{latin}
setotherlanguage[variant=ancient]{greek}
newfontfamilygreekfont[Script=Greek,Scale=MatchLowercase]{GFS Neohellenic}

usepackage{parskip}
usepackage{csquotes}
usepackage[style=windycity,backend=biber]{biblatex}
addbibresource{plato.bib}

begin{document}

section*{Socratic Irony}

Kreuz cites Aristotle for testimony about Socratic irony.
Aristotle mentions Socrates in Book 4 of textit{Nichomachean Ethics} while he is discussing the virtue concerning truthfulness about one's abilities.
This (unnamed) virtue, says Aristotle in textit{NE} 4.7, is a mean between boasting and false modesty (textgreek{ἀλαζονεία} and textgreek{εἰρωνεία}).
Boasters claim admirable qualities that they lack or they exaggerate their share in those qualities; the textit{eiron} disavows admirable qualities that they possess.
In this context, Aristotle says, ``The qualities that win reputation are the ones that these people especially disavow, as Socrates also used to do'' (textit{NE} 4.7 in Irwin's translation).
This (unnamed) virtue, says Aristotle in textit{NE} 4.7, is a mean between boasting and false modesty (textgreek{ἀλαζονεία} and textgreek{εἰρωνεία}).

end{document}

One Answer

As Ulrike Fischer pointed out in the comments, this was a bug in biblatex v3.15: https://github.com/plk/biblatex/issues/1041.

The problem was that biblatex would load .lbx localisation files on demand in the document body. Since .lbx files may contain blank lines, those would end up creating paragraph breaks in the document where the file was loaded.

In version 3.16 of biblatex, which was released on 2020-21-31 and is available now in both TeX live and MikTeX, biblatex no longer loads .lbx files in the document body. If a language hasn't been loaded already in the preamble, it will be requested in the .aux file and loaded in the next run.

If you are still having this issue, update your TeX system and make sure you have biblatex v3.16 and a matching Biber version installed.

Correct answer by moewe on February 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP