I have some smaller submolecules (which I also need for my graph) and I want to assmble them to a bigger one. Unfortunetly if I try to connect them like in the example, LaTex makes the bond anywhere. Is it possible to specifically connect the X with the Y molecule without changing the submols? Thanks Roland
MWE:
\documentclass{article}
\usepackage{subcaption,graphicx}
\usepackage{chemfig}
%\usepackage[showframe]{geometry}
\begin{document}
\definesubmol{Y1}{[:90]5((-OH)--O--(-Y)-)}
\definesubmol{Y2}{[:90]5((-OH)--O-(-[:90]X)-(-OH)-)}
\chemfig{!{Y1}}
\chemfig{!{Y2}}
\chemfig{(!{Y1})-,3}
This is how I wanted it to look like:\
\chemfig{[:90]5((-OH)--O-(-[:90]X)-(-[:-90]Y(-[:0]X(-[:-90]-[:-18]5(-(-HO)-(-OH)--O-))))-)}
\end{document}
