TeXhax Digest Friday, February 17, 1989 Volume 89 : Issue 13 Moderators: Tiina Modisett and Pierre MacKay %%% The TeXhax digest is brought to you as a service of the TeX Users Group %%% %%% in cooperation with the UnixTeX distribution service at the %%% %%% University of Washington %%% Today's Topics: BITNET at last! For those who don't have access to TeX for PCs on the net.... Needed: Versions of Latex for Macs TeX spelling checker program Macroes for Interval-symbols hamburgefonstiv and its origination PostScript outline fonts information METAFONT, 118dpi fonts - HELP ! Where can one get a good gothic and script TeX font? Re: TeXhax Digest V89 #7 (determining a document style) Re: Metafont problem Bitmap dot-density conversion Re: "official" changes to TeX Needed: Converter between TeX and Interleaf Needed: DVI2PS for the IBM PC Request for Postscript Drivers Summary DVI-to-Tektronix 4010/4014 and HPGL? The Clarendon Press has been put to bed ---------------------------------------------------------------------------- Date: Tue, 7 Mar 89 06:14:25 PST From: mackay@cs.washington.edu Subject: BITNET at last! Several sites have reported that the BITNET subscriptions are at last getting through. Many have helped mw with this, but especial thanks go to Thomas Habernoll, who in the course of removing DB0TUI11 from the distribution tree did hours of additional work on all the remaining peers, and most especially the local one at UWAVM to get them back into shape. Some day I will learn just what changed between December 1988 and January 1989 to make everything close down. Meanwhile greetings to you all. I shall send out issues 1 through 11 in short order. I am afraid that will mean duplicates for some who have got their subscriptions by other routes, but it is the only way to restore the archives for everyone. Here is the present organization for BITNET redistribution. * CLVM TAMVM1 FINHUTC * | | | * TeXhax ----> UWAVM ----- MARIST ----- EB0UB011 ----- BNANDP11 * | | * UBVM HEARN --- DEARN Now that this problem is solved, we can catch up and get the whole list more current. Again, my sincerest apologies to all the subscribers to the BITNET side. I was floundering in ignorance, and unfortunately even the Internet side was not entirely without its problems. Pierre MacKay ---------------------------------------------------------------------------- Date: Tue, 7 Feb 89 03:41:23 EST From: jonradel@icecream.Princeton.EDU (Jon Radel) Subject: For those who don't have access to TeX for PCs on the net.... Keywords: general, TeX, PCs >I recently downloaded DosTeX from the pc file server and am wondering >about locating some extra fonts, as the standard distribution is a bit >skimpy. Are there any bitnet file servers, or just any vendor who will >distribute fonts cheaply? Time to introduce myself again. As a service for people who do not have decent access to TeX on PCs material on the net, I distribute much of that material on floppies for a handling charge. That includes the 75 font, 5 mag step collection for a couple of the more popular printers, two versions of TeX, and a variety of smaller items. For various reasons, I do all my dealings on this matter by "snail" mail, so you have to send me a self-addressed envelope to get the list of material that I have. 45 cents postage inside the U.S. 4 International Reply Coupons or US$1.60 for airmail elsewhere, half that for surface (and Canada/Mexico, where surface is air as far as the USPS is concerned). Jon Radel P.O. Box 2276 Reston, VA 22090 U.S.A. Jon Radel --------------------------------------------------------------------------- Date: Tue, 7 Feb 89 14:47:14 PST From: cerbone giuseppe Reply-To: cerbone@CS.ORST.EDU Subject: Needed: Versions of Latex for Macs Keywords: LaTeX, Macs I am looking for version(s) of Latex that run on Macintosh. I would appreciate references to people / institution (s) that have or know about such products. Please e- mail your answer to me . Thanks to everyone US-mail --- | --- e-mail --- Giuseppe CERBONE | Domain: cerbone@cs.orst.edu OREGON STATE UNIVERSITY | CSNET : cerbone%cs.orst.edu@relay.cs.net Computer Science Building 100 | UUCP : {hp-pcd, tektronix}!orstcs!cerbone Corvallis, OR 97331 - 3902 (USA)| ---------------------------------------------------------------------------- Date: Wed, 8 Feb 89 17:42:26 -0800 From: Tomas G. Rokicki Subject: TeX spelling checker program Keywords: spell checker, TeX Here's another hack. For those without a TeX-capable spelling checker, the following program may help. To use, do something like: unretex myfile.tex myfile.utx spell myfile.utx unretex -r myfile.tex myfile.utx myfile.ntex This will create a file called `myfile.ntex' which is the spelling- corrected version of myfile.tex. If you can run spell as a pipe, you can simply unretex myfile.tex | spell | unretex -r myfile.tex > myfile.ntex Enjoy! cut here /* * Strips, and then replaces, TeX commands in a file. * Very simple; completely ignores math mode and other * things. Strips all alphanumerics, and `=', `-', * even though TeX commands are alphabetic only, so we can * filter \hsize=12in (for instance) automatically. * * Some more public domain code from Radical Eye Software. */ #include "stdio.h" char iline[255], oline[255], rline[255] ; FILE *orig, *inp, *out ; /* * This subroutine walks iline, stripping everything of * note by changing them into 1's. Note that the leading * backslash is left as a marker for where to reinsert * the commands later. */ char strip[256] ; init() { register int i ; for (i='a'; i <= 'z'; i++) strip[i] = 2 ; for (i='A'; i <= 'Z'; i++) strip[i] = 2 ; strip['@'] = 2 ; for (i='0'; i <= '9'; i++) strip[i] = 1 ; strip['='] = 1 ; strip['-'] = 1 ; strip['.'] = 1 ; } error(s) char *s ; { fprintf(stderr, "unretex: %s\n", s) ; if (*s == '!') exit(1) ; } stripline() { register unsigned char *p ; /* * This is the `non-stripping' loop. Note that we only strip * real control sequences with alphabetics, rather than any * thing that starts with a backslash. Thus, \\ remains. * We've got to make sure to handle things like \\test but * \\\test correctly. Also, \abc\def. I think we do. */ p = (unsigned char *)iline ; p[strlen(p)+1] = 0 ; nonstripping: if (*p == 0) return ; if (*p == '\\') if (strip[p[1]] == 2) goto stripping ; else *++p = 1 ; p++ ; goto nonstripping ; /* * This is the `stripping' llop. */ stripit: if (*p == 0) return ; if (strip[*p] == 0) goto nonstripping ; *p = 1 ; stripping: p++ ; goto stripit ; } mputc(c) int c ; { if (putc(c, out) == EOF) error("! out of disk space") ; } mputs(s) register char *s ; { while (*s) { if (*s != 1) mputc(*s) ; s++ ; } mputc(10) ; } mfixline(o, s, r) register char *o, *s, *r ; { while (*r != 0) { mputc(*r) ; if (*r == '\\') { while (*s != 1 && *s != 0) { s++ ; o++ ; } if (*s == 0) error("! extra backslash in respelled file") ; while (*s == 1) { mputc(*o) ; s++ ; o++ ; } } r++ ; } while (*s != 1 && *s != 0) s++ ; if (*s != 0) error("! missing backslash in respelled file") ; mputc(10) ; } int mgets(s, f) register char *s ; register FILE *f ; { register int i, j ; i = 0 ; while ((j = getc(f)) != EOF) { if (j == 10) { *s = 0 ; return(1) ; } *s++ = j ; i++ ; if (i > 250) error("! input line too long") ; } if (i > 0) return(1) ; else return(0) ; } FILE *myfopen(file, mode) char *file, *mode ; { register FILE *f ; f = fopen(file, mode) ; if (f == NULL) { sprintf(iline, "! couldn't open %s mode %s\n", file, mode) ; error(iline) ; } return(f) ; } main(argc, argv) int argc ; char *argv[] ; { int recover = 0 ; if (argc > 1 && argv[1][0] == '-' && (argv[1][1] == 'r' || argv[1][1] == 'R')) { recover = 1 ; argc-- ; argv++ ; if (argc < 2) error("! need original TeX file as argument in recover mode") ; orig = myfopen(argv[1], "r") ; argc-- ; argv++ ; } if (argc > 1) { inp = myfopen(argv[1], "r") ; argc-- ; argv++ ; } else inp = stdin ; if (argc > 1) { out = myfopen(argv[1], "w") ; argc-- ; argv++ ; } else out = stdout ; init() ; if (recover) { while (mgets(rline, inp)) { if (mgets(iline, orig) == 0) error("! line count mismatch") ; strcpy(oline, iline) ; stripline() ; mfixline(oline, iline, rline) ; } if (mgets(iline, orig) != 0) error("! line count mismatch") ; } else { while (mgets(iline, inp)) { stripline() ; mputs(iline) ; } } exit(0) ; } -------------------------------------------------------------------------- Date: Tue, 7 Feb 89 10:45 CET From: WITWAA%HLERUL2.BITNET@uwavm.acs.washington.edu Subject: Macroes for Interval-symbols Keywords: macros, interval symbols Leiden,february 7 1989 Hello TeXnicians, Did anyone ever made macroes in Plain-TeX for the rounding INTERVAL-symbols used in intervalarithmetic (see e.g. the book "A New Approach to Scientific Computation" by U.W.Kulisch and W.L.Miranker, pp. 18 and 85). I just started in working with Plain TeX and tried without much success to make macroes for those symbols. I would be very glad if someone could send me suitable macroes. J.A. van de Griend Department of Mathematics and Computer Science Leiden University Niels Bohrweg 1 Postbox 9512 2300 RA Leiden The Netherlands WITWAA@HLERUL2.BITNET ------------------------------------------------------------------------------- Date: Tue, 7 Feb 89 00:58:25 EST From: ken@cs.rochester.edu Subject: hamburgefonstiv and its origination Keywords: query Page 341 of the METAFONT book: \bigtest gives you the works, plus a mysterious word that is traditional in type specimens: \def\bigtest{\sample hamburgefonstiv HAMBURGEFONSTIV\par ...} (end quote) Anybody know how the tradition of using this word started? Ken -------------------------------------------------------------------------- Date: Thu, 09 Feb 89 13:42:44 CST From: Don Hosek Subject: PostScript outline fonts information Keywords: PostScript, fonts, METAFONT I just got off the phone talking to Barry Smith about the PostScript outline fonts he announced at the TUG meeting last August. They are currently being shipped _only_ in Mac-readable format (*sigh*), but they plan on making the fonts available for other machines in the future. My suspicions about outline fonts at 300dpi were confirmed: they don't look as good as an MF-generated raster (chalk one up for Metafont). As I've said before, the reason that outline fonts look so good on PostScript printers is because of the choice of fonts (just try and find a hairline). I'm planning on calling Projective Solutions to find out what the story is on the program for the conversions (apparently it's a generic bitmap->outline system, i.e., it probably does NOT read MF output directly) -dh --------------------------------------------------------------------------- Date: Thu, 9 Feb 89 08:01 EDT From: Paul Davis Subject: METAFONT, 118dpi fonts - HELP ! Keywords: METAFONT, 118dpi, LaTeX Can somebody tell me what I need to do (step-by -step) or where to find what to do to accomplish the following simple operation: generate a full set of fonts for LaTeX at 118dpi We have a number of previewers here that need these fonts, and for the life of me, I can't even seem to begin on the task. What would be even nicer is if someone wants to *mail* these too me, but I don't see that as terribly likely. thanks as usual, Paul Paul Davis at Schlumberger Cambridge Research "to shatter tradition makes us feel free ..." --------------------------------------------------------------------------- Date: Tue, 07 Feb 89 11:17:15 CST From: Rob Smith Subject: Where can one get a good gothic and script TeX font? Keywords: TeX fonts, gothic, script The subject pretty much says it all. Please mail directly to me, I do not subscribe to this list. Thanks, Rob. --------------------------------------------------------------------------- Date: Thu, 9 Feb 89 14:18:40 PST From: lamport@src.dec.com (Leslie Lamport) Subject: Re: TeXhax Digest V89 #7 (determining a document style) Keywords: TeX, document style Adrian F. Clark writes Is there any way one can determine the document style (article, etc) from within a style file specified as an option to the \documentstyle command, as in \documentstyle[mymacros]{article} and \documentstyle[mymacros]{letter} For example, for the letter style, mymacros.sty could define the return address (etc), but for articles, it could make all table-of-contents entries generate leaders. In a further message to me, he wrote My query on this topic came out in the UK about a week before the one in TeXhax; everyone concurs that there's no way of determining the argument of \documentstyle, even indirectly, from another style file. But everyone who mailed me said they wished it were possible. You can distinguish between article and report/book by checking if \chapter is defined. You can distinguish between them and more specialized styles like letter by checking if \section is defined. You could probably spot the letter style by checking if something like \opening is defined. It shouldn't be too hard to check whether 10pt, 11pt, or 12pt style is in use by checking \baselineskip or something. I'm completely mystified by why a style option should need to know exactly what style is being used. It may be important to know that whether or not there are chapters, but what good is it to know that the style's name is "report"? Any option that checked if the document style is named "report" isn't likely to do the right thing when used with some locally-defined style like "dod-report". Clark's reason is apparently laziness. Instead of writing one option for changing the format of the table of contents and another one for changing the formating of letters, he wants a single option that will work on all his documents. He can get the same effect by writing his own style that defines the style options "article", "report", and "letter"--those options would simply define the appropriate commands and read in the file article.sty, report.sty, or letter.sty. Then, instead of writing \documentstyle[myoptions]{article} or \documentstyle[myoptions]{letter} he could write \documentstyle[article]{myoptions} or \documentstyle[letter]{myoptions} The two approaches strike me as being equally silly. Leslie lamport -------------------------------------------------------------------------- Date: Tue, 07 Feb 89 03:57:23 -0500 From: Ken Yap Subject: Re: Metafont problem Keywords: METAFONT, spacing problem > I've been trying to create the BRIGHTON POLYTECHNIC logo with Metafont, but > cannot get the individual characters to space properly. All I end up with > is all the characters overlaying each other. Maybe your characters don't have the right width? Convert the tfm file to pl and see how wide TeX thinks your characters are. If that's not it, look to see if your \fontdimens are non-zero and resonable. Take a look at the example in appendix E of the METAFONTbook. ------------------------------------------------------------------------------- Date: Sun, 5 Feb 89 22:35 GMT From: Peter Flynn UCC Subject: Bitmap dot-density conversion Keywords: PK, PXL, GF, bitmap formats, conversion Please could someone give me the pointer to a clear definition of the structure of PK files. I badly need draft-quality 180dpi files of some old fonts which I only have at 120/240dpi (MF code has gone down a black hole and I've no time to rewrite it at the moment). I want to see if it is possible to rig a program to do a crude remap/compression job on the bitmap (doesn't matter if some pixels go astray and leave ragged edges, it's only for layout purposes). Now of course, *if* someone already has a prog to do this... Peter --------------------------------------------------------------------------- Date: Mon 6 Feb 89 14:23:43-EST From: b beeton Subject: Re: "official" changes to TeX Keywords: TeX, changes james walker asks (texhax 89 #6) where official changes to tex are to be posted, to the .web or to the .ch file. changes that knuth has made to fix bugs (these are the only changes he is making nowadays) are to be made directly to the .web file. knuth's changes are posted to the tex82.bug, mf84.bug and cm85.bug files; updates to these files are published in supplements to tugboat as soon after the fact as possible. i would like to point out, however, that occasionally knuth has made "cosmetic" changes for the sake of efficiency, and these are not posted in the .bug files (they're not bugs, after all; it's his decision to omit them from the .bug files). for this reason, i suggest that most users should periodically (at this point, that's probably every year or so) obtain an up-to-date version of the tailored distribution for their system; all changes to the .web files are communicated to as many distributors as i know about as soon as possible after knuth announces them. barbara beeton ------------------------------------------------------------------------- Date: Thu, 9 Feb 89 14:42:18 mst From: dhk%apollo-gate@LANL.GOV (David Kratzer) Subject: Needed: Converter between TeX and Interleaf Keywords: TeX, Interleaf Does anyone know of a converter between TeX and Interleaf. Public Domain or for a price? David, dhk@lanl.gov (arpanet), kratzer@lampf (bitnet) -------------------------------------------------------------------------- Date: Wed, 8 Feb 89 10:23 EST From: "Let us run into a safe harbor." Subject: Needed: DVI2PS for the IBM PC Keywords: query Sorry to bother everyone, but I only have access to Bitnet. Since I can't FTP, would some kind person please send me DVI2PS for the IBM PC through mail or uuencoded, if there isn't a mail server that could process my requests. Thanks, ___ _______) / )) _/_ ' // /--// , , , / o __ // , , __ __ ATUNG@AMHERST / (( _(_(__/_)__(__(__/ )_ // _(_(__/ )__(_/ Amherst College __/ Amherst,MA 01002 ------------------------------------------------------------------------------ Date: Mon, 6 Feb 89 13:16:47 PST From: dennis@yang.cpac.washington.edu (Dennis Gentry) Subject: Request for Postscript Drivers Summary Keywords: dviware, general information Could some kind (and knowledgeable) person please post a list of the available DVI to Postscript translators, their major differences, and where to get them? I am aware of the Nelson Beebe drivers and one other, but I would like to know of any advantages one driver might have over another. I remember someone answered a similar question six months or so ago, but the situation has probably changed enough since then to warrant a new posting. Thanks, Dennis Gentry ------------------------------------------------------------------------------- From: Jonathan Eisenhamer Date: Mon, 6 Feb 89 16:04:07 PST Subject: DVI-to-Tektronix 4010/4014 and HPGL? Keywords: dviware, previewers To All, Is there a DVI previewer for the Tektronix 4010/4014? Is there a DVI-to-HPGL (Hewlett-Packard Graphics Language) around out there? Thanks for your time, Jonathan Eisenhamer jon@astro.ucla.edu jon@uclastro.bitnet bonnie::jon (span 5.708) p.s. Please respond to me; I will summarize. -------------------------------------------------------------------------- Date: Tue, 7 Feb 89 14:11 From: Wujastyk (on GEC 4190 Rim-D at UCL) Subject: The Clarendon Press has been put to bed. Keywords: general This is not the standard TeXhax fare, I know, but I thought fellow readers might be interested and saddened: OXFORD TIMES -- Friday, February 3, 1989, front page: 200 lose jobs as OUP shut down press Oxford University Press printing works is to shut down after 500 years. Some 200 print workers will lose their jobs. The city's oldest and largest printing works has been making a loss for years. The forecast of a \pound 1.6m deficit in the current year was too much for the delegates, who announced the decision to a shocked workforce on Wednesday. Printing at the Walton Street premises now represents about six per cent of OUP's total international sales of \pounds 100m. Much of the company's and Oxford University's printing is done there as well as printing for other customers. In the last 18 years, staffing has been slashed from around 900 to the present level of 250. Now another 200 are set to go with the remaining 50 possibly redeployed. OUP Spokeswoman Ms. Kate Jury said: "We have made every effort to save the business over the years. "OUP as a group is no longer able to absorb losses on this scale without prejudicing the needs of its successful publishing operations." But she added: "I think this degree of closure has come as a surprise to the people working at the printing house." The entire workforce of the printing division was gathered in the Press's litho room to be told the bad news. It was broken by OUP chief executive Sir Roger Elliott, who took over the post last December, and finance director Mr Bill Andrewes. The Printer to the University Mr. David Stanford [one for you, Don!] was also present. Jobs affected run right across the board, from keyboard operators and compositors, machine printers and assistants, to bookbinders, clerical and management staff. A 90-day consultation period has now begun ... A small printing unit to cater for some international OUP and university needs will continue on the site, but as yet details are not known. OUP invested heavily in new equipment and machinery for the printing house to boost its strength in a highly competitive market. But the financial results were still poor and the Press carried a number of trading losses in the hope of a recovery. ... An OUP worker for the past 34 years, Mr Herby Gibbons, 58, of Cherry Close, Kidlington, said: "We were expecting something; but news of a complete close-down came as a devastation. After the meeting there was hardly anything said -- people just walked away in disbelief." "We have had a big investment of over \pounds 1 million over the past two years within OUP printing and we thought our future was virtually safe, but it turns out it was not," said Mr. Gibbons, a storeman in the bindery section. ------------------------------------------------------------------------------- %%% The TeXhax digest is brought to you as a service of the TeX Users Group %%% in cooperation with the UnixTeX distribution service at the %%% University of Washington %%% %%% Concerning subscriptions, address changes, unsubscribing: %%% BITNET: send a one-line mail message to LISTSERV@UWAVM %%% SUBSCRIBE TEXHAX % to subscribe %%% or UNSUBSCRIBE TEXHAX %%% %%% All others: send a similar one line mail message to %%% TeXhax-request@cs.washington.edu %%% Please be sure you send a valid internet address!! %%% in the form name@domain or name%routing@domain %%% and use the style of the Bitnet one-line message, so that %%% we can find your subscription request easily. %%% %%% All submissions to: TeXhax@cs.washington.edu %%% %%% Back issues available for FTPing as: %%% machine: directory: filename: %%% JUNE.CS.WASHINGTON.EDU TeXhax/TeXhaxyy.nn %%% yy = last two digits of current year %%% nn = issue number %%% %%% For further information about TeX Users Group services and publications %%% contact Karen at KLB@SEED.AMS.COM or write to TUG at %%% TeX Users Group %%% P.O. Box 9506 %%% Providence, R.I. 02940-9506 %%% Telephone (401) 751-7760 %%% %%% Current versions of the software now in general distribution: %%% TeX 2.95 metafont 1.7 %%% plain.tex 2.94 plain.mf 1.0 %%% LaTeX 2.09 ( 8/10/88) cmbase.mf see cm85.bug %%% SliTeX 2.09 gftodvi 1.7 %%% tangle 2.9 gftopk 1.4 %%% weave 2.9 gftype 2.2 %%% dvitype 2.9 pktype 2.2 %%% pltotf 2.3 pktogf 1.0 %%% tftopl 2.5 mft 0.3 %%% BibTeX 0.99c dvipage 3.0 %%% AmSTeX 1.1d %%%\bye %%% End of TeXhax Digest ************************** -------