Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bidi causes duplicated @-expressions in longtable #41

Open
2 of 5 tasks
logological opened this issue Jun 7, 2024 · 2 comments
Open
2 of 5 tasks

bidi causes duplicated @-expressions in longtable #41

logological opened this issue Jun 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@logological
Copy link

logological commented Jun 7, 2024

Brief outline of the issue

With a recent (2024-06-01-ish) release of LaTeX, use of the bidi package in conjunction with the memoir class causes the @-expressions of longtable environments to be printed extraneously. It seems that using a \multicolumn command is necessary to trigger the bug.

According to the discussion at Issue latex3/latex2e#1368, this may be because the array package, whose definitions bidi redefines, was recently changed.

I can reproduce the problem only with memoir; the standard article and book classes seem to be unaffected.

Check/indicate

Minimal example showing the issue

\documentclass{memoir}
\usepackage{longtable}
\usepackage{bidi}
\begin{document}

\begin{longtable}{l}
\multicolumn{1}{c}{foo} \\
\end{longtable}

\begin{longtable}{r@{x}l@{x}r@{x}l@{x}r@{x}l}
a & b & c & d & e & f \\
\end{longtable}
\end{document}

Expected behavior

The second longtable environment should print something like the following:

axbxcxdxexf

Instead it prints the following:

axbxcxdxexf
x

Log and PDF files

test.log
test.pdf

@logological logological added the bug Something isn't working label Jun 7, 2024
@logological
Copy link
Author

logological commented Jun 12, 2024

I've reported the problem to the memoir class maintainer. They responded that it's not a memoir problem but rather an interaction between bidi and array (the latter of which memoir preloads, but the standard article class does not). So here's an alternative minimal example that uses article:

\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\usepackage{bidi}

\begin{document}
\begin{longtable}{l}
\multicolumn{1}{c}{foo} \\
\end{longtable}

\begin{longtable}{r@{x}l@{x}r@{x}l@{x}r@{x}l}
a & b & c & d & e & f \\
\end{longtable}
\end{document}

test.pdf
test.log

@logological
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants