I'm trying to make use of the \replacecmpd command of the chemnum package in LaTeX in combination with eps files produced by ChemDraw. While this works great for the automatic numbering of chemicals by numbers, it will not let me choose my own label although the CTAN provides an example of how to do this.
- The EPS file shows 2 chemical compounds with "
TMP1" and "TMP2" underneath them - I can replace them by "1" and "2" using the standard
\replacecmpd{X1}command - What I want though, is for LaTeX to write "
Compound 1" instad of "1" both in the figure as well as in the text whenever I refer to that compound by\cmpd{X1}.
I'd greatly appreciate any help, thank you guys! :)
Here's my minimal example:
\documentclass[12pt,a4paper,titlepage,twoside,numbers=noenddot,openright,BCOR12mm]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{chemnum}
\usepackage{psfrag}
\setchemnum{init,log=verbose}
\graphicspath{{../EPS/}{../Compounds/}}
\begin{document}
\begin{center}
\begin{minipage}{\linewidth}
\centering
\replacecmpd[tag=Compound1]{X1}
\replacecmpd[tag=Compound2]{X2}
\includegraphics{Compounds.eps}
\end{minipage}
\end{center}
\end{document}
edit: I also noticed that I cannot reproduce the example provided in the CTAN manual about chemnum. Any ideas why that might be the case?

tagmeans. That is not what the command writes but what it replaces! – cgnieder Jul 17 '17 at 17:16psfragdirectly – cgnieder Jul 17 '17 at 17:41