summaryrefslogtreecommitdiff
path: root/Master/texmf/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/tex')
-rw-r--r--Master/texmf/tex/latex/asymptote/asymptote.sty23
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf/tex/latex/asymptote/asymptote.sty b/Master/texmf/tex/latex/asymptote/asymptote.sty
index e1f059bf46d..44aa0371e61 100644
--- a/Master/texmf/tex/latex/asymptote/asymptote.sty
+++ b/Master/texmf/tex/latex/asymptote/asymptote.sty
@@ -3,18 +3,21 @@
%%% Modified by John Bowman
%%% Adapted from comment.sty (Under GPL v2)
-\ProvidesPackage{asymptote}[2009/06/18 v1.08 Asymptote style file for LaTeX]
+\ProvidesPackage{asymptote}[2009/08/15 v1.10 Asymptote style file for LaTeX]
\RequirePackage{keyval}
\RequirePackage{ifthen}
\newif\ifASYinline
\DeclareOption{inline}{\ASYinlinetrue}
\ProcessOptions*
+\def\unquoteJobname#1"#2"#3\relax{\def\rawJobname{#1}%
+ \ifx\rawJobname\empty\def\rawJobname{#2}\fi}
+\expandafter\unquoteJobname\jobname""\relax
% Work around jobname bug in MiKTeX 2.5 and 2.6:
% Turn stars in file names (resulting from spaces, etc.) into minus signs
\def\fixstar#1*#2\relax{\def\argtwo{#2}\ifx\argtwo\empty\gdef\Jobname{#1}\else
\fixstar#1-#2\relax\fi}
-\expandafter\fixstar\jobname*\relax
+\expandafter\fixstar\rawJobname*\relax
\RequirePackage{color,graphicx}
@@ -119,13 +122,13 @@
\immediate\write\AsyStream{size(\ASYwidth,\ASYheight);}%
\fi
\fi
- \ASYtexfalse
+ \ASYtexfalse%
\ifASYattach
- \def\ASYdefaultviewportwidth{0}
+ \def\ASYdefaultviewportwidth{0}%
\else
- \def\ASYdefaultviewportwidth{\the\linewidth}
+ \def\ASYdefaultviewportwidth{\the\linewidth}%
\ifASYinline
- \ASYtextrue
+ \ASYtextrue%
\fi
\fi
\ifx\ASYviewportwidth\empty
@@ -141,10 +144,10 @@
\AsyStream{viewportsize=(\ASYviewportwidth,\ASYviewportheight);}%
\fi
\fi
- \gdef\ASYwidth{}
- \gdef\ASYheight{}
- \gdef\ASYviewportwidth{\ASYdefaultviewportwidth}
- \gdef\ASYviewportheight{}
+ \gdef\ASYwidth{}%
+ \gdef\ASYheight{}%
+ \gdef\ASYviewportwidth{\ASYdefaultviewportwidth}%
+ \gdef\ASYviewportheight{}%
\immediate\write\AsyStream{\@charrb);}%
\immediate\write\AsyStream{// End of Asymptote Figure \the\c@asy}%
\ifASYtex