[comp.text.tex] Problem TeXing weaved tex.web and bibtex.web

rocky@kundry.kundry.watson.ibm.com (Rocky Bernstein) (08/04/90)

Has anyone else run into this problem? After weaving tex.web or bibtex.web
which I got today off of labrea.stanford.edu I get the error message:
! Missing # inserted 
<inserted text>
               $
<to be read again>
                  \cdot
\E->\cdot 
...
At this point in the text (line 610 of tex.tex) what is really input is \ETs.
Looking at tex.web on line 69 we have:
\catcode`E=13 \uppercase{\def E{e}}

But E is never catcoded back to 11, which I think explains the problem.
The same code appears in bibtex.web on line 65. 

A fix of course is to add \catcode`E=11 a couple of lines down.

I find it hard to believe that I've found a bug, since I find it hard to 
believe that no one has TeX'ed tex.web or bibtex.web. So what am I missing?

R. Bernstein
IBM T.J. Watson Research Center
Yorktown Hts, NY
--
R. Bernstein

dhosek@hmcvax.claremont.edu (Hosek, Donald A.) (08/06/90)

In article <ROCKY.90Aug3184920@kundry.kundry.watson.ibm.com>, rocky@kundry.kundry.watson.ibm.com (Rocky Bernstein) writes...
>Has anyone else run into this problem? After weaving tex.web or bibtex.web
>which I got today off of labrea.stanford.edu I get the error message:
>! Missing # inserted 
><inserted text>
>               $
><to be read again>
>                  \cdot
>\E->\cdot 
>....
>At this point in the text (line 610 of tex.tex) what is really input is \ETs.
>Looking at tex.web on line 69 we have:
>\catcode`E=13 \uppercase{\def E{e}}

It's a demi-bug and I've been working on a workaround for a while.

The reason for the catcode change is that the WEAVE'd output
prints identifiers like TEX_inputs with a dropped E. This is
accomplished by making E active. This works fine *except* where E
is used in a control sequence. And Knuth added control sequences
\ET and \ETs to the WEAVE'd output for WEAVE 4.1. The quick and
easy workaround is to modify your change file to eliminate the
catcode stuff. Where it gets tricky is in trying to get TeX to
still drop the E *and* do everything else right as well...

-dh

---
Don Hosek                         TeX, LaTeX, and Metafont Consulting and
dhosek@ymir.claremont.edu         production work. Free Estimates.
dhosek@ymir.bitnet                
uunet!jarthur!ymir                Phone: 714-625-0147