summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-04 00:24:04 +0000
committerKarl Berry <karl@freefriends.org>2017-02-04 00:24:04 +0000
commit1695ee39260dc57440f56f72d4f0f78fe821c053 (patch)
tree81c95262522fc6ebcc2cbc347be3e3a1a9f6fdf2 /Master/texmf-dist/tex/latex/animate
parent8c202a835ea0970d5ba48744eebf991db870994c (diff)
animate (3feb17)
git-svn-id: svn://tug.org/texlive/trunk@43131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty29
1 files changed, 24 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index 08090f11137..730e5f81410 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}
-\def\@anim@version{2017/01/30}
+\def\@anim@version{2017/02/03}
\ProvidesPackage{animate}
[\@anim@version\space PDF animations from files and inline graphics]
@@ -1310,6 +1310,24 @@
\fi
\fi
+%environment for setting LTR typesetting direction
+\def\@anim@beginLTR{%
+ \ifdefined\textdir% LuaTeX
+ \begingroup%
+ \edef\@anim@curTxtDir{\the\textdir}%
+ \textdir TLT\relax%
+ \else% e-TeX based engines
+ \ifnum\TeXXeTstate>\z@\beginL\fi%
+ \fi%
+}
+\def\@anim@endLTR{%
+ \ifdefined\textdir%
+ \endgroup%
+ \else%
+ \ifnum\TeXXeTstate>\z@\endL\fi%
+ \fi%
+}
+
%user command for embedding animation sequence
% #1: options
% #2: frame rate (fps)
@@ -1338,7 +1356,7 @@
\fi%
\@anim@reset% to default settings
\begingroup% make use of graphic[xs] search path
- \ifnum\TeXXeTstate>\z@\beginL\fi%
+ \@anim@beginLTR%
\ifcsname Ginput@path\endcsname%
\let\input@path\Ginput@path%
\fi%
@@ -1442,7 +1460,7 @@
\@anim@getkeyval{btncol:\@anim@bgcolour:\@anim@fgcolour\@anim@lscape}}%
\@anim@endsanitize%
\fi%
- \ifnum\TeXXeTstate>\z@\endL\fi%
+ \@anim@endLTR%
\endgroup%
\global\advance\@anim@num by \@ne%
}%
@@ -1733,7 +1751,7 @@
\leavevmode%
\@anim@reset% to default settings
\begingroup%
- \ifnum\TeXXeTstate>\z@\beginL\fi%
+ \@anim@beginLTR%
% make use of graphic[xs] search path
\ifcsname Ginput@path\endcsname%
\let\input@path\Ginput@path%
@@ -1789,7 +1807,7 @@
\@anim@keytoaux{a\the\@anim@num.poster}{\@anim@maxframe}%
\fi%
\fi%
- \ifnum\TeXXeTstate>\z@\endL\fi%
+ \@anim@endLTR%
\endgroup%
\global\advance\@anim@num by \@ne%
}
@@ -1875,6 +1893,7 @@
\def\@anim@beginframe{%
\begingroup%
\lrbox{\@anim@box}% store graphics in a box
+ \ifdefined\@anim@curTxtDir\textdir\@anim@curTxtDir\fi%
\@anim@begin%
}