I'm new to LaTeX and have been trying to solve this for a few hours now.

Hi everyone - I'm new to LaTeX and have been trying to solve this for a few hours now.

I'm trying to transfer compounds made in ChemDraw (that I've exported as .eps files) into LaTeX. My ideal goal would be to have LaTeX automatically number all my compounds as I put them in (i.e. if I add a compound in before all the others, the compounds would all automatically renumber).

So far, I've not even been able to convert one temporary label to the number "1". See below:




    \includegraphics[scale=0.7]{Diagrams/"Taxol, Numbered".eps}




And here's the output

EPS file here: https://drive.google.com/open?id=1BWAuTo6YzSeLVQRIQaf4gzG5k5uw84qY

ChemDraw version: (61)

I'm super confused about chemnum vs chemfig vs chemscheme and so far have not been able to get anywhere with any of them - please help!

Thanks for your time!

  • To replace a tag using the \replacecmpd command, put a text box with the content TMP1 in chemdraw and export the file to .eps. (If you have more than one compound per image, use TMP1, TMP2,...) Then you can use \replacecmpd{<key>} in your .tex file with <key> being a unique identifier that you can always use to refer to this compound (comparable to the label/ref approach). If you wish to compile your document using pdflatex you might be interested in using the auto-pst-pdf package. – leandriis Mar 30 at 14:49
  • Further information (and also some examples) can be found in the chemnum manual. If you have a specific problem, please make a minimal working example (MWE) that illustrates your issue and allows others to reproduce it. Unrelated to the question: Do not use the center environment inside a figure as it adds vertical white space. In order to horizontally center the image, you can use the \centering command instead. – leandriis Mar 30 at 14:52
  • @leandriis, I tried this, but it didn't work? It just says "TMP1" still. – Eli Nathan Mar 30 at 14:56
  • Could you try with a .eps file that does not contain spaces in its name? – leandriis Mar 30 at 15:00
  • Sadly still doesn't work - but thanks anyway for helping. – Eli Nathan Mar 30 at 15:03

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.