summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/animate/animate.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/animate/animate.tex')
-rwxr-xr-xMaster/texmf-dist/doc/latex/animate/animate.tex33
1 files changed, 16 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/animate/animate.tex b/Master/texmf-dist/doc/latex/animate/animate.tex
index c45cbe9ae8e..d36c2095c6f 100755
--- a/Master/texmf-dist/doc/latex/animate/animate.tex
+++ b/Master/texmf-dist/doc/latex/animate/animate.tex
@@ -8,7 +8,6 @@
\frenchspacing
\usepackage[UKenglish]{babel}
\usepackage{pst-3dplot}
-\usepackage{fp}
\usepackage{animate}
\usepackage{intcalc}
\usepackage{graphicx}
@@ -486,11 +485,11 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\begin{verbatim}
\documentclass{article}
\usepackage{pst-3dplot}
-\usepackage{fp}
\usepackage{animate}
%draws a torus sector
-\newcommand{\torus}[1]{% #1: angle of the 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){%
@@ -503,8 +502,7 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
u sin 2 mul 4 t sin 2 mul add mul
t cos 4 mul
}%
- \FPupn\strokewidth{360 #1 sub 360 div 3 mul}%
- \parametricplotThreeD[yPlotpoints=1,linewidth=\strokewidth pt](0,360)(#1,#1){%
+ \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
@@ -515,9 +513,11 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\begin{document}
\begin{center}
-\begin{animateinline}[poster=last,controls,palindrome]{10}%
- \multiframe{29}{iAngle=80+10}{% 80, 90, ..., 360 degrees
- \torus{\iAngle}%
+\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}
@@ -528,7 +528,7 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\begin{figure}
\centering
-\newcommand{\torus}[1]{% #1: angle of the torus sector
+\newcommand{\torus}[2]{%
\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){%
@@ -541,8 +541,7 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
u sin 2 mul 4 t sin 2 mul add mul
t cos 4 mul
}%
- \FPupn\strokewidth{360 #1 sub 360 div 3 mul}%
- \parametricplotThreeD[yPlotpoints=1,linewidth=\strokewidth pt](0,360)(#1,#1){%
+ \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
@@ -550,9 +549,9 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\end{pspicture}%
}
-\begin{animateinline}[poster=last,controls,palindrome]{10}%
- \multiframe{29}{iAngle=80+10}{%
- \torus{\iAngle}%
+\begin{animateinline}[poster=last,controls,palindrome]{12}%
+ \multiframe{29}{iAngle=80+10, dLineWidth=2.9pt+-0.1pt}{%
+ \torus{\iAngle}{\dLineWidth}%
}%
\end{animateinline}%
\caption{}\label{fig:torus}
@@ -568,7 +567,7 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\item Animations do not work if the PDF has been produced with Ghostscript versions older than 8.31. This applies to all versions of ESP Ghostscript that comes with many Linux distributions.
- \item If the \LaTeX{} $\rightarrow$ \verb+dvips+ $\rightarrow$ \verb+ps2pdf+/Distiller route is being taken make sure that the original (unscaled) graphics size does not exceed the page size of the final document. During PS to PDF conversion every graphic of the animation is temporarily moved to the lower left page corner. Those parts of the graphics that do not fit onto the document page will be clipped in the resulting PDF. Graphics files for building an animation may be resized to fit into a given bounding box by means of the `{\tt epsffit}' command line tool:
+ \item If the \LaTeX{} $\rightarrow$ \verb+dvips+ $\rightarrow$ \verb+ps2pdf+/Distiller route is being taken make sure that the original (unscaled) graphics size does not exceed the page size of the final document. During PS to PDF conversion every graphic of the animation is temporarily moved to the lower left page corner. Those parts of the graphics that do not fit onto the document page will be clipped in the resulting PDF. Fortunately, graphics files for building animations may be resized easily to fit into a given bounding box by means of the `{\tt epsffit}' command line tool:
\quad{\tt epsffit -c <llx> <lly> <urx> <ury> infile.eps outfile.eps}
@@ -576,7 +575,7 @@ Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}.
\quad{\tt gs -dNOPAUSE -q -dBATCH -sDEVICE=bbox document.ps}
-Note that the name of the Ghostscript executable may vary between operating systems.
+Note that the name of the Ghostscript executable may vary between operating systems (e.\,g. `{\tt gswin32c.exe}' on Win/DOS).
% \item The command {\tt\string\multido} and its relatives from package `multido' as well as {\tt\string\foreach} from the `pgf/TikZ' package do not work \emph{if their loop body} contains {\tt\string\newframe}. Instead, use {\tt\string\whiledo} from package `if\/then' if you wish to construct loops around parameterized {\tt pspicture}\emph{s} or {\tt tikzpicture}\emph{s}. (There is no need to load `if\/then' explicitly; it has already been loaded by `animate'.) A counter must be declared to keep track of the number of iterations. Further variables that take fixed point decimals to be used within the loop body can be defined and incremented by means of the commands \verb+\FPset+ and \verb+\FPeval+ from package `fp'. Note that {\tt\string\multido} and {\tt\string\foreach} \emph{can} safely be used \emph{within} the code of the frames. For example:
%\small
@@ -627,7 +626,7 @@ Note that the name of the Ghostscript executable may vary between operating syst
MiK\TeX:
\begin{enumerate}
- \item Open a command line window.
+ \item Open a DOS command prompt window (execute `cmd.exe' via `Start' $\rightarrow$ `Run').
\item\label{item:firststep} At the DOS prompt, enter\\
{\tt initexmf -{}-edit-config-file=latex}
\item Type\\