I need auto-pst-pdf so the package chemnum automatically number the chemicals I use in figueres. But I run into the problem that if I use the package todonotes at the same time my TexShop stops working.

So I use this example.

% !TEX encoding = UTF-8 Unicode
a4paper,                       %% DIN A4-Papier
DIV=calc,                       %% Satzspiegel berechnen
11pt,                          %% Schriftgröße
captions=tableheading,         %% Tabellenüber- statt unterschriften
]{scrreprt}                    %% KOMA-Skript Report als Klasse

\usepackage[colorinlistoftodos,prependcaption]{todonotes}       %%ToDo-Notes. 
\usepackage{chemnum}              %% Numbering chemical compounds
\usepackage{auto-pst-pdf}         %% needed for replacing temporary strings to numbers


Bla blub
\todo{Deckblatt designen}



If I either comment out all todonotes or auto-pst-pdf everything works fine (except that I have no todo notes or my temporary strings don't get replaced of course)

After this output the TexShop stops working. After this output TexShop stops working

This is the complete .log fiile

Can anybody present me a solution for this problem?

  • If you get an error please always show the exact error from the log. I ran your example with pdflatex --shell-escape (but using example-image as the image) and it ran with no errors although of course none of the replacements matches in that case. – David Carlisle May 25 '17 at 8:35
  • It is best to show the log as tex (in a code section) rather than as an image, but the image that you show shows no error (the pdf special warning is just a feature of auto-pst-pdf) – David Carlisle May 25 '17 at 8:47
  • That's what I was wondering about too. I don't get an error, TexShop just crashes... Maybe the problem lies with TexShop and not the used packages? The created PDF File makes Preview Stop working after some time and I can't open up my .tex file with TexShop until I delete the .pdf file beforehand – Christoph H. May 25 '17 at 8:48
  • how can the editor crash just running tex, that's odd, what happens if you just run pdflatex --shell-escape your file on the commandline? – David Carlisle May 25 '17 at 8:52
  • Using the command line like you suggested works fine. Still Preview crashes after 20 seconds or so, so something's still not working alright. – Christoph H. May 25 '17 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.