You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Links to <tex.stackexchange.com> discussion if appropriate
Links to <qa.parsilatex.com> discussion if appropriate
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:
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}
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.
Brief outline of the issue
With a recent (2024-06-01-ish) release of LaTeX, use of the
bidi
package in conjunction with thememoir
class causes the @-expressions oflongtable
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 definitionsbidi
redefines, was recently changed.I can reproduce the problem only with
memoir
; the standardarticle
andbook
classes seem to be unaffected.Check/indicate
xepersian
packagebidi
package issue tracker has been searched for similar issues?xepersian
package issue tracker has been searched for similar issues?Minimal example showing the issue
Expected behavior
The second
longtable
environment should print something like the following:Instead it prints the following:
Log and PDF files
test.log
test.pdf
The text was updated successfully, but these errors were encountered: