I don't normally advertize the tabu
package (see this post for reasons why) but in this case it is very handy. It scales the table horizontally to textwidth per default if you use its X
type columns. Those columns have an optional argument for specifying the ratio of one column to another: X[1]X[2]
would mean that the second column has a width twice as much as the first. In the optional argument you can also specify what traditional column type you'd like to have. I used X[<num>c,m]
to have all cells centered both vertically and horizontally.
Instead of scaling each of the molecules I redefined the atom-sep and the \printatom
command inside the table
environment. Since this is inside the environment the effect of the redefinitions will stay local.
In the code below I removed all unnecessary packages. Instead I introduced mhchem
(I could also have used chemformula
) for inline chemical formulae, and booktabs
for nicer table rules:
\documentclass[12pt,letterpaper]{report}
\usepackage{chemfig}
\usepackage[version=4]{mhchem}
\usepackage{tabu}
\usepackage{booktabs}
\setatomsep{2em}
\setbondoffset{1pt}
\setdoublesep{4pt}
\setbondstyle{line width=0.8 pt}
\renewcommand{\printatom}[1]{\fontsize{14pt}{14pt}\selectfont{\ensuremath{\mathrm{#1}}}}
\begin{document}
\begin{table}[t]
\centering
% locally change the molecule layout
\setatomsep{.8em}
% the following is necessary because you have defined \printatom with
% a fixed fontsize:
\renewcommand*\printatom[1]{\scriptsize\ensuremath{\mathrm{#1}}}
\caption{Test}
\begin{tabu}{X[3c,m]X[8c,m]X[5,cm]X[9c,m]X[3c,m]}
\toprule\rowfont\bfseries
Entry & \ce{RBF3K} & \ce{Ar-Br} & \ce{R-R} & Yield (\%) \\
\midrule
1 & \chemfig{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K}
& \chemfig{[:30]NC-*6(-=-(-[,1.3]Br)=-=)}
& \chemfig{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-CN)=-=-)}
& 75 \\
2 & \chemfig{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]BF_3K}
& \chemfig{[:30]Cl-*6(-=-(-[,1.3]Br)=-=)}
& \chemfig{[:30]--[::-60]--[::-60]-[:30]-[:-30]~[:0]-[:0]*6(-=-(-Cl)=-=-)}
& 65 \\
\bottomrule
\end{tabu}
\end{table}
\end{document}

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}

Best Answer
The answer is: yes. There is actually more than one package to do that:
chemfig
ochem
streeTeX
XyMTeX
PPCHTeX
I have used all but
XyMTeX
andPPCHTeX
myself but nowadays only usechemfig
any more.XyMTeX
is in my opinion far from being intuitive so I never bothered learning it.It also is not regularly updated to CTAN and not part of TeX Live. CTAN has v4.06 but the newest version is v5.00.ochem
nearly offers all one needs but 1) is not available from either major free distribution and 2) the work is done by a Perl script that translates formulae and reaction schemes into PostScript, which means it doesn't work with pdflatex.streeTeX
is just too limited in its capabilities besides the fact that it is rather old, is not available from either major free distribution and also doesn't work with pdflatex.chemfig
is a rather new and actively maintained package that not only allows to draw skeletal formulae but also has commands for creating whole reaction schemes. It uses TikZ for the drawing.PPCHTeX
is ConTeXt's chemistry module but it can actually be used with LaTeX, too. I have never used it before and trying to typeset the examples below with it has proven to be more complicated than I thought. That's why I simply copied an example from the conTeXtgarden.So if you want to draw your formulas and schemes with LaTeX rather than an external program like
ChemDraw
I can only recommendchemfig
.A
chemfig
example:An
ochem
example:A
streetex
example:A
XyMTeX
example:A
PPCHTeX
example