summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2020-06-19 20:00:35 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2020-06-19 20:00:35 +0000
commitf53e0358fbb3985df8971d336e5b355ac853ac6e (patch)
treeec003aa86754d45ab1173ac7aa2bdb7d3477d40c /Build
parent7dd77fd73f505630f32a0fa2b17b5ce93311f7d0 (diff)
[C/WEB] Provide a way to set the header on page 1.
This is a 'fake' solution to the timing problem with the shifted table-of-contents page. The '\topmark' is not yet set correctly when the first '\N' is invoked, so the default '\.{[C]WEB} output' from '[cp]webmac.tex' will show up. By setting '\gtitle' to 'Introduction' (or anything else) right before '\input pdfwebtocfront', the 'group title' is set appropriately. Right after the first '\N' itself, the automatic mechanism for starred sections kicks in. git-svn-id: svn://tug.org/texlive/trunk@55595 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex9
2 files changed, 10 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 9b9bd594023..524d7e2335b 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-19 Andreas Scherer <https://ascherer.github.io>
+
+ * texinputs/pdfwebtocfront.tex: Generic 'group title' on the first
+ page after the table-of-contents.
+
2020-06-16 Andreas Scherer <https://ascherer.github.io>
* texinputs/pdfctimac.tex: Bookmarks for "Names of the sections".
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
index 54531a25764..f8c8eea9ad9 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
@@ -1,6 +1,6 @@
% pdfwebtofront.tex
% Code from knuth.drv in https://github.com/oberdiek/latex-tds
-% 2020/05/30 v1.1 by Andreas Scherer.
+% 2020/06/19 v1.2 by Andreas Scherer.
%
% This file is part of project https://github.com/ascherer/cwebbin
% and may be distributed under the MIT License or the LaTeX Project
@@ -30,9 +30,10 @@
\begingroup
\let\end\relax
\ORGcon
- % let's start with section '1', the 'Introduction'.
- \ifx\undefined\gdepth \mark{{{\tensy x}1}{Introduction}} % WEB
- \else \mark{{{\tensy x}1}0{Introduction}}\fi % CWEB
+ % let's start with section '1'; the '\gtitle' should be set,
+ % e.g. to 'Introduction', right before '\input pdfwebtocfront'.
+ \ifx\undefined\gdepth \mark{{{\tensy x}1}{\the\gtitle}} % WEB
+ \else \mark{{{\tensy x}1}0{\the\gtitle}}\fi % CWEB
\eject % set '\botmark' on TOC, hence '\topmark' on next page.
\endgroup
\let\con\end