The following, which is provided in the pst-func documentation, does not seem to run correctly but I can correctly run the animation in the pdf documentation file. I used XeLaTeX to compile it.


\rput(3,0.3){$\nu = #1$}\end{pspicture}}

\captionof{figure}{Student’s $t$-distribution.}

All it displays in the generated pdf are the numbers but no axes and no graph and no animation.

Where did I go wrong?

  • 2
    I think you have to compile like latex test ---> dvips test ---> ps2pdf test.ps test.pdf. pstricks on XeTeX is a subset of that on dvips. – Akira Kakuto Oct 10 '17 at 7:06
  • Thanks @AkiraKakuto. It worked. But why does it not work in MikTex? – qzx Oct 10 '17 at 7:21
  • 1
    MiKTeX ships with an old Ghostscript, as far as I know. animate requires gs-9.15 or newer (if going the dvips route). – AlexG Oct 17 '17 at 7:32

Documents with PSTricks graphics to be animated inside the animateinline environment must be built the standard way, that is, along the sequence of commands:

latex mydoc
latex mydoc
dvips mydoc
ps2pdf mydoc.ps

xelatex usually does not produce the desired result.

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.