[latex3-commits] [git/LaTeX3-latex3-latex2e] nfssaxes: Shorten log when typesetting (e4db68bc)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Nov 6 20:49:18 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : nfssaxes
Link       : https://github.com/latex3/latex2e/commit/e4db68bc86877fcded463d1d2a853109bbd27164

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

commit e4db68bc86877fcded463d1d2a853109bbd27164
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 6 19:49:18 2019 +0000

    Shorten log when typesetting


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

e4db68bc86877fcded463d1d2a853109bbd27164
 build-config.lua | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index fe98d29f..9519ca30 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -42,15 +42,13 @@ 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)
+function tex(file,dir,mode)
   local dir = dir or "."
-  return runcmd(typesetexe .. " " .. typesetopts .. " \"" .. typesetcmds
-    .. "\\input " .. file .. "\"",
-    dir,{"TEXINPUTS","TEXFORMATS"})
+  local mode = mode or "nonstopmode"
+  return runcmd(
+    'pdftex -fmt=pdflatex -interaction=" .. mode .. " -jobname="' ..
+      string.match(file,"^[^.]*") .. '" "\\input ' .. file .. '"',
+    dir,{"TEXINPUTS","TEXFORMATS","LUAINPUTS"})
 end
 
 -- Build TDS-style zips
@@ -222,14 +220,7 @@ end
 
 function docinit_hook() return fmt({"pdftex"},typesetdir) end
 
--- Somewhat shorten the log
-local function shorttex(file,dir)
-  local dir = dir or "."
-  return runcmd('pdftex -interaction=batchmode "&pdflatex" "' .. typesetcmds
-    .. "\\input " .. file .. "\"",
-    dir,{"TEXINPUTS","TEXFORMATS"})
-end
-
+-- Shorten second run
 function typeset(file,dir)
   dir = dir or "."
   local name = jobname(file)
@@ -241,7 +232,7 @@ function typeset(file,dir)
     errorlevel =
       makeindex(name,dir,".glo",".gls",".glg",glossarystyle) +
       makeindex(name,dir,".idx",".ind",".ilg",indexstyle)    +
-      shorttex(file,dir)
+      tex(file,dir,"batchmode")
     if errorlevel ~= 0 then return errorlevel end
   end
   return tex(file,dir)





More information about the latex3-commits mailing list