I am using mhchem package for writing chemical reactions in my blog. How shall I use the underset tag properly so that the text hydrogen ion will come just below the product?

Code I have tried is below:

\ce{H – e^–>\underset{\text{Hydrogen ion}}{\ce{H^+}}

You have

  • instead of - (twice)
  • missing spaces around the arrow (and a missing dash): ->
  • missing $ ... $ around underset{}{}
  • a missing } at the end.

Correcting all this gives:

\ce{H - e^- -> $\underset{\text{Hydrogen ion}}{\ce{H^+}}$}

enter image description here

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.