Skip to content

Commit 995a5f4

Browse files
committed
Rename macros again.
It's 'Pascal/WEB' and 'pwebmac.tex' like 'C/WEB' and 'cwebmac.tex'. Also, the logic of 'makeall' had to be fixed and amended.
1 parent 18b15ea commit 995a5f4

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ urmother of all things 'literate programming'.
55

66
the main goal is to integrate canonical `webmac.tex` with the extended PDF
77
macros `pdfwebmac.tex` and `xewebmac.tex`, along the lines of `cwebmac.tex`.
8-
the result is called `tlwebmac.tex` and will probably be used to format the
8+
the result is called `pwebmac.tex` and will probably be used to format the
99
next (and final?) versions of all main WEB programs for publication in
1010
TeX Live 2021.
1111

1212
| TeX macros | TeX engine | Notes about resulting PDF |
1313
| --------------- | ------------------------------ | ------------------------------------------------- |
14-
| `tlwebmac.tex` | plain TeX | without clickable links, without outlines |
14+
| `pwebmac.tex` | plain TeX | without clickable links, without outlines |
1515
| | `tex "\let\pdf+"`, `xdvipdfmx` | with clickable links, with outlines |
1616
| | pdfTeX | with clickable links, with outlines |
1717
| | XeTeX | with clickable links, with outlines |

makeall

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ do
6262
# use extended macros for TeX Live PDF documentation
6363
if $NEW
6464
then
65-
sed -i -e "1 s/\\\\input webmac/\\\\input tlwebmac/" $f.tex
65+
sed -i -e "1 s/\\\\input webmac/\\\\input pwebmac/" $f.tex
6666
fi
6767

6868
# replace former convention to indicate "not a title page"
@@ -82,19 +82,9 @@ do
8282

8383
# amend '\N' redefinition for PDF outlines in mf.tex and
8484
# tex.tex (also pdftex.web and xetex.web); depends on the
85-
# extended 'tlwebmac.tex' macros
85+
# extended 'pwebmac.tex' macros
8686
"mf"|"tex"|"pdftex"|"xetex" )
87-
if test "pdftex" = $f
88-
then
89-
# pdfTeX has a looong table-of-contents
90-
cat > pdftex.patch << FI
91-
\advance\vsize by 4\baselineskip
92-
\ifacro\advance\pdfpageheight by 4\baselineskip\fi
93-
FI
94-
sed -i -e "/\\\\def\\\\topofcontents.*/ {
95-
r pdftex.patch
96-
}" $f.tex
97-
elif test "xetex" = $f
87+
if [ "xetex" = $f ]
9888
then
9989
# purge obsolete macros from XeTeX
10090
sed -i -e "/\\\\input xewebmac/d" $f.tex
@@ -103,6 +93,17 @@ FI
10393
fi
10494
if $NEW
10595
then
96+
if [ "pdftex" = $f ]
97+
then
98+
# pdfTeX has a looong table-of-contents
99+
cat > pdftex.patch << FI
100+
\advance\vsize by 4\baselineskip
101+
\ifacro\advance\pdfpageheight by 4\baselineskip\fi
102+
FI
103+
sed -i -e "/\\\\def\\\\topofcontents.*/ {
104+
r pdftex.patch
105+
}" $f.tex
106+
fi
106107
cat > texmf-pdf.patch << FI
107108
\ifacro{\toksF={}\makeoutlinetoks{[#2] #3}\outlinedone\outlinedone}\fi
108109
FI
@@ -133,14 +134,18 @@ done
133134

134135
if $PDFTOCFRONT
135136
then
136-
pax vftovp.pdf vptovf.pdf -wzf etc.tar.gz -s ,^,etc/,
137-
pax mf.pdf -wzf mf.tar.gz -s ,^,mf/,
138-
pax gftodvi.pdf gftopk.pdf gftype.pdf mft.pdf -wzf mfware.tar.gz -s ,^,mfware/,
139-
pax tex.pdf -wzf tex.tar.gz -s ,^,tex/,
140-
pax dvitype.pdf pltotf.pdf pooltype.pdf tftopl.pdf -wzf texware.tar.gz -s ,^,texware/,
141-
pax tangle.pdf weave.pdf -wzf web.tar.gz -s ,^,web/,
142-
pax bibtex.pdf -wzf bibtex.tar.gz -s ,^,bibtex/,
143-
pax dvicopy.pdf patgen.pdf pktogf.pdf pktype.pdf -wzf other.tar.gz -s ,^,other/,
144-
pax pdftex.pdf -wzf pdftex.tar.gz -s ,^,pdftex/,
145-
pax xetex.pdf -wzf xetex.tar.gz -s ,^,xetex/,
137+
# create tarballs for publication
138+
pax vftovp.pdf vptovf.pdf -wvzf etc.tar.gz -s ,^,etc/,
139+
pax mf.pdf -wvzf mf.tar.gz -s ,^,mf/,
140+
pax gftodvi.pdf gftopk.pdf gftype.pdf mft.pdf \
141+
-wvzf mfware.tar.gz -s ,^,mfware/,
142+
pax tex.pdf -wvzf tex.tar.gz -s ,^,tex/,
143+
pax dvitype.pdf pltotf.pdf pooltype.pdf tftopl.pdf \
144+
-wvzf texware.tar.gz -s ,^,texware/,
145+
pax tangle.pdf weave.pdf -wvzf web.tar.gz -s ,^,web/,
146+
pax bibtex.pdf -wvzf bibtex.tar.gz -s ,^,bibtex/,
147+
pax dvicopy.pdf patgen.pdf pktogf.pdf pktype.pdf \
148+
-wvzf other.tar.gz -s ,^,other/,
149+
pax pdftex.pdf -wvzf pdftex.tar.gz -s ,^,pdftex/,
150+
pax xetex.pdf -wvzf xetex.tar.gz -s ,^,xetex/,
146151
fi
File renamed without changes.

0 commit comments

Comments
 (0)