diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/media9/media9.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/media9/media9.sty | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty index 23f9cdb07da..1bb6ab1b1b2 100644 --- a/Master/texmf-dist/tex/latex/media9/media9.sty +++ b/Master/texmf-dist/tex/latex/media9/media9.sty @@ -4,7 +4,7 @@ % % multimedia inclusion package % -% Copyright 2012--\today Alexander Grahn +% Copyright 2012--\today, Alexander Grahn % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % @@ -42,8 +42,8 @@ \RequirePackage{atbegshi} \RequirePackage{tikz} -\def\g@mix@date@tl{2013/11/27} -\def\g@mix@version@tl{0.37} +\def\g@mix@date@tl{2013/12/04} +\def\g@mix@version@tl{0.38} \def\g@mix@liiikerneldate{2013/07/28} \def\g@mix@liiipkgdate{2013/07/28} @@ -1047,6 +1047,15 @@ } } +\msg_set:nnn{media9}{zero~size}{ + Media~annotation~\msg_line_context:\ has~zero\\ + size~in~at~least~one~dimension.\\\\ + Provide~a~poster~text~with~non-zero~width~and\\ + height,~or~specify~a~suitable~size~via~`width'\\ + and~`height'~options. +} + + %calculates widget dimensions from natural ones, taking resizing options %into account \int_new:N\g_mix_resizeflag_int% resizing flags according to options given @@ -1136,6 +1145,12 @@ }{ \box_resize:Nnn#1{\l_mix_wd_tl}{\l_mix_tt_tl} } + \bool_if:nT{ + \dim_compare_p:n{\l_mix_wd_tl=\c_zero_dim} || + \dim_compare_p:n{\l_mix_tt_tl=\c_zero_dim} + }{ + \msg_warning:nn{media9}{zero~size} + } } \bool_new:N\g_mix_iiid_bool |