latexmk --version (return code: 0)
Latexmk, John Collins, 1 January 2015. Version 4.41
latexmk --help (return code: 0)
Latexmk 4.41: 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 files exist
-bm <message> - Print message across the page when converting to postscript
-bi <intensity> - Set contrast or intensity of banner
-bs <scale> - 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> - Filter to apply to dvi file
-dvi - generate dvi
-dvi- - turn off required dvi
-e <code> - Execute specified Perl code (as part of latexmk start-up
code)
-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 regardless of file timestamps
-g- - Turn off -g
-h - print help
-help - print help
-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=<program> - set program used for latex.
(replace '<program>' by the program name)
-latexoption=<option> - add the given option to the (pdf)latex command
-logfilewarninglist or -logfilewarnings
give list of warnings after run of (pdf)latex
-logfilewarninglist- or -logfilewarnings-
do not give list of warnings after run of (pdf)latex
-M - Show list of dependent files after processing
-MF file - Specifies name of file to receives list dependent files
-MP - List of dependent files includes phony target for each source file.
-new-viewer - in -pvc mode, always start a new viewer
-new-viewer- - in -pvc mode, start a new viewer only if needed
-nobibtex - never use bibtex
-nodependents - Do not show list of dependent files after processing
-norc - omit automatic reading of system, user and project rc files
-output-directory=dir or -outdir=dir
- set name of directory for output files
-pdf - generate pdf by pdflatex
-pdfdvi - generate pdf by dvipdf
-pdflatex=<program> - set program used for pdflatex.
(replace '<program>' by the program name)
-pdfps - generate pdf by ps2pdf
-pdf- - turn off pdf
-ps - generate postscript
-ps- - turn off postscript
-pF <filter> - Filter to apply to postscript file
-p - print document after generating postscript.
(Can also .dvi or .pdf files -- see documentation)
-print=dvi - when file is to be printed, print the dvi file
-print=ps - when file is to be printed, print the ps file (default)
-print=pdf - when file is to be printed, print the pdf file
-pv - preview document. (Side effect turn off continuous preview)
-pv- - turn off preview mode
-pvc - preview document and continuously update. (This also turns
on force mode, so errors do not cause latexmk to stop.)
(Side effect: turn off ordinary preview mode.)
-pvc- - turn off -pvc
-quiet - silence progress messages from called programs
-r <file> - Read custom RC file
(N.B. This file could override options specified earlier
on the command line.)
-recorder - Use -recorder option for (pdf)latex
(to give list of input and output files)
-recorder- - Do not use -recorder option for (pdf)latex
-rules - Show list of rules after processing
-rules- - Do not show list of rules after processing
-showextraoptions - Show other allowed options that are simply passed
as is to latex and pdflatex
-silent - silence progress messages from called programs
-time - show CPU time used
-time- - don't show CPU time used
-use-make - use the make program to try to make missing files
-use-make- - don't use the make program to try to make missing files
-v - display program version
-verbose - display usual progress messages from called programs
-version - display program version
-view=default - viewer is default (dvi, ps, pdf)
-view=dvi - viewer is for dvi
-view=none - no viewer is used
-view=ps - viewer is for ps
-view=pdf - viewer is for pdf
-lualatex - use lualatex for processing files to pdf
and turn pdf mode on, dvi/ps modes off
-xelatex - use xelatex for processing files to pdf
and turn pdf mode on, dvi/ps modes off
filename = the root filename of LaTeX document
-p, -pv and -pvc are mutually exclusive
-h, -c and -C override all other options.
-pv and -pvc require one and only one filename specified
All options can be introduced by '-' or '--'. (E.g., --help or -help.)
In addition, latexmk recognizes many other options that are passed to
latex and/or pdflatex without interpretation by latexmk. Run latexmk
with the option -showextraoptions to see a list of these
Report bugs etc to John Collins <jcc8 at psu.edu>.