2

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!

Cancan
  • 141
  • 1
  • 6

1 Answers1

3

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
\documentclass[pstricks,border=1pt]{standalone}
\SpecialCoor
\makeatletter
\degrees[4] 
\begin{document}
\begin{pspicture}[showgrid](-2,-2)(2,2)
    \foreach \a in {65,66,...,68}{\rput{\a}(!1 \a\space \pst@angleunit PtoC){\char\a}}
\end{pspicture}
\end{document}

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 04 '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 04 '13 at 15:47
  • Haha@ :D , I like this comment. Ok, I'll try that and see what happens again. Thanks! – Cancan Oct 04 '13 at 15:48