diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2024-05-25 17:14:26 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2024-05-25 17:14:26 +0000 |
commit | 5b52a0c6fb46b832e344795df68ecdc88d7f6abd (patch) | |
tree | 83a3963c38bcc7b57e0b43e1aeac15f8ea70691f | |
parent | bd1fe26c957051161ad01903df80a7f410c79f94 (diff) |
[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.
git-svn-id: svn://tug.org/texlive/trunk@71352 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex index 1187b9665d3..48bf684332e 100644 --- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex +++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex @@ -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 |