Animate Package 時間軸選項不起作用

Animate Package 時間軸選項不起作用

我編寫了一個非常簡單的範例來開始在簡報中應用 animate 套件的時間軸選項。此範例非常類似於 Alexander Grahn 的手冊“The Animate Package”,2016 年 4 月 15 日版本,第 16 頁:

這是一個範例(在 tex 檔“Working_Example_Article.tex”中):

\documentclass{article}
\usepackage{animate}
\usepackage{graphicx}

\begin{filecontents}{sample.tln} 
::0X0 %first frame repeated until the end 
::1
::2
::3
\end{filecontents}

\begin{document}

\begin{center}
\animategraphics[
label=sample,
scale=0.35,
loop,
timeline=sample.tln
]{4}{Sample_}{1}{4}
\end{center}

\end{document}

在工作目錄中,我有檔案 Sample_1.png、Sample_2.png、Sample_3.png、Sample_4.png (實際上,我有從 1 到 100 的檔案)。當我嘗試使用標準編譯此程式碼時:

~$ pdflatex Working_Example_Article

我無法產生對應的pdf,因為編譯結束於:

(./Working_Example_Article.aux)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
<building timeline a0 from file `sample.tln':
! Argument of \_pbs_reftonum:w has an extra }.
<inserted text> 
                \par 
l.22     ...]{4}{Sample_}{1}{4}
                               ^^M

這件事令人擔憂且奇怪,因為我所做的只是建立上面提到的手冊第一個範例的簡化版本。有什麼幫助嗎?我將非常感激!

相關內容