diff options
Diffstat (limited to 'Build/source/utils/asymptote/doc/asymptote.sty')
-rw-r--r-- | Build/source/utils/asymptote/doc/asymptote.sty | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Build/source/utils/asymptote/doc/asymptote.sty b/Build/source/utils/asymptote/doc/asymptote.sty index 6518baba61f..4433f6d607e 100644 --- a/Build/source/utils/asymptote/doc/asymptote.sty +++ b/Build/source/utils/asymptote/doc/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}% } |