summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2022-07-02 08:40:36 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2022-07-02 08:40:36 +0000
commit463ca4b1f557e7be561532d1a3090f4f54062326 (patch)
tree4ee7d5f5cfbf17522f0f905d2ce79eb97d9d1db1
parent261ceb1c8d6b89bf3babd942e3d1559c0b155017 (diff)
[CWEB] Similar change in CTWILL macros.
git-svn-id: svn://tug.org/texlive/trunk@63786 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex4
2 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 47041e3796f..7aa44a8a43c 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,11 +1,12 @@
2022-07-02 Andreas Scherer <https://ascherer.github.io>
- * cwebmac.tex: Fix \ifpdf logic.
+ * cwebmac.tex,
+ * texinputs/pdfctwimac.tex: Fix \ifpdf logic.
2022-06-20 Andreas Scherer <https://ascherer.github.io>
* texinputs/dcwebmac.tex,
- * texinputs,dcwebstrings.tex,
+ * texinputs/dcwebstrings.tex,
* texinputs/fcwebman.tex,
* texinputs/icwebmac.tex: Update translated macros.
diff --git a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
index 6ced8ae94e6..03b944cd60a 100644
--- a/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
+++ b/Build/source/texk/web2c/cwebdir/texinputs/pdfctwimac.tex
@@ -444,14 +444,14 @@
\gdef\rrhead{\let\i=I\uppercase{\ignorespaces#3}}
\fi
\message{*\secno} % progress report
- \ifpdftex\def\stripprefix##1>{}\def\gtitletoks{#3}%
+ \ifpdf \ifpdftex\def\stripprefix##1>{}\def\gtitletoks{#3}%
\edef\gtitletoks{\expandafter\stripprefix\meaning\gtitletoks}%
{\immediate\write\cont{\ZZ{\gtitletoks}{#1}{\secno}% write to contents file
{\noexpand\the\pageno}{\the\toksE}}} % \ZZ{title}{depth}{sec}{page}{ss}
\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
- \else\ifpdf\special{pdf: outline #1 << /Title (\the\toksE) /Dest
+ \else \special{pdf: outline #1 << /Title (\the\toksE) /Dest
[ @thispage /FitH @ypos ] >>}\fi\fi
\startsection{\bf\ignorespaces#3.\quad}\ignorespaces}
\def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0%