diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2023-05-19 11:26:03 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2023-05-19 11:26:03 +0000 |
commit | 87dbcbf8d3f93b4b6e5ce8b8cba47dddaf7e0089 (patch) | |
tree | 0806eca5e5b7833847ec237f38bfb65541823a60 /Build | |
parent | cb2b4e5bb7280390cc55df91d9873cff1ec2b01f (diff) |
[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)
git-svn-id: svn://tug.org/texlive/trunk@67154 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog index 0f242f42a28..6cf0e5a077a 100644 --- a/Build/source/texk/web2c/cwebdir/ChangeLog +++ b/Build/source/texk/web2c/cwebdir/ChangeLog @@ -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, diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex index 6929ffb888c..3d05268eb07 100644 --- a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex +++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex @@ -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) |