diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-31 23:08:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-31 23:08:27 +0000 |
commit | 43302e4235ec0431ecd3365616212c18892d6187 (patch) | |
tree | 265e5d6b8af761d19b3ad3cfc6de4a36696c8857 /Master/texmf/tex | |
parent | 359f8fc550d95dcb9c5cae523b0f28a117ca4996 (diff) |
asymptote 2.16
git-svn-id: svn://tug.org/texlive/trunk@26747 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/tex')
-rw-r--r-- | Master/texmf/tex/latex/asymptote/asymptote.sty | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Master/texmf/tex/latex/asymptote/asymptote.sty b/Master/texmf/tex/latex/asymptote/asymptote.sty index 6518baba61f..4433f6d607e 100644 --- a/Master/texmf/tex/latex/asymptote/asymptote.sty +++ b/Master/texmf/tex/latex/asymptote/asymptote.sty @@ -17,7 +17,7 @@ %% Licence: GPL2+ %% \ProvidesPackage{asymptote} - [2011/05/15 v1.24 Asymptote style file for LaTeX] + [2011/11/29 v1.26 Asymptote style file for LaTeX] \def\Asymptote{{\tt Asymptote}} \InputIfFileExists{\jobname.pre}{}{} \newbox\ASYbox @@ -58,12 +58,12 @@ \ENDCATCHFILEMARKER \noexpand }% - \long\def\@tempa##1\ENDCATCHFILEMARKER{% + \long\def\@tempa####1\ENDCATCHFILEMARKER{% \endgroup - \def#1{##1}% + \def##1{####1}% }% - #3% - \expandafter\@tempa\@@input #2\relax + ##3% + \expandafter\@tempa\@@input ##2\relax } } \newif\if@asy@attachfile@loaded @@ -252,7 +252,6 @@ \immediate\write\AsyStream{size(\ASYwidth,\ASYheight,\asy@expand@keepAspect);}% \fi \fi - \edef\ASYviewportwidth{\ASYviewportwidth}% locally "freeze" viewportwidth \ifx\ASYviewportwidth\@empty \ifx\ASYviewportheight\@empty % write nothing! @@ -329,25 +328,25 @@ \immediate\write\AsyPreStream{% \noexpand\InputIfFileExists{% \ASYprefix\noexpand\jobname-\the\c@asy.pre}{}{}% - } + }% \asy@write@graphic@header \IfFileExists{#2.asy}{% \CatchFileDef\@tempa{#2.asy}{% \let\do\@makeother \dospecials \endlinechar=10\relax - } - }{ + }% + }{% \IfFileExists{#2}{% \CatchFileDef\@tempa{#2}{% \let\do\@makeother \dospecials \endlinechar=10\relax - } - }{ + }% + }{% \PackageWarning{asymptote}{file #2 not found}% - } - } + }% + }% \immediate\write\AsyStream{\unexpanded\expandafter{\@tempa}}% \asy@finalise@stream \asy@input@graphic @@ -356,7 +355,7 @@ \newcommand{\ASYanimategraphics}[5][]{% \IfFileExists{_#3.pdf}{% \animategraphics[{#1}]{#2}{_#3}{#4}{#5}% - }{} + }{}% } \newcommand\asysetup[1]{\setkeys{ASYkeys}{#1}} \define@key{ASYkeys}{dir}{% @@ -375,10 +374,7 @@ {\ASYkeepAspecttrue} {\ASYkeepAspectfalse}% } -\def\ASYviewportwidth{\ASYdefaultviewportwidth} -\def\ASYdefaultviewportwidth{% - \ifASYattach \@empty \else \the\linewidth \fi -} +\def\ASYviewportwidth{} \define@key{ASYkeys}{viewportwidth}{% \edef\ASYviewportwidth{\the\dimexpr#1\relax}% } |