From d04e3d797616254e9d9d800685ffc3a24eefab98 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 21 Nov 2023 17:54:20 +0100 Subject: [PATCH] nomenclature now gets compiled into pdf --- .latexmkrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.latexmkrc b/.latexmkrc index cd16ee4..b96e875 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -16,10 +16,10 @@ # Move all axuiliary files to a separate directory, so they do not clutter up the project directory $emulate_aux = 1; -$aux_dir = ".tmp"; +$aux_dir = "build"; # Move the compiled files (and synctex) to a separate directory -$out_dir = '.build'; +$out_dir = 'build'; # command to compile and run $pdflatex = 'pdflatex %O -interaction=nonstopmode -shell-escape %S'; @@ -45,6 +45,14 @@ $pdf_mode = 1; # Keep auxiliary files $clean_ext = " "; +# ===================================================================== +# Custom dependency and function for nomencl package +# See: https://www.overleaf.com/learn/how-to/How_does_Overleaf_compile_my_project%3F + +add_cus_dep("nlo", "nls", 0, "nlo2nls"); +sub nlo2nls { + system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg"); +} # ===================================================================== # custom dependency handling for glossaries