TeXhax Digest Friday, April 21, 1989, Volume 89 : Issue 37 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: TeX and GFtoPK for VMS Metafont to Xerox 4050 conversion? Re: BibTeX--altering a .bst file DVIJEP-to-QMS/HP Incompatibility WANTED: MF font for International Phonetic Alphabet Do *not* use cmmf on latex fonts cmmf on latex symbol fonts Equation numbering by section Re: Dimensions in options files (LaTeX) Bug in the TeXbook?? TeX fil\relax feature, not bug Re: Line breaking within a citation What is \everycr all about? Various queries re: PC/TeX Problem with TeX \write ------------------------------------------------------------------------------- Date: Sat, 15 Apr 89 12:17:20 pdt From: louis mcdonald Subject: TeX and GFtoPK for VMS Keywords: TeX, gftopk, VMS I am looking for the latest versions of TeX, and GFtoPK for VMS. On score.stanford.edu, the VMS-CHANGE files do not seem to be insync with the WEB files (for TeX). There is no GFtoPK.VMS-CHANGES for GFtoPK on score.standford.edu. Thanks. Louis McDonald Company: Hughes Aircraft - EDSG; El Segundo, CA 90245 -------------------------------------------------------------------- Date: Wed, 12 Apr 89 17:07:12 CDT From: DugalJP Subject: Metafont to Xerox 4050 conversion? Keywords: METAFONT, Xerox 4050 We have TeX running on an IBM VM/CMS system, and would like to use it with a Xerox 4050 laser printer. To this end we have ordered a driver from Texas A & M. I was wondering about using Metafont to produce fonts to be used in the 4050 printer. Has this been done? The 4050 accepts MSDOS-formatted floppies on which fonts have been placed by their development package. I'd like to be able to take Metafont output and transmogrify it into Xerox format. Anyone have any comments? We have several Unix systems with Metafont too, if that helps. Thanks! James Dugal, jpd@usl-pc.usl.edu ----------------------------------------------------------------------------- Date: Fri, 14 Apr 89 15:36:39 MDT From: mcginley@boulder.Colorado.EDU (Lynda McGinley) Subject: Re: BibTeX--altering a .bst file Keywords: BibTeX i am trying to alter .bst file to have the year printed with a colon after, and not a comma. any ideas? thanks lynda mcginley -------------------------------------------------------------------------- Date: Fri, 14 Apr 89 11:23 EST From: Subject: DVIJEP-to-QMS/HP Incompatibility Keywords: dviware, HP LaserJet Has anyone experienced any problems using Beebe's DVIJEP .dvi converter on the QMS PS/810 in the HP LaserJet+ emulation? I have printed .jep files on both the LaserJet+ and Series II successfully. The same file printed on the QMS in HP emulation gives overlapped characters in the printers' default courier font. This is the only HP incompatibility we have experienced with this printer. Is there a remedy? Salvatore Saieva Queens College Academic Computer Center SAIEVA@QCVAX SAIEVA%QCVAX.BITNET@CUNYVM.CUNY.EDU ------------------------------------------------------------------------------ Date: Thu, 13 Apr 89 14:01:59 EDT From: Greg McGary Subject: WANTED: MF font for International Phonetic Alphabet Keywords: MF, fonts I'm searching for METAFONT source and/or 300dpi raster-files and font-metrics for a font containing symbols of the international phonetic alphabet. Does anyone have such a thing? Thanks in advance, Greg McGary 4201 University Drive #102, Durham, NC 27707 voice: (919) 490-6037 {decvax,hplabs,seismo,mcnc}!duke!gm data: (919) 493-5953 gm@cs.duke.edu ---------------------------------------------------------------------------- Date: Wed, 12 Apr 89 23:00:31 -0700 From: Tomas G. Rokicki Subject: Do *not* use cmmf on latex fonts Keywords: LaTeX, fonts Especially circle and line. You'll break them, but you won't know it unless you observe the subtle misalignment problems. Please. -tom ------------------------------------------------------------------------------- Date: Sat, 15 Apr 89 22:24 PDT From: mackay@cs.washington.edu Subject: cmmf on latex symbol fonts Keywords: LaTeX, fonts I acknowledge with some embarrassment that the UnixTeX distribution has for years sent out bad fonts with dx=0. These have just been corrected and will be available for FTP from cftp/tex at june.cs.washington.edu. For those who cannot FTP, do not despair. The fonts are relatively short and simple, and can be made up correctly in very little time. Your base file should include plain.mf and your local mode-def file, but *not* cmbase.mf. You might keep that base file as plain.base, to distinguish it from cmplain.base. Email: mackay@june.cs.washington.edu Pierre A. MacKay Smail: Northwest Computer Support Center TUG Site Coordinator for Lewis Hall, Mail Stop DW10 Unix-flavored TeX University of Washington Seattle, WA 98195 (206) 543-6259 ----------------------------------------------------------------------------- Date: Sat, 15 Apr 89 15:42 EDT From: "Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU)" Subject: Equation numbering by section Keywords: style file, equations A colleague was writing an article that contained a very large number of equations. The "article" style was clearly the most appropriate, but because of the large number of equations it was difficult to find any one of them by its "article-wide" number. What seemed to work better was to number the equations within sections, as the "book" and "report" styles number them within chapters. The following style file causes exactly that to happen. While it is intended for use with the "article" style, I suppose you *could* use it with any style. (In something like "book", you might want to change \theequation to include the chapter number, too.) -- Jerry % seceqn.sty % % Substyle file for use with "article" to cause equations to be numbered % within sections. % % 13 Apr 89 Jerry Leichter \typeout{Document Option `seceqn': 13 Apr 89} \@addtoreset{equation}{section} %Make equation=0 when section steps \def\theequation{\thesection.\arabic{equation}} %How an equation number looks ------------------------------------------------------------------------------- Date: Wed, 12 Apr 89 15:32 EST From: Paul Davis Subject: Re: Dimensions in options files (LaTeX) Keywords: LaTeX, dimensions If I try to set a dimen to be a rubber length in a file input as a result of an documentstyle option, I get an LaTeX's @nodocument error. Since it appears possible to do such a thing in a true style file, it appears there's something special about the processing of an option file. This is a pain, since I'm trying to parametize sectional skips for an option which puts section headings in the margin. Any ideas or help anyone ? thanks Paul Paul Davis at Schlumberger Cambridge Research "to shatter tradition makes us feel free ..." ----------------------------------------------------------------------------- Date: Fri, 14 Apr 89 17:49:34 cst From: convex!txsil!jon@Central.Sun.COM (Jonathan Kew) Subject: Bug in the TeXbook?? Keywords: bug, TeXbook I just noticed what looks to my inexpert eye like a bug in The TeXbook. It doesn't appear on the errata pages I have, so I wondered if anyone else has noticed it, or if I am just confused. On page 385, about lines 7-9: ...for example, the macros \beginbox{\setbox0=\hbox\bgroup} \def\endbox{\egroup\copy0 } Surely the `\beginbox...' line should begin with `\def\beginbox...'? Jonathan Kew jon@txsil.uucp Summer Institute of Linguistics (...!convex!txsil!jon) 7500 West Camp Wisdom Road Dallas, TX 75236 (214) 709-2418 ----------------------------------------------------------------------------- Date: Fri, 14 Apr 89 17:48:48 cst From: convex!txsil!jon@Central.Sun.COM (Jonathan Kew) Subject: TeX fil\relax feature, not bug Keywords: TeX, fil\relax >From TeXhax, 89.020: > As a three year user (and addict) of TeX, > I am extremely reluctant to call something a bug, > but can someone explain to me what is happening in > the following example? For some reason the 'L' of 'Left' > is attached to the '1fil'. This has been observed with TeX > on Atari, Macintosh and Vax. I can't figure out why this is > legal according to the rules in the last chapters of the > TeX-book. > > \hbox to \hsize,A\hskip 0cm plus 1fil Left or Right > \hskip 0cm plus 1fil B} I was intrigued by Victor Eijkhout's observation in issue 20 (I get TeXhax indirectly, hence the delayed response) that ...plus 1fil Left... leads to the `L' being taken as part of the stretch specification. Looking in TeX: The Program, I found in section 454 the comment: A specification like `filllll' or `fill L L L' will lead to two error messages (one for each additional keyword "l"). cccccccccccccccccccccc This is the clue: beyond the initial `fil', each `l' is being scanned by TeX as a separate keyword, and leading spaces are ignored (similarly to spaces between the number and `fil'). Looking in The TeXbook, chapter 24, we find the syntax rules: --> --> fil | l It seemed to me at first glance that this did not provide for optional spaces between the `fil' and a following `l'; however, on page 268, we read: We shall use a special convention for keywords, since the actual syntax of a keyword is somewhat technical. Letters in typewriter type like `pt' [or like `fil' and `l' in our case] will stand for

