everyone, in the past one hour, I have been fighting with the PSTricks package in MikTeX. I found a lot of example code here.

For example, I downloaded the gliding ball example tex and I ran it in Miktex, but it didn't compile even though I installed all kinds of pst packages. And I tried some other example tex code, and they didn't work in Miktex neither.

Can someone help me modify one of the example code in the link above to make it work in MikTeX?

I'll really appreciate that! Thank you very much!

  • 1
    Did you compile with latex-dvips-ps2pdf sequence? – kiss my armpit Oct 4 '13 at 14:59
  • What do you mean? I am not that familiar with the compiling order. Could you please explain a little bit more? Thanks! – Cancan Oct 4 '13 at 15:13
  • or run the example with xelatex – user2478 Oct 4 '13 at 15:13
  • @Herbert, I indeed tried that, but it still gave me error message. For example, in the gilding ball example, it says “! I can't find file `xdvipdfmx.cfg'.” – Cancan Oct 4 '13 at 15:16
  • Look into the package manager of MikTeX for xetex or that file and controll if it is really installed. – user2478 Oct 4 '13 at 15:18

To diagnose your problem whether or not you have properly installed MikTeX, compile the following by invoking the following command from the DOS window (type Win+R, type cmd and press enter to launch the DOS window).

latex input.tex
dvips input.dvi
ps2pdf -dAutoRotatePages#/None input.ps 

% input.tex
    \foreach \a in {65,66,...,68}{\rput{\a}(!1 \a\space \pst@angleunit PtoC){\char\a}}

enter image description here

If you get the same result then everything is fine.

  • It gave me the following error "! LaTeX Error: File `standalone.cls' not found." after I typed input.tex – Cancan Oct 4 '13 at 15:37
  • 2
    @Cancan: Very good, now the easiest procedure to fix your problem is to download MikTeX and reinstall it. It is a brute force approach but it will save your time. See my answer here if you don't know how to get MikTeX. – kiss my armpit Oct 4 '13 at 15:47
  • Haha@ :D , I like this comment. Ok, I'll try that and see what happens again. Thanks! – Cancan Oct 4 '13 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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