Subject: TeXhax Digest V90 #38 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 Sunday, April 8, 1990 Volume 90 : Issue 38 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: typo in sfb.sty FWEB (Avenarius & Oppermann) vs. FWEB (Krommes) TeX 3.0 is here! Re: TeXhax Digest V90 #30: Numeric Constants and \if Conditionals \bordermatrix equivalent for LaTeX RTF (Rich Text Format) to LaTeX dvi to raster Overlaying mathematical symbols Composite mathematical operators Delimiting arguments with control sequences Re: Gaining control over equation numbers Re: Gaining control over equation numbers ------------------------------------------------------------------------------- Date: Tue, 27 Mar 90 15:05 MET From: "Johannes L. Braams" Subject: typo in sfb.sty Keywords: Typo, sfb.sty Hi, In the file sfb.sty which I contibuted recently I've discovered a typo. For xxvpt the family used is \sffam, it should be \sfbfam. Johannes Braams ------------------------------------------------------------------------------- Date: 26. March 1990, 11:57:09 (CET) From: XIP2GSNE%DDATHD21@UWAVM.ACS.WASHINGTON.EDU Subject: FWEB (Avenarius & Oppermann) vs. FWEB (Krommes) Keywords: FWEB In April 89, we finished the construction of FWEB, a WEB system for Fortran 8x. The system is available since summer 89. In November 89, Krommes describes his own WEB system for Fortran, which unfortunately is also named FWEB. In a follow-up mail, he claims that his system is superior and insinuates that our system is not really 8x (because the example in the SIGPLAN paper did not demonstrate formatting of 8x features). We have to point out clearly that Krommes's insinuation concerning the 8x extensions is wrong. Our FWEB has been developed for the German supercomputer SUPRENUM, and its development has been funded by the German minister for science and technology. It therefore can handle what is called SUPRENUM Fortran, which is even a superset of Fortran 8x. Our system is distributed on streamer tape; the handling fee is $100. If you are interested to obtain a copy, write to Adrian Avenarius Praktische Informatik Technische Hochschule Darmstadt Magdalenenstr. 11c D-61 Darmstadt West Germany ------------------------------------------------------------------------------- Date: Sun, 25 Mar 90 21:37:20 -0800 From: weening@Gang-of-Four.Stanford.EDU (Joe Weening) Subject: TeX 3.0 is here! Keywords: TeX 3.0 Donald Knuth has released the changes to TeX 3.0, Metafont 2.0 and related programs. New files are available on labrea.stanford.edu for anonymous FTP in the directory pub/tex. Please read the README file in that directory. Patches from the January 1990 release (TeX 2.993, MF 1.9, etc.) are also available in pub/tex/patches on Labrea. Note that this is the WEB/Pascal version of TeX, not the web2c version of TeX for Unix. The web2c changes will be announced when they are ready. If you want to install TeX 3.0 on a Unix system, it is best to wait until then. Current version numbers are: TeX 3.0 MF 2.0 WEAVE 4.1 and the others as in January, namely TANGLE 4 POOLtype 3 TFtoPL 3.1 PLtoTF 3.2 DVItype 3.2 GFtype 3 GFtoPK 2.2 GFtoDVI 3.0 MFT 2.0 VFtoVP 1 VPtoVF 1 ----------------------------------------------------------------------------- Date: Mon, 19 Mar 90 20:56:20 +0100 From: Uwe Geuder Subject: Re: TeXhax Digest V90 #30: Numeric Constants and \if Conditionals Keywords: Numeric Constants, \if Conditionals Numbers may contain macros, i. e. the \ifnum could be a part of a longer number beginning with 2 in >\advance\tempcount by 2\ifnum\tempcount<\ref ... The following example should show this a little bit clearer: \newcount\eleven \newcount\twelve \eleven=1\ifnum 11<12 1 \else 2 \fi \twelve=1\ifnum 12<11 1 \else 2 \fi \message{11 = \number\eleven, 12 = \number\twelve} \end So, the \ifnum of the given source must be expanded before the \advance can execute. If a space is inserted, the number is clearly delimited and \ifnum expanded afterwards. I'd guess the chapter summarizing horizontal or vertical mode (whatever is first) far back in the TeX-book (I don't have one here) explains the syntax of numbers. (Look for the section marked with stars) Uwe Geuder, University of Stuttgart, Fed. Rep. of Germany ------------------------------------------------------------------------------- Date: Tue, 27 Mar 90 08:38:59 GMT From: Pablo Iglesias Subject: \bordermatrix equivalent for LaTeX Keywords: LaTeX, \bordermatrix I do a lot of typesetting of matrices . It is sometimes necessary to put the dimensions of the block matrices outside of the big matrix. The TeX command \bordermatrix does this. Ideally, however, I would like to work with the same sort of features that the array environment has in LaTeX. (I partition the blockmatrices with \hline and vertical lines quite regularly) If anyone out there has suggestions on how I can do this I would be most thankful; even better if someone has already tackled this problem or one similar to it. I think that I can write a macro for this but would probably take a lot of time and aggravation in doing it. Thanks Pablo Iglesias pi@uk.ac.cam.eng Dept. Engineering Cambridge University ------------------------------------------------------------------------------- Date: Thu, 22 Mar 90 15:03 PST From: Ted Holzman Subject: RTF (Rich Text Format) to LaTeX Keywords: LaTeX, RTF Hi. Does anyone know of a set of TeX or LaTeX macros that will typeset info in RTF formatted file? I have a user who has a thesis half-done in microsoft word, and would like to change to LaTeX. I suspect that RTF is the best intermediate, but if anyone knows a better way I would appreciate learning it. -Ted Holzman Locke Computer ---------------------------------------------------------------------------- Date: Sat, 24 Mar 90 01:55:37 EST From: Allan Adler Subject: dvi to raster Keywords: TeX, raster, dvi I would like to format a page in TeX, produce a dvi file and then produce a bitmap file of prescribed dimensions from the dvi file. I know that there are previewers for dvi files but as nearly as I can tell, they produce their windows directly instead of producing a raster file and leaving it lying around (By the way, I'm on a SUN3 or a Sparc). The reason I need this is that I would like to put the printed output on a videotape. I have a friend with a board that plugs into an IBM PC AT which produces video output given a 512 x 480 pixel bitmap. So I would like to be able to produce bitmaps of parts of the page and of specified dimensions. (The reason I want to be able to take parts of the page, e.g. a rectangle in the page is so that I can ignore large blank areas). Any ideas on where to get this capability for free is welcome. Allan Adler ara@lom1.math.yale.edu ----------------------------------------------------------------------------- Date: Mon, 26 Mar 90 15:02:23 PST From: wagman@Csa2.LBL.Gov (Gary S. Wagman (415)486-6610) Subject: Overlaying mathematical symbols Keywords: TeX, LaTeX, mathematical symbols. overlaying Erica Harris asked for integrals like \oint but with a dash or equal sign overlayed on the integral sign. Maybe there is a more elegant way to implement this, but here's my solution. I tested it at various point sizes and with overlays that are wider than the integral sign, and all appeared fine except that the new integral and its overlay are printed in \textstyle even when used as a script or scriptscript. Gary Wagman Lawrence Berkeley Lab BITNET: WAGMAN@LBL INTERNET: WAGMAN@LBL.GOV HEPNET: LBL::WAGMAN \def\NewInt#1% {% \setbox0=\hbox{$\int$}% Save the integral sign so we can use its width. \setbox1=\hbox{#1}% Save the width of the overlay argument. \setbox3=\hbox{}% \ifdim\wd0 > \wd1% Save the wider of the two boxes. \wd3 = \wd0% \else \wd3 = \wd1% \fi % % Print the overlay symbol smaller than the size of the integral raising it % a bit. % First put it in the middle of a box the width of the integral sign or the % overlay argument (whichever is wider). % Then put that at the left edge of a zero width box. % \hbox to 0pt% {% \hbox to \wd3% {% \hss% \raise.15em\hbox{$\scriptscriptstyle#1$}% \hss% }% \hss% }% % % Print the integral. % \ifdim\wd0 > \wd1% \box0% \else% \hbox to \wd3{\hss\box0\hss}% \fi% } % % Test it... % $A\NewInt=B$\qquad% $A\NewInt{\hbox{---}}B$\qquad% $A\NewInt-B$\qquad% $X^{A\NewInt-B}$\qquad% $Y^{Z^{A\NewInt-B}}$% \end ------------------------------------------------------------------------------- Date: Mon, 26 Mar 90 18:10 PST From: Subject: Composite mathematical operators Keywords: mathematical operators, oerlaying % Erica Harris was looking for an integral sign overprinted % with an =. The "obvious" solution is to use \ooalign in % analogy with the other overprinted symbols. Unfortunately % this would prevent the lower integral limit (the subscript) % from tucking in next to the integral sign. The better % solution is to do the overlapping manually. Here is my first % solution: \def\Xint#1{\mathpalette\XXint{#1}\!\int} \def\XXint#1#2{\setbox0=\hbox{$#1{#2}{\int}$}{#2}\kern-.5\wd0 } % Here the width is measured in box 0. The \! is to counteract % the thin space automatically inserted between ORD and OP atoms. % Unfortunately, the text style = is too big for the text style % integral so I have to use \mathchoice to select smaller fonts % in each style. Then there is another problem because the different % fonts are no longer vertically centered on each other! Thus % I get the following: \def\Xint#1{\mathchoice {\XXint\displaystyle\textstyle{#1}}% {\XXint\textstyle\scriptstyle{#1}}% {\XXint\scriptstyle\scriptscriptstyle{#1}}% {\XXint\scriptscriptstyle\scriptscriptstyle{#1}}% \!\int} \def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$} \vcenter{\hbox{$#2#3$}}\kern-.5\wd0}} \def\ddashint{\Xint=} \def\dashint{\Xint-} Try $\ddashint_0^1$: $$\ddashint_0^1=\dashint_1^0<\oint_{-\infty}^\infty$$ \bye % Donald Arseneau, asnd@triumfcl (.bitnet) ---------------------------------------------------------------------------- Date: Tue, 27 Mar 90 11:49:17 BST From: Jeremy.Gibbons%prg.oxford.ac.uk@NSFnet-Relay.AC.UK Subject: Delimiting arguments with control sequences Keywords: Delimiting arguments, control sequences I can define macros \beginfoo and \endfoo so that I can write \beginfoo bar \endfoo to be equivalent to \foo{bar}; for example, \def\beginfoo#1\endfoo{\foo{#1}} Is there a way of doing this that doesn't involve pattern matching on the \endfoo, so that I can use any one of several control sequences to terminate the argument? I can do it in the special case that \foo expands out to (tokens ending with) \hbox. For example, given \def\beginfoo{\hbox\bgroup} \def\endfoo{\egroup} \def\anotherendfoo{\egroup} then both \beginfoo bar\endfoo and \beginfoo bar\anotherendfoo are equivalent to \hbox{bar}. However, this works only for a few primitive commands; the braces round hboxes are different to normal braces (TeX the program, section 269) though I'm not sure exactly in what way or for what reason they differ. Can I get this effect for an arbitrary macro \foo? I want this so I can say \begin{myenv} \one first bit of text \two second bit of text \one third \one fourth \two fifth \two and sixth bit of text \end{myenv} and have \one and \two take an argument terminated by any of \one, \two and \end{myenv}. (I don't want to make newlines active and match on them, because the arguments may be longer than one line.) *------------------------------------------------------------------------* | Jeremy Gibbons (jg%prg.ox@nsfnet-relay.ac.uk) | | Programming Research Group, Oxford University, England | ----------------------------------------------------------------------------- Date: Wed, 28 Mar 90 12:28:18 CET From: Rainer Schoepf Subject: Re: Gaining control over equation numbers Keywords: LaTeX, equation numbers On Wed, 14 Mar 90 11:22:59 +0100 Martin Jourdan said: Date: Sun 11 Mar 90 02:20:42-PST > From: Andras Kornai > > Another reason why I would > like to gain control over these numbers is that I want to omit the > chapter identifiers from the equation number, so that for eq (7) in > chapter 2 I get plain (7), rather than (2.7). > > Styles based on the report style insert the chapter number in equation > numbers. To get the simpler numbering of the article style, put this > line, copied from article.sty, in the preamble of your document: > > \def\theequation{\arabic{equation}} > > For more information on numbering, see page 175 of the LaTeX manual. > > < Stephen > >Unfortunately the above line is not sufficient in styles in which the >\chapter sectioning command is available (report and book, to cite the >standard ones). With this line the chapter number will actually not >appear with the equation number, i.e., the seventh equation in the >second chapter will be numbered (7) instead of (2.7), but the equation >counter WILL STILL BE RESET AT THE BEGINNING OF EACH CHAPTER. So the >equations will not be numbered continuously, and several equations in >different chapters will have the same number. > >Preventing that is not easy. The only solution which comes to my mind >is to use a different counter for numbering equations, as follows >(modified erxcepts from "latex.tex"): The problem comes from the following line in report.sty: \@addtoreset{equation}{chapter} This tells LaTeX to reset the equation counter whenever the chapter counter is stepped. If you don't want this you have to create your own document style, say `myreport' as a copy of report.sty, but with this line deleted (and probably others changed). It is a common misunderstanding that changes like this should be done in style options or even in the document itself. LaTeX's `report' document style is nothing more than an example style. If you want things to be formatted differently, you have to create your own. The solution proposed by Michael Jourdan certainly circumvents the problem. But it does not fit into the LaTeX concept. He says himself that "it may have various interactions with secondary style files such as leqno.sty". That's the point. A new document style with the above line removed will not have these problems. I don't want to say that LaTeX is perfect. There are lots of very reasonable demands that cannot be realized in present LaTeX. Therefore there will be a new version in the future. But I want to stress that the failure to realize some special formatting may indicate that you want a new document style, even if you don't realize it. Rainer Sch\"opf ------------------------------------------------------------------------------ Date: Wed, 28 Mar 90 12:47:38 CET From: Rainer Schoepf Subject: Re: Gaining control over equation numbers Keywords: LaTeX, equations On Tue, 13 Mar 90 15:00:24 CST William LeFebvre said: > Date: Sun 11 Mar 90 02:20:42-PST > From: Andras Kornai > > In general I like the automated equation numbering scheme provided by > LaTeX, but now and again I would like to put some structure in the > numbers. For instance, I want to refer to a bunch of related equations > (which might or might not come under a single eqnarray) as (4A), (4B), > and (4C), rather than (4), (5), and (6), or I want to refer to an > equation that came from rearranging the terms in equation (8) as > equation (8') and so on. Is there any simple way of doing this? By > `simple' I mean something that does not require setting and resetting > the equation counter, just a single statement as (if my memory serves > me well) \eqno was in TeX. > > I'm quite prepared to give up automated numbering/crossreferencing and > number each and every equation explicitly. Another reason why I would > like to gain control over these numbers is that I want to omit the > chapter identifiers from the equation number, so that for eq (7) in > chapter 2 I get plain (7), rather than (2.7). Perhaps this second > question has a trivial solution -- if so, I would be interested even > if it does not give me full control of the kind I asked for in the > first part. > > Thanks a lot, > > Andras Kornai (kornai@csli.stanford.edu, kornai@suwatson.bitnet) > > PS. I use a slight modification of the suthesis style, but I don't > know enough of (La)TeX to make the desired changes myself. > ------- > >I know of no mechaism that LaTeX already provides for numbering your >own equations. But it looks like it would not be that hard to add >one. Take a look at the standard style file "leqno.sty". This file >is supposed to make equation numbers appear on the left instead of the >right. It provides some insight into how the equation numbering >system is set up. Looking in latex.tex itself, at the part where >\begin and \end{equation} are defined, it looks like Lamport just uses >good old \eqno to set the equation number. This leads me to believe >that it would not be difficult for a modest LaTeX hacker to write a >new environment which would set an equation with a specified equation >number. > >But I don't know of any style like this that has already been written. >Does anybody else? > > William LeFebvre > Computing Facilities Manager and Analyst > Department of Electrical Engineering and Computer Science > Northwestern University > The new `amstex' style option for LaTeX (that has already been announced by the AMS) implements this feature. In addition to the \nonumber command there is a \tag command that allows you to specify your own equation tag. Rainer Sch\"opf ----------------------------------------------------------------------- %%% 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 ************************** -------