diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-17 21:45:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-17 21:45:57 +0000 |
commit | 8d68e7003cb6043af1b53fbea94aa6d9a55040c6 (patch) | |
tree | b38fc5507aeef5b3263f1e7a298538b3a90149f6 /Master/texmf-dist/doc | |
parent | 4e23d975749086e31b6d68aed79e07d1bc0ec39f (diff) |
pwebmac (17mar21)
git-svn-id: svn://tug.org/texlive/trunk@58478 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/plain/pwebmac/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex | 31 | ||||
-rw-r--r-- | Master/texmf-dist/doc/plain/pwebmac/index.md | 30 | ||||
-rw-r--r-- | Master/texmf-dist/doc/plain/pwebmac/makeall | 11 |
4 files changed, 54 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/plain/pwebmac/README.md b/Master/texmf-dist/doc/plain/pwebmac/README.md index 8a49380a705..59d5e38f990 100644 --- a/Master/texmf-dist/doc/plain/pwebmac/README.md +++ b/Master/texmf-dist/doc/plain/pwebmac/README.md @@ -30,4 +30,4 @@ clickable links and bookmarks (depending on your PDF viewer). The `pwebmac` package is free software and may be used without constraints. -This is version “4.6.1” of the `pwebmac` package — 2021-03-09, AS. +This is version “4.6.2” of the `pwebmac` package — 2021-03-17, Andreas Scherer. diff --git a/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex b/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex new file mode 100644 index 00000000000..6a739a81b05 --- /dev/null +++ b/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex @@ -0,0 +1,31 @@ +\let\goodbye=\bye % we replace \bye with another command + +\def\endofpapermacros{% output some lines after the \bye in errorlog.tex + % 1. step: skip the motto by Turing; DRF=<initials> of the first name + \long\def\skipmotto##1DRF{% ##1: ignored text + \smallskip\line{\bf List of abbreviated names:\hss}% a title line + \simpleline DRF}% see step 2a) + % 2. step: two kind of input lines + % a) <initials> <first names> <surname> coded as \simpleline + % b) <initials> <first names> <surname> (<info>) coded as \parensline + % Note: step 1 starts with type a) and <initials>=DRF + % if <initials>=CET switch to b); last line has <initials>=MDS + \def\next{\simpleline}\def\withparens{CET}\def\lastline{MDS}% + \def\simpleline##1 ##2 ##3 {\processtext!##1!##2 ##3!}% the default for \next + \def\parensline##1 ##2 ##3 (##4) {\processtext!##1!##2 ##3!}% <info> isn't needed + % 3. step: output name, test for switch to 2b), and test for last line + \def\processtext!##1!##2!{% ##1: <initials>; ##2: <first names> <surname> + \line{\hbox to 50pt{\hss##1:}\quad##2\hss}% output + \def\nxt{##1}% store <initials> + \ifx\nxt\withparens % true: switch from 2a) to 2b) + \def\next{\parensline}% + \else\ifx\nxt\lastline % true: it's the last line + \def\next{\csname goodbye\endcsname}% \next=\bye + \fi\fi + \next}% + % 4. step: activate this chain of macros + \skipmotto} + +\let\bye=\endofpapermacros + +\input errorlog diff --git a/Master/texmf-dist/doc/plain/pwebmac/index.md b/Master/texmf-dist/doc/plain/pwebmac/index.md index 1631382506b..1554700c7d2 100644 --- a/Master/texmf-dist/doc/plain/pwebmac/index.md +++ b/Master/texmf-dist/doc/plain/pwebmac/index.md @@ -12,14 +12,16 @@ urlcolor: blue Welcome to “All Things `WEB`” in “\TeX\ Live.” Here you find the documented source code of all major `WEB` and `CWEB` programs -in readable format. The “named” entries represent the unmodified base sources, -the attached “`chg`” links point to “only the changed sections (or modules),” -so you may want to study these pairs in parallel. Care has been taken to keep -the section numbers for the main parts intact. +in readable format. The “named” entries represent the unmodified base sources +as written by their respective authors, the attached “`chg`” links point to +“only the changed sections (or modules)” as applied for release in the “\TeX\ +Live” distribution, so you may want to study these pairs in parallel. Care has +been taken to keep the section numbers for the main parts intact. -Although not all the programs here are written or maintained by Donald Knuth, -it is more convenient for everything to be collected in one place for reading -and searching. And they all stem from the system that Knuth created. +Although not all the programs presented here are written or maintained by +Donald Knuth, it is more convenient for everything to be collected in one place +for reading and searching. And they all stem from the system that Knuth +created. Note that all `WEB` programs are mogrified from Pascal code to C code before compilation, so further modifications and amendments will occur “for the real @@ -28,8 +30,10 @@ programs do not require these extra modifications, they get linked directly to the external runtime environment.) If you believe to have found anything that remains technically, historically, -typographically, or politically incorrect, please feel free to -[report bugs in \TeX\ and friends](https://tug.org/texmfbug/). +typographically, or politically incorrect in any of these files, please feel +free to [report bugs in \TeX\ and friends](https://tug.org/texmfbug/) or +[contact the maintainer of this library](mailto:andreas_github@freenet.de) +directly. ## Canonical Knuthian WEB programs @@ -58,7 +62,7 @@ typographically, or politically incorrect, please feel free to [`WEAVE`](web/weave.pdf)\ ~[`chg`](web/weave-changes.pdf)~ \| [`TANGLE`](web/tangle.pdf)\ ~[`chg`](web/tangle-changes.pdf)~ \] -## Complementary WEB programs +## Complementary WEB programs by other authors * `other/` \[ [`DVIcopy`](other/dvicopy.pdf)\ ~[`chg`](other/dvicopy-changes.pdf)~ \| @@ -69,7 +73,7 @@ typographically, or politically incorrect, please feel free to * `pdftex/` \[ [`pdfTeX`](pdftex/pdftex.pdf)\ ~[`chg`](pdftex/pdftex-changes.pdf)~ \] * `xetex/` \[ [`XeTeX`](xetex/xetex.pdf)\ ~[`chg`](xetex/xetex-changes.pdf)~ \] -## CWEB programs +## CWEB programs by Knuth _et\ al._ * `cweb/` \[ [`CWEBMAN`](cweb/cwebman.pdf) \| @@ -82,7 +86,7 @@ typographically, or politically incorrect, please feel free to * `ctie/` \[ [`CTIE`](ctie/ctie.pdf)\ ~[`chg`](ctie/ctie-changes.pdf)~ \] * `tie/` \[ [`TIE`](tie/tie.pdf)\ ~[`chg`](tie/tie-changes.pdf)~ \] -## Errata for “Computers & Typesetting” +## Errata for “Computers & Typesetting” by Donald E.\ Knuth * `errata/` * [The Errors of \TeX](errata/errorlog.pdf) @@ -101,3 +105,5 @@ typographically, or politically incorrect, please feel free to * [Computers & Typesetting, 31\ January\ 2021](errata/errata.pdf) ## Happy C/WEB Programming! + +2021-03-17 Andreas Scherer diff --git a/Master/texmf-dist/doc/plain/pwebmac/makeall b/Master/texmf-dist/doc/plain/pwebmac/makeall index 546c3984aa4..5f817ea2425 100644 --- a/Master/texmf-dist/doc/plain/pwebmac/makeall +++ b/Master/texmf-dist/doc/plain/pwebmac/makeall @@ -83,7 +83,7 @@ do esac done -CWEAVE="cweave -f" +CWEAVE="cweave -f +lX" CTWILL="ctwill -f +lpdf" PAX="pax -wvzf" SED_I="sed -i" # non-GNU-sed requires an extra '' argument for '-i' option. @@ -220,11 +220,6 @@ FI # FIX: purge obsolete macros from XeTeX. xetex ) $SED_I -e "/\\\\input xewebmac/d" $f.tex ;; - - # Use nicer format for C comments and assignment; sans ctwill - common | ctangle | cweave | refsort | twinx | ctie | tie ) - $SED_I -e "1 s/\(cwebmac\)/\1\n\\\\input Xcwebmac/" \ - $f.tex ;; esac # shift table-of-contents pages to the front in PDF @@ -328,11 +323,13 @@ then touch pages.tex # let 'manmac' produce output at all - for f in tripman trapman webman cwebman errorlog + for f in tripman trapman webman cwebman do $TEX $f done + $TEX -jobname=errorlog /opt/github/web/Xerrorlog.tex + for f in one two three four five six seven eight nine ten \ eleven twelve do |