-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
Description
Description
When compiling selected lines, sometimes larger (?) animations using the animate package fail to properly complete; it seems to give up after a certain number of frames.
Steps to reproduce
MWE: this is a .tex file containing most of an animation that produced this issue
\documentclass[a4paper,12pt]{article}
\usepackage[controls,method=widget]{animate}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{pgfplots}
\begin{document}
\lipsum
\begin{center}
\begin{animateinline}{50}
\multiframe{100}{iF=0+1}{
\begin{tikzpicture}[
declare function = {f(\x)=(\x<1)*(\x+1) + (\x>=1)*(\x+3);}
]
\coordinate (O) at (0,0);
\pgfmathsetmacro{\xLeft}{0.01*\iF}
\pgfmathsetmacro{\xRight}{2-0.01*\iF}
\pgfmathsetmacro{\yLeft}{f(\xLeft)}
\pgfmathsetmacro{\yRight}{f(\xRight)}
\coordinate (pLeft) at (\xLeft, \yLeft);
\coordinate (pRight) at (\xRight, \yRight);
\draw[thick, blue] (0,1) -- (1,2);
\draw[thick, blue] (1,4) -- (2,5);
\fill[red] (pLeft) circle (0.05);
\fill[red] (pRight) circle (0.05);
\draw[red, dashed] (\xLeft, 0) -- (\xLeft, 5);
\draw[red, dashed] (\xRight, 0) -- (\xRight, 5);
\draw[red, dashed] (0, \yLeft) -- (2, \yLeft);
\draw[red, dashed] (0, \yRight) -- (2, \yRight);
\draw [thick, fill=white, draw=blue] (1,2) circle (0.08);
\draw [thick, fill, blue] (1,4) circle (0.08);
\end{tikzpicture}
}
\end{animateinline}
\end{center}
\lipsum
\end{document}Compiling the full document produces the expected output + working animation.
Select just the lines between the \lipsum and compile selected, I use \lL
Expected behavior
I'd expect it to compile the working animation and output it to the temporary PDF file.
This does work for "smaller" animations it seems.
Actual behavior
The animation seems to stop compiling after a subset of frames but then it appears to think it's finished. The PDF then fails to load.
Do you use a latexmkrc file?
No
VimtexInfo
VimTeX project: MWE_compile_selected
base: MWE_compile_selected.tex
main parser: current file verified
document class: article
packages: animate auxhook calc epstopdf-base etexcmds expl3 graphics graphicx ifdraft iftex ifthen infwarerr keyval kvdefinekeys kvsetkeys l3keys2e lipsum ltxcmds ocgbase pdfbase pdftexcmds pgf pgfcomp-version-0-65 pgfcomp-version-1-18 pgfcore pgffor pgfkeys pgfmath pgfplots pgfrcs pgfsys tikz trig xcolor zref-abspage zref-base
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 0
executable: latexmk
job:
jobid: process 4216 dead
output: ...\AppData\Local\Temp\VDH2152.tmp
cmd: set max_print_line=2000 & latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf "MWE_compile_selected.tex"
viewer: General
job:
pid: 26020
cmd: SumatraPDF -reuse-instance -reuse-instance -forward-search "...\MWE_compile_selected.tex" 12 "...\vim/MWE_compile_selected_vimtex_selected.pdf"
qf method: LaTeX logfile