Latexmk, version 4.76, 20 Nov 2021 --------------------------------- Latexmk completely automates the process of generating a LaTeX document. Essentially, it is a highly specialized cousin of the general make utility. Given the source files for a document, latexmk issues the appropriate sequence of commands to generate a .dvi, .ps, .pdf or hardcopy version of the document, including repeated running of the programs until cross references etc are resolved. Latexmk can also be set to run continuously with a previewer; the latex program, etc, are rerun whenever one of the source files is modified. Latexmk automatically determines file dependencies from the LaTeX .log file. It features: a fully reliable algorithm for deciding how many times to run latex and related programs, automatic detection of dependent files, the ability to generate pdf files using pdflatex or via dvi or postscript files, and the continuous-preview mode. For bibliographies, the current version now supports biber as well as the traditional bibtex. Which of bibtex or biber to use is determined automatically. Please read the man page (or the corresponding text or postscript file) for details of what latexmk does and what all the features are. A copy of the fast help that can be seen by running "latexmk -h" is at the end of this file. Latexmk is a perl script. It is licensed under the GNU General Public License v. 2. It was modified by Evan McLean from the original script called "go" written by David J. Musliner. Now it is supported by John Collins Physics Department Penn State University 104 Davey Lab, Box 208 University Park PA 16802 U.S.A. http://www.personal.psu.edu/jcc8/ username jcc8 at node psu.edu The start of the script file has copyright notices and disclaimers. It also has a modification history for those who are interested. NOTES:- 1) See the INSTALL file for installation instructions 2) The main portability/non-portability issues: The various commands to process LaTeX files may often need to be changed for particular installations. See the INSTALL file and the documentation for information on customization. 3) Availability: a. In the TeXLive and MiKTeX distributions. b. On the CTAN tex archive --- see http://www.ctan.org/pkg/latexmk c. From the author's site at http://www.personal.psu.edu/jcc8/latexmk/ This site also includes previous versions, and sometimes newer versions under development. John Collins ---------------------------- "latexmk -h" ---------------------------- Latexmk 4.76: Automatic LaTeX document generation routine Usage: latexmk [latexmk_options] [filename ...] Latexmk_options: -aux-directory=dir or -auxdir=dir - set name of directory for auxiliary files (aux, log) - Currently this only works with MiKTeX -bibtex - use bibtex when needed (default) -bibtex- - never use bibtex -bibtex-cond - use bibtex when needed, but only if the bib file exists -bibtex-cond1 - use bibtex when needed, but only if the bib file exists; on cleanup delete bbl file only if bib file exists -bibfudge or -bibtexfudge - change directory to output directory when running bibtex -bibfudge- or -bibtexfudge- - don't change directory when running bibtex -bm - Print message across the page when converting to postscript -bi - Set contrast or intensity of banner -bs - Set scale for banner -commands - list commands used by latexmk for processing files -c - clean up (remove) all nonessential files, except dvi, ps and pdf files. This and the other clean-ups are instead of a regular make. -C - clean up (remove) all nonessential files including aux, dep, dvi, postscript and pdf files and file of database of file information -CA - clean up (remove) all nonessential files. Equivalent to -C option. -CF - Remove file of database of file information before doing other actions -cd - Change to directory of source file when processing it -cd- - Do NOT change to directory of source file when processing it -dependents or -deps - Show list of dependent files after processing -dependents- or -deps- - Do not show list of dependent files -deps-out=file - Set name of output file for dependency list, and turn on showing of dependency list -dF - Filter to apply to dvi file -dir-report - Before processing a tex file, report aux and out dir settings -dir-report- - Before processing a tex file, do not report aux and out dir settings -dvi - generate dvi -dvi- - turn off required dvi -e - Execute specified Perl code (as part of latexmk start-up code) -emulate-aux-dir - emulate -aux-directory option for *latex -emulate-aux-dir- - use -aux-directory option with *latex -f - force continued processing past errors -f- - turn off forced continuing processing past errors -gg - Super go mode: clean out generated files (-CA), and then process files regardless of file timestamps -g - process at least one run of all rules -g- - Turn off -g and -gg -h - print help -help - print help -indexfudge or -makeindexfudge - change directory to output directory when running makeindex -indexfudge- or -makeindexfudge- - don't change directory when running makeindex -jobname=STRING - set basename of output file(s) to STRING. (Like --jobname=STRING on command line for many current implementations of latex/pdflatex.) -l - force landscape mode -l- - turn off -l -latex= - set program used for latex. (replace '' by the program name) -latexoption=