[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Shorten log when typesetting (bc497b9d)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Nov 6 20:25:39 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/bc497b9d9fcd078e7d2692ae8063f2ebd0ac2175
>---------------------------------------------------------------
commit bc497b9d9fcd078e7d2692ae8063f2ebd0ac2175
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Nov 6 19:25:39 2019 +0000
Shorten log when typesetting
This approach should work properly on all
branches! To 'shift' across.
>---------------------------------------------------------------
bc497b9d9fcd078e7d2692ae8063f2ebd0ac2175
build-config.lua | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/build-config.lua b/build-config.lua
index a088c8d6..20f212da 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
@@ -225,3 +226,25 @@ function checkinit_hook()
end
function docinit_hook() return fmt({"pdftex"},typesetdir) end
+
+-- Shorten second run
+function typeset(file,dir)
+ dir = dir or "."
+ local errorlevel = tex(file,dir)
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
+ local name = jobname(file)
+ errorlevel = biber(name,dir) + bibtex(name,dir)
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
+ for i = 2,typesetruns - 1 do
+ errorlevel =
+ makeindex(name,dir,".glo",".gls",".glg",glossarystyle) +
+ makeindex(name,dir,".idx",".ind",".ilg",indexstyle) +
+ tex(file,dir,"batchmode")
+ if errorlevel ~= 0 then break end
+ end
+ return errorlevel
+end
\ No newline at end of file
More information about the latex3-commits
mailing list