josephwright / siunitx

A comprehensive (SI) units package for LaTeX
LaTeX Project Public License v1.3c
350 stars 25 forks source link

Option "tight-spacing" fails with tex4ht #716

Closed josephwright closed 5 months ago

josephwright commented 5 months ago

Raised in https://tex.stackexchange.com/questions/707485/how-to-use-make4ht-for-threeparttable-with-siunitx-to-make-an-odt, needs analysis and either the option disabling or a stronger fix

josephwright commented 5 months ago

MWE:

\documentclass{article}
\usepackage{siunitx}
\sisetup{mode = text, uncertainty-mode = separate}
\begin{document}
\num[tight-spacing]{3.25(2)}
\end{document}

This needs the separate uncertainty, and we need tight-spacing after the start of the document so that the current tex4ht patch is bypassed. An exponent without an uncertainty does not raise the issue.