In chemmacros/chemformula a hyphen is replaced with a bond, and you have to put hyphens in quotes. I don't use the bond feature, as I use this to write out papers, rather then educational materials. Is there a way I can turn off the bond interface unless I specifically want it on for that formula (you see double or triple bonds in the names of papers once in a blue moon, so I'd like that feature accessible, just not the default).

Probably my shortest MWE ever:


    \chemsetup{formula=chemformula} %chemformula, not mhchem or such

\ch{UO2-H2O2 "-" K2CO3} %Note the bond vs hyphen
\end{document} %use chemformula instead of say, mhchem

That's actually rather easy:




\ch{UO2-H2O2 "-" K2CO3}

\ch{UO2-H2O2 "-" K2CO3}


enter image description here

If you want to restrict the change you can either use grouping ({...} or \begingroup...\endgroup) or define the single bond again later with

\NewChemCompoundProperty {-} { \chemformula_single_bond: }

Because of the double role of - both as single bond and as minus sign using


won't suffice.

| improve this answer | |
  • That was fast! Now if I want to turn it back on, can I do that? All of these will be in my .bib file, so it is hard to just put that command before the one I need. – Canageek Jun 13 '16 at 18:39
  • @Canageek I edited the answer. – cgnieder Jun 13 '16 at 19:17
  • So I could so something like title = "{\RemoveChemCompoundProperty{-} \ch{...}}", and that would work? – Canageek Jun 14 '16 at 20:59
  • @Canageek yes, it would – cgnieder Jun 14 '16 at 22:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.