summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate/animate.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-09-02 20:31:07 +0000
committerKarl Berry <karl@freefriends.org>2021-09-02 20:31:07 +0000
commitf7a3c8ea9c58342282e21d786b378016259d5e3f (patch)
tree3cabac2db2635a9ce9eb74d643de43b3d3e99ceb /Master/texmf-dist/tex/latex/animate/animate.sty
parent20fcd89f67aed12a3d929669324781ef924bc5b3 (diff)
animate (2sep21)
git-svn-id: svn://tug.org/texlive/trunk@60401 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate/animate.sty')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty16
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index ed9681e4906..729af653adb 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -13,7 +13,7 @@
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
-\def\@anim@version{2021/08/19}
+\def\@anim@version{2021/09/02}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -199,7 +199,7 @@
%approach similar to OCGs, that is, putting the frame content in an svg group,
% <g id='...'>...</g>, whose visibility is then manipulated by JavaScript
- \def\@anim@newocg#1#2{\xdef\@anim@curocg{id='#1.#2' class='ocg'}}
+ \def\@anim@newocg#1#2{\xdef\@anim@curocg{id='_#1.#2' class='ocg'}}
\def\ocgbase@add@to@off@list#1{%
\xdef\@anim@curocg{\@anim@curocg\space visibility='hidden'}%
}
@@ -3715,8 +3715,8 @@
var ocg=this.getOCGs(this.pageNum);$%
\fi
for(var i=0;i<ocg.length;i++){$%
- \if@anim@dvisvgm
- var ocgName=ocg[i].getAttribute('id').split('.');$%
+ \if@anim@dvisvgm % slice(1) --> remove leading underscore
+ var ocgName=ocg[i].getAttribute('id').slice(1).split('.');$%
\else
var ocgName=ocg[i].name.split('.');$%
\fi
@@ -3732,10 +3732,10 @@
\fi%
\if@anim@controls@play%
\if@anim@dvisvgm
- a#1_btnPauseLeft=document.getElementById('#1.PauseLeft');$%
- a#1_btnPlayLeft=document.getElementById('#1.PlayLeft');$%
- a#1_btnPauseRight=document.getElementById('#1.PauseRight');$%
- a#1_btnPlayRight=document.getElementById('#1.PlayRight');$%
+ a#1_btnPauseLeft=document.getElementById('_#1.PauseLeft');$%
+ a#1_btnPlayLeft=document.getElementById('_#1.PlayLeft');$%
+ a#1_btnPauseRight=document.getElementById('_#1.PauseRight');$%
+ a#1_btnPlayRight=document.getElementById('_#1.PlayRight');$%
\else
a#1_btnPauseLeft=this.getField('#1.PauseLeft');$%
a#1_btnPlayLeft=this.getField('#1.PlayLeft');$%