The »bohr« package

Sometimes things go fast. This weekend a question on TeX.sx popped about how to create Bohr models with LaTeX. Soon some very nice answers were given but I had a feeling that a more generic approach would be nice. I decided to answer the question myself. Since the code got a little longer I put it into a package for convenience but soon after thought it might also be useful for others. So, here it is.

\documentclass{article}
\usepackage{bohr}
\begin{document}

\bohr{11}{Na}
\bohr{28}{Ni}

\setbohr{name-options-set={font=\footnotesize\sffamily}}
\bohr{18}{Ar}
\bohr{2}{He}
\bohr{7}{F
}% damn, that should have been N...

\setbohr{nucleus-radius=1.2em}
\bohr[3]{10}{$\mathrm{Na^+}$}

\end{document
}

3 Comments

1. Muhammed

Hey, vielen Dank für das Paket! Das wird mir in meinen Vorträgen/Protokollen bestimmt hilfreich sein.

2. David

How would you suggest drawing H atom in an excited state? For example if I am teaching about line spectra it would be useful to be able to show the electron in the 2nd or 3rd shells.

• Well, the »bohr« package is not much more than an exercise and answer to the question I linked. So as it stands I’d suggest drawing the excited state directly with TikZ.