texlive[74662] Master/bin/windows/runscript.tlu: runscript.tlu:
commits+kakuto at tug.org
commits+kakuto at tug.org
Mon Mar 17 03:10:03 CET 2025
Revision: 74662
https://tug.org/svn/texlive?view=revision&revision=74662
Author: kakuto
Date: 2025-03-17 03:10:02 +0100 (Mon, 17 Mar 2025)
Log Message:
-----------
runscript.tlu: Support cllualatex and clxelatex. They did not work by
Engine not specified error. This is because changed argline is not
used by dofile() for a lua script.
Modified Paths:
--------------
trunk/Master/bin/windows/runscript.tlu
Modified: trunk/Master/bin/windows/runscript.tlu
===================================================================
--- trunk/Master/bin/windows/runscript.tlu 2025-03-17 01:01:39 UTC (rev 74661)
+++ trunk/Master/bin/windows/runscript.tlu 2025-03-17 02:10:02 UTC (rev 74662)
@@ -843,11 +843,21 @@
progname = 'texdef'
argline = ' --tex latex ' .. argline
elseif progname == 'cllualatex' then
+-- Originally argline was changed to add '--engine=...'.
+-- However cllualatex and clxelatex did not work, because dofile()
+-- for lua script did not use changed argline.
+-- Here we rewrite arguments directly (2025/03/17).
progname = 'cluttex'
- argline = ' --engine=lualatex ' .. argline
+ for k = 1, #arg do
+ arg[k+1] = arg[k]
+ end
+ arg[1] = '--engine=lualatex'
elseif progname == 'clxelatex' then
progname = 'cluttex'
- argline = ' --engine=xelatex ' .. argline
+ for k = 1, #arg do
+ arg[k+1] = arg[k]
+ end
+ arg[1] = '--engine=xelatex'
end
-- general case
More information about the tex-live-commits
mailing list.