[latex3-commits] [git/LaTeX3-latex3-latex2e] textcomp: Shorten log when typesetting (7e8a07bb)

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


Repository : https://github.com/latex3/latex2e
On branch  : textcomp
Link       : https://github.com/latex3/latex2e/commit/7e8a07bb12444ac2109a2669c0e259a2b3ac81d0

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

commit 7e8a07bb12444ac2109a2669c0e259a2b3ac81d0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 6 19:44:06 2019 +0000

    Shorten log when typesetting


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

7e8a07bb12444ac2109a2669c0e259a2b3ac81d0
 build-config.lua | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 254c6d16..4cae5c31 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -43,10 +43,11 @@ typesetsuppfiles = typesetsuppfiles or
   {"color.cfg", "graphics.cfg", "ltxdoc.cfg", "ltxguide.cfg"}
 
 -- Ensure the local format file is used
-function tex(file,dir)
+function tex(file,dir,mode)
   local dir = dir or "."
+  local mode = mode or "nonstopmode"
   return runcmd(
-    'pdftex -fmt=pdflatex -interaction=nonstopmode -jobname="' ..
+    'pdftex -fmt=pdflatex -interaction=" .. mode .. " -jobname="' ..
       string.match(file,"^[^.]*") .. '" "\\input ' .. file .. '"',
     dir,{"TEXINPUTS","TEXFORMATS","LUAINPUTS"})
 end
@@ -226,14 +227,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)
@@ -245,7 +239,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