[OS X TeX] a problem with pdftricks
Herb Schulz
herbs at wideopenwest.com
Mon Apr 4 20:40:15 EDT 2005
On 4/4/05 3:40 PM, "Sergei Mariev" <serguei.mariev at campus.lmu.de> wrote:
> Thanks Ross and thanks to everybody who has replied to the thread!
> One last question that I hope will help me find the solution.
>
> I did remove the rm line from Herb Schulz' .sty file and had a look
> at the new-example1.log The problem was trivial, it was unable to
> find the file pstricks-add.tex so I made sure the file was there and
> repeated the procedure. However, I did not obtain the desired result
> and the problem seems now to be the following:
> the .dvi file cannnot be converted to .ps, the error message says:
> ' TeX output 2005.04.04:2035' -> try1-fig1.eps
> dvips: ! Couldn't find header file pst-eqdf.pro
>
> If I run the standard pdftricks and if a use the modified version by
> Herb Schulz, in both cases this seems to be the stage at which the
> entire process is aborted. If I comment out the rm line that deletes
> the .dvi and try to convert that div manualy by invoking dvips on the
> command line, this is also the message I get.
>
> I tried looking for this pst-eqdf.pro on the internet but did not
> obtain any results. Is it a part of some distribution, where can I
> get this file and where am I supposed to install it or what does this
> message mean?
>
> Thanks a lot,
>
> sergei
>
Howdy,
I'm sorry I couldn't reply earlier but I was off the net for the last week;
the hinge holding the lcd onto the body of my old Powerbook actually snapped
and the system was into Apple for repair.
If I compile the following file it all seems to work fine for me:
%&pdflatex
\documentclass[10pt]{article}
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks-add}
\usepackage{pstricks}
\usepackage{rotating}
\usepackage{pst-plot}
\usepackage{pst-text,pst-node,pst-tree}
\end{psinputs}
\begin{document}
\begin{pdfpic}
\begin{pspicture}(0,0)(3.5,2.5)
\psline(2,1)(3,2)
\end{pspicture}
\end{pdfpic}
\end{document}
Your original file with the \ifpdf stuff worked fine for me under pdflatex
but not under patex+ghostcript because there was no
\begin{psinputs}...\end{psinputs} but there still was the
\usepackage{pdftricks} and \begin{pdfpic}...\end{pdfpic} environment
surrounding the pspicture.
You've got to be a bit fancier if you want it to work in both situations:
put the \usepackage{pdftricks} inside the \ifpdf and in the \else clause
you've got the define the pdfpic environment as an empty environment.
I hope this helps solve your problem.
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list