summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/media9/ChangeLog4
-rw-r--r--Master/texmf-dist/doc/latex/media9/media9.pdfbin3606237 -> 3606199 bytes
-rw-r--r--Master/texmf-dist/source/latex/media9/media9.tex2
-rw-r--r--Master/texmf-dist/tex/latex/media9/media9.sty46
4 files changed, 35 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog
index 8942b049057..0ac5face85b 100644
--- a/Master/texmf-dist/doc/latex/media9/ChangeLog
+++ b/Master/texmf-dist/doc/latex/media9/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-03
+ * v0.75 : media9.sty
+ * fix: RTL related (luaTeX)
+
2017-01-30
* v0.74 : media9.sty
* fix: usability in righ-to-left typesetting context
diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf
index 9294252f337..4f5bcfa7513 100644
--- a/Master/texmf-dist/doc/latex/media9/media9.pdf
+++ b/Master/texmf-dist/doc/latex/media9/media9.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/media9/media9.tex b/Master/texmf-dist/source/latex/media9/media9.tex
index ca2e7d0b77a..8258a4b9c2b 100644
--- a/Master/texmf-dist/source/latex/media9/media9.tex
+++ b/Master/texmf-dist/source/latex/media9/media9.tex
@@ -1243,7 +1243,7 @@ The first one is to increase \TeX's main memory. You may follow the steps in the
If increasing \TeX's main memory does not help, use the package option `\verb+bigfiles+' with media9. It defers file embedding from the DVI producing to the PS producing step.
- \item In right-to-left typesetting context (RTL), the \verb+<poster text>+ argument of \verb+\includemedia+ and the text arguments for button faces of the \verb+\mediabutton+ command should be enclosed in pairs of \verb+\beginR+ and \verb+\endR+.
+ \item In right-to-left typesetting context (RTL) using the (pdf)\LaTeX{} or \XeLaTeX{} engines, the \verb+<poster text>+ argument of \verb+\includemedia+ and the text arguments for button faces of the \verb+\mediabutton+ command should be enclosed in pairs of \verb+\beginR+ and \verb+\endR+.
\end{enumerate}
\section{Acknowledgements}
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