I would like to use output-decimal-marker = {--}
in siunitx to align a column with molecular transitions where the states are separated by --. However I get a Missing $ inserted error when the state includes a subscript.
\documentclass{article}
\usepackage{siunitx}
\begin{document}
\begin{table}
\begin{tabular}{ S[output-decimal-marker = {--}] }
3_1.2_1
\end{tabular}
\end{table}
\end{document}
How could this work for numbers with subscripts?
\documentclass{...}
and ending with\end{document}
.--
(I'm not sure it's even possible) and sosiunitx
chokes on the first-
as a misplaced minus sign. Use3.2
as input instead.input-decimal-markers
3\textsubscript{1}
is not a number, sosiunitx
can't do its job.