summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex10
2 files changed, 10 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 6e1037759c9..a31993a233d 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-26 Andreas Scherer <https://ascherer.github.io>
+
+ * texinputs/pdfwebtocfront.tex: Fake headline on page after TOC.
+
2020-05-23 Andreas Scherer <https://ascherer.github.io>
* texinputs/pdfwebtocfront.tex: Add treatment for {pdf,xe}tex.web.
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
index 935e1050b4a..49e5f5b288a 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
@@ -17,10 +17,8 @@
\openin\testread=\contentsfile\relax
\ifeof\testread % First run
\else % Second run
- \let\ORGcon\con \let\ORGtoc\topofcontents
- \ifx\undefined\grouptitle \mark{1} % WEB: let's start with section '1'.
- \else\def\topofcontents{\ORGtoc\gtitle={\the\grouptitle}}\fi % CWEB
% Redefine '\con' to be invoked before the first '\N' (starred section).
+ \let\ORGcon\con
\def\con{%
\def\:{\par\hangindent 2em} % Fix for 'bibtex.web'.
% reduce size of PDF pages for more screen space
@@ -31,7 +29,11 @@
\global\hoffset=-1.54cm \global\voffset=-1.54cm \fi
\begingroup
\let\end\relax
- \ORGcon\eject
+ \ORGcon
+ % let's start with section '1', the 'Introduction'.
+ \ifx\undefined\grouptitle \mark{1} % WEB
+ \else \mark{{{\tensy x}1}0{Introduction}}\fi % CWEB
+ \eject % set '\botmark' on TOC, hence '\topmark' on next page.
\endgroup
\let\con\end
}%