[pstricks] Problems with Pdflatex, pstricks and animate
A. Erhardt
erhardt at fh-offenburg.de
Thu Nov 13 13:53:45 CET 2008
Hello, pstrickers,
I would like to include an animated graphics into my text.
I was testing one of the examples from the animate.pdf manual (attached for convenience), which involves pstricks,
since most of my sketches are done with pstricks.
According to the animated package manual (animated.pdf) I should be able to compile my file
with PDFLatex into a pdf file, but I am having problems with it.
Below please find
1. my sample program
2. the relevant lines from the error message in the log file
The complete log file is also attached to this email if needed.
I am working with MikTex 2.7 (downloaded and installed last week, so I should have the latest of everything)
I have Miktex on 'Automatic download and install packages' setting, so Miktex should install what it needs.
Thank you very much in advance for any help.
Angelika
1. ------------------------------my sample program---------------------
\documentclass{article}
\usepackage{pst-3dplot}
\usepackage{animate}
%draws a torus sector
\newcommand{\torus}[2]{% #1: angle of the torus sector,
% #2: linewidth of leading circle
\psset{Beta=20,Alpha=50,linewidth=0.1pt,origin={0,0,0},unit=0.35}%
\begin{pspicture}(-12.3,-6.3)(12.3,7)%
\parametricplotThreeD[xPlotpoints=100](80,#1)(0,360){%
t cos 2 mul 4 u sin 2 mul add mul
t sin 2 mul 4 u sin 2 mul add mul
u cos 4 mul
}%
\parametricplotThreeD[yPlotpoints=75](0,360)(80,#1){%
u cos 2 mul 4 t sin 2 mul add mul
u sin 2 mul 4 t sin 2 mul add mul
t cos 4 mul
}%
\parametricplotThreeD[yPlotpoints=1,linewidth=#2](0,360)(#1,#1){%
u cos 2 mul 4 t sin 2 mul add mul
u sin 2 mul 4 t sin 2 mul add mul
t cos 4 mul
}%
\end{pspicture}%
}
\begin{document}
\begin{center}
\begin{animateinline}[poster=last, controls, palindrome]{12}%
\multiframe{29}{iAngle=80+10, dLineWidth=2.9pt+-0.1pt}{%
%iAngle = 80, 90, ..., 360 degrees
%dLineWidth = 2.9pt, 2.8pt, ..., 0.1pt
\torus{\iAngle}{\dLineWidth}%
}%
\end{animateinline}%
\end{center}
\end{document}
2. ------------------the relevant lines from the error message in the log file------------
...
\everyMPtoPDFconversion=\toks25
)
! Undefined control sequence.
<recently read> \c at lor@to at ps
l.33 }
%
? x
-----------------------End of Email-------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testanimate.log
Type: application/octet-stream
Size: 9519 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081113/de9316d1/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: animate.pdf
Type: application/pdf
Size: 2582484 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20081113/de9316d1/attachment-0001.pdf
More information about the PSTricks
mailing list