From 3a11df436b324549444c33a6589f3aa71565fb3d Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 28 Jan 2022 23:41:49 -0500 Subject: [PATCH] Use latex as the program name for kpsewhich If `tex` is not installed, then setting the program name to it will fail to find the 'program' in the current directory, and then be unable to find any TeX files. Setting it to `latex` should be okay, since that's what we're running to create the `.dvi` in the first place. --- lib/matplotlib/mpl-data/kpsewhich.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/mpl-data/kpsewhich.lua b/lib/matplotlib/mpl-data/kpsewhich.lua index be07b5858ae8..8e9172a45082 100644 --- a/lib/matplotlib/mpl-data/kpsewhich.lua +++ b/lib/matplotlib/mpl-data/kpsewhich.lua @@ -1,3 +1,3 @@ -- see dviread._LuatexKpsewhich -kpse.set_program_name("tex") +kpse.set_program_name("latex") while true do print(kpse.lookup(io.read():gsub("\r", ""))); io.flush(); end