I'd like to use pstricks
with auto-pst-pdf
. However, running the example code on http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#autopstpdf gives me the following error:
Package auto-pst-pdf Warning:
Could not create document-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.
This is the input
\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{auto-pst-pdf}
\pagestyle{empty}
\begin{document}
\begin{pspicture}(-5.25,-5.25)(5.25,5.25)%
\pscircle*[linecolor=cyan]{5}
\psgrid[subgriddiv=0,gridcolor=lightgray,gridlabels=0pt]
\Huge\sffamily\bfseries
\rput(-4.5,4.5){A} \rput(4.5,4.5){B}
\rput(-4.5,-4.5){C}\rput(4.5,-4.5){D}
\rput(0,0){auto-pst-pdf}
\rmfamily
\rput(0,-3.8){PSTricks}
\rput(0,3.8){\LaTeX}
\end{pspicture}
% \includegraphics{foo}% can be foo.jpg or foo.png
\end{document}
This is the output:
Z:\>pdflatex -shell-escape C:\Daten-Privat\mjira\workspace\test\document.tex
This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9)
entering extended mode
(C:/Daten-Privat/mjira/workspace/test/document.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Programme\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Programme\MiKTeX 2.9\tex\latex\base\size12.clo"))
("C:\Programme\MiKTeX 2.9\tex\latex\pstricks\pstricks.sty"
>>> Loading package auto-pst-pdf <<<
("C:\Programme\MiKTeX 2.9\tex\generic\pstricks\pstricks.tex"
("C:\Programme\MiKTeX 2.9\tex\generic\xkeyval\pst-xkey.tex"
("C:\Programme\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
("C:\Programme\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Programme\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))))
("C:\Programme\MiKTeX 2.9\tex\generic\pstricks\pst-fp.tex"
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.13 <2010/11/01> (tvz)
("C:\Programme\MiKTeX 2.9\tex\generic\pstricks\pstricks.con"))
("C:\Programme\MiKTeX 2.9\tex\generic\pstricks\pst-fp.tex")
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\xco
lor\xcolor.sty" ("C:\Programme\MiKTeX 2.9\tex\latex\00miktex\color.cfg")
("C:\Programme\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"))) (Z:\document.aux)
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\aut
o-pst-pdf\auto-pst-pdf.sty"
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\ifp
latform\ifplatform.sty"
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty")
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"))
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\catchfile.sty"
("C:\Programme\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty")))" "
"-------------------------------------------------"
"auto-pst-pdf: Auxiliary LaTeX compilation"
"-------------------------------------------------"
Package auto-pst-pdf Warning:
Could not create document-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.
"-------------------------------------------------"
"auto-pst-pdf: End auxiliary LaTeX compilation"
"-------------------------------------------------"
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\pst
-pdf\pst-pdf.sty" ("C:\Programme\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Programme\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Programme\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Programme\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")))
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\pre
view\preview.sty"
Preview: Fontsize 12pt
Preview: PDFoutput 1
) ("C:\Programme\MiKTeX 2.9\tex\latex\graphics\dvips.def")
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\latex\env
iron\environ.sty")))
("C:\Dokumente und Einstellungen\mjira\anwendungsdaten\MiKTeX\2.9\tex\context\b
ase\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
)
Package pst-pdf Warning: pspicture No. 1 undefined.
Package pst-pdf Warning: File `document-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ----------------------------------------------------
(pst-pdf) latex document.tex
(pst-pdf) dvips -o document-pics.ps document.dvi
(pst-pdf) ps2pdf document-pics.ps
(pst-pdf) ---------------------------------------------------- .
(Z:\document.aux) )
No pages of output.
Transcript written on document.log.
(Strawberry-)Perl is installed:
Z:\>perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-t
hread
Copyright 1987-2010, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Have you got an idea what to check?
pdfcrop
? You can try to run it withusepackage[crop=off]{auto-pst-pdf
. However, you can runxelatex
instead and then you do not nueedauto-pst-pdf
usepackage[crop=off]{auto-pst-pdf}
! Strange, pdfcrop is installed referring to MikTeX... Thank you for your help! Great you are present on every LaTeX-Forum on the internet!