From b3896bcfe3383845b9163ef979570e75e65d2fa9 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Fri, 24 May 2024 16:56:06 +0000 Subject: [CWEB] Fix comments in pdfwebtocfront.tex. git-svn-id: svn://tug.org/texlive/trunk@71335 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex b/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex index d08b0395d31..47c05d887fc 100644 --- a/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex +++ b/Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex @@ -1,4 +1,4 @@ -% pdfwebtofront.tex +% pdfwebtocfront.tex % Code from knuth.drv in https://github.com/oberdiek/latex-tds % 2024/05/24 v3.0 by Andreas Scherer. % @@ -7,8 +7,9 @@ % Public License. % % Move table-of-contents page to the front in PDF output. -% Works with pdftex and xetex in connection with either 'webmac.tex' -% for Pascal/WEB programs or 'cwebmac.tex' for C/CWEB programs. +% Works with pdftex/xetex/luatex and plain tex/dvipdf in connection +% with either 'pwebmac.tex' for Pascal/WEB programs or 'cwebmac.tex' +% for C/CWEB programs. % \ifx\detokenize\undefined\endinput\fi \def\contentsfile{\jobname.toc} % file that gets table of contents info @@ -18,7 +19,7 @@ \ifeof\testread % First run \else % Second run % Fix page numbers in the PDF bootmarks with 'Page Labels' - \def\tocpages{1} % Most programs have one page Table-of-Contents + \def\tocpages{1} % Most programs have one-page Table-of-Contents \def\pagemode{/PageMode /UseOutlines} \def\pagelabels{/PageLabels << /Nums [ \ifnum\contentspagenumber=0 0 << /P(Contents) >> \tocpages << /S/D/St 1 >> @@ -42,8 +43,8 @@ }% % Special variant for 'mf.web' and 'tex.web' (et al.). % They all define a peculiar version of '\N' in their preamble. - % And they put their tables-of-contents on a sparse 'page 2' and - % start the main body on page '3'. + % And they put their tables-of-contents on sparse 'Contents' page(s) + % and start the main body on page '3'. \edef\x{\jobname}% \edef\y{\detokenize{tex}}% \ifx\x\y \texmftrue\else -- cgit v1.2.3