texlive[55574] Build/source/texk/web2c/cwebdir: [CTWILL] Bookmarks

commits+ascherer at tug.org commits+ascherer at tug.org
Wed Jun 17 16:51:59 CEST 2020


Revision: 55574
          http://tug.org/svn/texlive?view=revision&revision=55574
Author:   ascherer
Date:     2020-06-17 16:51:59 +0200 (Wed, 17 Jun 2020)
Log Message:
-----------
[CTWILL] Bookmarks for "Names of the sections".

Note that XeTeX chooses to add another (almost) empty spread of pages at
the very end.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/cwebdir/ChangeLog
    trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex

Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2020-06-16 23:53:38 UTC (rev 55573)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2020-06-17 14:51:59 UTC (rev 55574)
@@ -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.

Modified: trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2020-06-16 23:53:38 UTC (rev 55573)
+++ trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2020-06-17 14:51:59 UTC (rev 55574)
@@ -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{{%



More information about the tex-live-commits mailing list.