summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc')
-rw-r--r--Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
index cc3fa5d1d03..77a0078c9d2 100644
--- a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
+++ b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
@@ -7,16 +7,21 @@
# A standard method of using it is with the asymptote LaTeX style file
# (http://www.ctan.org/tex-archive/graphics/asymptote/doc/asymptote.sty)
# The graphics drawing code is in the tex file, and applying pdflatex to
-# the tex file produces a file with the same base name as the tex
-# file, but with the extension 'asy'. The .asy is processed by the
-# program asy (part of the asymptote software) to produce graphics
-# files (typically pdf files) that are used the next time pdflatex is
-# run on the main tex file.
+# the tex file produces one or more files with a base name the same as
+# or related to the main tex file, but with the extension 'asy'. The
+# .asy is processed by the program asy (part of the asymptote
+# software) to produce graphics files (which may be eps, tex, or pdf
+# files) that are used the next time pdflatex is run on the main tex
+# file.
#
# Latexmk can be arranged to run asymptote (i.e., the program asy)
# when needed, by defining the following custom dependency. (The code
# is to be put in one of latexmk's rc files, e.g., ~/.latexmkrc.)
+#
-
-add_cus_dep( "asy", "tex", 0, "asy2tex" );
-sub asy2tex { return system("asy $_[0].asy"); }
+# The following lines are taken from the documentation for V. 2.03 of
+# asymptote:
+sub asy {return system("asy '$_[0]'");}
+add_cus_dep("asy","eps",0,"asy");
+add_cus_dep("asy","pdf",0,"asy");
+add_cus_dep("asy","tex",0,"asy");