summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/embed.asy
diff options
context:
space:
mode:
authorMojca Miklavec <mojca.miklavec@gmail.com>2014-05-17 18:38:56 +0000
committerMojca Miklavec <mojca.miklavec@gmail.com>2014-05-17 18:38:56 +0000
commiteee5aedecc1c0c3f484016a2b73f29a6f4cb9cb7 (patch)
treeca2673ba2b18b70ed6c32fda317dd108afd7c172 /Master/texmf-dist/asymptote/embed.asy
parent237141a8094c14ab28177177c991d14c5041c116 (diff)
asymptote 2.31
git-svn-id: svn://tug.org/texlive/trunk@34082 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, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/asymptote/embed.asy b/Master/texmf-dist/asymptote/embed.asy
index ad2b710c36b..588ad79c283 100644
--- a/Master/texmf-dist/asymptote/embed.asy
+++ b/Master/texmf-dist/asymptote/embed.asy
@@ -1,12 +1,12 @@
-if(latex() && !settings.inlineimage) {
+if(latex()) {
usepackage("hyperref");
texpreamble("\hypersetup{"+settings.hyperrefOptions+"}");
usepackage("media9","bigfiles");
- texpreamble("\makeatletter%
-\newif\ifnoplaybutton
-\@ifpackagelater{media9}{2013/11/15}{%
-\noplaybuttontrue}{}%
-\makeatother%");
+ texpreamble("\newif\ifplaybutton");
+ texpreamble("\count255=\the\catcode`\@\makeatletter%
+\@ifpackagelater{media9}{2013/11/15}{}{\playbuttontrue}%
+\catcode`\@=\the\count255
+%");
}
// For documentation of the options see
@@ -19,10 +19,10 @@ 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 "%
-\ifnoplaybutton%
-\includemedia[noplaybutton,"+options+"]{"+text+"}{"+name+"}%
-\else%
+\ifplaybutton%
\includemedia["+options+"]{"+text+"}{"+name+"}%
+\else%
+\includemedia[noplaybutton,"+options+"]{"+text+"}{"+name+"}%
\fi";
}