summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/media9
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-04 00:24:31 +0000
committerKarl Berry <karl@freefriends.org>2017-02-04 00:24:31 +0000
commit5dcfe3ea298d342ddebfae69786ac3cb6e5aaee2 (patch)
tree5babc3c3f1d2fede57ba7ed6ed7b0f3a27a7aa25 /Master/texmf-dist/tex/latex/media9
parente58e53d80e768eed3f7878ed935ada2681050292 (diff)
media9 (3feb17)
git-svn-id: svn://tug.org/texlive/trunk@43133 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/media9')
-rw-r--r--Master/texmf-dist/tex/latex/media9/media9.sty46
1 files changed, 30 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty
index e190a94c3e8..4329a0529d8 100644
--- a/Master/texmf-dist/tex/latex/media9/media9.sty
+++ b/Master/texmf-dist/tex/latex/media9/media9.sty
@@ -41,8 +41,8 @@
\RequirePackage{atbegshi}
\RequirePackage{atenddvi}
-\def\g@mix@date@tl{2017/01/30}
-\def\g@mix@version@tl{0.74}
+\def\g@mix@date@tl{2017/02/03}
+\def\g@mix@version@tl{0.75}
\def\g@mix@liiikerneldate{2015/09/27}
\def\g@mix@liiipkgdate{2015/09/27}
@@ -886,11 +886,23 @@
}
\ExplSyntaxOn
+%environment for setting LTR typesetting direction with e-TeX based engines
+\cs_new:Nn\mix_beginLTR:{
+ \cs_if_exist:NT\TeXXeTstate{
+ \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+ }
+}
+\cs_new:Nn\mix_endLTR:{
+ \cs_if_exist:NT\TeXXeTstate{
+ \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+ }
+}
+
\ior_new:N\l_mix_vfile_stream %file stream for 3D views files
\NewDocumentCommand\includemedia{O{}mm}{%#1 options, #2 text/image #3 media file
\mix_uriend:
\group_begin:
- \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+ \mix_beginLTR:
\leavevmode
%empty stream as appearance dummy
\cs_if_exist:NF\g_mix_appearance_tl{
@@ -1197,22 +1209,24 @@
}{%insert play button overlay
\mix_insert_btnocg: %create OCG
\cs_gset_eq:Nc\mix_pbtn:NN{g@mix@pbtn@\g_mix_usrpbtn_tl @tl}
- %\hbox_set:Nn\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
- \sbox\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
- \box_move_down:nn{\g_mix_dp_tl}{
- \hbox_to_wd:nn{\g_mix_wd_tl}{
- \vbox_to_ht:nn{\g_mix_tt_tl}{
- \vss
- \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
- \box_use:N\l_mix_pbtn_box
- \ocgbase_oc_emc:
+ \group_begin:
+ \cs_if_exist:NT\textdir{\textdir TLT}
+ \sbox\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
+ \box_move_down:nn{\g_mix_dp_tl}{
+ \hbox_to_wd:nn{\g_mix_wd_tl}{
+ \vbox_to_ht:nn{\g_mix_tt_tl}{
+ \vss
+ \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
+ \box_use:N\l_mix_pbtn_box
+ \ocgbase_oc_emc:
+ }
}
}
- }
+ \group_end:
}
\int_gincr:N\g_mix_rmcnt_int
}
- \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+ \mix_endLTR:
\group_end:
}
\tl_set_eq:NN\l_mix_includemedia_tl\includemedia
@@ -2360,7 +2374,7 @@
\NewDocumentCommand\mediabutton{O{}m}{%#1 options, #2 normal button text
\mix_uriend:
\group_begin:
- \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+ \mix_beginLTR:
\leavevmode
%reset various variables
\tl_gclear:N\g_mix_overbtn_tl
@@ -2422,7 +2436,7 @@
}
\int_gincr:N\g_mix_mbtncnt_int
}
- \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+ \mix_endLTR:
\group_end:
}
\tl_set_eq:NN\l_mix_mediabutton_tl\mediabutton