summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/embed.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-21 23:02:35 +0000
committerKarl Berry <karl@freefriends.org>2014-04-21 23:02:35 +0000
commitfab654a7fafba60c3d1e32040ad16d19b5dfd550 (patch)
tree699549d43c84af6b176173d794f17c7cc7164bc6 /Master/texmf-dist/asymptote/embed.asy
parentea58320b10f549a61236be100fc97925aea6b489 (diff)
asymptote 2.25 for TL14
git-svn-id: svn://tug.org/texlive/trunk@33606 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/embed.asy')
-rw-r--r--Master/texmf-dist/asymptote/embed.asy18
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/asymptote/embed.asy b/Master/texmf-dist/asymptote/embed.asy
index 8f982332d86..30f2881da04 100644
--- a/Master/texmf-dist/asymptote/embed.asy
+++ b/Master/texmf-dist/asymptote/embed.asy
@@ -1,11 +1,16 @@
-if(latex()) {
+if(latex() && !settings.inlineimage) {
usepackage("hyperref");
texpreamble("\hypersetup{"+settings.hyperrefOptions+"}");
usepackage("media9","bigfiles");
+ texpreamble("\makeatletter%
+\newif\ifnoplaybutton
+\@ifpackagelater{media9}{2013/11/15}{%
+\noplaybuttontrue}{}%
+\makeatother%");
}
-// See http://www.ctan.org/tex-archive/macros/latex/contrib/media9/doc/media9.pdf
-// for documentation of the options.
+// For documentation of the options see
+// http://www.ctan.org/tex-archive/macros/latex/contrib/media9/doc/media9.pdf
// Embed PRC or SWF content in pdf file
string embedplayer(string name, string text="", string options="",
@@ -13,7 +18,12 @@ string embedplayer(string name, string text="", string options="",
{
if(width != 0) options += ",width="+(string) (width/pt)+"pt";
if(height != 0) options += ",height="+(string) (height/pt)+"pt";
- return "\includemedia["+options+"]{"+text+"}{"+name+"}";
+ return "%
+\ifnoplaybutton%
+\includemedia[noplaybutton,"+options+"]{"+text+"}{"+name+"}%
+\else%
+\includemedia["+options+"]{"+text+"}{"+name+"}%
+\fi";
}
// Embed media in pdf file