texlive[55595] Build/source/texk/web2c/cwebdir: [C/WEB] Provide a way
commits+ascherer at tug.org
commits+ascherer at tug.org
Fri Jun 19 22:00:36 CEST 2020
Revision: 55595
http://tug.org/svn/texlive?view=revision&revision=55595
Author: ascherer
Date: 2020-06-19 22:00:35 +0200 (Fri, 19 Jun 2020)
Log Message:
-----------
[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.
Modified Paths:
--------------
trunk/Build/source/texk/web2c/cwebdir/ChangeLog
trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2020-06-19 07:48:49 UTC (rev 55594)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2020-06-19 20:00:35 UTC (rev 55595)
@@ -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".
Modified: trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex 2020-06-19 07:48:49 UTC (rev 55594)
+++ trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex 2020-06-19 20:00:35 UTC (rev 55595)
@@ -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
More information about the tex-live-commits
mailing list.