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

The following minimal code using the chemnum package was designed to replace TMP1, TMP2 and TMP3 in an eps file made by ChemDraw by numbers:






A copy of the eps file can be found here. Is this problem due to my eps file or my code?

share|improve this question
Welcome to TeX.sx! Perhaps consider picking a more memorable user name that user1281358 :-) For me, your example works as expected: could you add \listfiles to your input and edit the file list you get into the question? – Joseph Wright Mar 25 '12 at 10:44
Also a chemistry comment about the scheme. Your arrow is coming from 1, but in the text you indicate that 1 is added after some initial step. Unless you use two separate equivalents of 1, that is misleading. – Joseph Wright Mar 25 '12 at 10:55
The log file can be found here. I don't have a lot of experience with latex, so I looked over this one at first: Package etexcmds Info: Could not find \expanded. Could this be of any importance? By the way the schema was taken literally from a peer-reviewed article. – ErwinL Mar 25 '12 at 11:17
I see you are running on Windows, and that the log claims that the auxiliary compilations have failed. Could you try using \usepackage[crop=off]{auto-pst-pdf} and see if that helps? pdfcrop is not always successful on Windows, at least for me. – Joseph Wright Mar 25 '12 at 11:24
Oh: I added \usepackage{epstopdf} to make it work. – ErwinL Mar 25 '12 at 11:26

(Summarising my comments into an answer.)

The most common issue when using auto-pst-pdf is a failure of the conversion after the LaTeX run. Here, in the log we find

Package auto-pst-pdf Warning: 
    Creation of minimum-pics.pdf failed.
This warning occured on input line 124.

As the file compiles without errors with pdfLaTeX, the most likely explanation is that pdfcrop is failing to rung: this is the final step of the conversion process. In particular, pdfcrop will not work 'out of the box' on Windows. Thus a solution may well be to use

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.