I am using chemstyle and bpchem to number my compounds. I save my chemdraw drawings as eps and use TMP and TMP2 as markers that will replaced by the compound numbers. As long as \CNlabel is used before the scheme is inserted, it works fine, but if the text is below the picture as in the following example, the labeling in the text is different from the labeling in the schemes.

\usepackage[journal=rsc, tracking=bpchem]{chemstyle}




 Text where I mention the compounds in a different order than in the schemes: \CNlabel{2}, \CNlabel{3}, \CNlabel{4}, \CNlabel{1}


Additionally, I would prefer to have the numbering in the order the compounds appear in the schemes instead of in the order they appear in the text. Is there a good solution to do this? One possible workaround I can think of would be to add a list like this in the beginning of the document:


To do this manually, however, would be quite tedious. Is there a way I could generate such a list automatically?

  • 1
    Although I'm the author of chemstyle, I'd suggest using the chemnum package instead for numbering in schemes. It's newer, and over all cleaner. I can't just drop chemstyle as it has been used by quite a lot of people, but there are some flaws :-(
    – Joseph Wright
    Apr 14, 2012 at 19:51

1 Answer 1


Try adding the following to your document preamble, after loading chemstyle:

\usepackage{letltxmacro}% http://ctan.org/pkg/letltxmacro

It's difficult to test without actual PDF images.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.