summaryrefslogtreecommitdiff
path: root/Master/texmf/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-08 00:12:58 +0000
committerKarl Berry <karl@freefriends.org>2010-07-08 00:12:58 +0000
commit60380561291d788adc7d4a93e9a24c1fd5b274dc (patch)
tree3badd58e97a3bda7ebd151ee02d68378592c0724 /Master/texmf/tex
parent8e0208016c9aa5f9596e49e00b5b75d4e526f40f (diff)
post-release fixes from bowman
git-svn-id: svn://tug.org/texlive/trunk@19279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/tex')
-rw-r--r--Master/texmf/tex/latex/asymptote/asymptote.sty31
1 files changed, 16 insertions, 15 deletions
diff --git a/Master/texmf/tex/latex/asymptote/asymptote.sty b/Master/texmf/tex/latex/asymptote/asymptote.sty
index 4b0cda55ee1..937af3ef6bc 100644
--- a/Master/texmf/tex/latex/asymptote/asymptote.sty
+++ b/Master/texmf/tex/latex/asymptote/asymptote.sty
@@ -3,7 +3,7 @@
%%% Modified by John Bowman
%%% Adapted from comment.sty (Under GPL v2+)
-\ProvidesPackage{asymptote}[2010/07/05 v1.13 Asymptote style file for LaTeX]
+\ProvidesPackage{asymptote}[2010/07/06 v1.14 Asymptote style file for LaTeX]
\RequirePackage{keyval}
\RequirePackage{ifthen}
\newif\ifASYinline
@@ -25,14 +25,15 @@
\def\csarg#1#2{\expandafter#1\csname#2\endcsname}
\newwrite\AsyStream
\newwrite\AsyAllStream
+\newread\AsyTestStream
\newread\AsyTestTeXStream
-\openin\AsyStream=\jobname_.pre
-\ifeof\AsyStream
+\openin\AsyTestStream=\jobname_.pre
+\ifeof\AsyTestStream
\else
\input \jobname_.pre
\fi
-\closein\AsyStream%
+\closein\AsyTestStream%
\immediate\openout\AsyAllStream=\jobname.asy
@@ -135,15 +136,15 @@
\immediate\closeout\AsyStream
\ifASYtex
- \openin\AsyStream=\AsyFile_.tex
+ \openin\AsyTestStream=\AsyFile_.tex
\else
\ifASYPDF
- \openin\AsyStream=\AsyFile.pdf
+ \openin\AsyTestStream=\AsyFile.pdf
\else
- \openin\AsyStream=\AsyFile.eps
+ \openin\AsyTestStream=\AsyFile.eps
\fi
\fi
- \ifeof\AsyStream
+ \ifeof\AsyTestStream
\ifASYtex
\PackageWarning{asymptote}{file \AsyFile_.tex does not exist}%
\else
@@ -160,18 +161,18 @@
\fi
\closein\AsyTestTeXStream%
\fi
- \closein\AsyStream%
+ \closein\AsyTestStream%
\else
- \closein\AsyStream%
+ \closein\AsyTestStream%
\ifASYtex
\catcode`:=12
\input \AsyFile_.tex%
\else
\ifASYattach
\ifASYPDF
- \openin\AsyStream=\AsyFile+0.pdf
+ \openin\AsyTestStream=\AsyFile+0.pdf
\fi
- \ifeof\AsyStream
+ \ifeof\AsyTestStream
\setbox\ASYbox=\hbox{\includegraphics[hiresbb]{\AsyFile}}%
\else
\setbox\ASYbox=\hbox{\includegraphics[hiresbb]{\AsyFile+0}}%
@@ -180,7 +181,7 @@
\vskip-\ht\ASYbox%
\indent%
\box\ASYbox%
- \closein\AsyStream%
+ \closein\AsyTestStream%
\else
\includegraphics[hiresbb]{\AsyFile}%
\fi
@@ -260,8 +261,8 @@
\AtEndDocument{\immediate\closeout\AsyAllStream}
\newcommand{\ASYanimategraphics}[5][]{%
-\openin\AsyStream=_#3.pdf
-\ifeof\AsyStream%
+\openin\AsyTestStream=_#3.pdf
+\ifeof\AsyTestStream%
\else%
\animategraphics[{#1}]{#2}{_#3}{#4}{#5}%
\fi%