Printing a customized periodic table of elements
In the previous recipes, we read a lot about atoms and elements. Do you remember that huge poster of the periodic table of elements in the chemistry room at your school? Let’s make it ourselves!
How to do it...
We will use the pgf-PeriodicTable package written by Hugo Gomes. Take the following steps:
- Start with any document class:
\documentclass[border=10pt]{standalone}
- Load the pgf-PeriodicTable package:
\usepackage{pgf-PeriodicTable}
- Begin the document:
\begin{document}
- Use the \pgfPT command:
\pgfPT
- End the document:
\end{document}
- Compile and look at the result:
Figure 11.27 – The periodic table of elements
How it works...
That was too easy. The \pgfPT command understands many options, and you can customize a lot, including the colors. Let’s leave a detailed reference to the package manual that you can find at https://texdoc.org/pkg/pgf-PeriodicTable...