[latex3-commits] [l3svn] r6667 - Add an extra TeX run to remove 16759 pdfTeX warnings
noreply at latex-project.org
noreply at latex-project.org
Mon Aug 15 23:08:33 CEST 2016
Author: bruno
Date: 2016-08-15 23:08:33 +0200 (Mon, 15 Aug 2016)
New Revision: 6667
Modified:
trunk/l3kernel/build.lua
Log:
Add an extra TeX run to remove 16759 pdfTeX warnings
There are some \cs and \tn in section titles. These end up, on
the second TeX run, in the table of contents. These commands
add hypdoc targets (which are numbered globally), so target
numbers on the second pass differ from the first. Since for
some reason some target numbers are skipped, many hyperlinks
from earlier passes point to now non-existent targets.
Running TeX one extra time seems enough, but any approach
other than copying "typeset" from l3build.lua is welcome.
Modified: trunk/l3kernel/build.lua
===================================================================
--- trunk/l3kernel/build.lua 2016-08-15 19:05:04 UTC (rev 6666)
+++ trunk/l3kernel/build.lua 2016-08-15 21:08:33 UTC (rev 6667)
@@ -125,6 +125,35 @@
os.exit(errorlevel)
end
+-- We need more runs than the default for source3.
+
+function typeset(file)
+ local errorlevel = tex(file)
+ if errorlevel ~= 0 then
+ return errorlevel
+ else
+ local name = stripext(file)
+ errorlevel = biber(name) + bibtex(name)
+ if errorlevel == 0 then
+ local function cycle(name)
+ return(
+ makeindex(name, ".glo", ".gls", ".glg", glossarystyle) +
+ makeindex(name, ".idx", ".ind", ".ilg", indexstyle) +
+ tex(file)
+ )
+ end
+ errorlevel = cycle(name)
+ if errorlevel == 0 then
+ errorlevel = cycle(name)
+ if errorlevel == 0 then
+ errorlevel = tex(file)
+ end
+ end
+ end
+ return errorlevel
+ end
+end
+
-- Load the common build code: this is the one place that a path needs to be
-- hard-coded
-- As the build system is 'self-contained' there is no module set up here: just
More information about the latex3-commits
mailing list