In the Drawing molecules example we already saw how we can draw simple molecules.
This example uses the chemfig package for drawing the famous benzene ring. On the left side we draw it with all atoms, on the right side we draw it in a skeleton view with the name of the molecule underneath it.
The code is fully explained in the LaTeX Cookbook, Chapter 11, Science and Technology, Drawing molecules.
Edit and compile if you like:% Benzene ring % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{chemfig} \begin{document} \chemfig{C*6((-H)-C(-H)=C(-H)-C(-H)=C(-H)-C(-H)=)} \hspace{2cm} \chemname{\chemfig{*6(=-=-=-)}}{Benzene} \end{document}
Open in Overleaf: benzene-ring.tex