From 43b41b87fbaceafb291622ea8b2ee04ac8275ba1 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 7 Sep 2026 16:19:35 -0400 Subject: [PATCH] =?UTF-8?q?paper-mcp:=20the=20tex=20engine=20probe=20learn?= =?UTF-8?q?s=20linux=20paths=20=E2=80=94=20/usr/bin/xelatex=20was=20there?= =?UTF-8?q?=20all=20along?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_018RKzjn5crREMTkDaZwrq8b --- slab/bin/paper-mcp.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slab/bin/paper-mcp.mjs b/slab/bin/paper-mcp.mjs index 5326048330..aae431a6f0 100755 --- a/slab/bin/paper-mcp.mjs +++ b/slab/bin/paper-mcp.mjs @@ -304,9 +304,9 @@ async function toolRead({ paper, section, maxChars = 24_000 } = {}) { } async function texEngine() { - const xelatex = [process.env.XELATEX, "/Library/TeX/texbin/xelatex", "/usr/local/bin/xelatex", "/opt/homebrew/bin/xelatex"].filter(Boolean); + const xelatex = [process.env.XELATEX, "/Library/TeX/texbin/xelatex", "/usr/local/bin/xelatex", "/opt/homebrew/bin/xelatex", "/usr/bin/xelatex"].filter(Boolean); for (const path of xelatex) if (await exists(path)) return { kind: "xelatex", path }; - const tectonic = [process.env.TECTONIC, "/opt/homebrew/bin/tectonic", "/usr/local/bin/tectonic"].filter(Boolean); + const tectonic = [process.env.TECTONIC, "/opt/homebrew/bin/tectonic", "/usr/local/bin/tectonic", "/usr/bin/tectonic"].filter(Boolean); for (const path of tectonic) if (await exists(path)) return { kind: "tectonic", path }; throw new Error("no TeX engine found (install XeLaTeX/Tectonic or set XELATEX/TECTONIC)."); } -- 2.51.2