Skip to content

Commit

Permalink
[CWEB] Minor redactions in the manual and macros.
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68578 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Oct 18, 2023
1 parent 28a9788 commit f1358f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions texk/web2c/cwebdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-10-18 Andreas Scherer <https://ascherer.github.io>

* cwebmac.tex,
* cwebman-w2c.ch: Minor redactions in the CWEB manual and macros.

2023-10-15 Andreas Scherer <https://ascherer.github.io>

* cwebman-w2c.ch: Fix display in Skim and Acrobat Reader on macOS.
Expand Down
6 changes: 3 additions & 3 deletions texk/web2c/cwebdir/cwebmac.tex
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
% standard macros for CWEB listings (in addition to plain.tex)
% Version 4.11 --- September 2023
% Version 4.11 --- October 2023
\ifx\renewenvironment\undefined\else\endinput\fi % LaTeX will use other macros
\xdef\fmtversion{\fmtversion+CWEB4.11}
\chardef\cwebversion=4 \chardef\cwebrevision=11
\input iftex.sty % TeX engine tests
\ifx\pdf+\pdftrue\fi % for plain TeX in combination with dvipdfm
% Uncomment the following line if you want PDF goodies to be the default
%\ifx\pdf-\else\pdftrue\fi
\def\pdflinkcolor{0 0 1} % the RGB values for hyperlink color
\ifxetex\pdftrue\fi % XeTeX produces PDF output
\ifpdf \def\pdflinkcolor{0 0 1} \fi % the RGB values for hyperlink color
\let\ifacro=\ifpdf
\newif\ifacrohint \ifacro\acrohinttrue\fi \ifhint\acrohinttrue\fi
\newif\ifpdflua \ifluatex\pdfluatrue\fi \ifpdftex\pdfluatrue\fi
\ifpdflua % luaTeX and pdfTeX produce PDF output if \pdfoutput>0
\ifpdflua % luaTeX and pdfTeX produce PDF output if \pdfoutput>0 (default)
\def\Black{\pdfliteral{0 g 0 G}} % use rgb colors for direct PDF output too
\def\Blue{\pdfliteral{\pdflinkcolor\space rg \pdflinkcolor\space RG}}
\fi
Expand Down
12 changes: 6 additions & 6 deletions texk/web2c/cwebdir/cwebman-w2c.ch
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,16 @@ Looking at those
@y
\point 21. With modern \TeX\ engines like `\.{luatex}', `\.{pdftex}', and
`\.{xetex}' (but \\{not} with classic `\.{tex}') you can say `\.{\\input
pdfwebtocfront}' as the last command in limbo and run \TeX\ \\{twice} on your
woven document, in order to shift the table-of-contents to the front of the
{\mc PDF} output.
pdfwebtocfront}' as the last command in the limbo section and run \TeX\
\\{twice} on your woven \.{CWEB} document, in order to shift the
table-of-contents to the front of the {\mc PDF} output.

\point 22. You are advised to use the command line option `\.{--shell-escape}'
with \.{pdftex} and \.{luatex} in order to receive ``valid'' PDF output from
your \.{CWEB} source file; otherwise, the internal counter for the ``Names of
the sections'' part in the PDF ``bookmarks'' will be incorrect. (`\.{xetex}'
and `\.{tex "\\let\\pdf+..."}' take a different approach that is correct by
design.)
the sections'' part in the {\mc PDF} ``bookmarks'' will be incorrect.
(`\.{xetex}' and `\.{tex "\\let\\pdf+..."}' take a different approach that is
correct by design.)

\vfill\end
@z
Expand Down

0 comments on commit f1358f6

Please sign in to comment.