From 0a7639beed2e976058b1b36cbed137c913f71751 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 16 Nov 2021 14:12:01 +0100 Subject: [PATCH] Fix environment handling in latexmkrc --- latexmkrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/latexmkrc b/latexmkrc index 584ddd9e..420b9899 100644 --- a/latexmkrc +++ b/latexmkrc @@ -14,4 +14,5 @@ $pdf_previewer = 'zathura'; $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode'; $latex = 'latex --shell-escape -interaction=nonstopmode'; -$ENV{'TEXMFHOME'}='./texmf-local:' . $ENV{'TEXMFHOME'}; +$old_texmfhome = exists $ENV{'TEXMFHOME'} ? (':' . $ENV{'TEXMFHOME'}) : ''; +$ENV{'TEXMFHOME'}='./texmf-local:' . $old_texmfhome;