summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/media9/media9.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-05 00:08:32 +0000
committerKarl Berry <karl@freefriends.org>2013-12-05 00:08:32 +0000
commit1f584cd4b06d66903c0ff82dcd1a7f03066a081d (patch)
tree54fabb586c1fb7ec0003185f09e4427d9d2a06d1 /Master/texmf-dist/tex/latex/media9/media9.sty
parent827aa8a6199555795f58fb9d81e0c69c11c09ce6 (diff)
media9 (4dec13)
git-svn-id: svn://tug.org/texlive/trunk@32322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/media9/media9.sty')
-rw-r--r--Master/texmf-dist/tex/latex/media9/media9.sty21
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