Latexmk
Main version
Latexmk (whose current released version is
4.13a dated 16 January 2010) is a perl
script for running LaTeX the correct number of times to resolve cross
references, etc; it also runs auxiliary programs (bibtex, makeindex if
necessary, and dvips and/or a previewer as requested).
It has a number of other useful capabilities, for
example to start a previewer and then run latex whenever the source
files are updated, so that the previewer gives an up-to-date view of
the document. The script runs on both UNIX and MS-WINDOWS (95, ME,
XP, etc). Here is the documentation in
plain text format,
in pdf format,
and in postscript format.
This script is a corrected and improved version of the
original version of latexmk,
of which I am not the author. My new version includes
important improvements and bug corrections.
You can download it here,
latexmk-413a,
or from
CTAN at
http://ctan.tug.org/tex-archive/support/latexmk/
(As of 18 January 2010 the version on CTAN is still v. 4.13, but it will
be updated shortly, after the new version propagates to
mirror sites.)
New versions being tested. Archive of old versions
A number of updates are not yet in the release version. You can try
out new versions (mostly stable), which can be obtained from the
collection of new and
archived versions of latexmk.
You can also see archives of old versions there.
How to use dvipdfm and dvipdfmx with latexmk
Users trying to use dvipdfm and dvipdfmx with latexmk have run into
trouble because the format of the command-line arguments for these
programs are incompatible with that for dvipdf. This problem is
solved in the new version, which is more flexible in
The solution is an
example of a general technique with latexmk:
To use dvipdfm or dvipdfmx, you configure latexmk's variable $dvipdf
to call a script (or batch file) that converts the command line
arguments and then calls the correct program. For appropriate
scripts, see the extra scripts for use with
latexmk. The scripts are named dvipdfm_call, etc, and there is a
file with instructions.
Up to software
by John Collins.
This page is maintained by
John Collins,
collins@phys.psu.edu
18 January 2010