diff options
Diffstat (limited to 'Master/texmf-dist/asymptote/embed.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/embed.asy | 18 |
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"; } |