4

Rings are aligned with each other using LaTeX chemfig package at their C-1 positions (southwest corners). Rotating one of the rings will cause a misalignment although both rings are still aligned at their C-1 positions (see below). How can I align the two rings at the same level again?

\documentclass{article}
\usepackage{chemfig}

\begin{document}
\begin{center}
\qquad\chemfig{*5(=-NH-=N-)}\qquad\qquad
\chemfig{*6(=N-=N-=-)}
\par\bigskip
\qquad\chemfig{[:-90]*5(=-\chembelow{N}{H}-=N-)}\qquad\qquad
\chemfig{*6(=N-=N-=-)}
\end{center}
\end{document}

enter image description here

  • 1
    Welcome to TeX.SX! – siracusa Jan 21 at 1:21
3

How about this?

\documentclass{article}
\usepackage{chemfig}

\begin{document}
\begin{center}
$\begin{array}{cp{5mm}c}
\vcenter{\hbox{\chemfig{*5(=-NH-=N-)}}} & &
\vcenter{\hbox{\chemfig{*6(=N-=N-=-)}}}\\[1.2cm]
\vcenter{\hbox{\chemfig{[:-90]*5(=-\chembelow{N}{H}-=N-)}}} & &
\vcenter{\hbox{\chemfig{*6(=N-=N-=-)}}}
\end{array}$
\end{center}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.