Thus the syntax *does* allow for optional spaces both before the `fil' (one keyword) and before each additional `l' (each is a new keyword). So Victor's observation is a feature, not a bug; like The TeXbook's `weird error' it calls for `\relax'. Jonathan Kew jon@txsil.uucp Summer Institute of Linguistics (...!convex!txsil!jon) 7500 West Camp Wisdom Road Dallas, TX 75236 (214) 709-2418 --------------------------------------------------------------------------- Date: Fri, 14 Apr 89 21:59:44 PDT From: Donald_Arseneau@mtsg.ubc.ca Subject: Re: Line breaking within a citation Keywords: LaTeX, citations Here is my style file for numeric citations. Not only does it allow line breaks, but it shortens long lists of citations to make those breaks unnecessary: % - - - - - - CITE.STY - - - - - - % % Replacement for \@citex % % Allow, but strongly discourage, line breaks within a long % series of citations. Compress lists of successive numbers % to one number range, e.g., 5,6,7,8,9 --> 5--9. Compatible % with versions of \@cite that use exponents. % -- Donald Arseneau 1989 % \def\@citex[#1]#2{% \if@filesw \immediate \write \@auxout {\string \citation {#2}}\fi \@tempcntb\m@ne \let\@h@ld\relax \def\@citea{}% \@cite{% \@for \@citeb:=#2\do {% \@ifundefined {b@\@citeb}% {\@h@ld\@citea\@tempcntb\m@ne{\bf ?}% \@warning {Citation `\@citeb ' on page \thepage \space undefined}}% % else {\@tempcnta\@tempcntb \advance\@tempcnta\@ne \@tempcntb\number\csname b@\@citeb \endcsname \relax \ifnum\@tempcnta=\@tempcntb % Number follows previous--hold on to it \ifx\@h@ld\relax % % first pair of successives \edef \@h@ld{\@citea\csname b@\@citeb\endcsname}% \else % % compressible list of successives \edef\@h@ld{\ifmmode{-}\else--\fi\csname b@\@citeb\endcsname} \fi \else % non-successor--dump what's held and do this one \@h@ld\@citea\csname b@\@citeb \endcsname \let\@h@ld\relax \fi}% \def\@citea{,\penalty\@highpenalty\,}% }\@h@ld }{#1}} % % % Example of alternate \@cite macro using exponents: % %\def\@cite#1#2{{$~{#1}$\if@tempswa , #2\fi }} % ------------------------------------------------------------------------------ Date: Fri, 14 Apr 89 20:53:37 CDT From: svb@cssun.tamu.edu (Stephan v. Bechtolsheim) Subject: What is \everycr all about? Keywords: TeX, \everycr What is \everycr all about? If instead of \everycr = {\a\b\c} I defined \def\CR{\cr\a\b\c} and ended table rows with \CR instead of \cr then this would work as well, wouldn't it? Am I missing something? I am aware of the fact that \def\CRCR{\crcr\a\b\c} would not work to replace \crcr in the previous sense, and that is where \everycr comes in! Along the same lines: why do people end preambles of tables with \crcr instead of \cr. Any difference there? Stephan Bechtolsheim. ------------------------------------------------------------------------------- Date: WED 12 APR 1989 21:10:00 EST From: INHB000 Subject: Various queries re: PC/TeX Keywords: PC/TeX I use PC/Tex by Personal TeX. Can anyone tell me what the significance of the report at the end of the log file of the form: 18i,18n,46p,247b,400s stack positions out of 200i,40n,60p,1024b,600s means? I am using the version identified as: This is TeX, Version 2.1 (preloaded format=lplain 88.11.2) 6 APR 1989 16:35 (PCTeX 2.10, (c)Personal TeX, Inc 1987. S/N 10595) My coauthor is using a later version identified as: This is TeX, Version 2.93 (preloaded format=lplain 88.2.4) 11 APR 1989 21:56 (PCTeX 2.931, (c)Personal TeX, Inc 1988. S/N 50126) We compiled nearly identical files (a book of approximately 350 pages) through Latex. This book contains just over 600 cross references. The first time we ran it, there was no problem. I ran it a second time (to resolve the cross references) I had no problem. The end report was: Here is how much of TeX's memory you used: 1161 strings out of 1346 9127 string characters out of 13716 65277 words of memory out of 65535 2958 multiletter control sequences out of 3000 20139 words of font info for 76 fonts, out of 23678 for 127 56 hyphenation exceptions out of 307 18i,18n,46p,247b,400s stack positions out of 200i,40n,60p,1024b,600s and although I was clearly near the limit on a couple of these memory items, it still fit. When my coauthor ran it a second time through his later version, it crashed when loading the .aux files with the report: (C:\PCTEX\CTCS.AUX (Y:\CTCS0102.AUX) (Y:\CTCS0304.AUX) (Y:\CTCS0506.AUX) (Y:\CTCS0708.AUX) (Y:\CTCS0912.AUX) (Y:\CTCS1315.AUX ! TeX capacity exceeded, sorry [save size=600]. \@ifundefined ...dafter \ifx \csname #1\endcsname \relax #2\else #3\fi \newlabel ...arning {Label `#1' multiply defined}} \global \@namedef {r@#1}{#2} l.79 \newlabel{refobjconst}{{13.6.6}{287}} If you really absolutely need more capacity, you can ask a wizard to enlarge me. Here is how much of TeX's memory you used: 1058 strings out of 1596 8432 string characters out of 13918 47393 words of memory out of 65535 2914 multiletter control sequences out of 3000 19869 words of font info for 75 fonts, out of 23726 for 127 56 hyphenation exceptions out of 307 11i,2n,15p,246b,601s stack positions out of 200i,40n,60p,1024b,600s I should explain that the book is actually broken into six large files and a master load file; that is why there are seven .aux files. It crashed on the last .aux file and claimed there were too many save stack positions used. In my version, only 400 save stack positions were used. What is the save stack? What are the other stacks? And why are more used in the later version of TeX? And outside of using fewer cross references, what can be done about it? I would appreciate a direct answer as I seem to get TeXhax only sporadically since it moved to Washington. Michael Barr ----------------------------------------------------------------------------- Date: Fri, 14 Apr 89 15:34 CDT From: <8055FERG%MUCSD.BITNET@Forsythe.Stanford.EDU> (Bob Ferguson) Subject: Problem with TeX \write Keywords: TeX, \write Dear TeXHAX, I have been attempting to adapt some INDEXING macros which I found in TUGBOAT Vol 1 Num 1. The macros by Winograd and Paxton were written in the old days and I have been able to adapt them except for one small problem as follows: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %VERSION #1 \gdef\lessthan{<} \gdef\angbr#1{<#1>} %\chcode'74=13 % I think this line translates to the following but it % doesn't seem to work for me %\catcode`\<=13 % this allows < to stand for \< and gives us an alternative % way to put a < into an output (including a write) \def \<#1>{} % ignores index terms when index is not being generated. \gdef\openIndex#1 {\openout1=#1.INDEX \gdef\<##1##2>{\if .##1{\doIndex{N;P}{##2}}\else {\if :##1{\doIndex{B;P}{##2}}\else {\if -##1{\doIndex{N;S}{##2}}\else {\if =##1{\doIndex{B;S}{##2}}\else {\if '##1{\doIndex{N;E}{##2}}\else {\if |##1{\doIndex{N;F}{##2}}\else {\if !##1{\doIndex{B;F}{##2}}\else {\if ,##1{\doIndex{N;N}{##2}}\else {\if ;##1{\doIndex{B;N}{##2}}\else {\if *##1{\doAuthor##2>}\else {\if +##1{\doCross##2>}\else {\error}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}} \gdef\doAuthor #1;#2>{\doIndex{N;P}{#1, #2}} \gdef\doIndex#1#2{\write1 {\angbr{\pageno;#1;#2}}} \gdef\doCross#1=#2>{\write1 {\angbr{#2;N;C;#1}}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% The above will produce the following: <\pageno ;N;P;Russia> <\pageno ;N;P;France> <\pageno ;N;P;France> <\pageno ;N;P;France> <\pageno ;N;P;France> <\pageno ;N;P;Austria> <\pageno ;N;P;Prussia> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %VERSION #2 \gdef\lessthan{<} \gdef\angbr#1{<#1>} %\chcode'74=13 % I think this line translates to the following but it % doesn't seem to work for me %\catcode`\<=13 % this allows < to stand for \< and gives us an alternative % way to put a < into an output (including a write) \def \<#1>{} % ignores index terms when index is not being generated. \gdef\openIndex#1 {\openout1=#1.INDEX \gdef\<##1##2>{\if .##1{\write1 {\doIndex{N;P}{##2}}}\fi}}%\else %{\if :##1{\doIndex{B;P}{##2}}\else %{\if -##1{\doIndex{N;S}{##2}}\else %{\if =##1{\doIndex{B;S}{##2}}\else %{\if '##1{\doIndex{N;E}{##2}}\else %{\if |##1{\doIndex{N;F}{##2}}\else %{\if !##1{\doIndex{B;F}{##2}}\else %{\if ,##1{\doIndex{N;N}{##2}}\else %{\if ;##1{\doIndex{B;N}{##2}}\else %{\if *##1{\doAuthor##2>}\else %{\if +##1{\doCross##2>}\else %{\error}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}\fi}} %\gdef\doAuthor #1;#2>{\doIndex{N;P}{#1, #2}} \gdef\doIndex#1#2{{\angbr{\pageno;#1;#2}}} %\gdef\doCross#1=#2>{\write1 {\angbr{#2;N;C;#1}}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% The above will produce the following: {<\pageno ;N;P;Russia>} {<\pageno ;N;P;France>} {<\pageno ;N;P;France>} {<\pageno ;N;P;France>} {<\pageno ;N;P;France>} {<\pageno ;N;P;Austria>} {<\pageno ;N;P;Prussia>} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% What I want is the following: <1;N;P;France> <2;N;P;France> <10;N;P;Austria> <15;N;P;Prussia> For one thing, I do not understand why version #2 adds an extra set of braces to the output, but first and foremost I can not seem to get the macro to place "1", "2", etc. in the output rather than "\pageno". If I replace "\pageno" with "\count0", the same thing happens except that I get the word "\count 0" in the output. I am hopeful someone can tell me what I am missing, in order to get this macro working. Thanks in advance for your consideration. ------------------------------------------------------------------------------ MM MM UU UU Robert A. Ferguson Systems Analyst MMM MMM UU UU Marquette University User Services MMMM MMMM UU UU Computer Services Division MM MMMM MM UU UU 517 N. 14th Street MM MM UU UU Milwaukee, WI 53233 MM MM UUU UUU Phone: (414) 224-3769 MM MM UUUUUU BITNET: 8055FERG@MUCSD Marquette University INTERNET: 8055FERG%MUCSD.BITNET@CUNYVM.CUNY.EDU UUCP: ...psuvax1!mucsd.bitnet!8055ferg ------------------------------------------------------------------------------- %%% 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@xxx %%% where xxx is the nearest geographical site in the %%% tree shown below %%% SUBSCRIBE TEX-L % to subscribe %%% or UNSUBSCRIBE TEX-L %%% Here is the BITNET re-distribution tree as shown in a recent %%% REVIEW (The geography is guessed at from the subscription list) %%% %%% CLVM TAMVM1 FINHUTC %%% | | (Finland, UK, Scand, CERN) %%% | | | %%% TeXhax ----> UWAVM ----- MARIST ----- EB0UB011 ----- BNANDP11 %%% | (France,Italy,Spain) (Belgium) %%% | | %%% UBVM HEARN --- DEARN %%% (Netherlands) (Germany) %%% %%% Internet: 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 (2.98 coming) metafont 1.7 %%% plain.tex 2.94 plain.mf 1.7 %%% 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 %%% AmSTeX 1.1d %%%\bye %%% End of TeXhax Digest ************************** -------