diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2022-07-02 02:11:36 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2022-07-02 02:11:36 +0000 |
commit | ebac99c81f39717f4e42510e64811a0dc4680458 (patch) | |
tree | ff71380a1f91e5114e1668592399f7de7f7bd42b /Build/source/texk | |
parent | 9a2d9db22984902666b632c8f71ac7a42c888c42 (diff) |
[CWEB] Don't output PDF special when \pdffalse.
More importantly: Don't forget to output the PDF bookmarks for starred
sections when using 'tex "\let\pdf+..."'.
git-svn-id: svn://tug.org/texlive/trunk@63784 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/cwebmac.tex | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog index 30c98072a3f..47041e3796f 100644 --- a/Build/source/texk/web2c/cwebdir/ChangeLog +++ b/Build/source/texk/web2c/cwebdir/ChangeLog @@ -1,3 +1,7 @@ +2022-07-02 Andreas Scherer <https://ascherer.github.io> + + * cwebmac.tex: Fix \ifpdf logic. + 2022-06-20 Andreas Scherer <https://ascherer.github.io> * texinputs/dcwebmac.tex, diff --git a/Build/source/texk/web2c/cwebdir/cwebmac.tex b/Build/source/texk/web2c/cwebdir/cwebmac.tex index 5f05e012ba3..85ac02587bb 100644 --- a/Build/source/texk/web2c/cwebdir/cwebmac.tex +++ b/Build/source/texk/web2c/cwebdir/cwebmac.tex @@ -348,9 +348,9 @@ {\noexpand\the\pageno}{\the\toksE}}}\next % \ZZ{title}{depth}{sec}{page}{ss} \ifpdf \ifpdftex\expandafter\xdef\csname curr#1\endcsname{\secno} \ifnum#1>0\countB=#1 \advance\countB by-1 - \advancenumber{chunk\the\countB.\expnumber{curr\the\countB}}\fi\fi + \advancenumber{chunk\the\countB.\expnumber{curr\the\countB}}\fi \else \special{pdf: outline #1 << /Title (\the\toksE) /Dest - [ @thispage /FitH @ypos ] >>}\fi + [ @thispage /FitH @ypos ] >>}\fi \fi \ifon\startsection{\bf#3.\quad}\ignorespaces} \def\MN#1{\par % common code for \M, \N {\xdef\secstar{#1}\let\*=\empty\xdef\secno{#1}}% remove \* from section name |