diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2020-06-21 12:10:18 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2020-06-21 12:10:18 +0000 |
commit | e2cffe6d96130e6c2d41d08c189b9f5ea6b37667 (patch) | |
tree | 7810bc0c140c6cfb88755b451240ec6adb33a317 /Build | |
parent | 6243a02ea6b6aadbe12bad7d006119fed6917eca (diff) |
[C/WEB] Start main body on pageno 3.
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
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex | 6 |
2 files changed, 7 insertions, 4 deletions
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 <https://ascherer.github.io> + + * 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 <https://ascherer.github.io> * 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 |