I have a problem numbering my compounds using bpchem in chemstyle. In the eps files, I use TMP and TMP2 etc, when I insert the figure, I do it like this:
\begin{scheme}
\begin{center}
\schemeref[TMP]{1}
\schemeref[TMP2]{2}
\includegraphics[scale=0.6]{figure1}
\end{center}
\end{scheme}
When I first mention a compound, I use \CNlabel, later \CNref. The substitution of the TMP works just fine, my problem is that the labels in the text seem to be independent of the labels in the schemes. In the schemes, the numbers will run smoothly like 1, 2, 3... However, if I try to reference these compounds in the text, they get numbered by the order I mention them in the text. As the order is not the same the number assigned to a particular compound is not the same in the text as in the schemes. How can I fix this?
ps: I am sorry that I did not provide a minimal example to demonstrate this, I just don't know how to reproduce my problem in a short easy way without having to send you all my eps files.
Edit: Here is an example that gives a different numbering in the text relative to the pictures. In the pictures, the numbering is 1,2,3,4 and in the text the numbering is 1,2,3,4 as well, even though it should be 2,3,4,1. Before, I only had bpchem instead of tracking=bpchem. This old version works for this small example, but for some reason not in my large, more complicated file.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{booktabs}
\usepackage{bpchem}
\usepackage[journal=rsc, tracking=bpchem]{chemstyle}
\usepackage{geometry}
\usepackage[version=3]{mhchem}
\usepackage{setspace}
\usepackage{bm}
\begin{document}
Text where I mention the compounds in a different order than in the schemes: \CNlabel{2}, \CNlabel{3}, \CNlabel{4}, \CNlabel{1}
\begin{scheme}
\begin{center}
\schemeref[TMP]{1}
\schemeref[TMP2]{2}
\includegraphics{bla}
\end{center}
\end{scheme}
\begin{scheme}
\begin{center}
\schemeref[TMP]{3}
\schemeref[TMP2]{4}
\includegraphics{blub}
\end{center}
\end{scheme}
\end{document}
tracking=bpchem? Strange... – Helen Apr 13 '12 at 16:12\usepackage{E}, though. I don't know what that package is about? – cgnieder Apr 13 '12 at 16:14chemnumpackage. It provides a single command for the numbering of compounds and its own version of\schemeref. – cgnieder Apr 13 '12 at 20:18\cmpd*was not enough), but when I tried using\cmpd+in the section titles to avoid defining the compoundnumbers in the table of content, the numbering in the text was wrong again... I think another workaround using bpchem would be to add a list with all compounds before the text using\CNlabelnoref– Helen Apr 14 '12 at 16:34chemnumis fixed and v0.4b will be on CTAN tonight or tomorrow. With the updated version it should work properly “out of the box”. – cgnieder Apr 17 '12 at 20:50