I'm trying to put a number of different molecule structures into one document with the help of the chemfig package. The package also allows to add the name of the compound to the structure as a caption via the chemname command. As far as I understand the distance of the label from the structure is measured by the package and to avoid overlaps the largest spacing found is used for all subsequent labels. This leads to the effect of a large distance if the following molecule structure is small.
Is there a way to reset the distance measured between the \chemname
commands?
Thank you very much for your help and please also see the example code below.
Thomas
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{chemfig}
\begin{document}
\chemname{\chemfig{-[7]-[1]P(=[2]O)(-[6]-[7])-[7]-[1]}}{Triethylphosphine oxide}
\chemname{\chemfig{-[1](-[2]OH)-[7]}}{Isopropanol}
\chemname{\chemfig{H_2N-[1](=[2]O)-[7]NH_2}}{Urea}
\end{document}