Skip to content

Commit b575370

Browse files
committed
Use latexmk only if perl is available as well
1. Additional check for perl being present as it is required to run latexmk. 2. Extend comment about TeXLive's `texpath` value to explicitly point to its bundled perl interpreter. May help those, who don't have Perl installed globally on Windows.
1 parent b208495 commit b575370

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LaTeXTools.sublime-settings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@
261261

262262
"windows": {
263263
// Path used when invoking tex & friends; "" is fine for MiKTeX
264-
// For TeXlive 2011 (or other years) use
265-
// "texpath" : "C:\\texlive\\2011\\bin\\win32;$PATH",
264+
// For TeXlive 2025 (or other years) use
265+
// "texpath" : "C:\\TexLive\\2025\\bin\\windows;C:\\TexLive\\2025\\tlpkg\\tlperl\\bin;$PATH",
266266
"texpath" : "",
267267
// TeX distro: "miktex" or "texlive"
268268
"distro" : "miktex",

plugins/builder/traditional_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def commands(self) -> CommandGenerator:
5252
if not cmd:
5353
# prefer latexmk, if available, fallback to texify
5454
texpath = None if self.env is None else self.env.get("PATH")
55-
if shutil.which("latexmk", path=texpath):
55+
if shutil.which("latexmk", path=texpath) and shutil.which("perl", path=texpath):
5656
cmd = DEFAULT_COMMAND_LATEXMK.copy()
5757
else:
5858
cmd = DEFAULT_COMMAND_TEXIFY.copy()

0 commit comments

Comments
 (0)