Consider the following example:
Code: Select all
% Compile using
%
% latex <filename>.tex
% dvips -Ppdf -D1200 <filename>.dvi
% ps2pdf <filename>.ps
%
% and open with Adobe Reader.
\documentclass{article}
\usepackage[figureposition=bottom]{caption}
\usepackage{pst-func}
\usepackage{animate}
% Easier when there are a lot of floating figures.
\makeatletter
\providecommand*{\setfloatlocations}[2]{\@namedef{fps@#1}{#2}}
\makeatother
\setfloatlocations{figure}{htbp}
\newcommand*{\studentT}[1]{
\psset{xunit=0.9cm,yunit=9cm}
\begin{pspicture}(-6,-0.1)(6,0.5)
\psaxes[Dy=0.1]{->}(0,0)(-5,0)(5.5,0.45)[$x$,0][$y$,90]
\pscustom[fillstyle=solid,fillcolor=blue!40,opacity=0.4,linecolor=red,linestyle=none]{%
\psline(0,0)(-5,0)
\psTDist[nue = #1]{-5}{5}
\psline(5,0)(0,0)
}
\psTDist[nue=#1,linecolor=red,linewidth=1pt]{-5}{5}
\rput(3,0.3){$\nu = #1$}
\end{pspicture}
% \caption{Student's $t$-distribution.}
}
\begin{document}
\begin{figure}
\centering
\begin{animateinline}[poster=first,controls,palindrome]{10}
\multiframe{50}{rA=0.02+0.02}{\studentT{\rA}}
\end{animateinline}
\end{figure}
\end{document}
\caption
under the animation? If I do not outcomment the \caption
line in the example, the code will not compile?Thank you in advance!
P.S. I cannot find anything regarding my issue in the documentation for the

