LaTeX forum ⇒ Math & Sciencemhchem | Atomic Level Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

mhchem | Atomic Level

Postby niles » Fri Jul 13, 2012 9:05 pm

Hi

I wish to write the following atomic level: 5s^2 1S_0. Usually I use mhchem for these things (MWE):
  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[version=3]{mhchem}
  4.  
  5. \begin{document}
  6. \ce{5s^2 ^1S0}
  7. \end{document}

However it doesn't work very well, as the superscripts are not at the same height due to one 's' being uppercase and the other lowercase. Do You suggest another package for me to use?


Best,
Niles.

Tags:

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

Postby cgnieder » Sat Jul 14, 2012 4:34 pm

You could use the chemmacros package which has the very similar command \ch:

  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{chemmacros}
  4.  
  5. \begin{document}
  6. \ch{5 s^2\,^1S0}
  7. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Postby niles » Sat Jul 14, 2012 8:58 pm

Thanks for that, that is very helpful. I have another question in the same subject: I want to write a state 3^P_J, but when I use
  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{chemmacros}
  4.  
  5. \begin{document}
  6. \ch{5 s^2\,^3PJ}
  7. \end{document}

it does subscript the "J". Is there a way to remedy this?

Thanks for Your help in advance.


Best,
Niles.

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

Postby cgnieder » Sat Jul 14, 2012 9:22 pm

I do not understand what you mean exactly. This looks exactly as I would expect it to:

  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{chemmacros}
  4.  
  5. \begin{document}
  6.  
  7. \noindent
  8. \ch{5 s^2\,^3PJ} \\
  9. \ch{5 s^2\,^3P_J} \\
  10. \ch{5 s^2\,^3P "\_" J}
  11.  
  12. \end{document}


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Postby niles » Sat Jul 14, 2012 9:37 pm

Thanks, I forgot the underscore (_) in my example. It works!


Best,
Niles.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 4 guests