# Chemnum makes the temporary markers TMP disappear but doesn't replace them [duplicate]

This question follows one I posted earlier this week (here).

I'm having trouble using chemnum, for replacement of temporary labels (TMP1, TMP2, TMP3) in a scheme made with chemdraw. It indeed affects the labels, as they disappear, but they are not replaced at all.

Here is the code I use:

\documentclass[a4paper,12pt,notitlepage]{book}

%Packages
\RequirePackage{etex}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{psfrag}

%chemistry packages
\usepackage{chemstyle}
\usepackage{chemnum}
\usepackage{chemscheme}
\usepackage{titling}

\usepackage{titlesec}    %to correct spacing of chapters
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{-50pt}{20pt}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter:}{1em}{}

%Title
\title{Partie expérimentale}
\author{Me}

\begin{document}

\chapter{Partie Expérimentale}
\section{Synthèse du thiéno[3,2-b]thiophène-2,5-diylbis((3-bromothiophèn-2-yl)méthanol)}

\cmpd*{a}
\cmpd*{b}
\cmpd*{c}

\begin{scheme}[ht]
\replacecmpd{a}
\replacecmpd{b}
\replacecmpd{c}

\includegraphics[scale=0.7]{Schema_Synthese_3.eps}

\caption{Schéma réactionnel 1}

\end{scheme}

\end{document}


Here is the result:

And here is the .eps file if needed.

Any piece of advice on how to get the labels I want?

• Hi, but you could use also Ipe rather than use \psfrag. With Ipe you can change, quickly, the labels. See at the link tex.stackexchange.com/questions/354244/… my answer. – Sebastiano Feb 17 '17 at 15:01
• If I got it right, this is a program to to change the labels? Or is there a way to use it instead of \psfragright in TeXnic Center ? – Allan Feb 17 '17 at 15:08
• At this moment I have not installed TeXnicCenter because I'm using, now, Papeeria or Overleaf. They are two online editors. Personally I have not use \psfrag, almost 13 years. For example with, Ipe, InkScape, Adobe Illustator, you can edit easily your labels of your file .eps. You can see too this link tex.stackexchange.com/questions/311912/… or others. – Sebastiano Feb 17 '17 at 15:14
• @Sebastiano so Ipe can replace arbitrary text markers in an EPS file with arbitrary LaTeX code on the fly from within the LaTeX file? Because that is what chemnum uses psfrag for. (Loading psfrag in addition to chemnum is superfluous…) – cgnieder Feb 20 '17 at 12:08
• @Sebastiano so this is a manual solution and nothing I could add to chemnum. That's all I wanted to know… – cgnieder Feb 21 '17 at 12:50

Ok, the problem came from the fact that cm-super fonts were not installed and so bitmap fonts were used. The answer was found here