texlive[71353]

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


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

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex

Modified: trunk/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex
===================================================================
--- trunk/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex	2024-05-25 17:14:26 UTC (rev 71352)
+++ trunk/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex	2024-05-25 17:16:27 UTC (rev 71353)
@@ -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.