[Tex/LaTex] Drawing chemical structure – newman projections

chemfigchemistrychemmacrosdiagrams

I'm trying to create a figure showing some different possible chemical structures of the butane molecule in the form of the right most diagrams in the below image and I'd like to know the best way to go about this. My preliminary research suggests the chemfig package is a good choice for most chemical structures, and it would certainly be capable of those in the first and middle columns, but I can't figure out how to use it to create something like those in the last column, or whether it's even capable of it.

Can anyone suggest how I might go about this in Latex? Or should I be looking at external programs like ChemDraw?

butane

Best Answer

I managed to resolve this issue myself, and thought I'd share my solution. Thanks to @clemens for the package suggestions.

An MWE is below, along with an image of the produced output. The result shows some alignment issues which I have chosen not to correct for this example as they're separate to the main issue here, and the solution I used just obfuscates the code for the diagrams, and is therefore inappropriate for an MWE. The way I've chosen to call the different packages in the preamble resolves the issue I reported earlier of clashing packages, while still loading the same packages and settings.

\documentclass{article}

\usepackage{chemmacros}
\chemsetup{formula=mhchem,modules=newman} % Loads mhchem package and newman module

\begin{document}

\begin{figure}
    \centering
    \caption{Newman projections of the four butane conformational isomers.}
    \newman{\hspace*{3mm} \ce{CH3},H,H,\hspace*{3mm} \ce{CH3},H,H}
    \newman(73){\hspace*{3mm} \ce{CH3},H,H,\ce{CH3},H,H}
    \newman(120){\hspace*{3mm} \ce{CH3},H,H,\ce{CH3},H,H}
    \newman(193){\hspace*{3mm} \ce{CH3},H,H,\ce{H3C} \hspace*{3mm},H,H}
\end{figure}

\end{document}

newman diagram example

Related Question