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}. – Marco Daniel Mar 8 at 13:13--(I'm not sure it's even possible) and sosiunitxchokes on the first-as a misplaced minus sign. Use3.2as input instead. – cgnieder Mar 8 at 14:49input-decimal-markers– Marco Daniel Mar 8 at 15:043\textsubscript{1}is not a number, sosiunitxcan't do its job. – egreg Mar 8 at 21:54