I am new to chemfig, and I am trying to illustrate a reaction using the code:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemname
{\chemfig{-[7]N(-[5])-*6(=-=(-C^{+}(-[6]*6(-=-(-N(-[5])-[7])=-=))-[2]*6(-=-(-N(-[3])-[1])=-=))-=-=)}}
{Crystal Violet Carbonium Ion}
\chemsign{+}
\chemname
{\chemfig{OH^{-}}}
{Hydroxide}
\arrow{->}
\chemname
{\chemfig{-[7]N(-[5])-*6(=-=(-COH(-[6]*6(-=-(-N(-[5])-[7])=-=))-[2]*6(-=-(-N(-[3])-[1])=-=))-=-=)}}
{Crystal Violet Base}
\schemestop
\end{document}
The output is this:
I'm not sure how to go about correcting the alignment issues. Any help is greatly appreciated.