I use the inline asymptote
environment \begin{asy}
to draw a lot of the figures in my papers. To those not familiar with asymptote
, the asymptote package creates *.asy files for each of the asy environments in the document, so that if my document is article.tex
running LaTeX will generate article-1.asy
, article-2.asy
, etc. Then you run asymptote
(the program) to compile these into eps files article-1.eps
, article-2.eps
, etc. and the next time you run LaTeX it will include these graphics files where the corresponding asymptote environment was used.
However, this doesn't seem to be a standard package, so when I send the TeX file to arXiv or to a publisher I need to replace each \begin{asy}...\end{asy}
with \includegraphics{article-1}
, etc. Can anybody suggest a good way that I can make this switch back and forth easily by only changing one line? All my attempts have failed due to apparent quirks in how the asymptote
package works.
.asy
files, rather than within the document," very useful incase of a large documents.fig.asy
files usingasy -f pdf *.asy
inside the figures folder(Linux).-f pdf
).