summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2024-05-26 15:42:29 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2024-05-26 15:42:29 +0000
commit27021a9c27ee1d7dd78d8672655cc70a22229da7 (patch)
tree6de8e59fefdbb01437f386fab0d21895f2e90a9c /Build/source/texk/web2c
parent8549ff89873ff64f609f777b89c3d3e36556cb51 (diff)
[CWEB] HiTeX has a three-page table-of-contents.
Add parameter '\tocpages' to shift the '/PageLabels'. git-svn-id: svn://tug.org/texlive/trunk@71358 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/cwebdir/cwebacromac.tex7
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex4
3 files changed, 11 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index b5d45d05cdc..0f146a16edb 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,5 +1,10 @@
2024-05-25 Andreas Scherer <https://ascherer.github.io>
+ * cwebacromac.tex: HiTeX has a three-page table-of-contents.
+ * texinputs/pdfwebtocfront.tex: Add \space in PDF code.
+
+2024-05-25 Andreas Scherer <https://ascherer.github.io>
+
* texinputs/pdfwebtocfront.tex: More room for long ToCs.
2024-05-24 Andreas Scherer <https://ascherer.github.io>
diff --git a/Build/source/texk/web2c/cwebdir/cwebacromac.tex b/Build/source/texk/web2c/cwebdir/cwebacromac.tex
index 9782d44f498..f8462d06a37 100644
--- a/Build/source/texk/web2c/cwebdir/cwebacromac.tex
+++ b/Build/source/texk/web2c/cwebdir/cwebacromac.tex
@@ -16,12 +16,13 @@
\fi % end of LuaTeX->pdfTeX redirection macros
% Used in cwebmac.tex, pdfctwimac.tex, pdfproofmac.tex
+\def\tocpages{1} % Most programs have one-page Table-of-Contents
\def\startpdf{\def\pagemode{/PageMode /UseOutlines}
- \ifnum\contentspagenumber=0 \advance \pageno by -1
- \def\pagelabels{/PageLabels << /Nums [ 0 << /S/D/St 1 >>
+ \ifnum\contentspagenumber=0 \advance \pageno by -\tocpages
+ \def\pagelabels{/PageLabels << /Nums [ 0 << /S/D/St \tocpages >>
\the\pageno << /P(Contents) >> ] >>}
\else \twodigits=\pageno \pageno=\contentspagenumber
- \advance \pageno by 1 \advance \twodigits by -\pageno
+ \advance \pageno by \tocpages \advance \twodigits by -\pageno
\def\pagelabels{/PageLabels << /Nums [ 0 << /S/D/St \the\pageno >>
\the\twodigits << /S/D/St \contentspagenumber >> ] >>} \fi
\ifpdflua\pdfcatalog{\pagemode\space\pagelabels}
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
index 48bf684332e..237b9f39c38 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfwebtocfront.tex
@@ -26,8 +26,8 @@
\def\pagelabels{/PageLabels << /Nums [
\ifnum\contentspagenumber=0 0 << /P(Contents) >> \tocpages << /S/D/St 1 >>
\else 0 << /S/D/St \contentspagenumber >> \fi ] >> }
- \def\startpdf{\ifpdf \ifpdflua\pdfcatalog{\pagemode \pagelabels}
- \else {\special{pdf: docview << \pagemode \pagelabels >>}}\fi\fi}
+ \def\startpdf{\ifpdflua\pdfcatalog{\pagemode\space\pagelabels}
+ \else {\special{pdf: docview << \pagemode\space\pagelabels >>}}\fi}
% Redefine '\con' to be invoked before the first '\N' (starred section).
\let\ORGcon\con
\def\con{%