Possible Duplicate:
Chemcompound package : how to avoid the listoffigures scan ?
I am writing my chemistry dissertation with LaTeX, and I am using the chemstyle
package to automatically number compounds. I want the numbering to start in the main body of the dissertation and the numbering to follow the order that they appear in the main body. However, before that I have the table of contents and lists of schemes, figures, and tables. Since these contain some compound names with numbers and the numbering is starting from the beginning of the entire document, the numbering ends up being out of order with respect to the main body of the document. How do I make the numbering start in the main body of the document?
In case my original question was unclear, here is a simple document showing what I was talking about:
\documentclass{article}
\usepackage{chemstyle}
\begin{document}
\tableofcontents
\section{Section}
Compounds \compound{A} and \compound{B}.
\section{Compound \compound{B}}
text
\end{document}
This gives the result that the compound I want numbered first, compound{A}, ends up as compound 2.
Thanks @cgnieder for your help! Both of the options you gave work great. I went with the second option since it helps me keep track of all my compounds, and I don't have to remember to include the plus sign for captions and section titles. I noticed that I need to have have
\usepackage[noimplicit]{chemcompounds}
before
\usepackage{chemstyle}
or I get the error message "Option clash for package chemcompounds."
I have a question regarding your suggestion to look at the chemnum
package. I am also using the chemstyle
package to create the type of float "scheme," create a list of schemes, and to automatically update numbering within my structure images (well, I'm still figuring out the image updating part, having trouble allowing reading of eps images). Would chemnum
allow me to do these things? I looked it up, and it looks like it doesn't, but maybe I'm missing something.