Fix environment handling in latexmkrc

This commit is contained in:
Valentin Brandl 2021-11-16 14:12:01 +01:00
parent dbbe186597
commit 0a7639beed

View File

@ -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;