# Can't Replace TEMP labels in Chemnum

When using this .eps file exported from chemdraw (Mac OSX) I am unable to compile a scheme in TeXShop where the labels are replaced.

EDIT1: Upon adding the use \usepackage{auto-pst-pdf} as well as enabling shell escape in the engine, my compiler hangs and crashes.

EDIT2: I suspect I am not enabling shell escape correctly. By restoring the input latex parameter in engine to default followed by compiling the text I get:

You need to run LaTeX with the equivalent of "pdflatex -shell-escape"

\documentclass[twocolumn]{article}
\usepackage{tgbonum}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{chemstyle}
\usepackage{chemfig}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage[super]{natbib}
\usepackage{hyperref}
\usepackage{graphicx,float}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{auto-pst-pdf}
\usepackage{chemnum}
\usepackage{chemscheme}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{color}

\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,}

\author{\small{X and Y}}
\date{\small{30\textsuperscript{th} May, 2018}}
\title{ABC}

\begin{document}

\twocolumn[
\begin{@twocolumnfalse}
\begin{abstract}
xyz
\end{abstract}
\end{@twocolumnfalse}
]

\section{Results and Discussion}

\begin{scheme}
\replacecmpd{first:compound}
\replacecmpd{second:compound}
\replacecmpd{third:compound}
\replacecmpd{fourth:compound}
\includegraphics[width=\linewidth]{untitled1}
\caption{This is something!}
\label{first:chem:scheme}
\end{scheme}

\end{document}

• for some reason the download does not work here… The EPS must contain the strings TMP1, TMP2 and so on as text strings. You can check if this is the case by opening the EPS with your editor and then search for the strings. (Some versions of ChemDraw don't safe the text as text…) – clemens Jun 15 '18 at 14:57
• @clemens how do I search for the strings? I've opened the file in chemdraw and can just see the structures. Please try download from: sendspace.com/file/vvshv7 – Hazinga Jun 15 '18 at 15:02
• @Hazinga: You can open the .eps file in a text editor of your choice and use its search function to find TMP. – leandriis Jun 15 '18 at 15:33
• You forgot \usepackage{auto-pst-pdf} (and shell-escape), see the chemnum manual for examples. – Marijn Jun 15 '18 at 18:42
• does a log file get written when it "crashes" if so what is in it – David Carlisle Jun 16 '18 at 10:59