Latexmk

Main version

Latexmk (whose current version is 3.07a dated 2 June 2004) 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 and the documentation 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-307a, or from CTAN at ftp://ctan.tug.org/tex-archive/support/latexmk/.

New versions being tested

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.

Archive of versions, and new versions being tested

Archive of versions of latexmk.

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. 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 20 January 2007