texlive[58478] Master/texmf-dist/doc/plain/pwebmac: pwebmac (17mar21)

commits+karl at tug.org commits+karl at tug.org
Wed Mar 17 22:45:57 CET 2021


Revision: 58478
          http://tug.org/svn/texlive?view=revision&revision=58478
Author:   karl
Date:     2021-03-17 22:45:57 +0100 (Wed, 17 Mar 2021)
Log Message:
-----------
pwebmac (17mar21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/plain/pwebmac/README.md
    trunk/Master/texmf-dist/doc/plain/pwebmac/index.md
    trunk/Master/texmf-dist/doc/plain/pwebmac/makeall

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex

Modified: trunk/Master/texmf-dist/doc/plain/pwebmac/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/README.md	2021-03-17 21:45:41 UTC (rev 58477)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/README.md	2021-03-17 21:45:57 UTC (rev 58478)
@@ -30,4 +30,4 @@
 
 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.

Added: trunk/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex	2021-03-17 21:45:57 UTC (rev 58478)
@@ -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


Property changes on: trunk/Master/texmf-dist/doc/plain/pwebmac/Xerrorlog.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/plain/pwebmac/index.md
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/index.md	2021-03-17 21:45:41 UTC (rev 58477)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/index.md	2021-03-17 21:45:57 UTC (rev 58478)
@@ -12,14 +12,16 @@
 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 @@
 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 at freenet.de)
+directly.
 
 ## Canonical Knuthian WEB programs
 
@@ -58,7 +62,7 @@
   [`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 @@
 * `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 @@
 * `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 @@
   * [Computers & Typesetting, 31\ January\ 2021](errata/errata.pdf)
 
 ## Happy C/WEB Programming!
+
+2021-03-17 Andreas Scherer

Modified: trunk/Master/texmf-dist/doc/plain/pwebmac/makeall
===================================================================
--- trunk/Master/texmf-dist/doc/plain/pwebmac/makeall	2021-03-17 21:45:41 UTC (rev 58477)
+++ trunk/Master/texmf-dist/doc/plain/pwebmac/makeall	2021-03-17 21:45:57 UTC (rev 58478)
@@ -83,7 +83,7 @@
 	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 @@
 
 		# 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 @@
 
 		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



More information about the tex-live-commits mailing list.