summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/texinputs
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2020-06-21 12:10:18 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2020-06-21 12:10:18 +0000
commite2cffe6d96130e6c2d41d08c189b9f5ea6b37667 (patch)
tree7810bc0c140c6cfb88755b451240ec6adb33a317 /Build/source/texk/web2c/cwebdir/texinputs
parent6243a02ea6b6aadbe12bad7d006119fed6917eca (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/source/texk/web2c/cwebdir/texinputs')
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex6
1 files changed, 2 insertions, 4 deletions
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