
Me gustaría alinear estas dos estructuras chemfig, que se ven a continuación, horizontalmente, pero no puedo entender cómo.
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\begingroup
\centering
\setatomsep{3em}\chemname{\chemfig{C(-[:180]H)*6(-C(-H)=C(-H)-C(-H)=C(-H)-C(-H)=)}}{Lewis
structure\\of benzene}
\qquad
\setatomsep{3em}\chemname{\chemfig{**6(------)}}{Cyclic compound\\of benzene}
\endgroup
\end{document}
Respuesta1
Al colocar los chemfigs, \raisebox{\depth-\totalheight/2}{...}
los centra verticalmente moviendo el punto de referencia del cuadro a la mitad de la altura total. Requiere el calc
paquete LaTeX:
\documentclass{article}
\usepackage{chemfig}
\usepackage{calc}
\begin{document}
\begingroup
\centering
\setatomsep{3em}\chemname{\raisebox{\depth-\totalheight/2}{\chemfig{C(-[:180]H)*6(-C(-H)=C(-H)-C(-H)=C(-H)-C(-H)=)}}}{Lewis
structure\\of benzene}
\qquad
\setatomsep{3em}\chemname{\raisebox{\depth-\totalheight/2}{\chemfig{**6(------)}}}{Cyclic compound\\of benzene}
\endgroup
\end{document}