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