After careful consultation of the chemfig documentation and looking up a couple of questions here, I am struggling to find a solution to get these correctly aligned. They are inside a box which is inside a figure float, 80% textwidth wide and positioned in the middle via hfills.
My reason for using the scheme-scheme so far is, that aligning the bodys works like a charm, but as it seems, chemname doesn't align correctly anymore.
You find the code here:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{chemfig}
\usepackage{lipsum}% dummy text
\begin{document}
\lipsum[1]
\begin{figure}[!tph]
\hfill{}%
\begin{minipage}[t]{0.9\textwidth}%
\begin{center}
\schemestart
\chemnameinit{\definesubmol{R1}{-R_1}\definesubmol{R2}{-R_2}\definesubmol{R3}{-[,0.5]R_3}\chemfig{([:-18]N*5((!{R1})-(!{R3})=\chemabove{N}{\quad\scriptstyle\oplus}([:342]!{R2})-=-))}}
\definesubmol{R1}{-R_1} \definesubmol{R2}{-R_2} \definesubmol{R3}{-[,0.5]R_3} \chemname{\chemfig{([:-18]N*5((!{R1})-(!{R3})=\chemabove{N}{\quad\scriptstyle\oplus}([:342]!{R2})-=-))}}{Imidazolium}
\arrow{0}
\chemname{\chemfig{[:60]\chemabove{N}{\oplus}*6((([:342]-R_1)([:198]-R_2))------)}}{Piperidinium}
\arrow{0}
\definesubmol{R1}{R_1}
\chemname{\chemfig{[:54]\chemabove{N}{\oplus}*5((([:198]-!{R1})([:342]-R_2))-----)}}{Pyrrolidinium}
\schemestop
\chemnameinit{}
\par\end{center}%
\end{minipage}\hfill{}
\protect\caption{Gängige Kationen ionischer Flüssigkeiten.}
\end{figure}
\end{document}
Other questions related but which didn't enable me to solve the problem:
Would be very glad if someone knows a solution.
Update 13.08.14: Updated with a MWE.
Best Answer
Here's a crazy idea: use a
tabular
.