# Running the animate package documentation

I downloaded the tex file for the documentation of `animate` package by Alexander Grahn and tried to run it on MikTeX instead of giving me the PDF output it generate the following error:

``````! LaTeX Error: Please use LaTeX to compile this documentation.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...

l.46   \makeatother
``````

Kindly let me know how can I fix this.

-
What command did MikTeX run? Did it do pdflatex or latex or...? – Seamus May 29 '11 at 15:29
It did pdflatex – Scientist May 29 '11 at 15:53

You need to compile it using latex and not pdflatex. You'll get a `.dvi` file that now you can convert to `.ps` using `dvips <file>.dvi`; then you can use `ps2pdf <file>.ps` to obtain a `.pdf` file. Your editor probably has an output profile (`LaTeX=>PS=>PDF` in the case of TeXnicCenter) that can help you to automate this process.
Any idea why it needs DVI output? The package seems to support `pdflatex`: "Package ‘animate’ supports the usual PDF making workflows, i. e. pdfLATEX, LATEX ! dvips ! ps2pdf/Distiller and (X E)LATEX ! (x)dvipdfmx.". – Martin Scharrer May 29 '11 at 16:00
BTW: Also I personally would have phrased the error message differently, because I count `pdflatex` to LaTeX, which is more a collective term. (Not that I blame that on you, Gonzalo) – Martin Scharrer May 29 '11 at 16:02
@Martin: the package supports `pdflatex`, but the file `animate.tex` (which I assume was the file that Scientist tried to compile) uses PS-Tricks (`\usepackage{pst-3dplot}`), so it requires latex for its compilation. – Gonzalo Medina May 29 '11 at 16:11