diff --git a/Misc/basic.tex b/Misc/basic.tex index 675593cd..2098b9c1 100644 --- a/Misc/basic.tex +++ b/Misc/basic.tex @@ -3,7 +3,7 @@ % Enables retrieval of ENV variables (https://tex.stackexchange.com/questions/62010/can-i-access-system-environment-variables-from-latex-for-instance-home/62032#62032) \usepackage{catchfile} \newcommand{\getenv}[2][]{% - \CatchFileEdef{\temp}{"|kpsewhich --var-value #2"}{}% + \CatchFileEdef{\temp}{"|kpsewhich --var-value #2"}{\endlinechar=-1}% \if\relax\detokenize{#1}\relax\temp\else\let#1\temp\fi} \getenv[\PRINT]{PRINT}