On 17-Mar-03 Adrian F. Clark wrote:
(Ted Harding) writes:
In terms of capability, therefore, I would not rank TeX as generally better than groff. On the other hand, it is a fact of life that in the academic and technical authoring world, TeX is far more widely used. This is largely because it was adopted with enthusiasm when it first became generally available around 1990, resulting in development of good "wrappers" such as LaTeX and the writing of much excellent documentation; at that time, troff was still hard to use and sparsely documnted. So it is the "industry standard", if you like, espcially for document exchange in that world. You would be cutting yourself off if you worked in that world and did not want to have anything to do with TeX.
I'm afraid I have to rise to this. TeX dates back to around 1978, not much longer after the emergence of n/troff. Knuth performed a major re-write in 1982, changing the original Pascal to his (still Pascal-based) Web system. LaTeX actually dates back to 1984: I still have pre-release copy of Lamport's book dated the following year.
You are of course right about the early history of TeX; but I was talking about "became generally available" -- perhaps I should have said "began to be widely used". I don't recall seeing TeX being used by many people at all until 1988-89; by 1990, however, usage had spread widely.
Unix roff dates from the 1970 port of runoff to Unix on the PDP-11, and was "upgraded" to nroff ("new roff") by 1974; troff ("typesetter roff"), essentially the same program but enhanced to cope with the much finer rendering available from phototypesetters, was developed in 1975, and did not need much tweaking to deal with laser printers (such as Apple's) which began to come out around 1980. I would say that n/troff, amongst those people concerned with computer typesetting (especially complex or "difficult" stuff like mathematics), was very widely used by 1980.
The reason that TeX caught on while n/troff didn't was that TeX was actually much easier to port: it may seem hard to believe now but Pascal compilers were much more widely available than C ones in the early 1980s, and the n/troff sources were restricted by AT&T's licenses to boot. I know because I ported TeX to VAX/VMS in 1982 so that I could use it for my PhD thesis. (I still remember my first page of output, obtained by putting dots onto a sheet of paper with a pen plotter!)
Those are interesting comments. And a valiant effort for your thesis! (I suppose you found other means in the end, but I boggle at the idea of a whole thesis reastered by a pen plotter!).
The principal reason for the continuing popularity of (La)TeX is certainly the size of the development community; however, another major factor is that the TeX engine is almost totally bug-free: the only bug report discussed on the TeX-implementers' mailing list in the last couple of years is concerned with i8n issues and the trip test, which is certainly esoteric.
The only place that TeX falls short of n/troff+tbl and hence groff is in the setting of tables, in particular producing entries that span several rows. The pic and graph pre-processors are also more elegant solutions to some forms of graphical typesetting than the TeX-oriented equivalents.
Not forgetting that 'pic', as well as implementing a diagram description language (a sort of sophisticated LOGO), also incorporates a powerful numerical computation capability, as well as looping and branching constructs. You can therefore incorporate into your document source 'pic' statements which will read data from a file, perform computations on the data, and determine what form of graph shall be drawn and what annotations should appear on it (e.g. plotting a set of x-y data, estimating a straight-line fit, plotting the line, and labelling it with its equation; at the same time, the components of variance that would go into an analysis-of-variance table for the data can be computed, and made available to incorporate into a following Analysis of Variance Table formatted using 'tbl'; and all this on-the-fly while actually typesetting the document!).
Another feature of n/troff which I'm not aware of being part of TeX (could be wrong here and would welcome correction) is the possibility of planting a request into the document source to run an arbitrary command externally; that way, in the course of formatting the document, some really nasty job can be farmed out to the operating system and its results read back in to the document. Mind you, this is definitely Unix-think!
Having said all this, I applaud your group's efforts in entering the book text: I'd hate to see troff disappear totally. Remember: the main advantage of the Unix approach is that it gives us all choice.
Thanks! And while troff my be something of a dinosaur, I don't think it's in much danger of extinction at present. It's much more than a man-page formatter.
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 167 1972 Date: 17-Mar-03 Time: 16:24:29 ------------------------------ XFMail ------------------------------