texlive[71352]

commits+ascherer at tug.org commits+ascherer at tug.org
Sat May 25 19:14:27 CEST 2024


Revision: 71352
          https://tug.org/svn/texlive?view=revision&revision=71352
Author:   ascherer
Date:     2024-05-25 19:14:26 +0200 (Sat, 25 May 2024)
Log Message:
-----------
[CWEB] Kludge for 'tex-changes.pdf'.

For whatever reason, 'tex.web + tex-final.ch' insists to start one page
off, compared to 'pdftex.web [+ pdftex-final.ch]' and 'xetex.web +
xetex-final.ch'. This can be corrected from the 'makeall' script.

This step brings the material for 'knuth-pdf' a step closer to perfection.

All that's left is the peculiar ToC of HiTeX, which appears at the end.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex

Modified: trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex	2024-05-25 11:01:52 UTC (rev 71351)
+++ trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex	2024-05-25 17:14:26 UTC (rev 71352)
@@ -12,6 +12,7 @@
 % for C/CWEB programs.
 %
 \ifx\detokenize\undefined\endinput\fi
+\ifx\twodigits\undefined\endinput\fi
 \def\contentsfile{\jobname.toc} % file that gets table of contents info
 \newif\iftexmf\texmffalse % special toc treatment for TeX, Metafont, etc.
 \newread\testread
@@ -20,6 +21,7 @@
 \else % Second run
   % Fix page numbers in the PDF bootmarks with 'Page Labels'
   \def\tocpages{1} % Most programs have one-page Table-of-Contents
+  \def\tocstart{2} % so we start with (fake) page 2 for the rest
   \def\pagemode{/PageMode /UseOutlines}
   \def\pagelabels{/PageLabels << /Nums [
     \ifnum\contentspagenumber=0 0 << /P(Contents) >> \tocpages << /S/D/St 1 >>
@@ -64,7 +66,7 @@
     \expandafter\let\csname ORGN\expandafter\endcsname
                     \csname N\endcsname
     \expandafter\outer\expandafter\def\csname N\endcsname{%
-      \titletrue \con \pageno=2
+      \titletrue \con \pageno=\tocstart
       \expandafter\let\csname N\expandafter\endcsname
                       \csname ORGN\endcsname
       \csname N\endcsname



More information about the tex-live-commits mailing list.