latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
23 stars 5 forks source link

tabularx clash in math + table #42

Closed dpantele closed 2 weeks ago

dpantele commented 6 months ago
\DocumentMetadata{testphase={phase-III,table,math},pdfversion=2.0,pdfstandard=A-4}
\documentclass{article}

\usepackage{tabularx}

\begin{document}

\begin{tabularx}{0.8\textwidth} {
  | >{\raggedright\arraybackslash}X
  | >{\centering\arraybackslash}X
  | >{\raggedleft\arraybackslash}X | }
 item 11 & item 12 & item 13 \\
 item 21  & item 22  & item 23  \\
\end{tabularx}

\end{document}
./a.tex:16: Argument of \__math_grab_dollar:w has an extra }.
<inserted text> 
\par 
l.16 \end{tabularx}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
\col@sep \tabcolsep \let \d@llarbegin \begingroup \let \d@llarend \endgroup \ETC
.
./a.tex:16: Paragraph ended before \__math_grab_dollar:w was complete.
<to be read again> 
\par 
l.16 \end{tabularx}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

./a.tex:16: Missing $ inserted.
<inserted text> 
$
l.16 \end{tabularx}

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

./a.tex:16: Argument of \__math_grab_dollar:w has an extra }.
<inserted text> 
\par 
l.16 \end{tabularx}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
\col@sep \tabcolsep \let \d@llarbegin \begingroup \let \d@llarend \endgroup \ETC
.
./a.tex:16: Paragraph ended before \__math_grab_dollar:w was complete.
<to be read again> 
\par 
l.16 \end{tabularx}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

./a.tex:16: Missing $ inserted.
<inserted text> 
$
l.16 \end{tabularx}

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

./a.tex:16: Misplaced \crcr.
\endarray ...tore_missing_cells:n {endarray}\crcr 
                                                  \egroup \UseSocket {tagsup...
l.16 \end{tabularx}

I can't figure out why you would want to use a tab mark
or \cr or \span just now. If something like a right brace
up above has ended a previous alignment prematurely,
you're probably due for more error messages, and you
might try typing `S' now just to see what is salvageable.

==> restored cell data: 0,0,1 (outer level)
./a.tex:16: Extra }, or forgotten $.
<recently read> \egroup 

l.16 \end{tabularx}

I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.

./a.tex:16: Missing $ inserted.
<inserted text> 
$
l.16 \end{tabularx}

testphase={phase-III,table} seems to be doing fine, but table does not have any math symbols I think

u-fischer commented 4 months ago

This will be fixed in the next latex-dev.