I am using chemstyle or chemescheme package to automatically generate labels of compounds in the scheme. It took me a long time to make it work after I notice that it require --shell-escape to display the .esp file in the pdflatex mode.
However, I get all of the compounds labeled correctly, but how can I reference them in the text part? I tried to use \schemeref{label}, but it does not work.