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;