summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2024-05-24 16:56:06 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2024-05-24 16:56:06 +0000
commitb3896bcfe3383845b9163ef979570e75e65d2fa9 (patch)
tree0d55036d997af86254a78a6c52018a17e2796654
parentbc8a3d06092de658514130877a4296a692f13a73 (diff)
[CWEB] Fix comments in pdfwebtocfront.tex.
git-svn-id: svn://tug.org/texlive/trunk@71335 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/tex/plain/cweb/cwebbin/pdfwebtocfront.tex13
1 files changed, 7 insertions, 6 deletions
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