diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2020-05-26 14:53:18 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2020-05-26 14:53:18 +0000 |
commit | 2b2cc50eecf3d5ff2cbb4483137f63438eb5c5fe (patch) | |
tree | fb2f98a1a8c15e7668d7fda047674a2d2d3c5e55 /Build/source/texk | |
parent | 95dab9ef64f420895624c06271b979db7921c4bb (diff) |
[CWEB] Fake headline on page after TOC.
This works fine for all WEB programs, because they all start with
'section 1', and for 'make fullmanual' in CWEB, because all modules
(common, ctangle, cweave, ctwill) start with the 'Introduction'.
It is, however, not a general solution (yet).
git-svn-id: svn://tug.org/texlive/trunk@55285 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex | 10 |
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 }% |