texlive[67154] Build/source/texk/web2c/cwebdir: [CWEB] Fix NOS

commits+ascherer at tug.org commits+ascherer at tug.org
Fri May 19 13:26:04 CEST 2023


Revision: 67154
          http://tug.org/svn/texlive?view=revision&revision=67154
Author:   ascherer
Date:     2023-05-19 13:26:03 +0200 (Fri, 19 May 2023)
Log Message:
-----------
[CWEB] Fix NOS section in CTWILL output.

The \ifacro macros have to \shipout an otherwise empty page that holds
the NOS node for the PDF bookmarks. This final page should neither have
a header nor a mini index. (pdftex)

dvipdf[m[x]] complains about the incorrect annotation syntax.
(tex "\let\pdf=+ \input JOBNAME"; dvipdfm  JOBNAME)

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	2023-05-18 23:43:18 UTC (rev 67153)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2023-05-19 11:26:03 UTC (rev 67154)
@@ -1,3 +1,7 @@
+2023-05-19  Andreas Scherer  <https://ascherer.github.io>
+
+	* texinputs/pdfctwimac.tex: Fix NOS section.
+
 2023-05-14  Andreas Scherer  <https://ascherer.github.io>
 
 	* Makefile,

Modified: trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2023-05-18 23:43:18 UTC (rev 67153)
+++ trunk/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex	2023-05-19 11:26:03 UTC (rev 67154)
@@ -675,6 +675,7 @@
   \fi}
 \def\fin{\ifacro \message{Section names:}
   \def\U##1.{} \def\Us##1.{} \let\I=\relax \let\*=*
+  \newrefs={} \output={\shipout\box255}
   \def\outsecname{Names of the sections}
   \ifpdftex \makebookmarks \countsections
     \pdfdest name {NOS} fith
@@ -682,8 +683,8 @@
     \def\X##1:##2\X{\firstsecno##1.%
       {\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
       \pdfoutline goto num \the\toksA \expandafter{\the\toksE}}
-  \else \output={\shipout\box255}
-    \special{pdf: outline -1 << /Title (\outsecname) >>}%
+  \else \special{pdf: outline -1 << /Title (\outsecname)
+      /Dest [ @thispage /FitH @ypos ] >>}
     \def\X##1:##2\X{\firstsecno##1.%
       {\toksF={}\makeoutlinetoks##2\outlinedone\outlinedone}%
       \special{pdf: outline 0 << /Title (\the\toksE)



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