diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate/animate.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/animate/animate.sty | 29 |
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% } |