Closed SamThilmany closed 3 years ago
You need to load the language that you're giving through the foreign-babel
option.
\documentclass{article}
\usepackage[ngerman,main=english]{babel}
\usepackage{biblatex}
\usepackage{acro}
\DeclareAcronym{ufo}{
short = UFO,
long = unidentified flying object,
foreign = unbekanntes Flugobjekt,
foreign-babel = ngerman,
foreign-format = \textit
}
\begin{document}
\acf{ufo}
\end{document}
gives
Since I updated my TeX distribution by running
tlmgr update --all
a weird error occurs with theacro
package. If both,babel
andbiblatex
are loaded and the acronym is declared with theforeign
key and withforeign-babel = ngerman
, a new line is printed after the opening parenthesis and before the foreign word. This is not dependent on the number of characters of any of those words neither does it occur only if the foreign word would hit the end of the line.Consider the following code:
On my updated TeX installation this produces the output
If either babel or biblatex are commented out, or if
ngerman
is replaced by - say -english
, the output immediately becomes the expectedI also tested the code on Overleaf, where, as of today, it compiles as expected.
Versions on my machine
Versions on Overleaf