看来这个动画不起作用。有人能看出我做错了什么吗?
\documentclass[tikz,border=5mm]{beamer}
\usepackage{amsmath}
\usepackage{pgfplots}
\usepackage{animate}
\usetikzlibrary{arrows,tikzmark,patterns}
\pgfplotsset{compat=1.18}% <- if you have an ol
\usepgfplotslibrary{groupplots,fillbetween}
\DeclareMathOperator{\CDF}{cdf}
\DeclareMathOperator{\PDF}{pdf}
\begin{document}
\begin{frame}
\begin{animateinline}[autoplay,loop]{1} %controls
\multiframe{50}{i=-2.5+0.1}{
\begin{tikzpicture}
\draw (0, 0) -- (1, 1);
\end{tikzpicture}
}
\end{animateinline}
\end{frame}
\end{document}
它给了我这个输出
! Package calc Error: `.' invalid at this point.
! Package calc Error: `.' invalid at this point.
! Package animate Error: Contents of first frame must not have zero width.
! Package animate Error: Contents of first frame must not have zero height.