TeXhax Digest Monday, July 23, 1990 Volume 90 : Issue 52 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 %%% %%Moderator`s note: Several people mentioned not receiving this issue, %%so we are resending it. Apologies to those who have already seen it. Today's Topics: IBM 4019 LaserPrinter Re: TeXhax Digest V90 #50 DVI Previewers for DEC Windows TeX drivers Geneology macros Dvi and a HP DeskJet+ Looking for a cweb change file for crudetype help I want to get Tex and LaTex for a sun 3/50 & sun 4 Paragraph first line fonts, TeX, LaTeX Centered last line of paragraph File SHADOW.STY subeqn style file \topmark in LaTeX TeX bug in make_accent? TeX 3.00 and hyphenation ------------------------------------------------------------------------- Date: Fri, 22 Jun 90 09:34:14 PDT From: probert%cs@hub.ucsb.edu (Dave Probert) Subject: IBM 4019 LaserPrinter Keywords: mode_def for IBM 4019 We have a couple of these and have been able to print TeX on them using both HP Laserjet II emulation mode and postscript. However the fonts we generated for our Apple Laserwriters don't look so good on the IBM. Does anybody know if the IBM 4019 is a write-white engine? Does anybody have a good "mode_def" entry for this printer? Thanks. Dave Probert probert@cs.ucsb.edu ----------------------------------------------------------------------------- Date: Fri, 22 Jun 90 08:11:07 PLT From: Dean Guenther Subject: Re: TeXhax Digest V90 #50 Keywords: Word for Windows, TeX > Date: Fri, 11 May 90 12:42 EDT > From: "Robert S. Smith" > Subject: Word for Windows & TeX > Keywords: TeX, WWord for Windows > > Are text files prepared in Word for Windows sufficiently plain so that they c > be TeXed in LaTeX? Please relpy directly to me. Thank you. Yes, if you save them as an ASCII file. ------------------------------------------------------------------------- Date: Tue, 19 Jun 90 11:22:41 GMT From: jipping@cs.hope.edu (Mike Jipping) Subject: DVI Previewers for DEC Windows Keywords: DVI Previewers, DEC Windows Some collegues of mine run DECWindows on VMS 5.3. They are looking for TeX/DVI previewer that run under DECWindows. Does XDVI work for DECWindows? How about if they don't have C (it's not standard equipment for VMS systems...). Thanks. Mike Jipping Internet: jipping@cs.hope.edu Hope College BITNET: JIPPING@HOPE Department of Computer Science Voice: Hey! ------------------------------------------------------------------------------- Date: Thu, 21 Jun 90 15:30:40 GMT From: Rui Dil Subject: TeX drivers Keywords: dviware Do you know about PD TeX driver's for DEC printers LN03 (LASER) LN03 (LASER) LN03 (LASER) LA210 (dot printer) Thanking you in advance Rui Dilao ------------------------------------------------------------------------------- Date: Thu, 21 Jun 90 14:08:48 PLT From: Dean Guenther Subject: Geneology macros Keywords: macros, geneology Has anyone generated or know of some \TeX\ macros for handling geneological information. thanks -- Dean Guenther ------------------------------------------------------------------------------- Date: Wed, 20 Jun 90 20:16:16 -0500 From: swansonc@acc.stolaf.edu Subject: Dvi and a HP DeskJet+ Keywords: dviware I have a problem. I just inherited a DJ+ w/ 256K RAM. I would like to print DVI files with it. Where can I get a DJ+ compat. driver? Either one that spit out a bitmap, or one that downloaded fonts would be great. I have heard that a LaserJet drivverr would work, but I got badly formatted page when I tried that. The char's were too big and all scrunched in the lower-right corner. Someone had mentioned a DJ+ driver that downloaded fonts, but said it was an MS-DOS executable. I will be running this under Unix, so I was wondering if there was a Unix version of the source (or MS-DOS source) out there? Please reply by e-mail to the above adress. Thank's in advance -Chris Chris Swanson, Summer Address: Comp. Solutions, 1502 N. 59 st., Omaha, NE 68104 INTERNET: swansonc@acc.stolaf.edu UUCP: swansonc@stolaf AT&T: Work: (402)-449-4894 Home: (402)-551-0766 I would deny this reality, but that wouldn't pay the bills... ------------------------------------------------------------------------- Date: Wed, 20 Jun 90 15:04:25 NZT From: russell@ccu1.aukuni.ac.nz Subject: Looking for a cweb change file for crudetype Keywords: crudetype, cweb change file Has anybody produced a cweb change file for crudetype ? I am on a SV.3 unix system ( IRIX ) and our pascal does not support conformant arrays which are used in crudetype. Alternatively anybody got any other suggestions on how to get crudetype going under system V? Thanks, Russell. ----------------------------------------------------------------------------- Date: Mon, 18 Jun 90 10:18:00 mdt From: esunix!sim.dnet!kpoppleton@cs.utah.edu Subject: help I want to get Tex and LaTex for a sun 3/50 & sun 4 Keywords: SUN 3/50, SUN 4, TeX, LaTeX Please tell me how I can get LaTex code for a sun 3/50 and sun 4 machine Thanks for any help. Ken Poppleton (Evans & Sutherland) Ps. we may also port it to our new ESV machine. ------------------------------------------------------------------------ Date: Mon, 18 Jun 90 15:20:03 MET From: Victor Eijkhout Subject: Paragraph first line Keywords: Pararaph, LaTeX It took me a while to figure this one out. Among the overfull hboxes that I get, a relatively high percentage occurs on the first line of the paragraph. One reason for this is that the first line is often special. Consider for instance the LaTeX description environment, or bibliografies where the first line of a paragraph contains proper names, which are usually longer than the average word. But there is another reason. I found that TeX acts as if each paragraph has a zeroeth line which has badness zero. Therefore the first line can be set with at most tight or loose glue, but never very loose. This procedure makes sense, because a very loose first line is rather more ugly than a very loose line somewhere inside the paragraph. Afterthought: note that the last line of a paragraph is set with glue at natural width (because \parfillskip has usually infinite stretch), so the line before that can also not be very loose. For the fanatics: here is a piece of evidence. %input. \tracingparagraphs=1 \tracingonline=1 \spaceskip=10pt plus 1pt \parindent=0pt \linepenalty=0 \tolerance=10000 \hyphenpenalty=10000 \adjdemerits=4711 \setbox0=\hbox{aaaaa bbbbb} \hsize=\wd0 \advance\hsize by 2pt aaaaa bbbbb ccccc\end %log output @secondpass []\tenrm aaaaa @ via @@0 b=10000 p=0 d=100004711 @@1: line 1.0 t=100004711 -> @@0 bbbbb @ via @@0 b=800 p=0 d=644711 %twice the available stretch @ via @@1 b=10000 p=0 d=100000000 %gives badness 800 @@2: line 1.0 t=644711 -> @@0 %demerits are badness squared. cc-ccc @\par via @@1 b=0 p=-10000 d=4711 @\par via @@2 b=0 p=-10000 d=4711 @@3: line 2.2- t=649422 -> @@2 You see that the \adjedemerits are added twice: one for the transition from zeroeth to first, and one for first to last line. Futilities unlimited is a registered trademark of Victor Eijkhout Department of Mathematics University of Nijmegen Toernooiveld 5 "Far out in the uncharted 6525 ED Nijmegen, the Netherlands backwaters of the unfash- ionable end of the +31 80 61 2986 (secretary) western spiral arm fax: +31 80 55 3450 of the galaxy" u641001@HNYKUN11.BITNET ~ note: changed ---------------------------------------------------------------------------- Date: Fri, 15 Jun 90 10:07:17 +0300 From: Malki Cymbalista Subject: fonts, TeX, LaTeX Keywords: fonts, TeX, LaTeX How do I increase the number of fonts that TeX can load? I am trying to use REVTEX and apparently the number of fonts defined by LaTeX plus those defined by REVTEX are too much. Any help would be appreciated. Malki (BITNET: vumalki@weizmann INTERNET: vumalki@weizmann.weizmann.ac.il) ------------------------------------------------------------------------------- Date: Mon, 18 Jun 90 07:54:57 EDT From: Stephen Moye Subject: Centered last line of paragraph Keywords: TeX, lines, centering The answer to this question is probably very simple, but has so far eluded me. If a paragraph is justified, how do you tell *plain* TeX that you want the last line of the paragraph to be centered? This is a format requirement that has been imposed on me and I have had no luck in finding a solution. Any help would be much appreciated. Many thanks in advance. ------------------------------------------------------------------------- Date: Tue, 19 Jun 90 18:19 N From: Subject: File SHADOW.STY Keywords: shadow.sty % % File: SHADOW.STY % (adapted from the file dropshadow.tex by drstrip@cd.sandia.gov) % % Creation date: 6 June 1990 % % Abstract: The command \sbox has the same meaning of the LaTeX command % \fbox except for the fact that a "shadow" is added to the % bottom and the right side of the box. % It computes the right dimension of the box, also if the text % spans over more than one line; in this case a warning message % is given. % There are three parameters governing: % 1. the width of the lines comprising the box -> \sboxrule % 2. the separation between the edge of the box % and its contents -> \sboxsep % 3. the dimension of the shadow -> \sdim % To use this file put it in the preamble, as usual: % \documentstyle[...,shadow,...]{...} % % Sintax: \sbox{} % where is the text to be put in the framed box % Example: \sbox{This is an example.} % % Author: Mauro Orlandini % International School for Advanced Studies - Trieste - Italy % ORLANDIN@ITSSISSA % 38007::ORLANDINI % \newdimen\sht \newdimen\shw \newbox\shbox \newdimen\sboxsep \newdimen\sboxrule \newdimen\sdim \sboxsep = 10pt \sdim = 4pt \sboxrule = .4pt \def\sbox#1{\setbox\@tempboxa\hbox{#1} \shw\wd\@tempboxa \ifdim\shw<\textwidth \leavevmode\setbox\@tempboxa\hbox{#1} \else \typeout{Warning. Box dimension greater than textwidth.} \setbox\@tempboxa\vbox{\hsize\textwidth\advance\hsize-2\sboxsep \advance\hsize-2\sboxrule \advance\hsize-\sdim#1} \fi \setbox\shbox\hbox{\@tempdima\sboxrule \advance\@tempdima \sboxsep \advance\@tempdima \dp\@tempboxa \hbox{\lower \@tempdima\hbox {\vbox{\hrule \@height \sboxrule \hbox{\vrule \@width \sboxrule \hskip\sboxsep \vbox{\vskip\sboxsep \box\@tempboxa\vskip\sboxsep}\hskip \sboxsep\vrule \@width \sboxrule} \hrule \@height \sboxrule}}}} \sht\ht\shbox \advance\sht-\sdim \leavevmode\vbox{\baselineskip0pt\lineskip0pt \hbox{\copy\shbox\vrule width\sdim height\sht} \hbox{\kern\sdim\vrule height\sdim width \wd\shbox}}} % % End of SHADOW.STY % ----------------------------------------------------------------------- Date: Wed, 20 Jun 90 13:31:24 CDT From: "Erica Harris" Subject: subeqn style file Keywords: subeqn style file Some time ago I resubmitted my subeqn style option file which had been updated to handle labeling. It has become obvious that it got lost somewhere so here it is again. Hope it proves useful. Erica Harris Bitnet: ga.emh@isumvs.bitnet Iowa State University Internet: ga.emh@isumvs.iastate.edu %% FILE: subeqn.sty in SYS2.TEX.PUB.ISULATEX.STYLES %% AUTHOR: Erica M. S. Harris %% DATE: March 1990 %% DESCR: A style option for use in any style. It provides three declarations %% for turning subequation numbering on and off and for stepping the %% equation number for a new set of subequations. The commands are %% \subequations, \nosubequations and \newsubequation respectively. %% These commands should only be used inside the eqnarray and equation %% environments and should be used at the start of the equation line %% from which the change should take effect. This means that, for %% example, \subequations could appear in one eqnarray environment %% and \nosubequations or \newsubequation in a subsequent one. %% \label and \ref (or \pageref) can be used as normal with %% subequations. To refer to the whole equation use \eqlabel to %% generate the label. \eqlabel can be used on any of the subequation %% lines belonging to the equation. %% The following code skeletons provide some illustration of the %% possibilities: %% %% a) \begin{eqnarray} %% ... \\ %% ... \label{ }\\ %% \subequations ... \label{ }\\ %% ... \label{ }\\ %% ... \label{ }\\ %% \nosubequations ... \\ %% ... %% \end{eqnarray} %% %% b) \begin{eqnarray} %% \subequations ... \eqlabel{ }\label{ }\\ %% ... \label{ }\\ %% \newsubequation ... \label{ }\\ %% ... \label{ }\\ %% ... \eqlabel{ }\label{ } %% \end{eqnarray} %% ... %% \begin{equation} %% \nosubequations ... %% \end{equation} %% %% %% MODS: %% \newcounter{oldequation} \def\subequations{\setcounter{oldequation}{\c@equation}% \setcounter{equation}{1}% \global\let\oldtheequation\theequation% \@ifundefined{chapter}% {\gdef\theequation{\theoldequation\alph{equation}} \global\let\thewholequation\theoldequation \gdef\@currentlabel{\theoldequation\alph{equation}}} {\gdef\theequation{\thechapter.\theoldequation\alph{equation}} \gdef\thewholequation{\thechapter.\theoldequation} \gdef\@currentlabel{\thechapter.\theoldequation\alph{equation}}} \global\let\@currenteqlabel\thewholequation} \def\nosubequations{\setcounter{equation}{\c@oldequation}% \stepcounter{equation} \global\let\theequation\oldtheequation \global\let\@currentlabel\theequation} \def\newsubequation{\stepcounter{oldequation} \setcounter{equation}{1}} \def\@currenteqlabel{} \def\eqlabel#1{\@bsphack\if@filesw {\let\thepage\relax \xdef\@gtempa{\write\@auxout{\string \newlabel{#1}{{\@currenteqlabel}{\thepage}}}}}\@gtempa \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack} ------------------------------------------------------------------------ Date: Fri, 22 Jun 90 11:24:56 EDT From: dan@bu-chem.bu.edu Subject: \topmark in LaTeX Keywords: LaTeX4, \topmark I am writing a document style for a book that requires the heading on right pages to be the section current on the first line of the page. I have done this in plain TeX using \topmark, by placing the \mark{...} immediately before the section break, as discussed in the TeXbook, p. 260. In trying to do the same thing in LaTeX, I first had to extract the section part of the mark. I did this with \def\thetopmark{\expandafter\@rightmark\topmark} \def\@oddhead{\hbox{}\footnotesize\rm\hfil\thetopmark\hskip.5in\thepage} This seems to work, with one exception, namely when a new section starts at the top of a page. I think the problem is that \...marks are inserted by \@sect, (with \csname #1mark\endcsname) *after* vertical space is inserted by \@startsection (with \par \@tempskipa #4\relax). This means ... \newpage \section... has \topmark determined by the previous \section. I am using % LATEX VERSION 2.09 <9 Mar 1987> Is there a way to do what I want? Thanks, Dan Dill dan@bu-chem.bu.edu --------------------------------------------------------------------- Date: Tue, 19 Jun 90 13:02:13 +0300 From: Tor Lillqvist Subject: TeX bug in make_accent? Keywords: TeXm bug, make-accent I was reading the code for the procedure make_accent and the section @ when I noticed that the actual code does not correspond to the comment in front of make_accent: Given an accent of width |a|, designed for characters of height |x| and slant |s|; and given a character of width |w|, height |h|, and slant |t|: We will shift the accent down by |x-h|, and we will insert kern nodes that have the effect of centering the accent over the character and shifting the accent to the right by $\delta={1\over2}(w-a)+h\cdot t-x\cdot s$. OK, I understand that this assigns the slant of the font to s: s:=slant(f)/float_constant(65536); But what is the slant of a character? The actual code calculates the same value as s: t:=slant(f)/float_constant(65536); These values are used in calculating delta: delta:=round((w-a)/float_constant(2)+h*t-x*s); As t = s, couldn't this expression be simplified to: delta:=round((w-a)/float_constant(2)+(h-x)*s); and forget about t? Or should we use the italic correction of the character instead of h*t? ------------------------------------------------------------------------------- Date: Fri, 22 Jun 90 09:37:40 PDT From: probert%cs@hub.ucsb.edu (Dave Probert) Subject: TeX 3.00 and hyphenation Keywords: TeX, hyphenation We picked up TeX 3.00 off of labrea, and had no problems compiling and installing it. However hyphenation appears to be terribly broken. 'All' gets hyphenated as 'A-ll'. Did we do something wrong in the installation or it this some kind of defect in 3.00? Thanks. Dave Probert probert@cs.ucsb.edu ----------------------------------------------------------------------- %%% Further information about the TeXhax Digest, the TeX %%% Users Group, and the latest software versions is available %%% in every tenth issue of the TeXhax Digest. %%% %%% Concerning subscriptions, address changes, unsubscribing: %%% %%% BITNET: send a one-line mail message to LISTSERV@xxx %%% SUBSCRIBE TEX-L % to subscribe %%% or UNSUBSCRIBE TEX-L %%% %%% Internet: send a similar one line mail message to %%% TeXhax-request@cs.washington.edu %%% JANET users may choose to use %%% texhax-request@uk.ac.nsf %%% 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 %%% %%%\bye %%% End of TeXhax Digest ************************** -------