From 01abdabf7105c232b227738fdbc48c93b20fc382 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 6 Jul 2018 17:57:04 +0100 Subject: [PATCH] Add latexmk config --- .latexmkrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .latexmkrc diff --git a/.latexmkrc b/.latexmkrc new file mode 100644 index 0000000..5370816 --- /dev/null +++ b/.latexmkrc @@ -0,0 +1,37 @@ +# Run latexmk silently, not output to text +$silent = 0; +$quiet = 0; +# Create file containing a list of the files that these programs have read and written +# For better source file detection +$recorder = 1; + +# Generate a pdf version of the document using pdflatex +$pdf_mode = 1; +$pdflatex = "pdflatex -synctex=1 -interaction=nonstopmode --shell-escape"; + +# Use bibtex if an appropriate *.bib file exists +$bibtex_use = 1; + +# If nonzero, continue processing past minor latex errors including unrecognized cross references +$force_mode = 0; + +# Define all output directories to be "tmp" +# All build files will now be placed in this directory +#$aux_dir = "tmp"; +#$tmpdir = "tmp"; +#$out_dir = 'tmp'; + +add_cus_dep('glo', 'gls', 0, 'makeglossaries'); +add_cus_dep('acn', 'acr', 0, 'makeglossaries'); + +sub makeglossaries { + system "makeglossaries $_[0]"; + if ( -z "$_[0].glo" ) { + open GLS, ">$_[0].gls"; + close GLS; + } + return 0; +} + +$clean_ext = "bbl nav out snm acn aux bbl blg fls ist log lof lot maf out toc"; +