TeXhax Digest Tuesday, August 4, 1987 Volume 87 : Issue 63 [SCORE.STANFORD.EDU]TEXHAX63.87 Editor: Malcolm Brown Today's Topics: Typesetting chemical papers Font file comparisons Re: TeXhax Digest V87 #59 The state of affairs: dvi->PS Re: A LaTeX ?bug?; discussion in TeXhax 87/60 Right way to do mathematical operators renumbering footnotes each page Re: Right way to do mathematical operators A few mildly random things; Re: A4 size paper Driver for Hewlett-Packard. Common TeX (NOT YET) Re: Right way to do mathematical operators Bogus space after use of a created environment Old German Fonts Minor Bug in TeXtyl DVI2PS on VMS ---------------------------------------------------------------------- Date: Fri, 24 Jul 87 18:07 PDT From: Subject: Typesetting chemical papers To: texhax@score.stanford.edu Like Th. Kneser, I also needed chemical equilibrium symbols and came up with the following, which may be useful. Note that these are for plain TeX and for chemical equations that are being typeset in Roman. % Definitions and stuff for chemistry, equilibrium symbols : % \eqbm -- unlabeled equilibrium (longer than harpoons) % \eqbmlab~#1_#2 -- long equilibrium sign with forward (#1) and backward (#2) % labels % \yields -- long right arrow % \yieldslab~#1 -- " " " with a label above (#1) % To typeset chemical equations, % type \rm just after the $ or $$. Also, when using \eqalign or % \eqaligno, type \cr\rm wherever you would normally type \cr. % The labels on \eqbmlab and \yieldslab come out in italic automatically % (use \rm to get roman). Elsewhere, italicize variables like K_W or N_0 % using \cit. % \def\cit{\fam=-1} % Chemistry ITalic \def\longrharpup{\relbar\joinrel\rightharpoonup} \def\longlharpdn{\leftharpoondown\joinrel\relbar} \def\rlPOON#1{\vcenter{\hbox{\ooalign{\raise2.3pt \hbox{$#1\longrharpup$}\crcr $#1\longlharpdn$}}}} \def\eqbm{\mathrel{\mathpalette\rlPOON{}}\rm} \def\eqbmlab~#1_#2{\mathrel{\mathop{\eqbm}\limits~{#1}_{#2}}\rm} \def\yields{\longrightarrow\rm} \def\yieldslab~#1{\mathrel{\mathop{\longrightarrow}\limits~{#1}} \rm} To make subscripts come out aligned I have put (for example) \fontdimen16\twelvesymboltext=3.24pt \fontdimen17\twelvesymboltext=3.24pt \fontdimen16\twelvesymbolscript=2.65pt \fontdimen17\twelvesymbolscript=2.65pt in with my font definitions following the example of the TeXbook p.179. These 12 pt numbers were determined by trial and eye...leading to a question of my own: How can I look at the font parameters for an arbitrary font and determine the proper font dimensions to make chemical subscripts all come out aligned? Or, Has someone determined the numbers already? Donald (asnd@triumfcl.bitnet or userasnd@ubcmtsg.bitnet) ------------------------------ Date: Sat 25 Jul 87 10:32:23-PDT From: Tomas G. Rokicki Subject: Font file comparisons To: texhax@Score.Stanford.EDU For those considering writing drivers, or buying drivers, I present the following numbers. On score.stanford.edu, there exist 574 fonts, almost all at 300 dots per inch (and magsteps.) After eliminating stan70 (the stanford seal), the fonts take up the following space: PXL (obsolete) 17,761,468 bytes GF (generated by MF) 8,445,464 bytes PK (from GFtoPK) 4,096,624 bytes Empirical tests indicate that unpacking a `PK' font is no slower than unpacking a `GF' font. It seems to be slightly faster, but the difference is slight. I think my point is clear. ------------------------------ Date: Fri, 24 Jul 87 22:42:52 CDT From: John Rager To: TeXhax@SCORE.STANFORD.EDU Subject: Re: TeXhax Digest V87 #59 I think I agree with our moderator, were the LaTex and TeX notes split onto two boards there would be a lot of duplication. Also, I suspect that a lot of people use both products (plus anything else useful they can get their hands on). I mostly use LaTeX but incorporate TeX stuff when needed. Personally, I like reading about all the stuff that is going on, and seeing what people are doing and interested in doing. The digest isn't so long that people completely uninterested in LaTeX can't skip the material thay don't want. (I skip all the stuff about device drivers, but I don't think we should split the digest into an 'internal TeX' and an 'external TeX'.) John Rager ------------------------------ Date: Sun, 26 Jul 87 07:32:13 EST From: i5f@l.cc.purdue.edu (S Bechtolsheim) To: texhax@Score.Stanford.EDU Subject: The state of affairs: dvi->PS I made some minor changes---but I just didn't have time to put in the \special handling. I was gone teaching TeX, moving my fiance (from California to Indiana...) and other pleasant things, and I am leaving for another week (till Thursday, July 30). I'll finish it afterwards and the driver will be released Tuesday, August 4. The main reason, I did not release it before, was to force everybody to get the newest version. If I had distributed it now and then sent a message four weeks later telling people to get an even newer version (with handling \special in a way, I think it should be done) nobody would have bothered to pick up the newest version. Don't tell me anything different.... This message goes to texhax and to those people directly, who contacted me directly. A previous message (which essentially contained the same information) directed to texhax was lost (I messed it up, sorry!). If you want to be contacted directly, when the driver is ready, drop me a note. Stephan ------------------------------ From: PEB%DM0MPI11.BITNET@forsythe.stanford.edu Date: Tue, 28 Jul 87 14:01:37 GMT To: texhax-request@score.stanford.edu Subject: Re: A LaTeX ?bug?; discussion in TeXhax 87/60 Leslie Lamport writes: > Page 66 of the LaTeX manual states: > > * A verbatim environment or \verb command may not appear within an > argument of any other command. I don't quite see why the `argument' of `\mbox' has to be treated as an argument in the TeXnical sense. I think the example given below could be easily adapted to LaTeX's `\mbox'. The macro definition \def\ctrline{\line\bgroup\hfil \afterassignment\@@line \setbox\z@\hbox} \def\@line{\aftergroup\@@line} \def\@@line{\unhbox\z@ \hfil\egroup} is more or less equivalent to \def\ctrline#1{\line{\hfil#1\hfil}} but avoids to treat it's `argument' as argument. \catcode changes inside the `argument' are thus possible. ------------------------------ Date: Sun, 26 Jul 87 23:12:25 CDT From: David Chase Subject: Right way to do mathematical operators To: texhax@score.stanford.edu I'm looking for the right way to format an expression (math mode) with my own binary operator; for example (literally) "x OP y". I understand that there is some special kind of math glue that I will stick in between "x" and "OP" and between "OP" and "y", but I don't know how much or quite how to do it. I can get roughly the right effect with $x \mbox{\sc\ op\ } y$, but that is almost certainly wrong. I realize that I could discover this myself by reading the TeXBook cover to cover, but that would take time, and I might still get it wrong. Ideally, I would like to crank out a macro "\makebinop{\opname}{optext}" that would create "\opname" expanding to "optext". If some typesetting or formattin expert out there has a definite opinion that what I am doing is stupid or ugly, do let me know, especially if you have a better idea. I am doing this so I can talk about the parts of an expression. David ------------------------------ Date: Mon, 27 Jul 87 05:46:20 EDT From: Clarence_Wilkerson@um.cc.umich.edu To: TeXHaX@score.stanford.edu I have compiled the dot-matrix DVI drivers distributed by Beebe@CS-Utah. However, I lack a set of low-res CM fonts. I have access to MetaFont on a Vax, but I am not happy with my initial results at 72 DPI. The characters are too heavy for the dot size on my Prowriter. Also, in the process of producing CMR10, I got several errors related to "turning number zero". I understand that this means the program is confused about the outlines and where it should fill. If anyone has a shell script or other files related to producing CM fonts at 72 DPI, I would appreciate a copy to CWW%wayne-mts@um.cc.umich.edu. Any discussion of the choice of parameters for a heavy dot low-res black on white device would be appreciated also. Clarence Wilkerson ------------------------------ Date: Mon, 27 Jul 87 08:40:37 EDT From: mroth@afit-ab.arpa (Mark A. Roth) To: TeXhax@Score.Stanford.EDU Subject: renumbering footnotes each page Can't you just reset the footnotecounter in a redefined \@outputpage routine? %% Mark is referring to my inquiry concerning footnotes that begin with %% the number 1 on each page. The main question is if this can be done %% with a single-pass technique. I don't think the \output routine is %% the solution. For example, TeX may have already typeset material for %% pages 2 and 3 before placing the material for page 1 in box255 and %% invoking the \output routine. Hence resetting the footnote counter %% in the \output routine would be too late. Malcolm ------------------------------ Mail-From: BEETON created at 27-Jul-87 06:44:12 Date: Mon 27 Jul 87 06:44:12-PDT From: Barbara Beeton Subject: Re: Right way to do mathematical operators To: rbbb@RICE.EDU \bmod seems to be equivalent to what is wanted here -- $x \bmod y$. examples are given on texbook page 164, and the definition is on page 361, just about the middle of the page. that should be usable as a model. -- barbara beeton ------------------------------ Date: Mon, 27 Jul 87 10:37:28 CDT From: Don Hosek Reply-To: Don Hosek Subject: A few mildly random things; To: TEXHAX@score.stanford.edu 1) When you send a query to TeXhax, TeX-L or me about a device driver *please* tell me what kind of computer you want it to run on. If the computer is something a little unusual (meaning I haven't heard of it) please try and give some details on it: does it run a common operating system (say Unix for example)? Is it compatible with something more well-known (My Banana Junior is a lap-top Cray)? This also goes for printers. I know that a Xerox 8700 is compatible (for the most part) with an 8790 or 9700 or 9790 or 4050, but I have a heck of a time keeping up with most of the laser printers. A Waybig 5800XT laser printer doesn't mean a thing to me, but if you say that it accepts PostScript, I can deluge you with driver information. 2) If somebody asks a question about a device driver and you know of one that meets their specifications, send them a note. And send me a copy too. This is how I find out about drivers. And if you wrote something and are willing to send a copy to anybody who asks for one, let me know. You probably aren't the only person in the world with a HAL 1100 type- setter, and some of those other people might be intereseted in a copy of you program. 3) Does anybody know why William LeFebvre's userid is PHIL? -DH ------------------------------ Date: Mon, 27 Jul 87 13:44 N From: Subject: Re: A4 size paper To: TEXHAX@score.stanford.edu RE: V87 #57 A4 size paper Answering your question about the paper size in Europe, I can tell what I do and suggest to do in INFN (i.e. the National Institute for Nuclear Physics). We run TeX on VAXes and have QMS-800 as "de facto" standard printer. The margin size depends both on hardware and software, therefore margins vary from printer to printer. With the one installed at our site, default margins are 2.8cm left and 1.5cm right (paper is 21cm wide). As TeX is run using a menu driven DCL procedure, we can change margin using the DVIQMS qualifiers. Most users actually leave everything as it is getting not centered output. What I do instead is to change TeX output size and interline spacing, as I find this improves readability. Thus I set the following in our macro package: \hsize 6truein \baselineskip 15pt plus 2pt % dont allow lesser interline \vsize 9.1 truein % or 9.3 truein for smaller bottom margin Note the vsize is less visible than hsize, and I find that too long lines with respect to the margin are not so good looking. At the same time, especially using 10pt fonts, increasing the interline spacing gives the optical effect of bigger fonts. -maria luisa luvisetto ------------------------------ Date: Mon, 27 Jul 87 17:46:52 BST From: Dr R M Damerell (RHBNC) To: texhax@score.stanford.edu Subject: Driver for Hewlett-Packard. R. Roy asked for one; I have written a change file for Crudetype that drives the Laserjet Plus, on Vax-VMS. It uses PXL files. Sorry to inflict this on the whole list, but I did not succeed in replying to him directly. mark ------------------------------ Date: Mon, 27 Jul 87 22:14:47 pdt From: darrell%beowulf@sdcsvax.ucsd.edu (Darrell Long) To: texhax@score.stanford.edu Subject: Common TeX (NOT YET) I'm sorry for the premature announcement of the availability of Common TeX on SDCSVAX.UCSD.EDU. There have been some problems, so Pat has chosen not to release it yet. I am very sorry if this has caused any undue anticipation. I will send a note when it is ready for release. Darrell Long Department of Computer Science and Engineering, C-014 University of California, San Diego La Jolla, California 92093 ARPA: Darrell@Beowulf.UCSD.EDU UUCP: sdcsvax!beowulf!darrell ------------------------------ Date: Tue, 28 Jul 87 00:43:08 CDT From: David Chase Subject: Re: Right way to do mathematical operators To: Barbara Beeton And the answer is: \def\makebinop#1#2{\def#1{\mskip-\medmuskip \mskip5mu \mathbin{\rm #2} \penalty900 \mskip5mu \mskip-\medmuskip}} used (for example) \makebinop{\mybmod}{mod} to duplicate the \bmod macro. David ------------------------------ Date: Tue, 28 Jul 87 01:17:11 CDT From: David Chase Subject: Bogus space after use of a created environment I've been trying to make a "code" environment for setting small pieces of sample programs. I want to get something that is (1) centered and (2) non-floating and (3) not paragraph starting. In general, this requires that I stick a tabbing environment inside a centered something. I have succeeded, more or less, but the resulting environment is sensitive to space following the "\end{code}"; if there is any space, it seems to appear at the beginning of the following line (i.e, the next line is not flush with the left margin). I tried using a displaymath in the environment and got the extra space, and I tried using a minipage inside the environment and got the extra space. Here is a sample that demonstrates this problem: \documentstyle[12pt]{article}\begin{document} \newenvironment{C}{\begin{displaymath}}{\end{displaymath}} A test \begin{displaymath} x + y \end{displaymath} of nothing in particular. This is a test \begin{C} x + y \end{C} of nothing in particular. This is more text so that we can have an idea of where the left margin really is. \end{document} So, why is this happening and how can I avoid it (other than by always writing "\end{code}%")? David 28-Jul-87 0741 sr%unhcs@RELAY.CS.NET Re: TeX Date: Tue, 28 Jul 87 07:58:18 EDT From: Sridhar Ramakrishnan To: PHY%sail.stanford.edu@RELAY.CS.NET Subject: TeX for a thesis Specifically what I am looking for is a way of formatting my thesis using TeX (not LaTeX), according to some guidelines specified by the graduate school. I am having a hard time formatting the "table of contents" and other lists automatically. I wonder if there are any macros around at Stanford for thesis preparation and if so could I have a copy of them? Thanks again for your time and effort. Sridhar. ------------------------------ Date: Tue, 28 Jul 87 09:25:29 PDT From: pac@oolong.STANFORD.EDU (Philip A. Chou) Subject: Old German Fonts Does anybody know where to find a font for the Old German letters commonly used in mathematics (for Tex or Latex in gf format)? ------------------------------ From: Peter King Date: Tue, 28 Jul 87 19:29:00 BST To: texhax@score.stanford.edu Subject: Minor Bug in TeXtyl I retrieved TeXtyl from the latex-style server at rochester, and found the following annoying bug in the Pascal source. A routine ( I forget which ) has a parameter line_type Unfortunately the _ is not allowed by Pascal in an identifier. Changing line_type to linetype seems to correct the bug. Peter King, Computer Science Department JANET: pjbk@uk.ac.hw.cs Heriot-Watt University ARPA: pjbk@cs.hw.ac.uk 79 Grassmarket, Edinburgh EH1 2HJ or pjbk%cs.hw.ac.uk@ucl-cs Phone: (+44) 31 225 6465 Ext. 555 UUCP: ..!ukc!cs.hw.ac.uk!pjbk ------------------------------ Date: Tue, 28 Jul 87 09:30:01 CDT From: Don Hosek Reply-To: Don Hosek Subject: DVI2PS on VMS This was rejected by Duke's mailer, so I'll send it to the whole list and hope he gets it. If anybody know of anything I missed, please let me know. ----------------------------Original message---------------------------- I have three drivers listed. For free there is Nelson Beebe's DVIALW in C (probably the very driver you're looking for). You can reach him on the internet at Beebe@UTAH-SCIENCE.ARPA. For Money there is DVILASER/PS from ArborText (Money=$1000 imagine that!) It costs, I have no idea what it's written in, but it's loaded with features. ArborText 416 Fourth Street P.O. Box 7993 Ann Arbor, MI 48107 (313) 996-3566 Finally, I have a driver listed I know nothing about from University of Sydney. The contact person is Alec Dunn phone (02) 692 2014, ACSnet: alecd@facet.ee.su.oz -DH ------------------------------ %%% %%% subscriptions, address changes to: texhax-request@score.stanford.edu %%% %%% submissions to: texhax@score.stanford.edu %%% %%% BITNET redistribution: TEX-L@TAMVM1.BITNET (list server) %%% %%%\bye %%% ------------------------------ End of TeXhax Digest ************************** -------