latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
125 stars 34 forks source link

footnote with babel `bidi=default` raises an error in LuaLaTeX #187

Closed fabon-f closed 1 year ago

fabon-f commented 1 year ago
\RequirePackage{latexbug}
\documentclass{article}
\usepackage[bidi=default]{babel}
\begin{document}
\footnote{AAA}
\end{document}

This code raises an error when using LuaLaTeX:

warning  (hpack filter): error: [\directlua]:1: attempt to index a nil value (f
ield 'characters')

.
\mbox  #1->\leavevmode \hbox {#1}

l.5 \footnote{
            AAA}
?

I found that commit 0bf72d4a12 causes this error.

jbezos commented 1 year ago

This is, indeed, the problematic commit. I’ll fix it in GitHub in a few days.