When using 'foo'
or "foo"
in order to provide chemformula with input which shouldn't be treated as part of a chemical formula within \ch{}
, numbers are still being typeset subscript. The code
\documentclass[fontsize=12pt,paper=a4]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{chemformula}
\begin{document}
\ch{Pd(0)L4} \ch{Pd'(0)'L4} \ch{Pd"(0)"L4} \ch{Pd$(0)$L4} \ch{Pd\textrm{(0)}L4} \ch{Pd(}0\ch{)L4}
\end{document}
gives the following when compiling with the latest MiKTeX distribution (pdflatex):
As you can see, only the last dirty workaround invoking \ch{Pd(}0\ch{)L4}
gives the desired output. I also tried to fool chemformula by entering 0 in math mode which didn't work either.