From b3b7a6774a7d6dcf1a8838dffa8006800cbafb83 Mon Sep 17 00:00:00 2001 From: FG-TUM Date: Sat, 22 Jul 2023 09:56:30 +0200 Subject: [PATCH] Set TEXINPUTS in a system independent way Use latexmk's 'ensure_path' function to be compatible with any operating system --- latexmkrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/latexmkrc b/latexmkrc index c4e9c5f..e1b5013 100644 --- a/latexmkrc +++ b/latexmkrc @@ -2,7 +2,8 @@ # https://www.ctan.org/tex-archive/support/latexmk/example_rcfiles # compiler options -$pdflatex = 'TEXINPUTS="./inc//:" pdflatex -interaction=batchmode -shell-escape -synctex=1 %O %S'; +ensure_path('TEXINPUTS', './inc//'); # include the local inc directory in the latex search path +$pdflatex = 'pdflatex -interaction=batchmode -shell-escape -synctex=1 %O %S'; $pdf_mode = 1; $bibtex_use = 1;