latex3 / tagging-project

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

siunitx partial compatibility #197

Open borisveytsman opened 1 month ago

borisveytsman commented 1 month ago

Siunitx is used to enter named units, like 23 meter as `$\qty{23}{\meter}$. At present the following test file

\DocumentMetadata{
lang=en-US,
pdfversion=20.0,
pdfstandard=ua-2,
testphase={phase-III, math, title, table, firstaid},
uncompress
}
\DocumentMetadata{
lang=en-US,
pdfversion=20.0,
pdfstandard=ua-2,
testphase={phase-III, math, title, table, firstaid},
uncompress
}
\documentclass{article}

\usepackage{siunitx}
\sisetup{table-auto-round=true, separate-uncertainty=true}

\begin{document}
\qty{23}{\meter}

\ang{24}

\qtyrange{23}{32}{\kelvin}

\complexnum{23+5i}

\num{23}

\numlist{23 34 5}
\numproduct{3 4 5}

\end{document}
\documentclass{article}

\usepackage{siunitx}
\sisetup{table-auto-round=true, separate-uncertainty=true}

\begin{document}
\qty{23}{\meter}

\ang{24}

\qtyrange{23}{32}{\kelvin}

\complexnum{23+5i}

\num{23}

\numlist{23 34 5}
\numproduct{3 4 5}

\end{document}

does not produce errors, but every siunitx command produces several formulas, like 23, m, instead of one formula with subformulas

Here is the fragment of dummy file

<div>
<h2>\mml 1</h2>
<p>$23$</p>
<p>A0E6112831920B1582951B18918AB5DD</p>
<math></math>
</div>

<div>
<h2>\mml 2</h2>
<p>$\mathrm {m}$</p>
<p>1163B7FBF62E9E29DD28CBA02DA0C4C8</p>
<math></math>
</div>

There should be one formula to fill with the stuff like this (from MathML specs)

<mrow>
      <mn>23</mn> 
      <mo rspace='thickmathspace'>&InvisibleTimes;</mo>
      <mi mathvariant='normal' class='MathML-Unit'>m</mi>
 </mrow> 
josephwright commented 1 month ago

'Yes' - I know tagging will need adjustment but at the moment I'm not clear what the tagging should be: there's the perineal question of are units even 'maths', what is the status of the 'space' between the number and the unit, plus should the entire quantity be tagged semantically.

car222222 commented 1 month ago

Or, probably: "the perennial question" :-) !