TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

\rput(2,2.5){First Example}
share|improve this question
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
up vote 5 down vote accepted



I'll have a look at the pstricks.sty why it didn't work under Windows. With Linux it is no problem. However, you have to run it with

pdflatex --shell-escape <file>

for TeXnicCenter and others see http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#TXC

share|improve this answer
Guys, I'm facing the same issue. pstricks doesn't work with pdflatex on windows as it is expected. – maksmara Feb 13 '14 at 13:31
@nimcap, I have the same "autopp suffix problem". My TeX distribution is ProTeXt-3.1.3-060313 – maksmara Feb 13 '14 at 14:03
I suppose you forgot the -shell-escape. See my edited answer. – Herbert Feb 13 '14 at 14:09
nope, I have tried all possible ways :( how can i post my question? as an answer? – maksmara Feb 13 '14 at 14:14
@maksmara Follow-up questions are more than welcome! Please use the "Ask Question" link for your new question; there you can link to this question to provide the background. – texenthusiast Feb 13 '14 at 15:02

You can also do with the following approach. Compile it with pdflatex -shell-escape main.tex where main.tex is as follows.

% main.tex

\rput{90}(2,2.5){First Example}


\foreach \compiler/\extension in {latex/tex,dvips/dvi,{ps2pdf -dAutoRotatePages=/None}/ps}{\immediate\write18{\compiler\space figure.\extension}}
\caption{This is my figure.}

enter image description here


  • -dAutoRotatePages=/None is important here to avoid ps2pdf to automatically rotate the figure. Try it by yourself, remove -dAutoRotatePages=/None.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.