brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
941 stars 101 forks source link

si.tex test raises errors under pdflatex? #1734

Open dginev opened 2 years ago

dginev commented 2 years ago

I'm assuming this is some texlive 2021 regression.

cd t/complex ; pdflatex si.tex

produces a number of "invalid number" errors, with my:

(/usr/local/texlive/2021/texmf-dist/tex/latex/siunitx/siunitx.sty
Package: siunitx 2021-11-03 v3.0.35 A comprehensive (SI) units package

for example

! Package siunitx Error: Invalid number '\pi '.

For immediate help type H <return>.
 ...                                              

l.60 \num{\pi}

unsure what the implications are to the latexml binding yet, but thought I'd record the pdflatex problem already.

brucemiller commented 2 years ago

I have a vague recollection that I did it intentionally, but...

teepeemm commented 1 year ago

I've managed to get si.tex to compile under TeXLive 2023. The easiest is \usepackage{siunitx}[=v2], but if we want to actually use v3:

Additionally:

This gets si.tex to compile with pdflatex. Unfortunately, latexml still runs into #2064 (which can be made slightly more minimal with \usepackage{expl3} instead of \usepackage{siunitx}).