latex3 / babel

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

Incomplete \iffalse for mathtool's align-environment and lualatex #162

Closed jnflk closed 2 years ago

jnflk commented 2 years ago

I updated babel via Tex Live's tlmgr to v3.68. With the new version, I cannot successfully compile documents with mathtool's align-environment using lualatex:

Minimal example:

% !TeX program = lualatex
\documentclass[]{article}
\usepackage[
    main=american
    ]{babel}
\usepackage{mathtools}

\begin{document}
Some
\begin{align}
    a = b \cdot c \label{some:label}
\end{align}
text.
\end{document}

gives the error:

! Incomplete \iffalse; all text was ignored after line 12.
<inserted text> 
\fi 
l.12 \end{align}

A forbidden control sequence occurred in skipped text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.

[1

Using pdflatex instead of lualatex, the document compiles.

In my case, I could downgrade to v3.67 using an older Tex Live repository https://www.texlive.info/tlnet-archive/ (e.g., https://www.texlive.info/tlnet-archive/2021/12/28/tlnet/) to build the document again with lualatex.

davidcarlisle commented 2 years ago

with amsmath rather than mathtools you get

! Undefined control sequence.
\bbl@truellap ->\ifcase \bbl@attr@dir 
                                      \expandafter \llap \else \expandafter ...

l.11 \end{align}

? 
jbezos commented 2 years ago

A missing test 🙁. I'll fix it asap.

jbezos commented 2 years ago

Just uploaded to CTAN. It should be available in TeXLive in a few hours.