[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: fix index generation bug in build-config.lua (was run after the first tex run not the second!) (7d325ae9)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Nov 16 16:23:51 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : doc-v3beta
Link       : https://github.com/latex3/latex2e/commit/7d325ae9020f66042c2cbbe7ca7711384531961c

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

commit 7d325ae9020f66042c2cbbe7ca7711384531961c
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Nov 16 16:23:51 2021 +0100

    fix index generation bug in build-config.lua (was run after the first tex run not the second!)


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

7d325ae9020f66042c2cbbe7ca7711384531961c
 build-config.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index d3fd14d1..ca1bbf46 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -273,10 +273,11 @@ function typeset(file,dir)
     return errorlevel
   end
   for i = 2,typesetruns - 1 do
+-- we have to run tex first then then index otherwise the index isn't run on the second last run!
     errorlevel =
+      tex(file,dir,"batchmode") +
       makeindex(name,dir,".glo",".gls",".glg",glossarystyle) +
-      makeindex(name,dir,".idx",".ind",".ilg",indexstyle)    +
-      tex(file,dir,"batchmode")
+      makeindex(name,dir,".idx",".ind",".ilg",indexstyle)
     if errorlevel ~= 0 then return errorlevel end
   end
   return tex(file,dir)





More information about the latex3-commits mailing list.