Closed hvoss49 closed 1 year ago
Thanks for your bug report and I can reproduce it. However I can’t solve it in the first try. Currently I’m on vacation and I’ll loot at it again after returning home.
This problem can be reproduced with the following minimal code and it's explained in https://tex.stackexchange.com/q/618254/82731. I'm planning to use tex.sprint("\\def...")
mentioned in the comment.
\documentclass{article}
\usepackage{luacode}
% \usepackage[ngerman]{babel}
\begin{document}
\def\foo{}
\begin{luacode*}
token.set_macro("foo", "u.~a.")
\end{luacode*}
% \show\foo
\foo
\end{document}
If I change the
 
to 
in the filecsl-locales-de-DE.xml
, (line no 77 , localisation for et-al), then it works for lualatex, but gives an error for pdflatex.
The citeproc-lua has a limited method to convert unicode to LaTeX and thin space is kept in the unicode form. Since this code point is not defined in utf8enc.dfu
, it's not accepted by pdftex. How about converting it to \thinspace{}
?
Describe the bug running this with pdflatex or xelatex works fine. But running with lualatex the
 
in the filecsl-locales-de-DE.xml
which should be a non breakable space is for lualatex a linebreak (see image and the linebreak between u. a., which is et al in german).If I change the
 
to 
in the filecsl-locales-de-DE.xml
, (line no 77 , localisation for et-al), then it works for lualatex, but gives an error for pdflatex.Additional information
citation-style-language
version: [e.g. v0.4.4]pdflatex
/xelatex
/lualatex
]To Reproduce
Screenshots