Representing atoms
Now that we can draw molecules, how about digging deeper? Can we draw atoms? Sure!
How to do it...
We will use a package named after the famous physicist Niels Bohr. That's bohr
.
- Start with a document class.
\documentclass{article}
- Load the
bohr
package:\usepackage{bohr}
- Start the document:
\begin{document}
- Use the command
\bohr{number of electrons}{element name}
, for Fluorine:\bohr{10}{F}
- We can modify the nucleus radius this way:
\setbohr{nucleus-radius=1.5em}
- Now we have more space in the center for an ion symbol. This time we use the command with an optional argument for the number of electron shells since we need an empty one. We need to do that in square brackets. We will display a Sodium ion:
\bohr[3]{10}{$\mathrm{Na^+}$}
- That's all for now! End the document:
\end{document}
- Compile to see the result:
How it works...
It was quite simple. Nevertheless, I wanted to show you how easy it can be to write about science today.
After loading the package, we just needed this command...