[latex3-commits] [git/LaTeX3-latex3-latex2e] LaTeX2020: Pass jobname correctly to typesetting (48faf592)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Oct 13 21:38:34 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : LaTeX2020
Link       : https://github.com/latex3/latex2e/commit/48faf592c3b14f7fbc349e9502aaa646150a3c69

>---------------------------------------------------------------

commit 48faf592c3b14f7fbc349e9502aaa646150a3c69
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Oct 13 20:38:34 2019 +0100

    Pass jobname correctly to typesetting
    
    This shows up as expl3 needs to use \jobname in
    the \everyjob hook.
    
    Probably an adjustment to l3build is appropriate.


>---------------------------------------------------------------

48faf592c3b14f7fbc349e9502aaa646150a3c69
 build-config.lua | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 5d15d4e9..87420c4f 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -43,15 +43,12 @@ typesetsuppfiles = typesetsuppfiles or
   {"color.cfg", "graphics.cfg", "ltxdoc.cfg", "ltxguide.cfg"}
 
 -- Ensure the local format file is used
-typesetexe = 'pdftex -interaction=nonstopmode "&pdflatex"'
-typesetopts = ""
-
--- Force finding the format file
 function tex(file,dir)
   local dir = dir or "."
-  return runcmd(typesetexe .. " " .. typesetopts .. " \"" .. typesetcmds
-    .. "\\input " .. file .. "\"",
-    dir,{"TEXINPUTS","TEXFORMATS"})
+  return runcmd(
+    'pdftex -fmt=pdflatex -interaction=nonstopmode -jobname="' ..
+      string.match(file,"^[^.]*") .. '" \\input "' .. file .. "'",
+    dir,{"TEXINPUTS","TEXFORMATS","LUAINPUTS"})
 end
 
 -- Build TDS-style zips





More information about the latex3-commits mailing list