Skip to content

Commit

Permalink
[CWEB] Fix NOS section in CTWILL output.
Browse files Browse the repository at this point in the history
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)

git-svn-id: svn://tug.org/texlive/trunk/Build/source@67154 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed May 19, 2023
1 parent b647ddf commit 24d9d5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions texk/web2c/cwebdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 3 additions & 2 deletions texk/web2c/cwebdir/texinputs/pdfctwimac.tex
Original file line number Diff line number Diff line change
Expand Up @@ -675,15 +675,16 @@
\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
\pdfoutline goto name {NOS} count -\the\countD {\outsecname}
\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)
Expand Down

0 comments on commit 24d9d5e

Please sign in to comment.