From 420df59800e35155c6366d196fa6b6c2fd832ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Ho=CC=88chst?= Date: Mon, 11 May 2020 15:38:21 +0200 Subject: [PATCH] removing endlinechar on environment variable retrieval --- Misc/basic.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}