## LaTeX forum ⇒ Math & Science ⇒ Ions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Robyn
Posts: 1
Joined: Wed Dec 03, 2014 1:43 pm

### Ions

I'm using Texworks on a mac to write a report on negative ions. I was told to use \ion to write in my ions (rather than using eg. $H^{-}$) but it doesn't seem to be working. Is there any other way to include ions in my text?

Tags:

Johannes_B
Site Moderator
Posts: 4186
Joined: Thu Nov 01, 2012 4:08 pm
Use package chemformula.

\documentclass{article}\usepackage{chemformula}\usepackage{chemmacros}\begin{document}\ch{H+} is a hydogen ion  This is in text \ch{2 H+ + O^{2-} <> H2O}, but you can use itsimilar to maths equations:\begin{reaction}2 H+ + O^{2-} <> H2O\end{reaction}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
Robyn wrote:I was told to use \ion to write in my ions (rather than using eg. $H^{-}$) but it doesn't seem to be working.

Who told you that? As far as I know there is no package providing an \ion macro…

Regards
site moderator & package author