Math & ScienceTrouble with chemscheme package

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
veer
Posts: 2
Joined: Mon Apr 12, 2010 9:57 pm

Trouble with chemscheme package

Post by veer »

Hello,

I'm a new one here, and I'm also 'new' in working with latex. I'm writing my master thesis in latex and I need to submit chemical schemes there in. So I use the chemscheme package. But I'm allways running in some errors, and I really don't know what I do wrong. Here is an example of my little 'test-file'

\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{chemscheme}


\begin{document}
\begin{scheme}[ht]
\schemeref[XX1]{benzene}
\schemeref[XX2]{nitrobenzene}
\includegraphics{test.eps}
\caption{this is a test}
\end{scheme}


This is a little test, just to check wheter my compounds are labeled or not. \compound{benzeen} is benzene while \compound{XX2} is nitrobenzene.
\end{document}

the error I get is:

Package pdftex.def Error: File `test2-pics.pdf' not found.


and I really don't know where that file 'test2-pics.pdf' comes from... :s

But if I replace the auto-pst-pdf package by the epstopdf package, I get my figure, but not my automated labels...
Can somebody help me with this?

Thanks,

Veer

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Trouble with chemscheme package

Post by localghost »

veer wrote:[...] and I really don't know where that file 'test2-pics.pdf' comes from [...]
This file is generated by the (auto-)pst-pdf package to transfer all postscript stuff into this external file. See the manual for details.
veer wrote:[...] But if I replace the auto-pst-pdf package by the epstopdf package, I get my figure, but not my automated labels [...]
Perhaps a second compiler run will do the trick. Check the log file for warnings.


Best regards and welcome to the board
Thorsten
veer
Posts: 2
Joined: Mon Apr 12, 2010 9:57 pm

Re: Trouble with chemscheme package

Post by veer »

Hello,

thank you for your reply,
if I run it a second time, I still don't get my labels wright.
But I have found an alternative way:
I run my document with the chemscheme and auto-pst-pdf package but not latex=>pdf but latex=>ps and then I turn my ps file into a pdf file with ghostview.

kind regards

veer
Post Reply