Is there a nice way to define a ring submolecule and then reuse it in a bigger molecule (maybe something similar to “chemfig and lego-style molecule construction”? (append one ring after another)
I would like to draw for example this:
\documentclass{article}
\usepackage{chemfig,xstring}
\begin{document}
\chemfig{-*6(-=-(-*6(-=-(-*6(-=-(-)=-=))=-=))=-=)}
\end{document}
but such that the ring would be defined as a submolecule (name e.g. ring) and then append one ring after another (\chemfig{-!{ring}-!{ring}-!{ring}}). Is there a way to do it?
Desired result:

