TeXhax Digest Thursday, February 4, 1988 Volume 88 : Issue 10 [SCORE.STANFORD.EDU]TEXHAX10.88 Editor: Malcolm Brown Today's Topics: Common TeX, TeX in C, core dumping for pre-loaded versions cmtt10 gets bad pos at magstep2 (metafont) FiG Allowing Broken Lines within Citations Bugfixes for VMS DVITYPE plain bug (feature?) Aligning eqnarray terms - solution ACM style file Verityper VT600 (600 dpi) Laser Printer and TeX QMS PostScript Printer. TeX and DEC's (PostScript) PrintServer40 (LPS40) Font Families in LaTeX? Hanging Sectionhead Macro Re: subject lines and latex letter style ---------------------------------------------------------------------- Date: Tue, 26 Jan 88 23:16:52 CST From: William LeFebvre Subject: Common TeX, TeX in C, core dumping for pre-loaded versions I think I have this straight, now. There are two separate implementations of TeX in C, right? Specifically, there is one program called "Common TeX" which is either a reimplementation or a hand translation (not sure which) of the original TeX by Pat Monardo. Then there is the "TeX, C Version" obtained by running textoc on the tex.p produced by tangle-ing the original tex.web (*whew*), courtesy of Rokicki and Morgan. They both pass the trip test and thus have both earned the right to be called "TeX". I just saw a message posted to the Usenet comp.text list saying that, with Monardo's Common TeX, one should build a pre-loaded tex by merely forcing a core dump at the "*" prompt. Specifically, one ought not to do the conventional "\read0to\blort" trick like one must always do with the WEB/Pascal-based TeX. What about TeX in C? Should one not use the \read trick with that as well? I just recently installed TeX in C versions of everything and obtained my preloaded packages the usual way (using \read0to\blort). Everything seems to be working fine, but...should I have not done that? "Oh, you're so full of questions---you always have another question or two!" "I am? I do?" William LeFebvre Department of Computer Science Rice University ------------------------------ Date: 27 Jan 88 06:02:00 EST From: "DARREN STALDER" Subject: cmtt10 gets bad pos at magstep2 (metafont) On character 3 of cmtt10 I get several errors of bad pos and strange path. This happens when I attempt to compile the GF file for magstep 2. When the GF file is compiled for 10 pt., it works fine. The following are some of the errors I got..I am running VMS 4.7 with metafont 1.0. ] [2] [3] ! bad pos. ; pos->...urrentbreadth:errmessage"bad pos"; fi.fi(x(SUFFIX2)r-x(SUFFIX2... l.97 ...up crisp.nib; pos1(shaved_stem,90) ; pos2(hair,0); > 0 ENE 1 NNE 2 (NNW WNW) WSW 3 (WNW NNW) NNE 4 ENE 5 6 (ESE SSE) SSW 0 (SSE ES E) ! Strange path (turning number is zero). ; arm->...--z(SUFFIX4)0--z(SUFFIX3)r--cycle; else:filldraw.z(SUFFIX2)l--... l.99 arm(1,2,a,.4beak_darkness,.3beak_jut) ; % upper right arm and beak The path doesn't have a counterclockwise orientation, so I'll probably have trouble drawing it. Torin/Wolf/Darren Stalder Internet: DSTALDER@GMUVAX.GMU.EDU Bitnet: DSTALDER@GMUVAX ATTNet: 1-703-323-3569 UUCP: (dolqci | uunet!gmuvax2)!gmu90x!dstalder SNAIL: PO Box 405/Fairfax, VA 22030/USA ------------------------------ Date: Wed, 27 Jan 88 05:03 EDT From: DAVIS%M_BLUE%sdr.slb.com@RELAY.CS.NET Subject: FiG Does anyone know anything about FiG, a graphics editor for TeX, running under SunView (yuk!). I've been told its available via anonymoose ftp from sally.utexas.edu, but that doesn't help me very much, being on a non-Internet site. Availaibility, what it does, how big is it.... all this is sought after. Please mail me direct - if worthy, I'll summarize for TeXHaX. Paul Davis, Schlumberger Cambridge Research, PO Box 153 Cambridge, England davis%m_scrvx1%sdr.slb.com@relay.csnet (from arpa/csnet) davis%m_scrvx1%sdr.slb.com%relay.csnet@cunyvm (from bitnet/earn) dte: 234222300157 (via a PSDN such as JANET, PSS or Datex-P) ------------------------------ Date: Wed, 27 Jan 88 10:12:50 EST From: gil@svax.cs.cornell.edu (Gil Neiger) Subject: Allowing Broken Lines within Citations Does anyone know how to tell LaTeX to allow linebreaks within citations? I know how to allow it to break multiple citations across lines [Bozo88, Bozo89], but in a bibliography style in which citations have space [Bozo 1988] how can I allow a linebreak anywhere where a space appears? - Gil Neiger gil@svax.cs.cornell.edu ------------------------------ Date: Wed, 27 Jan 88 14:31 EST From: "Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU)" Subject: Bugfixes for VMS DVITYPE Enclosed below is an updated change file for DVITYPE on VMS. The first change is simply an update to match the latest version number string. The second fixes a problem that causes DVITYPE to be unable to open an TFM files unless you happen to have write access to them! BTW, the code for DVITYPE is full of remarks like "stupid VMS run-time bug" and "change me when bug is fixed". Anyone know anymore what bug was being worked around? This code is presumably obsolete, but without knowing what it was, it's impossible to know if it can be removed safely. -- Jerry %% Unfortunately, Jerry's file is too large for digest distribution. As %% usual, it is available for FTPing from machine [SCORE.STANFORD.EDU] %% under the name %% leichter.txh %% A copy has also been forwarded to TEX-L for BITNET access. Malcolm ------------------------------ Date: Wed, 27 Jan 88 16:13:58 EST From: Ray Hirschfeld Subject: plain bug (feature?) The plain format carefully uses macros with "@"'s in their names for internal purposes so that users won't clobber them. But I clobbered one. I abbreviated "without loss of generality" to \wlog, and got those words peppered throughout my output, once for each time a plain macro tried to write to the log file. Perhaps \wl@g should be added for \alloc@ and \newinsert to use instead of \wlog? Ray ------------------------------ Date: Wed, 27 Jan 88 13:40:30 pst From: hildum@iris.ucdavis.edu (Eric Hildum) Subject: Aligning eqnarray terms - solution Hello. Some time ago, I posted a note requesting some information on how to format complex equations in LaTeX. The specific problem was: given a set of equations, how to display them such that each term in the equation was lined up. Based on comments I received from various individuals, I generated the following solution: \documentstyle{article} % % % \begin{document} % % Define new macros to format equations. % \makeatletter \def\eqnfivearray{\stepcounter{equation}\let\@currentlabel=\theequation \global\@eqnswtrue \global\@eqcnt\z@\tabskip\@centering\let\\=\@eqncr $$\halign to \displaywidth\bgroup\@eqnsel\hskip\@centering $\displaystyle\tabskip\z@{##}$\hfil& \hfil${{}##{}}$& $\displaystyle{##}$& \hfil${{}##{}}$& $\displaystyle{##}$& \hfil${{}##{}}$& $\displaystyle{##}$& \hfil${{}##{}}$& $\displaystyle{##}$& \global\@eqcnt\@ne \hskip 2\arraycolsep \hfil${##}$\hfil &\global\@eqcnt\tw@ \hskip 2\arraycolsep $\displaystyle\tabskip\z@{##}$\hfil \tabskip\@centering&\llap{##}\tabskip\z@\cr} \def\endeqnfivearray{\@@eqncr\egroup \global\advance\c@equation\m@ne$$\global\@ignoretrue} \makeatother % This is some text to start the article. There are no sectioning commands, nor is there much of anything else but the following equations: \begin{eqnfivearray} f_0&+&2f_1&+&2f_2&+&\cdots&+&2f_N & = & h_0 \\ f_{a+2}&+&2f_{N+1}&+&2f_{N+2}&+&\cdots&+&2f_{2N} & = & h_1 \\ \omit\hfil\vdots\hfil&&\vdots&&\vdots&&&&\vdots & & \vdots \nonumber \\ f_N&+&2f_{2N}&+&2f_{3N+1}&+&\cdots&+&2f_{M-1} & = & h_N. \end{eqnfivearray} More text to finish the paragraph. % \end{document} The two macros are slight variations on those used for the eqnarray environment in LaTeX. The changes are: a)the name - which indicates the number of terms in the equation. b) the \hfil at the end of the first entry in the template (required to left justify the first terms). c) the repeating elements for the terms and operators between terms. There is one potential gotcha in this solution. You must ensure that the proper number of displayed elements (terms and operators) exist in each line. I'm not sure what will happen if you do not. I would welcome any suggestions regarding the coding of these macros, and hope that some of you might find it useful. Eric dehildum@ucdavis.ucdavis.edu (Internet) dehildum@ucdavis.bitnet (BITNET) ucbvax!ucdavis!dehildum (uucp) ------------------------------ Subject: ACM style file Date: 28 Jan 88 17:31:51 EST (Thu) From: chu@amvax.tn.cornell.edu I don't know if this is the right place to ask, but does anyone have on hand a LaTeX .sty file for publications to journals of the ACM? like acm.sty for example. I looked in the Rochester collection and they have acm.bst but not acm.sty. Thanks for your help. Clare ------------------------------ Date: Fri, 29 Jan 88 08:49:14 PST From: forrest@Csa1.LBL.Gov (Jon L Forrest) Subject: Verityper VT600 (600 dpi) Laser Printer and TeX We've just received two Verityper VT600's and we're checking them out with TeX. We're using a dvi2ps program which sends bitmaps to the printer. Using this program with the 300 dpi fonts we use with Imagens and Apples produces documents with 300 dpi quality which is no surprise. I'm in the process of generating 600 dpi fonts for the thing. To do so I just used the Imagen mode_def setting and changed the resolution from 300 dpi to 600 dpi. I'm not naive enough to think that this will result in the best fonts for the Verityper but it gives me somewhere to start. Does anyone have any mode_def suggestions or other words of wisdom? I'll be working with Doug Henderson, the TuG Metafont coordinator so I should be able to end up with a reasonable set of fonts. I'll be glad to post the results of this project to TeXhax. Jon Forrest Lawrence Berkeley Lab FORREST@LBL.GOV (internet) FORREST@LBL (bitnet) 415-486-4991 ------------------------------ Date: 28 Jan 88 22:29 +0100 From: Harald Hanche-Olsen Subject: QMS PostScript Printer. We have just recently got a new QMS PS-800+ laser printer (yes, that is the PostScript model). In addition to PS, it claims to have HP LaserJet+ compatibility (and also HPGL and Diablo). The problem is, we have not been able to produce TeX output on this animal yet. Before I go on, let me confess that we use PC/AT-compatible maskines running MS-DOS... We have a driver named DVILASER/HP for IBM-PC (Version 1.6 it says) by Textset, Inc. The laser printer does not seem to find the fonts that the driver tries to download - so the output gets all the wrong characters appearing in the right places. Apparently, the printer is not LaserJet+ Compatible. Simultaneously, the CS department here has got the same printer and a PostScript driver from (I believe but am not 100% certain) the same source. This does not produce output either - the printer just spits out cryptic error messages. Now, the Questions: 1. Does anyone out there in Netland produce TeX output on this printer? Using a PC running MS-DOS? Using what software? I am particularly interested in any iformation about how well it works with PostScript drivers. 2. In TeXhax 87#55 last summer, Rob Logan announced he had hacked dvi2ps for MS-DOS. A couple months later, a new version of dvi2ps was announced... Has this later version been hacked for MS-DOS? Or is *any* version of dvi2ps available in MS-DOS version? 3. In TeXhax 87#51, Clayton Elwell announces another dvi->ps converter. What is the status of this program? Is it available? 4. What about other dvi to ps drivers? Any info will be welcome... Please respond directly to me - I promise to make a (brief) summary for TeXhax... Harald Hanche-Olsen Uninett: hanche@runix.runit.unit.uninett Arpa : hanche%runix.runit.unit.uninett@tor.nta.no Bitnet : hanche@norunit.earn Bix : hanche Snail : Division of Mathematical Sciences The Norwegian Institute of Technology N-7034 Trondheim-NTH NORWAY Phone : +47-7-593515 ------------------------------ Date: 29-JAN-1988 18:18:49 GMT From: CHARLES%vax.oxford.ac.uk@NSS.Cs.Ucl.AC.UK Subject: TeX and DEC's (PostScript) PrintServer40 (LPS40) I am about to try and get a DVI driver working on DEC's PrintServer40 PostSCript-based laserprinter. I would appreciate any help from anyone who has already done this. --Charles Curran, Oxford Univ. Comp. Service, 13 Banbury Road, OX2 6NN, England. 'phone: +44 865 273269 Arpa: charles%vax.oxford@nss.cs.ucl.ac.uk EARN/BITNET: charles@vax.oxford.ac.uk / charles%oxford.vax@ac.uk UUCP: charles@oxcnvx.uucp ------------------------------ Subject: Font Families in LaTeX? Date: Fri, 29 Jan 88 13:46:04 -0800 From: kelem@aerospace.aero.org Has anyone designed for LaTeX something like the font families that exist in Scribe? It's important that when you're using the helvetica (sans serif) font family, going into emphasis {\em} gives the helvetica italics (oblique) rather than the Times-Roman italics. Similarly for bold and BOLD ITALICS. Similarly for font size changes---you don't necesarily want to change to Times-Roman when you issue a \small or \large request. What I'm looking for is a more complete font family definitions for the Computer Modern fonts and the LaserWriter+ fonts: AvantGarde, Bookman, Courier, Helvetica, NewCenturySchlbk, Palatino, and Times. Has anyone already done it? I started to do this for Helvetica by adding the following lines to lfonts.tex in order to create new families. It's not as general as one would like, but it gives us the ability to use \sfb for sans serif bold and \sfi for sans serif italic. (Note the commented out lines for Computer Modern/postscript fonts.) Steve Kelem kelem@aerospace.aero.org trwrb!aero!kelem %--%--%--%--%--%--%--%--%--%--%--%--% \newfam\sfbfam % \sfb is family 11 \newfam\sfifam % \sfi is family 12 \def\sfb{\protect\psfb} \def\sfi{\protect\psfi} % The following lines define the textfont, scriptfont, and scriptscript font % mappings for sizes 10, 11, and 12. \def\psfb{\fam\sfbfam\tensfb}\textfont\sfbfam\tensfb \scriptfont\sfbfam\sevsfb \scriptscriptfont\sfbfam\sevsfb \def\psfb{\fam\sfbfam\elvsfb}\textfont\sfbfam\elvsfb \scriptfont\sfbfam\ninsfb \scriptscriptfont\sfbfam\ninsfb \def\psfb{\fam\sfbfam\twlsfb}\textfont\sfbfam\twlsfb \scriptfont\sfbfam\ninsfb \scriptscriptfont\sfbfam\ninsfb \def\psfi{\fam\sfifam\tensfi}\textfont\sfifam\tensfi \scriptfont\sfifam\sevsfi \scriptscriptfont\sfifam\sevsfi \def\psfi{\fam\sfifam\elvsfi}\textfont\sfifam\elvsfi \scriptfont\sfifam\ninsfi \scriptscriptfont\sfifam\ninsfi \def\psfi{\fam\sfifam\twlsfi}\textfont\sfifam\twlsfi \scriptfont\sfifam\ninsfi \scriptscriptfont\sfifam\ninsfi % The following lines provide (postscript) fonts for some popular sizes. \font\sevsfb = psmhlvb at 7pt % PostScript Helvetica Bold \font\ninsfb = psmhlvb at 9pt \font\tensfb = psmhlvb at 10pt \font\elvsfb = psmhlvb at 11pt \font\twlsfb = psmhlvb at 12pt \font\sevsfi = psmhlvo at 7pt % PostScript Helvetica Oblique \font\ninsfi = psmhlvo at 9pt \font\tensfi = psmhlvo at 10pt \font\elvsfi = psmhlvo at 11pt \font\twlsfi = psmhlvo at 12pt % The following lines provide (Computer Modern) fonts for some popular sizes. %\font\fivsfb = cmssbx10\@ptscale5 % bold sans serif %\font\sixsfb = cmssbx10\@ptscale6 % bold sans serif %\font\sevsfb = cmssbx10\@ptscale7 % bold sans serif %\font\egtsfb = psmhlvb at 8pt % PostScript Helvetica Bold %\font\egtsfb = cmssbx10\@ptscale8 % bold sans serif %\font\ninsfb = cmssbx10\@ptscale9 % bold sans serif %\font\tensfb = cmssbx10 % bold sans serif %\font\elvsfb = cmssbx10 \@halfmag % bold sans serif %\font\twlsfb = cmssbx10 \@magscale1 % bold sans serif %\font\frtnsfb = cmssbx10 \@magscale2 % bold sans serif %\font\svtnsfb = cmssbx10 \@magscale3 % bold sans serif %\font\twtysfb = cmssbx10 \@magscale4 % bold sans serif %\font\twfvsfb = cmssbx10 \@magscale5 % bold sans serif %\font\fivsfi = cmssi10 \@ptscale5 % italic sans serif %\font\sixsfi = cmssi10 \@ptscale6 % italic sans serif %\font\sevsfi = cmssi10 \@ptscale7 % italic sans serif %\font\egtsfi = psmhlvo at 8pt % PostScript Helvetica Oblique %\font\egtsfi = cmssi10 \@ptscale8 % italic sans serif %\font\ninsfi = cmssi10 \@ptscale9 % italic sans serif %\font\tensfi = cmssi10 % italic sans serif %\font\elvsfi = cmssi10 \@halfmag % italic sans serif %\font\twlsfi = cmssi12 % italic sans serif %\font\frtnsfi = cmssi10 \@magscale2 % italic sans serif %\font\svtnsfi = cmssi10 \@magscale3 % italic sans serif %\font\twtysfi = cmssi10 \@magscale4 % italic sans serif %\font\twfvsfi = cmssi10 \@magscale5 % italic sans serif %--%--%--%--%--%--%--%--%--%--%--%--% ------------------------------ Date: Fri, 29 Jan 88 21:45:18 EST From: "David F. Rogers" Subject: Hanging Sectionhead Macro % In response to the question from Art Werschulz for a % hanging title macro. % % The following is a modification of a macro for left justified % section headings previously provided by R. Clayton % (clayton@thumper.bellcore.com) the basic idea is to set boxes % equal to the size of the section number and the rest of the % text. \vtop in combination with \halign is then used to set the % text box to the right of the section number. % % The stupid \hskip -4pt and \hskip -5pt are because I cannot seem % to get \noindent to actually work correctly and I have to micro % adjust the position. Anyone out there have an explanation? \def\sectionhead#1#2#3{ \setbox0=\hbox{{\tenbf{#1}} \hskip .5em} \setbox1=\vtop{\raggedright \hsize 3pc \noindent \hskip -4pt \tenrm{#2}} \setbox2=\vtop{\hsize 29pc \advance \hsize by -\wd0 \advance \hsize by -\wd1 \noindent \hskip -5pt \tenrm{#3}} \noindent \halign{## & ## & ##\cr \box0 & \box1 & \box2 \cr} \vskip 12pt plus 3pt minus 0pt \noindent \hskip -5.0pt \relax } \sectionhead{I.}{ First section}{ Twas brillig and the slithy toves, beware the Jabberwock my son. And the mome raths uffishly outgrabe. Twas brillig and the slithy toves, beware the Jabberwock my son. And the mome raths uffishly outgrabe. Twas brillig and the slithy toves, beware the Jabberwock my son. And the mome raths uffishly outgrabe.} \bye % Professor David F. Rogers % Aerospace Engineering Department % U.S. Naval Academy % Annapolis, MD 21402 % USA % ARPANET: dfr@usna.mil % UUCP: ~uunet!usna!dfr ------------------------------ Date: Thu, 28 Jan 88 21:25:25 est From: shirono@grasp.cis.upenn.edu (Roberto Shironoshita) Subject: Re: subject lines and latex letter style In , S.A. Thurlow (sat@chi.unicus.com) writes: > I am trying to get a subject line in letters prepared using latex's > letter style. Unfortunately, there doesn't seem to be a way to do this > in standard latex. How does one go about hacking latex to support a > subject line? I'm not so sure you would want to do this, but here it is. This is the first line for the style file I used: % letter.sty 5-Mar-86 I could not think of a way to do it from LaTeX, so I went in and modified the TeX source for the LaTeX document style. Here is a context diff: *** /usr/lib/tex/macros/letter.sty Fri Jan 30 12:23:32 1987 --- nletter.sty Thu Jan 28 21:16:56 1988 *************** *** 107,113 \today \end{tabular}\par} \fi \vspace{2\parskip} ! {\raggedright \toname \\ \toaddress \par}\vspace{2\parskip} #1\par\nobreak} \long\def\closing#1{\par\nobreak\vspace{\parskip} \stopbreaks --- 107,118 ----- \today \end{tabular}\par} \fi \vspace{2\parskip} ! {\raggedright \toname \\ \toaddress \par} ! \ifx\@empty\@subject\else ! \vspace{.5\parskip} ! {\raggedright Subject: \@subject \par} ! \fi ! \vspace{2\parskip} #1\par\nobreak} \long\def\closing#1{\par\nobreak\vspace{\parskip} \stopbreaks *************** *** 154,160 \long\def\letter#1{\newpage \c@page\@ne ! \interlinepenalty=200 \@processto{#1}} \def\endletter{\stopletter\@@par\pagebreak\@@par \if@filesw \begingroup --- 159,166 ----- \long\def\letter#1{\newpage \c@page\@ne ! \interlinepenalty=200 \@processto{#1} ! \def\subject##1{\gdef\@subject{##1}}} \def\endletter{\stopletter\@@par\pagebreak\@@par \if@filesw \begingroup Please take note that I don't guarantee that this will work. I have tried it, and seems to work (although the letters don't quite look as I would like). Roberto Shironoshita ----------------------------------------------------------------------- Disclaimer 1: The opinions expressed here are my own. The University need not share them, or even be aware of them. Disclaimer 2: Like most humans, I'm bound to err at times. I believe what I have said, but agree that I may be wrong. @@@@@@@@@\ Full Name: Roberto Shironoshita @@ @@ Occupation: BSE candidate in Computer Science @@ @@ Organization: University of Pennsylvania @@@@@@@@/ @@ Network Address: @@ PENNnet: shirono@eniac.seas @@@@ Internet: shirono@eniac.seas.upenn.edu ------------------------------ %%% %%% subscriptions, address changes to: texhax-request@score.stanford.edu %%% please send a valid arpanet address!! %%% %%% BITNET distribution: subscribe by sending the following %%% line to LISTSERV@TAMVM1.BITNET: %%% SUBSCRIBE TEX-L %%% %%% submissions to: texhax@score.stanford.edu %%% %%%\bye %%% ------------------------------ End of TeXhax Digest ************************** -------