Skip to content

Instantly share code, notes, and snippets.

@mava
Last active December 19, 2023 22:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mava/dac6ea95dca79aa44c9a8023936ea79d to your computer and use it in GitHub Desktop.
Save mava/dac6ea95dca79aa44c9a8023936ea79d to your computer and use it in GitHub Desktop.
latexmkrc
# Set standard engine to pdflatex
$pdf_mode = 1;
# 0 —> no pdf
# 1 —> pdflatex
# 2 —> ps2pdf
# 3 —> dvipdf
# 4 —> lualatex
# 5 —> xelatex & xdvipdfmx
# Enable system commands via \write18{...}
set_tex_cmds('--shell-escape %O %S');
# Do nothing if latexmk is called without file names
@default_files = ();
# Let -c also remove files with these extensions:
# .brf (backref)
# .xdv (generated by latexmk when using xelatex)
# .gtx (GitTeX https://github.com/mava/GitTeX)
push @generated_exts, 'brf', 'xdv', 'gtx';
# “Only use bibtex if the bib files exist; conditionally delete .bbl files in a cleanup (i.e., delete them only when the bib files all exist).”
$bibtex_use = 1.5;
# Show CPU time used
$show_time = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment