PSTtoEPS- *.eps lässt sich nich öffnen
Hallo!
Ich versuche gerade eine PSTricks Grafik in eps zu konvertieren. Über die Forensuche bin ich auf einen Artikel auf tug.org gestoßen (PSTtoEPS, converting into EPS from inside pstricks).
Hier der Text:
Zitat:
PSTtoEPS, converting into EPS from inside pstricks
The first one is a real pstricks solution, it creates eps-images, which can be converted with epstopdf to PDF format. You need the package pst-eps.sty and the corresponding TeX file pst-eps.tex:
BEISPIEL
PSTtoEPS is unable to calculate the bounding box. You can pass this values as options to the macro or leave it blank, then the image gets the default values of 2*2pt. In this case you have to reserve the space in your text by yourself. The saved EPS image can now be converted into any other format.
Ich habe einfach mal den dort angegebenen Beispielcode zum testen verwendet.
Code:
\documentclass{article}
\usepackage{pst-eps,graphicx,epstopdf}
\makeatletter
\newcommand{\pssave}[2]{%
\PSTtoEPS[%
headerfile=pstricks.pro,%
headers=all,%
bbllx=-2,bblly=-2,bburx=2,bbury=2]
{#1.eps}{#2}%
}
\makeatother
\parindent=0pt
\begin{document}
\pssave{EPSfileName}{%
\begin{pspicture}(-2,-2)(2,2)
\psset{linecolor=red}
\pscircle{2} % any pstricks stuff
\end{pspicture}%
}
line before image
\includegraphics{EPSfileName}
line after image
\end{document}
Ich kann die Ausgabe wunderbar betrachten, doch die erstellte eps Datei kann ich nicht öffnen.
Wo liegt mein Fehler?
System: Ubuntu 9.10, Texlive 2009, Kile 2.0.1
Gruß Max