LaTeX forum ⇒ Math & ScienceIons

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

Postby Robyn » Wed Dec 03, 2014 1:48 pm

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:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Dec 03, 2014 4:26 pm

Use package chemformula.

  1. \documentclass{article}
  2. \usepackage{chemformula}
  3. \usepackage{chemmacros}
  4. \begin{document}
  5. \ch{H+} is a hydogen ion
  6.  
  7.  
  8. This is in text \ch{2 H+ + O^{2-} <> H2O}, but you can use it
  9. similar to maths equations:
  10. \begin{reaction}2 H+ + O^{2-} <> H2O\end{reaction}
  11. \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.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sun Jul 05, 2015 12:34 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
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 8 guests