kvafa / bidi

Bidirectional typesetting in plain TeX and LaTeX, using XeTeX
https://ctan.org/pkg/bidi
6 stars 1 forks source link

New incompatibility between nicematrix and bidi #42

Open logological opened 5 months ago

logological commented 5 months ago

Brief outline of the issue

With a recent (2024-06-01-ish) release of LaTeX, use of the bidi package seems to break nicematrix >= 6.28. According to the discussion at Issue latex3/latex2e#1368, this may be because the array package, whose definitions bidi redefines, was recently changed.

I also reported this issue by e-mail to the nicematrix maintainer.

Check/indicate

Minimal example showing the issue

\documentclass{article}

\usepackage{nicematrix}
\usepackage{bidi}

\begin{document}
\begin{NiceTabular}{lllll}
a & b & c & d & e \\
\end{NiceTabular}
\end{document}

Expected behavior

The minimal example should compile, but instead produces the following error message:

(./test.aux) (/opt/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd)
! Extra alignment tab has been changed to \cr.
<template> \endtemplate

l.9 \end{NiceTabular}

Log and PDF files

test.log

logological commented 5 months ago

With the latest release of array (2.6d on 2024-06-14) the problem is no longer reproducible. However, the discussion in latex3/latex2e#1368 suggests that the root of the problem is bidi's redefinition of internal things from array, and so it might be better if bidi were eventually updated to play nice with the new definitions.