summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/example_rcfiles
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-14 00:37:46 +0000
committerKarl Berry <karl@freefriends.org>2010-04-14 00:37:46 +0000
commit95e250298e952221a6faf73a5ba3b185ba07631f (patch)
tree81ca0261d2376f59cf75454a7f9448f05b8264b6 /Master/texmf-dist/doc/support/latexmk/example_rcfiles
parentce2b3fbaf00f1b5532f758ae812a1f3b592d6df8 (diff)
latexmk update (13apr10)
git-svn-id: svn://tug.org/texlive/trunk@17854 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/latexmk/example_rcfiles')
-rw-r--r--Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc22
1 files changed, 22 insertions, 0 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
new file mode 100644
index 00000000000..cc3fa5d1d03
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/asymptote_latexmkrc
@@ -0,0 +1,22 @@
+# This shows how to use Asymptote (http://asymptote.sourceforge.net/,
+# or http://www.ctan.org/tex-archive/graphics/asymptote/)
+# with latexmk. Asymptote is a vector graphics language with a
+# processing program that generates graphics files that can be used in
+# a LaTex file.
+#
+# 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.
+#
+# 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"); }