From e2cffe6d96130e6c2d41d08c189b9f5ea6b37667 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 21 Jun 2020 12:10:18 +0000 Subject: [C/WEB] Start main body on pageno 3. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't fiddle with '\Ā¢ontentspagenumber' _before_ the table-of-contents, but set '\pageno=3' _after_ the toc has been typeset. This makes the mechanism for Metafont, TeX, pdfTeX, and XeTeX independent of the length of the table-of-contents. git-svn-id: svn://tug.org/texlive/trunk@55617 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/cwebdir/ChangeLog | 5 +++++ Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog index 0ab5f32dd6e..e2471751ded 100644 --- a/Build/source/texk/web2c/cwebdir/ChangeLog +++ b/Build/source/texk/web2c/cwebdir/ChangeLog @@ -1,3 +1,8 @@ +2020-06-21 Andreas Scherer + + * texinputs/pdfwebtocfront.tex: Fix start pageno after dynamic to. + MF and [{pdf|Xe}]TeX start their main body on pageno 3. + 2020-06-20 Andreas Scherer * texinputs/pdfwebtocfront.tex: Generic solution for the headers in diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex index 9ecb33ee0bc..3fc5f64de2f 100644 --- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex +++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex @@ -13,7 +13,6 @@ \ifx\detokenize\undefined\endinput\fi \def\contentsfile{\jobname.toc} % file that gets table of contents info \newif\iftexmf\texmffalse % special toc treatment for TeX, Metafont, etc. -\newif\ifpdfxe\pdfxefalse % superspecial toc treatment for pdfTeX, XeTeX. \newread\testread \openin\testread=\contentsfile\relax \ifeof\testread % First run @@ -43,15 +42,14 @@ \edef\y{\detokenize{mf}}% \ifx\x\y \texmftrue\else \edef\y{\detokenize{pdftex}}% - \ifx\x\y \texmftrue \pdfxetrue\else + \ifx\x\y \texmftrue\else \edef\y{\detokenize{xetex}}% \ifx\x\y \texmftrue\fi\fi\fi\fi \iftexmf - \ifpdfxe \def\contentspagenumber{1} \else \def\contentspagenumber{2} \fi \expandafter\let\csname ORGN\expandafter\endcsname \csname N\endcsname \expandafter\outer\expandafter\def\csname N\endcsname{% - \titletrue \pageno=\contentspagenumber \con + \titletrue \con \pageno=2 \expandafter\let\csname N\expandafter\endcsname \csname ORGN\endcsname \csname N\endcsname -- cgit v1.2.3