# TeXworks + pdflatex + PSTricks autopp suffix problem

I have managed to make PSTricks work with TeXworks. However after compilation it adds -autopp to the basename of the pdf file, e.g. report.pdf becomes report-autopp.pdf. As a result TeXworks is not able to preview the file in a window.

How can I make TeXworks preview the pdf file? Am I doing something wrong? Here is my tex file:

\documentclass{article}
\usepackage[pdf]{pstricks}
\begin{document}
\begin{figure}
\begin{pspicture}(4,5)
\psframe(0.7,2)(3.3,3)
\rput(2,2.5){First Example}
\end{pspicture}
\end{figure}
\end{document}

-
did you run the document with pdflatex -shell-escape? See tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#texworks –  Herbert Aug 15 '12 at 11:39
@Herbert yup. I've setup TeXworks for that. –  nimcap Aug 15 '12 at 11:44
and have you Perl installed? If not then use \usepackage{pstricks}\usepackage[crop=off]{auto-pst-pdf} and tell us what your log file reports. –  Herbert Aug 15 '12 at 11:47
I have installed Perl and tried again, did not work. Using \usepackage{pstricks}\usepackage[crop=off]{auto-pst-pdf} worked. Does this mean my TeX distribution is too old? –  nimcap Aug 15 '12 at 12:06
run your original example and post the logfile where error messages appear. –  Herbert Aug 15 '12 at 12:08
show 6 more comments

## 1 Answer

use

\usepackage{pstricks}
\usepackage{auto-pst-pdf}


I'll have a look at the pstricks.sty why it didn't work under Windows. With Linux it is no problem.

-
add comment