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?

  • 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, 2012 at 10:44
  • 3
    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, 2012 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.
    – Dietmar
    Mar 25, 2012 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, 2012 at 11:24
  • Oh: I added \usepackage{epstopdf} to make it work.
    – Dietmar
    Mar 25, 2012 at 11:26

1 Answer 1


(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 run: 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


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.