`qualifier-mode` ignored, always `bracket`
Closed this issue · 2 comments
gustaphe commented
\documentclass{article}
\usepackage{siunitx}
%\usepackage[qualifier-mode=subscript]{siunitx}
\DeclareSIQualifier\RMS{RMS}
%\sisetup{qualifier-mode=phrase, qualifier-phrase={ of }}
%\sisetup{qualifier-mode=subscript}
\begin{document}
\unit[qualifier-mode=subscript]{nm\RMS},
\unit{nm\RMS}
\unit{nm\of{RMS}}
\end{document}
All of these things, including toogling the commented out lines, results in the same:
My siunitx.tex
has \ProvidesExplPackage {siunitx} {2024-02-15} {3.3.12}
josephwright commented
qualifier-mode
applies only when units are parsed. As you have a literal nm
, everything is typeset without parsing. You want something like
\documentclass{article}
\usepackage{siunitx}
%\usepackage[qualifier-mode=subscript]{siunitx}
\DeclareSIQualifier\RMS{RMS}
\sisetup{qualifier-mode=phrase, qualifier-phrase={~\mathrm{of}~}}
%\sisetup{qualifier-mode=subscript}
\begin{document}
\unit[qualifier-mode=subscript]{\nm\RMS},
\unit{\nm\RMS}
\unit{\nm\of{RMS}}
\end{document}
gustaphe commented
Ah, of course.