latex3 / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
1.82k stars 251 forks source link

Missing spaces in array 'Illegal pream' message #1378

Closed josephwright closed 2 weeks ago

josephwright commented 3 weeks ago

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}
\usepackage{array}
\begin{document}

\begin{tabular}{X}
  1.23 \\
\end{tabular}

\end{document}

results in

! Package array Error: Illegalpream-token(X):`c'used.

See the array package documentation for explanation.
Type  H <return>  for immediate help.

Log file (required) and possibly PDF file

test.log

josephwright commented 3 weeks ago

This is happening as the code is now in \ExplSyntaxOn, so we need some ~.

davidcarlisle commented 3 weeks ago

@FrankMittelbach I have this ready unless you want to push as change?

FrankMittelbach commented 3 weeks ago

please go ahead, I didn't assign myself, that was Joseph :-)