TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 '12 at 19:51
up vote 5 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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