TeXhax Digest Wednesday, March 29, 1989 Volume 89 : Issue 30 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: Re: TeX Driver For HP Laserjet II Re: HP LaserJet II problems / N. Beebe's DVIJEP Re: Needed: Information about using XERO Needed: Help with hyphenation Can you change the fontsize of Latex section headings? TeX for an IBM-AT On generating write-white and write-black versions of the AMS fonts Replacing Computer Modern with a PostScript font such as Times Re: James Clarke's DVItoPS program Re: Defining macros with defaults in TeX Re: \everyparend macro Re: \everypar, \par and LaTeX sections Re: LaTeX citation styles Needed: TeXware for generating Feynman diagrams Is there a Newsletter style for TeX or LaTeX? Printing Music with Tex PXL or PF font files for LPS40 Re: boldface greek fonts in LaTeX --------------------------------------------------------------------------- Date: Tue, 28 Mar 89 09:53:39 CST From: Don Hosek Subject: Re: TeX Driver For HP Laserjet II Keywords: TeX, dviware, HP Laserjet II Here's everything I have... note that all but the U of Utah driver is commercial. Please send any additional information to me for inclusion in the TUG driver information database. dh HP Laserjet Plus (VAX/VMS) ArborText Inc. DVIlaser/HP Uses GF, PK, or PXL fonts. Allows inclusion of graphics, use of printer resident fonts, font substitution, font scaling, and magnifies or shrinks images. Cost: $500 workstations; $750 mainframes. Site licenses available. Academic discounts available. LaserPrint University of Utah DVIJEP (by Nelson H.F. Beebe) Uses GF, PK or PXL files. Written in C. Source is included. Graphics inclusion specials are available are available on request. Arbortext, Inc. Contact: Sales Department Postal Address: 535 W. William Street Suite 300 Ann Arbor, MI 48103 Internet: sales@arbortext.com Phone: (313) 996-3566 LaserPrint Postal Address: P.O. Box 35, D-6101 Fr\"ankisch Crumbach, Federal Republic of Germany Phone: +49 6164 4044 University of Utah Contact: Nelson H.F. Beebe Postal Address: Center for Scientific Computing 220 South Physics University of Utah Salt Lake City, UT 84112 Phone: (801) 581-5254 Internet: Beebe@Science.Utah.EDU Availability: All of the Beebe drivers are distributed together. They are available on 1600bpi 9-track tape in TOPS-10/20 BACKUP/DUMPER format, VAX/VMS BACKUP format, Unix tar format, and ANSI D-format. Send a tape plus $100 for a copy. IBM PC floppies are available from Personal TeX or Jon Radel. FTP: The programs are available for anonymous FTP from SCIENCE.UTAH.EDU on the internet; information is in the file PS:00README.TXT. A VAX/VMS binary distribution is available for anonymous FTP (password guest) from CTRSCI.UTAH.EDU. 00README.TXT in the login directory gives details. On JANET, the programs may be obtained from the directory aston.kirk::[public.texdvi210]. On DECnet, they are available from the DECnet file repository, for more information send mail to the DECnet address <39937::luvisetto>. Bitnet servers: The drivers are available from Listserv on EARN to European Bitnet users. Sending the command GET DRIVER FILELIST (in an interactive message, or as the first line of a mail message) to LISTSERV@DHDURZ1. Files are obtained with the command GET filename filetype. Don Hosek Internet: U33297@UICVM.UIC.EDU 3916 Elmwood Bitnet: U33297@UICVM Stickney, IL 60402 DHOSEK@YMIR Work: 312-996-0658 UUNet: dhosek@jarthur.claremont.edu ----------------------------------------------------------------------------- Date: Wed, 29 Mar 89 01:01:33 PST From: zar@XHMEIA.Caltech.Edu (Daniel M. Zirin) Subject: Re: HP LaserJet II problems / N. Beebe's DVIJEP Keywords: HP Laserjet II, DVIJEP It appears our problem isn't with the DVIJEP program but the HPLaserJet II we have. Just wanted to bring you up to date (and sorry Nelson for some temp bad advertising). Zar ------------------------------------------------------------------------------ Date: Tue, 28 Mar 89 09:59:01 CST From: Don Hosek Subject: Re: Needed: Information about using XERO Keywords: XERO, dviware I assume that you are using VMS since you mentioned the Talaris driver. I don't have an entry explicitly for VAX/VMS and the 2700, but you might try the following: Xerox Contact: Margot Nelligan Postal Address: Xerox Printing Systems Division 880 Apollo Street El Segundo, CA 90245 Phone: (213) 333-6058 If you have information on any other drivers, please forward it to me for inclusion in the TUG DVI driver database. dh Don Hosek Internet: U33297@UICVM.UIC.EDU 3916 Elmwood Bitnet: U33297@UICVM Stickney, IL 60402 DHOSEK@YMIR Work: 312-996-0658 UUNet: dhosek@jarthur.claremont.edu --------------------------------------------------------------------------- Date: Tue, 28 Mar 89 15:18:45 PST From: wagman%praxis.hepnet@Csa1.LBL.Gov Subject: Needed: Help with hyphenation Keywords: TeX, hyphenation % Can anyone suggest settings (\tolerance, \looseness, \hyphenpenalty, etc.) % so that TeX will hyphenate "photoproduction" in a narrow \hsize and not % just place it on one line as an overfull \hbox? % % \hsize = .7in \hyphenation{pho-to-pro-duc-tion} photoproduction\par \end % % % I have tried the suggestions at the bottom of page 451 of the TEXbook. % I include a \hyphenation just to assure that Tex knows what to do, % but it isn't necessary because \showhyphens{photoproduction} indicates % that Tex already knows what to do with this word. % % Thanks, % Gary Wagman % Lawrence Berkeley Lab % One Cyclotron Road, 50-308 % Berkeley, CA 94720 % % (415)486-6610 % % Internet: WAGMAN@LBL.GOV % Bitnet: WAGMAN at LBL % HEPnet: LBL::WAGMAN -------------------------------------------------------------------------- Date: Tue, 28 Mar 89 23:15:02 +0900 From: Max Ott Subject: Can you change the fontsize of Latex section headings? Keywords: LaTeX, section headings Is there a way in Latex to change the fontsize of the section, subsection, ... headings. I looked through the *.sty files and found that the fontsize is "hardwired" into every *1x.sty. Is there an easy way to change the size? For me, Latex is often too much into the big fonts. I would appreciate any help. max Max Ott e-mail: Hatori Laboratory ott@piyopiyo.hatori.t.u-tokyo.junet@relay.cs.net Dept. of E.E.; U of Tokyo +(81)-(03) 812 2111 Ext. 6761 ------------------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: TeX for an IBM-AT Keywords: TeX, IBM-AT Mark Schenk asked about a version of Tex that would run on an IBM-AT; Wayne Sullivan's SBTEX is an excellent solution. ------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: On generating write-white and write-black versions of the AMS fonts Keywords: AMS fonts Joel F. Plotkin asked about generating write-white and write-black versions of the AMS fonts; I'm told that the Unix distribution has both versions, 'though I've not yet checked this. ----------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: Replacing Computer Modern with a PostScript font such as Times Keywords: fonts John Pearce asked how to alter LaTeX so that the Computer Modern font is replaced by a postscript font such as times; I've sent him the necessary files (PSLATEX.TEX, PSLFONTS.TEX, PSLPLAIN.TEX) under separate cover, as he's in the U.K. and it's easy and cheap to ship large files. ----------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: Re: James Clarke's DVItoPS program Keywords: dviware Sebastian Rahtz commented that James Clarke's DVItoPS program allows the inclusion of 'TeX in TeX' via PostScript; I can confirm that ArborText's DVILASER/PS allows the same flexibility, 'though one needs to cancel the 'erasepage' operator within the preamble. --------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: Re: Defining macros with defaults in TeX Keywords: TeX, macros Phil Windley asked about defining macros with defaults in TeX; he gave an example: \test{Arguement is here} \test % no argument, so use default value. Now, the assertion `no argument, so use default value' is ambiguous: does it mean `the next non-space character is not a left brace, so there is no argument', or `there is nothing other than white space and comment between \test and end-of-line, so there is no argument' ? I will assume the former, unless I hear otherwise from Phil W., in which case the solution is quite different. We need to be able to distinguish between \test and \test > \futurelet is intended for such applications: let us define \test as \def \test {\futurelet \next \usedefaultifnotleftbrace}% which will need the following additional definitions: \catcode `\@ = 11 % so we can use `@' as a letter ... \let \then = \relax % so we can use \if ... \then ... \else ... \fi \def \usedefaultifnotleftbrace {\ifx {\next \then \let \next = \t@st \else \def \next {\expandafter \t@st \d@fault}% \fi \next } \def \t@st #1{}% \def \d@fault {{}}% \catcode `\@ = 12 % restore normal \catcode of `@' Perhaps a brief word of explanation is in order: the definition of \test specifies a parameterless macro, which looks ahead at the next token to see if it is a left brace or not. If it is a left brace, then the meaning of \t@st is ascribed to \next; if it is not, then \next is defined to have the replacement text "\expandafter \t@st \d@fault". Then, regardless of the next token, \next is elaborated, which result in \t@st being expanded; \t@st will then soak up the brace-delimited text which follows as its parameter. This brace-delimited text is either the `real' parameter, detected by the presence of the leading left-brace, or is the default parameter, supplied via the macro \d@fault; the \expandafter forces \d@fault to be expanded before \t@st, thus ensuring that \t@st always sees a brace-delimited parameter. \t@st then does whatever \test should have done, knowing in advance that it will always have a single (brace-delimited) parameter. ---------------------------------------------------------------------------- Date: 29-MAR-1989 13:54:14 GMT -01:00 (BST) From: CHAA006%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK Subject: Re: \everyparend macro Keywords: macro, TeX Paul Davis asked about an \everyparend macro, which would be like \everypar, but is called (effectively) at the end of every paragraph. I think it's called \par ... Philip Taylor Royal Holloway and Bedford New College University of London ------------------------------------------------------------------------------ Date: Wed, 29 Mar 89 10:17 EST From: Paul Davis Subject: Re: \everypar, \par and LaTeX sections Keywords: LaTeX, \everypar, \par My recent mail to TeXHaX asked about a macro that would act like \everypar, except that it would be called at the end of each paragraph. Several people have pointed out that \par meets this description, and of course, LaTeX itself uses \@par and \@@par for this very purpose. However, having played with these ideas, I'm now in a position to frame my real question more concisely: Is there any way to determine, with 100% accuracy, when one is immediately after a LaTeX section heading ? It is no good using \par - this is invoked at least twice before the text following the heading; the exact number of times is not totally fixed. I can see no way to do this - but maybe somebody else can. Incidentally, I even went as far a \par def that counted its own use and reset itself after n calls - still no use. Think about it and let me know. thanks Paul Paul Davis at Schlumberger Cambridge Research ---------------------------------------------------------------------------- Date: Tue, 28 Mar 89 10:17:17 PST From: emma@csli.Stanford.EDU Subject: Re: LaTeX citation styles Keywords: LaTeX, citations Jay H Beder in his message of 28 Feb 89 wrote >> Our installation (using Berkeley Unix) has several optional >> documentstyles and bibliographystyles in addition to those offered >> in standard LaTeX. The "apalike" style, based on the American >> Psychological Association's guidelines, is closest to what I want, >> but there is one feature I would like to include. That is a second >> citation command (say, \cite*) that would produce only the date. >> The current style (when \cite is invoked in the apalike style) >> gives the name and date as the entire key, so that one can now >> write >> ... as is known (Smith, 1980) .... >> What I would like to be able to write is >> ... Smith (1980) has shown .... >> I would appreciate any suggestions as to how this might be done. Thank you. I was also interested in that problem and created a new bst file (cslibib.bst) to handle it (among other problems). Below, I list the major changes and features. % changes are as follows % 1) citations in text look like (Barwise 1987) or (Barwise and % Perry 1986) or (Barwise et al.\ 1985) % 2) There are no labels in the bibliography (when used with % cslibib.sty) % 3) The first author's name is reversed: last, first initial, first % initial last. (adapted from natsci.bst) % 4) letters a, b, ... are added to the year for multiple entries in % label and reference list % 5) Short citations (year only) are also supported (adapted from % aaai-named.bst) I also created a style file (cslibib.sty) that defines a variant of \cite called \shortcite, which produces a citation of year only. Both can be ftp'ed from csli.stanford.edu. ftp/pub/cslibib.bst ftp/pub/cslibib.sty Yours, Emma Pease ---------------------------------------------------------------------------- Date: Tue, 28 Mar 89 10:26:06 gmt From: Bo Thide' Subject: Needed: TeXware for generating Feynman diagrams Keywords: TeX, METAFONT,PiCTex Now that we have got our BIG TeX running and PiCTeX works beatifully we would like to be able to draw Fenman diagrams to illustrate our papers on decaying photons. Does anybody have any TeXware for generating Feynman diagrams (METAFONT, PiCTeX ...) to share? Even something rather primitive would be very helpful. Thank you, Bo ^ Bo Thid\'e ------------------------------------------------------------ | | Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden |I| [In Swedish: Institutet f|r RymdFysik, Uppsalaavdelningen (IRFU)] |R| Phone: (+46) 18-403000. Telex: 76036 (IRFUPP S). Fax: (+46) 18-403100 /|F|\ INTERNET: bt@irfu.se UUCP: ...!mcvax!enea!kuling!irfu!bt ~~U~~ -----------------------------------------------------------------sm5dfw ---------------------------------------------------------------------------- Date: Wed, 29 Mar 89 02:04 From: Wujastyk (on GEC 4190 Rim-D at UCL) Subject: Is there a Newsletter style for TeX or LaTeX? Keywords: LaTeX, TeX, newsletter style Wherever I look, people are reading newsletters. On the train coming home to Oxford from London this evening, a woman opposite me was reading "Solidaridad: Newsletter of Nicaraguan Affairs", and this is the least of it. *Everyone* with a laser printer and a copy of Pagemaker is now producing a Newsletter. So how about it? Is there a Newsletter style for TeX or LaTeX? Or do we sneer at such documentary lowlifes, as we craft our maths books. *Someone* must be using TeX to do a Newsletter. The minimal requirements for such a thing, as I see them, would include the following: 1/ Three columns; 2/ Single column floats; 3/ Double column floats; 4/ Three column wide headers and titles; 5/ Two column wide title; 6/ Rule boxes to surround pages. Penalties would have to be tweaked to let TeX make narrow columns relatively gracefully. I seem to remember a rather complicated page makeup system along these lines (even more ambitious) appeared in TUGboat a couple of years ago, but it was written in macros for TeX78, so is not usable today. Dominik --------------------------------------------------------------------------- Date: Tue, 28 Mar 89 08:12:08 pst From: merrell@wallaby.mrc.uidaho.edu Subject: Printing Music with Tex Keywords: TeX, music About a month or so ago I recall hearing something about a set of macros for printing music with Tex. At that point I didn't have the time to check it out. Does anyone know of such things, and if so, where they would be available from? It's not that my manuscript is that bad... but printed music is so much easier to read! Thanks in advance for the info. Randy Merrell Microelectronics Research Center "Rejoice in the Lord always; College of Engineering again I say, rejoice!" University of Idaho -- Phil. 4:4 Moscow, ID 83843 UUCP: ucdavis!egg-id!ui3!rmerrell BITNET: rmerrell@groucho.mrc.uidaho.edu ------------------------------------------------------------------------------- Date: Tue, 28 Mar 89 10:49:41 -0800 From: Rick L. Spickelmier Subject: PXL or PF font files for LPS40 Keywords: DEC LPS40, PXL, PF fonts Does anybody have PXL or PF font files built for the DEC LPS40 laser printer? Can I ftp them from your site? Or how about the METAFONT printer description file (I've never used METAFONT, nor do I have it installed, so the PXL/PF font files would be my first choice). Thanks, Rick Spickelmier UC Berkeley ricks@berkeley.edu ---------------------------------------------------------------------------- Date: Tue, 28 Mar 89 10:05:50 CST From: Don Hosek Subject: Re: boldface greek fonts in LaTeX Keywords: LaTeX, fonts, greek A big part of the problem with using boldface greek fonts in math mode is the way in which LaTeX defines \boldmath: it can _only_ be used *outside* of math mode. For example, to produce a boldface sigma, one would type {\boldmath $\sigma$} rather than the somewhat more logical ${\boldmath\sigma}$ (try explaining that to some beginning LaTeX students who have just spent three days being told how consistent everything is in LaTeX!) There are some technical reasons for this (dealing with loaded on demand fonts in LaTeX and the like), but I don't need to get into them right now. A bigger problem comes when we want to produce \[ \sigma=\left(\begin{array}{c} a\\b\\c \end{array}\left) \] with the sigma in boldface. what we end up doing is typing \mbox{\boldmath$\sigma$} where the \sigma was to produce the boldface sigma (note that using \boldmath on the whole equation would have also boldfaced the a,b, and c of the vector, which we didn't want). The whole equation is now: \[ \mbox{\boldmath$\sigma$}=\left(\begin{array}{c} a\\b\\c \end{array}\left) \] (\mbox serves as a "shift out of math mode" command in this context) Physicists and mathematicians often use boldface to indicate vectors and tensors. in most cases \bf will do the trick, but for the case of the line through space, typically indicated with a boldface \sigma, we run into the aforementioned problem. As a general solution, the folowing macro will produce the appropriate boldface (either \boldmath or \bf) for any symbol which can represent as vector or tensor: \newcommand{\mathbold}[1]{\mbox{\boldmath $\bf#1$}} The preceding formula could then have been written as: \[ \mathbold{\sigma}= [[the rest remains the same]] \] dh Don Hosek Internet: U33297@UICVM.UIC.EDU 3916 Elmwood Bitnet: U33297@UICVM Stickney, IL 60402 DHOSEK@YMIR Work: 312-996-0658 UUNet: dhosek@jarthur.claremont.edu ------------------------------------------------------------------------------- %%% 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 (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 ************************** -------