Subject: TeXhax Digest V89 #41 From: TeXhax Digest Errors-To: TeXhax-request@cs.washington.edu Maint-Path: TeXhax-request@cs.washington.edu To: TeXhax-Distribution-List:; Reply-To: TeXhax@cs.washington.edu TeXhax Digest Tuesday, May 2, 1989 Volume 89 : Issue 41 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: Problems with the Handy Little Font Re: def numbering in LaTeX Showing labels in the margin using LaTeX. Re: 2 column bilingual format Re: Text in 3 column format RE: Using \label in figure environment Bug in TeX 2.93? A self-study gentle introduction to TeX Re: TeXhax Digest V89 #27 Response to two queries in TeXhax V89 #27 Re: Query regarding nested ifs Re: What is the difference between \crcr versus \cr? RE: Spelling Checker for TeX Needed: tool to sort BibTeX files Re: Announcement concerning Tib (for bibliographies) Saving z pairs with MF -------------------------------------------------------------------------- Date: Tue, 25 Apr 89 21:45-0600 From: Norman "E." Powroz Subject: Problems with the Handy Little Font Keywords: METAFONT In TUGBoat 10, which I just received, Georgia Tobin has a nice little article that provides the Metafont input for a group of pointing hand dingbats. Unfortunately, when I tried it out, I got the following results: %%% ----------------------------------------------------------------- DosMF Version 1.5a Released 1 February 1989 (c) Copyright 1989 Electronetics, Inc. All Rights Reserved. This is METAFONT, MSDOS Version 1.5 (preloaded base=plain 89.4.8) 25 APR 1989 23:39 **\mode=epson;input hands (hands.mf >> x6z5-42.5 ! Undefined x coordinate has been replaced by 0. .. handpointing->...y17;dummyCurve:=z6z5-z2.. z7..tension1.4..z8;dummyLin... l.70 handpointing ; ? h I need a `known' x value for this part of the path. The value I found (see above) was no good; so I'll try to keep going by using zero instead. (Chapter 27 of The METAFONTbook explains that you might want to type `I ???' now.) ? x Font metrics written on hands.tfm. %%% ----------------------------------------------------------------- Is there perhaps a typo in the article, and if so, would anyone have the correction? I am a complete newcomer to Metafont programming, although I have used it to build other fonts, so I know my implementation works (it is Gary Biehl's DosMF 1.5). I was hoping to study Georgia's sample as an introduction to Metafont programming, but haven't gotten very far due to the problems. Any help gratefully received, either to the net, or to me personally. Norm Powroz ------------------------------------------------------------------------ Date: Wed, 26 Apr 1989 11:18:55 JST From: Hideki Isozaki Reply-To: isozaki@ntt-20.ntt.jp Subject: Re: def numbering in LaTeX Keywords: LaTeX I found the following question on LaTeX in "comp.text" news group. >From: apollo@ecf.toronto.edu (Vince Pugliese) >Newsgroups: comp.text >Subject: def numbering in LaTeX > > i was wondering if it is possible to make def's unique by simply > appending a number to the macro definition, e.g. > \def\dummy_macro{..... > \def\dummy_macro2{...... How about this style file? % newarray.sty by Hideki ISOZAKI, isozaki%ntt-20.ntt.jp@relay.cs.net % % Once you declared \newarray{foo} and defined its contents by % % \setarray{foo}{1}{This is the first element.} % \setarray{foo}{alpha}{This is the alpha-th element.} % % you can call them with \foo1, \foo{alpha}. % \def\newarray#1{% \expandafter\newcommand\csname #1\endcsname[1]{\@nameuse{a!#1!##1}}} \def\setarray#1#2#3{\global\@namedef{a!#1!#2}{#3}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Hideki ISOZAKI isozaki%ntt-20.ntt.jp@relay.cs.net Organization: NTT Software Research Laboratory Address: 9-11, Midori-Cho 3-chome, Musashino-shi, Tokyo 180, Japan ----------------------------------------------------------------------- Date: 24 Apr 1989 12:34:51 EST From: carreras@LEES.MIT.EDU Subject: Showing labels in the margin using LaTeX. Keywords: LaTeX, labels, margins I've been trying unsuccesfully to change the following macros so that labels used for cross-referenecs are printed in the margin. As the macro works now the label is printed under a caption or next to an equation depending on where the \label{} command is called. The part of the macro that needs to be changed is "\mbox{\tt[#1]}" at the end of the \def\label#1. I would appreciate it if anyone came up with a solution to this....Thanx Ric Carreras carreras@lees.mit.edu % showlabels.sty % gil@svax.cs.cornell.edu (Gil Neiger) % % Change \label, \ref, and \pageref to show labels in line % \def\ref#1{\@ifundefined{r@#1}{\mbox{\tt#1?}\@warning {Reference `#1' on page \thepage \space undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter \@car\@tempa \@nil\null}} \def\pageref#1{\@ifundefined{r@#1}{\mbox{\tt#1?}\@warning {Reference `#1' on page \thepage \space undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter \@cdr\@tempa\@nil\null}} \def\label#1{\@bsphack\if@filesw {\let\thepage\relax \xdef\@gtempa{\write\@auxout{\string \newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack \mbox{\tt[#1]}} %change needed here, I suspect... \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi \def\@citea{}\@cite{\@for\@citeb:=#2\do {\@citea\def\@citea{,}\@ifundefined {b@\@citeb}{\mbox{\tt\@citeb?}\@warning {Citation `\@citeb' on page \thepage \space undefined}}% \hbox{\csname b@\@citeb\endcsname}}}{#1}} ------------------------------------------------------------------------------ Date: MON 24 APR 1989 08:58:00 EST From: INHB000 Subject: Re: 2 column bilingual format Keywords: 2 column format In a very recent TeXhax (#24, I think) someone asked about a 2 column bilingual format with the paragraphs all starting opposite each other and blank space inserted where necessary. Exactly such a format appears in a paper by Michael J. Ferguson in Tugboat publication devoted to last summer's meeting in Montreal. I didn't keep the name or address of the questioner because I didn't think I could contribute. He/she should definitely write to Ferguson (mike@tel.inrs.cdn). Michael Barr -------------------------------------------------------------------------- Date: Mon, 24 Apr 89 12:37:56 ADT From: "Marc E. Beland" Subject: Re: Text in 3 column format Keywords: LaTeX, 3 column format Hello! I am looking for a way to output text in 3 column mode in LaTeX. I have only recently begun to use LaTeX and so would be a little intimidated to go poking around and modifying the \twocolumn macro. Also I do not have access to back issues of TeXHAX to see if the solution may have appeared there. If such a solution exists now {or if it will very shortly, :-)}, I'd greatly appreciate hearing about it. You can reply directly, or to the net, as I am an avid reader, and there may be others interested in this style. Thanks in advance, Marc Marc E. Beland 3 NETNORTH/BITNET: BELAND@UPEI.CA Prog/Analyst 3 PHONE NET: (902) 566-0932 Computer Center 3--------------------------------------------------------- U.P.E.I. 3 \input disclaimer.sty Prince Edward Isle 3 \input witticism.sty ------------------------------------------------------------------------- Date: Mon, 24 APR 89 11:25:13 BST From: TEX%rmcs.cranfield.ac.uk@NSS.Cs.Ucl.AC.UK Subject: RE: Using \label in figure environment Keywords: LaTeX, \label In TeXhax v89 #24, dlv@uwavm.acs.washington.edu reports his difficulties with using \label in the figure environment, and claims that he is using it in accordance with Lamport's book. Unfortunately, he isn't. To make \label be a reference to the figure's number, the \label has to FOLLOW the \caption command; where he has it, it is producing a reference to the smallest enclosing SECTION, which is Chapter 1, and hence the four 1's when he references his figures. Brian {Hamilton Kelly} | JANET: tex@uk.ac.cranfield.rmcs | | BITNET: tex%uk.ac.cranfield.rmcs@ac.uk | | INTERNET: tex%uk.ac.cranfield.rmcs@nss.cs.ucl.ac.uk | | Smail: School of Electrical Engineering & Science, Royal Military | | College of Science, Shrivenham, SWINDON SN6 8LA, U.K. | | Phone: Swindon (0793) 785252 (UK), +44-793-785252 (International) | ---------------------------------------------------------------------------- Date: Tue, 25 Apr 89 13:16:42 met From: Bo Thide' Subject: Bug in TeX 2.93? Keywords: TeX, bug We use Tex 2.93 with the BIGTEX patch applied. We have noticed that the vertical spacing does not work as in our old TeX 2.0. E.g, if I use LaTeX with large true size fonts (typically 14 or 17 pt and larger) superscripts and subscripts in math mode do not come out as they should. For instance, 2 x i looks more like x2 i The same is also true for spacing between lines in tables and footnote signs (* etc). This happens both for our Laserjet output as well as when using X Windows previewers so it is not a dirver problem. Is this a bug or what? I would appreciate any hints. Our users are very confused not being able to run old TeX files anymore. Please e-mail. Bo ^ Bo Thide'-------------------------------------------------------------- | | 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!sunic!irfu!bt ~~U~~ -----------------------------------------------------------------sm5dfw ------------------------------------------------------------------------------- Date: Wed, 26 Apr 89 09:44 cdt From: mdoob%ccm.UManitoba.CA@UWAVM.ACS.WASHINGTON.EDU Subject: A self-study gentle introduction to TeX Keywords: TeX, manual, introduction I have written a self-study gentle introduction to TeX. I'll be talking about some related problems at the summer TUG meeting and I had planned to put the thing in the public domain at that time. Jon Barwise mentioned the existence of this manual in his column in the AMS notices, so I guess it's no secret anymore. Here is the deal: the manual presupposes no knowledge of TeX. The level of the material covered inlcudes the elementary and about half of the intermediate topics in Dean Guenther's list. I would like to get more feedback on my current draft; if you would like to give me some, drop me a note (mdoob@uofmcc.bitnet) and I'll send you the TeX source. Michael Doob Department of Mathematics University of Manitoba Winnipeg, Manitoba R3T 2N2 Canada ------------------------------------------------------------------------------ Date: Thu, 27 Apr 89 10:19:24 PDT From: lamport@src.dec.com (Leslie Lamport) Subject: Re: TeXhax Digest V89 #27 Keywords: LaTeX Ashwin Ram writes I like to separate figures from the text using a horizontal line, e.g., something like: \begin{figure}[tbp] \makebox[\textwidth]{\hrulefill} ... \makebox[\textwidth]{\hrulefill} \end{figure} The problem is that I would like the horizontal line to appear only on the "text side" of the figure. In other words, if the figure appears at the top of the page, I want only the line at the bottom of the figure to separate it from the rest of the text below; if it appears at the bottom of the page, I want only the line at the top of the figure to separate it from the rest of the text above; and if it appears on a page by itself, I want either both lines or none (depending on my mood :-)). Inside the bowels of latex.tex, one finds % PAGE STYLE PARAMETERS: ... % \topfigrule : Command to place rule (or whatever) between floats % at top of page and text. Executed in inner vertical % mode right before the \textfloatsep skip separating % the floats from the text. Must occupy zero vertical % space. (See \footnoterule.) % \botfigrule : Same as \topfigrule, but put after the \textfloatsep % skip separating text from the floats at bottom of page John P. Rouillard wants a style file to allow text to flow around floated figures. TeX is Turing-equivalent, so this is of course possible. The easiest way to do it is to write a TeX macro that simulates a Turing machine and then re-implement LaTeX as a Turing-machine program, adding the desired extra functionality. It wouldn't be too hard to write a macro that put the figure inside a specified paragraph, but the drawbacks to that approach are obvious. Leslie Lamport ---------------------------------------------------------------------------- Date: Wed, 26 Apr 89 19:46 EDT From: "Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU)" Subject: Response to two queries in TeXhax V89 #27 Keywords: nested if, \cr, \crcr Ashwin Ram would like to place rules between figures and text. There are three style parameter macros that can be used to do this. Here are the des- criptions, as given in LATEX.TEX: % \topfigrule : Command to place rule (or whatever) between floats % at top of page and text. Executed in inner vertical % mode right before the \textfloatsep skip separating % the floats from the text. Must occupy zero vertical % space. (See \footnoterule.) [Defined in PLAIN -- J] % \botfigrule : Same as \topfigrule, but put after the \textfloatsep % skip separating text from the floats at bottom of page. % \dblfigrule : Similar to \topfigrule, but for double-column floats. Note that these are simply commands expanded at the appropriate places. In all the standard styles, they are \let to \relax; you can redefine them with \renewcommand (or \def). Since none of the standard styles use them, and they are not mentioned by the LaTeXbook, if they don't work you are probably on your own. There are no analogous commands defined for "page of floats" floats, or for "in text" floats. You'd have to modify the appropriate macros within LaTeX if you wanted these capabilities. (For "page of floats", the macro you need to change is \@vtryfc; for "in text" floats it's probably \@addtocurcol. Don't consider such hacking lightly!) Stephan Bechtolsheim asks two questions, one concerning nested \if's which I KNOW I've answered in some other forum (briefly, what he wants to do is im- possible, at least the way he wants to do it - see page 211 in the TeXbook); and one concerning the difference between \cr and \crcr, which is also answered in the TeXbook (page 249): \crcr is identical to \cr, except that it is allowed - and ignored - immediately after another \cr or a \noalign. This is handy in defining macros that produce alignments since it means that the user of the macro can include a final \cr or not, and have the macro work correctly either way. (In the particular case of a preamble, it may be unlikely that the user will explicity type \cr, but he may have set TeX up to insert one automatically, as discussed on the same page. In any case, it can't hurt.) Jerry ---------------------------------------------------------------------- Date: 26 Apr 89 1833 PDT From: Arthur Keller Subject: Re: Query regarding nested ifs Keywords: nested ifs Try the following, which I may have suggested in an earlier message: \setupfootest \iffoo then text 1 \setupbartest \ifbar then text 2 \else % foo else text 2 \fi % bar \else % foo else text 1 \fi % foo Note that \setupfootest and \setupbartest use \footrue or \foofalse and \bartrue and \barfalse, respectively. Arthur -------------------------------------------------------------------------- Date: 26 Apr 89 1838 PDT From: Arthur Keller Subject: Re: What is the difference between \crcr versus \cr? Keywords: \crcr, \cr \halign{...\cr\cr...} causes a blank row to be produced (actually one whose first parameter is null). \halign{...\cr\crcr...} does not do that. Hence, \crcr may savely be used in the case the argument to a macro is terminated by \cr or not. See page 249 of The TeXbook. Arthur ------------------------------------------------------------------------------- Date: Mon, 24 Apr 89 07:14 EST From: Ted Nieland - SRL <@AAMRL.AF.MIL:TNIELAND@FALCON> Subject: RE: Spelling Checker for TeX Keywords: TeX, spell checker RE: TeXHaX V89 #26 > >Date: Thu, 23 Mar 89 08:50:57 PST >From: wagman%praxis.hepnet@Csa4.LBL.Gov >Subject: Spelling Checker for TeX >Keywords: TeX, spell checker > >I have a spelling checker on my microVAX, running VMS, which I acquired from >our computer center. It needs a VT-series terminal, as best as I can >determine, and understands imbedded TeX control sequences. The description >from the top of the PASCAL program is shown below as well as a list of the >files it uses and their sizes. > >Unfortunately, I cannot open my machine to liberal network access and cannot >distribute media. I doubt that the program's author wants to be contacted >by hundreds of Texxies. How can we proceed? > >Gary Wagman >Lawrence Berkeley Lab >WAGMAN@LBL.GOV or LBL::WAGMAN > The SPELL program for VMS is included on the DECUS TeX Collection available from the DECUS Library or from your local DECUS LUG. The DECUS TeX Collection (current version is February 1989) is a collection of TeX, LaTeX, AMSTeX, TeXSiS, and various tools for use with TeX. The VMS material is ready to be used. UNIX compressed Tar files are also available to set up a UNIX Version of TeX. Two MS-DOS versions of TeX (DOSTeX and SBTEX) are also available in ARC files. The DVI drivers include: The UTAH (Beebe) Collection (exe's & source) Several LN03 Drivers (DVI2LN3,DVItoLN03,+) (exe's & source) Postscript driver (DVI2PS) (source code) DVItoVDU (supports Regis, Tektronics, Ascii,+) (exe & source) DVIDIS (VAXStations using UIS) (exe) X-WIndows (Source code for TeXx and XDVI) The DECUS TeX Collection, order number V-SP-58, may be obtained, for a minimal charge from: The DECUS Program Library 219 Boston Post Road BP02 Marlboro, MA 01752-1850 Phone: 508 480-3418 The DECUS TeX Collection is also available via the DECUS National LUG Organization Tape Copy Project. The Tape is made available to DECUS LUG's (Local User Groups) at no charge (provide your own tape). Contact your local LUG to see about getting a copy of the tape. Ted Nieland TNIELAND@AAMRL.AF.MIL DECUS TeX Collection Editor ------------------------------------------------------------------------------- Date: Thu, 27 Apr 89 10:20:43 -0400 From: finin@PRC.Unisys.COM Subject: Needed: tool to sort BibTeX files Keywords: BibTeX I'm looking for a tool that can be used to sort the entries in a BibTeX file. I'd be happy if it sorted by the key, but more sophisticated capabilities (i.e. sorting by last name of first author) would be just dandy. Tim Organization: Unisys - Paoli Research Center Paoli, PA ----------------------------------------------------------------------------- Date: Mon 24 Apr 89 07:44:51-PDT From: Oren Patashnik Subject: Re: Announcement concerning Tib (for bibliographies) Keywords: BibTeX, Tib > From: "James C. Alexander" > Subject: Announcement concerning Tib (for bibliographies) > . . . > [Tib is] a preprocessor. If desired, changes can be made before the TeX > run. Also sometimes size is a consideration; in one case > LaTeX+BiBTeX+PiCTeX was too big, but LaTeX+Tib+PiCTeX was not. Lest this cause some confusion: BibTeX, too, is a preprocessor. It's fairly unlikely that either of Tib or BibTeX would cause overflow, and it's incredibly unlikely that one would but the other wouldn't. (James Alexander tells me that, for the one case he mentioned above, it turns out he was misinformed about what actually happened.) Oren Patashnik ------------------------------------------------------------------------- Date: Mon, 24 Apr 89 13:32:42 CDT From: Don Hosek Subject: Saving z pairs with MF Keywords: fonts, METAFONT In my Oriental fonts project, I have decided that it would be reasonable to use the same set of suffixes in different radicals of the same character. (this will simplify top level coding). I am able to "renew" some z.? by using an assignment with whatever, but I have been unable to figure out how best to be able to restore old values when they are later needed. Enclosing the whole mess with begingroup ... endgroup and using save x,y doesn't work since this loses ALL values of x and y. Furthermore, I can't say save x101,y101 (or save z101) since each of those consists of more than one token. Any ideas? dh Don Hosek Internet: U33297@UICVM.UIC.EDU 3916 Elmwood Bitnet: U33297@UICVM.BITNET Stickney, IL 60402 DHOSEK@YMIR.BITNET Work: 312-996-2981 UUNet: dhosek@jarthur.claremont.edu JANET: U33297%UICVM.UIC.EDU@UK.AC.EARN-RELAY ------------------------------------------------------------------------------- %%% 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 ************************** -------