summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2020-06-17 14:51:59 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2020-06-17 14:51:59 +0000
commit824d7cd0b02cdffac23698dfcb5cb967dcf893b6 (patch)
tree092576a6fbbf9ffea971275349fae8e3034cb9aa
parentee600ab3d0c1fc84d08b4a5648b438b5c4aa3293 (diff)
[CTWILL] Bookmarks for "Names of the sections".
Note that XeTeX chooses to add another (almost) empty spread of pages at the very end. git-svn-id: svn://tug.org/texlive/trunk@55574 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex41
2 files changed, 20 insertions, 25 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 5edf62ba996..9b9bd594023 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,5 +1,9 @@
2020-06-16 Andreas Scherer <https://ascherer.github.io>
+ * texinputs/pdfctimac.tex: Bookmarks for "Names of the sections".
+
+2020-06-16 Andreas Scherer <https://ascherer.github.io>
+
* ctang-w2c.ch: Translate another message string.
* ctwill-w2c.ch,
* prod-twill.w: Page breaks for CWILL format. Fix final header.
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
index 17e2e85a56d..f92625fed9c 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
@@ -643,7 +643,7 @@
\def\contentsfile{\jobname.toc} % file that gets table of contents info
\def\readcontents{\input \contentsfile}
-\def\readsections{\relax}%\input \jobname.scn}
+\def\readsections{\input \jobname.scn}
\newwrite\cont
\ifpdftex
@@ -657,30 +657,21 @@
\immediate\closeout\cont % the contents information has been fully gathered
\fi
}
-\def\fin{\ifpdftex \makebookmarks \fi
- \parfillskip 0pt plus 1fil
- \gtitle={NAMES OF THE SECTIONS}
- \let\topsecno=\nullsec
- \message{Section names:}
- \def\note##1##2.{\quad{\eightrm##1~\ifacro{\pdfnote##2.}\else{##2}\fi.}}
- \def\Q{\note{Cited in section}} % crossref for mention of a section
- \def\Qs{\note{Cited in sections}} % crossref for mentions of a section
- \def\U{\note{Used in section}} % crossref for use of a section
- \def\Us{\note{Used in sections}} % crossref for uses of a section
- \def\I{\par\hangindent 2em}\let\*=*
- %\ifacro \def\outsecname{Names of the sections} \let\Xpdf\X
- %\ifpdftex \pdfdest name {NOS} fith
- %\pdfoutline goto name {NOS} count -\secno {\outsecname}
- %\def\X##1:##2\X{\Xpdf##1:##2\X \firstsecno##1.%
- %{\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
- %\pdfoutline goto num \the\toksA \expandafter{\the\toksE}}
- %\else \special{pdf: outline -1 << /Title (\outsecname)
- %/Dest [ @thispage /FitH @ypos ] >>}
- %\def\X##1:##2\X{\Xpdf##1:##2\X \firstsecno##1.%
- %{\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
- %\special{pdf: outline 0 << /Title (\the\toksE)
- %/A << /S /GoTo /D (\romannumeral\the\toksA) >> >>}}
- %\fi\fi
+\def\fin{\message{Section names:}
+ \def\U##1.{} \def\Us##1.{} \let\I=\relax \let\*=*
+ \ifacro \def\outsecname{Names of the sections}
+ \ifpdftex \makebookmarks
+ \pdfoutline goto num 1 count -\secno {\outsecname}
+ \def\X##1:##2\X{\firstsecno##1.%
+ {\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
+ \pdfoutline goto num \the\toksA \expandafter{\the\toksE}}
+ \else \special{pdf: outline -1 << /Title (\outsecname)
+ /A << /S /Goto /D (1) >> >>}%
+ \def\X##1:##2\X{\firstsecno##1.%
+ {\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
+ \special{pdf: outline 0 << /Title (\the\toksE)
+ /A << /S /GoTo /D (\romannumeral\the\toksA) >> >>}}
+ \fi\fi
\readsections}
\def\makebookmarks{\let\ZZ=\writebookmarkline \readcontents\relax}
\def\writebookmarkline#1#2#3#4#5{{%