TeXhax Digest Friday, June 3, 1988 Volume 88 : Issue 53 This weeks Editor: Malcolm Brown Today's Topics: Re: Wanted: DVI re-ordering program for UNIX Request for information on PHYZZX Figure captions Alternative Equation Numberings in LaTeX TeX style for VMS manuals (retraction) Grammar-school math texts Page Imposition from .dvi files No LaTeX warning about illegal arguments to \line Difference files Colon in figure captions Not enough allocated memory ? Apple LaserWriter modedefs Section heading placement... updates to LaTeX files for Unix Re: TeXhax Digest V88 #52 Re: inbook and BibTeX 0.99c LaTeX Style Files for Apple LW Built-in fonts Re: Putting a QED at the end of a proof in AmsTex. Re: LaTeX bug (TeXhax 1988 #52) RE: Labels in TeX TeXhax v.88, n.52 (re: inbook problem) LateX "bug" Indexing the Unix way -- revisited ---------------------------------------------------------------------- Date: Tue, 31 May 88 10:44:16 CDT From: William LeFebvre Subject: Re: Wanted: DVI re-ordering program for UNIX I have such a program (I call it "booklet order"), but it does not produce "truly correct" DVI files. I have not had the time to go back and make it do so. Currently, the program just picks up the old page and writes it unmodified in its new place. The entire postamble also gets copies without alteration. This will work with Chris Torek's iptex, because it gets all fontdefs from the postamble and ignores the ones in the body. But in general, the result is not a correct DVI file (because font uses can end up being placed before the coresponding fontdef). For that reason, I will not redistribute it. I will, however, gladly sumamrize the permutation algorithm that I use if anyone is interested. I think that dviselect (which comes on the Unix TeX tape) could be modified to do this without too much effort. William LeFebvre Department of Computer Science Rice University ------------------------------ Date: Tue, 31 May 88 09:46:19 PDT From: KARNEY%PPC.MFENET@NMFECC.ARPA Subject: Request for information on PHYZZX I have heard good things reported about the TeX macro package PHYZZX (from SLAC). Can anyone give me more detailed information? Pointers to macros and associated documentation would be ideal. Charles Karney Plasma Physics Laboratory Phone: +1 609 243 2607 Princeton University MFEnet: Karney@PPC.MFEnet PO Box 451 ARPAnet: Karney%PPC.MFEnet@NMFECC.ARPA Princeton, NJ 08543-0451 Bitnet: Karney%PPC.MFEnet@ANLVMS.Bitnet TeXhax@Score.Stanford.EDU KARNEY ------------------------------ Date: Tue, 31 May 88 14:39:50 PDT From: John Lee Subject: Figure captions The Chicago Manual of Style states that Figure captions should appear like this: Figure 2. This is a figure. not: Figure 2: This is a figure. (Note the period after Figure 2 is correct; a colon is wrong). Where in the guts of LaTeX might I correct this? ------------------------------ Date: Tue, 31 May 88 20:09:29 EDT From: "William J. Gilbert" Subject: Alternative Equation Numberings in LaTeX Here are two macros for different types of equation numberings in LaTeX. The first macro labels equations by sections, such as 2.3 in the article or report style and 2.1.5 (ugh!) in the book style. The second macro labels a group of equations by letters, such as 2.4a, 2.4b. % Use the command '\eqnsection' at the beginning of the document to label % equations by sections. \newcommand{\eqnsection}{ \renewcommand{\theequation}{\thesection.\arabic{equation}} \makeatletter \csname @addtoreset\endcsname{equation}{section} \makeatother} % Use the environment 'eqnabc' instead of 'eqnarray' to label a group of % equations by letters. It can be used with or without '\eqnsection.' \newenvironment{eqnabc}{ \stepcounter{equation} \edef\numericalpart{\theequation} \let\originaltheequation=\theequation \newcount\equationno \equationno=\value{equation} \setcounter{equation}{0} \renewcommand{\theequation}{\numericalpart\alph{equation}} \begin{eqnarray} }{ \end{eqnarray} \setcounter{equation}{\number\equationno} \renewcommand{\theequation}{\originaltheequation}} Will Gilbert, Pure Math Dept wjgilbert@water.UWaterloo.ca ------------------------------ Date: Wed, 1 Jun 88 05:55:51 PDT From: KARNEY%PPC.MFENET@NMFECC.ARPA Subject: TeX style for VMS manuals (retraction) In an earlier TeXhax submission, I had stated that Tom Fredian of MIT had written some macros which typeset manuals in the DEC style. At the advice of the MIT lawyers, these macros are NOT being distributed. Please don't ask Tom for them. Sorry for the confusion. People who want to format manuals should look into DEC's VAX Document. Charles Karney Plasma Physics Laboratory Phone: +1 609 243 2607 Princeton University MFEnet: Karney@PPC.MFEnet PO Box 451 ARPAnet: Karney%PPC.MFEnet@NMFECC.ARPA Princeton, NJ 08543-0451 Bitnet: Karney%PPC.MFEnet@ANLVMS.Bitnet ------------------------------ Date: Mon, 30 May 88 00:58 GMT From: Peter Flynn UCC Subject: Grammar-school math texts I am happy to say (re Leslie Lamport's comment in a recent issue) that there will soon be at least one secondary level math text done entirely in TeX. We are doing it here for a Nigerian mission school where the math teaching is done by a far-sighted priest who contacted us about computer typesetting when he was home on leave recently. The book will be published in Nigeria and available to all schools there. How's that for market penetration :-) ...Peter Flynn University of Cork, Ireland ------------------------------ Date: Mon, 30 May 88 01:07 GMT From: Peter Flynn UCC Subject: Page Imposition from .dvi files Mario Wolczko asks (TexHax 51) if DVI progs could output correctly imposed pages (that's the word he was looking for). The answer I think is no, not at the moment, but it shouldn't be too difficult. The requirements are: a. for a total page-count which is a multiple of 4, no problem, all it needs to do is effectively count inwars from both ends of the document; b. for other page-counts, assume blank pages at the end to make it up to the nearest multiple of 4; What would also be nice is an option to print entirely in reverse, so that people with page printers which do not stack in print order will output in page order, thus avoiding you having to reverse all ther pages; also, a similar bodge to the 4--page problem, so output pages 1 8 2 7 3 6 4 5 of an 8--pager, so that they are in the right order for pasting up as camera masters. How about it, dviers (arbortext etc)? Peter Flynn ------------------------------ Date: Mon, 30 May 88 13:52 N From: (Johannes) Subject: No LaTeX warning about illegal arguments to \line Hello feloow TeXnicians, I received the following file from one of our users. He was foolish enough not to read the manual well enough and used **illegal** arguments to the \line function. He now wants to know wether or not LaTeX should give him a warning about these illegal arguments, because LaTeX didn't complain, but the result was that he ended up with arrowheads instead of straight lines. What about it? ============================================================================ % created April 25 1988 % revision May 17 1988 \documentstyle{article} \setlength{\unitlength}{0.4cm} \hyphenation{com-pa-ring} \hyphenation{net-work} \hyphenation{al-ter-na-tives} \thicklines \begin{document} % \begin{figure}[t] \caption{Topologies of point--point channel networks} \label{f:point--point} \center % \begin{picture}(14,14) \put( 5, 0){\makebox( 4, 1)[c]{(a): star network}} % \put( 5, 5){\framebox(4,4)[c]{\shortstack{central \\ node}}} \put( 1, 1){\framebox(2,2)[c]{node}} \put( 1, 6){\framebox(2,2)[c]{node}} \put( 1,11){\framebox(2,2)[c]{node}} \put(11, 1){\framebox(2,2)[c]{node}} \put(11, 6){\framebox(2,2)[c]{node}} \put(11,11){\framebox(2,2)[c]{node}} \put( 3, 2){\line( 1, 1){3}} \put( 3,12){\line( 1,-1){3}} \put(11, 2){\line(-1, 1){3}} \put(11,12){\line(-1,-1){3}} \put( 3, 7){\line( 1, 0){2}} \put(11, 7){\line(-1, 0){2}} \end{picture} % % \begin{picture}(14,14) \put( 5, 0){\makebox( 4, 1)[c]{(a): star network}} % \put( 5, 5){\framebox(4,4)[c]{\shortstack{central \\ node}}} \put( 1, 1){\framebox(2,2)[c]{node}} \put( 1, 6){\framebox(2,2)[c]{node}} \put( 1,11){\framebox(2,2)[c]{node}} \put(11, 1){\framebox(2,2)[c]{node}} \put(11, 6){\framebox(2,2)[c]{node}} \put(11,11){\framebox(2,2)[c]{node}} \put( 3, 2){\line( 3, 3){3}} \put( 3,12){\line( 3,-3){3}} \put(11, 2){\line(-3, 3){3}} \put(11,12){\line(-3,-3){3}} \put( 3, 7){\line( 1, 0){2}} \put(11, 7){\line(-1, 0){2}} \end{picture} % \end{figure} \end{document} =========================================================================== Regards, Johannes Braams PTT Dr Neher Laboratories, Phone: +31 70 435172 P.o. box 421, BITNET/EARN: BRAAMS@HLSDNL50.BITNET 2260 AK Leidschendam, SURFnet: DNLONE::BRAAMS The Netherlands. ------------------------------ Date: Mon, 30 May 88 14:04 N From: (Johannes) Subject: Difference files Hi, I have seen difference files distributed throug TeXhax and via the Italien repository. Those files were intended to give the opportunity to upgrade \TeX for instance to a newer version. This I have succesfully done, we are now running TeX version 2.9 instead of 2.0. This upgrade has to be done manually though. I would like to suggest that differences are distributed in a format understandable to the SUMSLP editor on VMS as well as in the format they are in now. This enables the people who have (exactly) the same version of the source-code to upgrade automatically. To ensure that the original files are the same, the checksum of the original should be supplied as well. What do you folks think of that suggestion? Regards, Johannes Braams PTT Dr Neher Laboratories, Phone: +31 70 435172 P.o. box 421, BITNET/EARN: BRAAMS@HLSDNL50.BITNET 2260 AK Leidschendam, The Netherlands. ------------------------------ Date: Wed, 1 Jun 88 10:45:51 PDT From: John Lee Subject: Colon in figure captions A local tex user showed me it was in article.sty. Thanks. ------------------------------ From: NETWORK%FRSAC11.BITNET@Forsythe.Stanford.EDU Date: Wed, 01 Jun 88 14:50:51 GMT Subject: Not enough allocated memory ? What am I suppose to do about such a message? What parameter should I change ? ========== r3rs.log ================ This is TeX, C Version 1.3 (preloaded format=lplain 88.5.3) 1 JUN 1988 14:45 **&lplain r3rs.tex (r3rs.tex LaTeX Version 2.09 - Released 19 April 1986 (algol60.sty Document Style 'algol60'. \descriptionmargin=\dimen99 \c@chapter=\count78 \c@section=\count79 \c@subsection=\count80 \c@subsubsection=\count81 \c@paragraph=\count82 \c@subparagraph=\count83 \c@figure=\count84 \c@table=\count85 ! TeX capacity exceeded, sorry [buffer size=1000]. l.1147 ...@~~@~~@~~@~~@~~@~~@~~@~~@~~@~~@~~@~~@~~@ If you really absolutely need more capacity, you can ask a wizard to enlarge me. No pages of output. ============== end of r3rs.log =============== Jean-Pierre H. Dumas network@frsac11 (bitnet) network%frsac11.bitnet@cunyvm.cuny.edu (arpanet) ------------------------------ Date: Wed, 1 Jun 88 12:53:29 EDT From: dennis pixton Subject: Apple LaserWriter modedefs This must have been asked many times (but I never saw an answer): What are appropriate modedefs for an Apple LaserWriter? If such info is online somewhere, where can I find it? (If not, shouldn't it be?) Thanks, Dennis Pixton (607) 777-4239 Department of Mathematical Sciences dennis@marge.math.binghamton.edu SUNY-Binghamton dpixton@bingvaxb.bitnet Binghamton, NY 13901 ------------------------------ Date: Tue, 31 May 88 12:54:16 CST From: "Richard H. Fisher" Subject: Section heading placement... I am writing a LaTeX style for our graduate school for use in formatting theses and dissertations. Their requirements state that a section heading is to be preceded by a triple space, unless it follows a chapter heading. In this case it is to be spaced normally (a double space). Does anyone have any suggestions as to how I should go about doing this? Thios is about all that I have left to do, and I really have no idea as to how to do this. Many thanks... Richard Fisher (EARHF@TTUVM1.BITNET) Academic Computing Services Texas Tech University ------------------------------ Date: Wed, 1 Jun 88 23:29:24 PDT From: UnixTeX@june.cs.washington.edu Subject: updates to LaTeX files for Unix The latest set of diffs for LaTeX files is available at june.cs.washington.edu, on ~ftp/pub under the name LaTeX-22Feb_to_31May.diffs Email: mackay@june.cs.washington.edu Pierre A. MacKay Smail: Northwest Computing Support Group TUG Site Coordinator for Lewis Hall, Mail Stop DW10 Unix-flavored TeX University of Washington Seattle, WA 98195 (206) 543-6259 ------------------------------ Date: Thu, 2 Jun 88 9:38:20 GMT From: Sebastian Rahtz Subject: Re: TeXhax Digest V88 #52 Steve Kille asks for a conversion from LaTeX to SGML. Such a beast is technically impossible, unless he specifies which set of SGML tags he is using. There are NO predefined tags in SGML, their syntax (though not necessarily their effect) are defined in a header. So although we could convert Kille's \section,Conclusions- into <\sh>Conclusions<\esh> or whatever, there is no guarentee my SGML tagset includes <\sh> or that it does anything like \section. Now if you ask for a conversion from LaTeX to, say, the AAP SGML tagset, or the British Library starter set, then thats just pretty trivial editing..... Incidentally, informed opinion here has it that you cannot describe LaTeX markup in SGML. Has anyone else tried? Sebastian Rahtz ------------------------------ Mail-From: PATASHNIK created at 2-Jun-88 07:17:58 Date: Thu 2 Jun 88 07:17:58-PDT From: Oren Patashnik Subject: Re: inbook and BibTeX 0.99c > From: Ian Moor > Subject: inbook and bibtex 0.99c > I am trying to use the inbook entry type to refer to a chapter of a book, the > chapters have different authors and the book has an editor. I get warnings if > I have both an author and editor, and if I crossref to the book. I think this > should be possible. I am using plain.bst. This should be an INCOLLECTION entry type, not an INBOOK. > Is there a description of the differences between old and new .bst files ? > I have some old ones with no corresponding new versions. Yes. The "BibTeXing" document, which describes BibTeX in more detail than what could appear in the LaTeX manual, contains such a description. It resides in BibTeX's standard distribution area on SCORE.STANFORD.EDU. I'm not sure where else it resides. --Oren Patashnik ------------------------------ Date: Thu, 2 Jun 88 10:44:13 EDT From: beck@svax.cs.cornell.edu (Micah Beck) Subject: LaTeX Style Files for Apple LW Built-in fonts The version of dvi2ps we are using came with a style file palatino.sty for producing LaTeX documents using the palatino built-in fonts on the Apple LaserWriter. Do similar style files exist for other built-in fonts? Some users find palatino a bit "outspoken" for their tastes. Micah Beck beck@svax.cs.cornell.edu Cornell CS Dept ------------------------------ Date: 2 Jun 88 17:30 +0100 From: Harald Hanche-Olsen Subject: Re: Putting a QED at the end of a proof in AmsTex. In TeXhax 1988 #52, Adam H. Lewenberg reports problems with placing of his QED signs. In order to understand the source of his difficulties, he needs to understand some facts about TeX's line breaking algorithm. The most important fact is that linebreaks may happen "at glue", or rather, at the left end of the glue (TeXbook, p. 96). After a line break at glue, the glue is discarded, so the box ends up at the beginning of the next line. I presume he tried a simple \hfill\qedbox. A better solution would be \nobreak\hfill\qedbox, so that line break does not happen at the \hfil. One further refinement is needed, in case there are spaces before the use of this macro. An application of \unskip will eat up any preceding glue, so the following maco shuld be close to what is needed: \def\qed{\unskip\nobreak\hfill\qedbox} where I assume \qedbox is suitably defined. [I am sure I have seen even more refined versions of this - but I can' remember where...] - Harald Hanche-Olsen ------------------------------ Date: 2 Jun 88 17:32 +0100 From: Harald Hanche-Olsen Subject: Re: LaTeX bug (TeXhax 1988 #52) Let me jump in and answer this before Leslie Lamport flies off the handle again... On p. 177 in the LaTeX manual it states, quite clearly, that the \label command in a figure environment should go in the heading part of the \caption command or after the \caption command. Now from the user's point of view this is a horrible design decision, but I am sure there are good reasons why it has to be that way. And it *is* well documented. A little side note - TeX and LaTeX are complex pieces of software, with many strange interdependencies and exceptions from the general rules. I can sympathise with Lamport when he says: > Perhaps I need to add something to that effect in the manual, but I'm > not sure where the best place to add it is. He should make allowances for the fact that it is often difficult to find wanted information in the manual - and it probably has to be that way, no matter how good the index is. I was lucky the last time I got lost in the LaTeX manual - my letter to TeXhax actually led to the uncovering of a genuine LaTeX bug... - Harald Hanche-Olsen ------------------------------ From: wsm@newton.physics.purdue.edu (W. Scott McCullough) Subject: RE: Labels in TeX Date: Thu, 02 Jun 88 14:00:45 EST I anxiously awaited replies to Mark Steinberger's request for a tex solution to making small (33 to a page) address labels. However, I was disappointed when I ran sample addresses with the program submitted by David Royster (Vol. 88, Issue 52). If an address contains a line that is too long (such as "Institute for Theoretical Physics") the output is a mess. When a long line is encountered, a strut is printed on the right hand side of the label and the address appears to be partially "wrapped" around the label. Outside of using lots of abbreviations in the address file, is there a simple way to modify labels.tex to handle addresses with long lines? Incidentally, someone here at Purdue has also worked on a label program, but his solution suffers from the same problem, and I haven't had a chance to discuss it with him again. Thanks in advance, Scott McCullough Dept. of Physics ARPAnet: wsm@newton.physics.purdue.edu Purdue University W. Lafayette, IN 47907 ------------------------------ Date: Thu, 2 Jun 1988 13:51:49.52 CST From: (George D. Greenwade) Subject: TeXhax v.88, n.52 (re: inbook problem) Ian Moor reported a problem in getting the inbook citation form to generate both an author and an editor field using BIBTeX. His problem could be easily solved by using the incollection citation form since incollection assumes a collection of works by different authors. For his purposes, incollection would also be superior since it allows the editor field, and requires that both the book and the title of the chapter be included in the citation. George D. Greenwade, Director Bitnet: BED_GDG@SHSU Center for Business and Economic Research THEnet: SHSU::BED_GDG Sam Houston State University Internet: BED_GDG@SHSU.BITNET Huntsville, Texas USA 77341-2056 Voice: (409) 294-1518 ------------------------------ Date: Thu, 2 Jun 88 15:11 EST From: Subject: LateX "bug" There is no bug in the program. The "1" is taken from the section number. Your \label commands must appear AFTER the \caption command. (See page 72 of the LaTeX User's Guide.) Josie colmenar@fordmulc colmenar@fordmurh ------------------------------ Date: Thu 2 Jun 88 13:18:23-MDT From: "Nelson H.F. Beebe" Subject: Indexing the Unix way -- revisited In TeXhax-87 #77, I posted a note about indexing using a set of small awk programs that were used to produce the index for the book ``The AWK Programming Language'' by Aho, Weinberger, and Kernighan. This precipitated responses in issues #78, #79, and #97. Yesterday, I received the first issue of the new Wiley journal , ``Electronic Publishing'' (SSN0894-3982), wherein the lead article by Jon Bentley and Brian Kernighan is entitled ``Tools for Printing Indexes''. The article is worth reading, and the authors state that with minor modifications, their approach could easily support indexing with TeX. To make life easier for readers, they announce that an electronic mail message send indexing.tools from typesetting sent to netlib@anl-mcs.arpa or to research!netlib will get you copies of their software. This new version has grown from 36 lines (vs 7800 in MakeIndex) to 204 lines. The remaining 3 articles look interesting too: ``Interactively Editing Structured Documents'', R. Furuta, V. Quint, and J. Andr\'{e} ``Linking and Searching Within Hypertext'', P.J. Brown ``The USENET Cookbook--an Experiment in Electronic Publishing'', B.K. Reid Subscriptions are UK40 or US$72 for the first year (2 issues), double for the next year (4 issues). An advertisement on page 0 is from a company called Computer Hyphenation, which claims their Hyphenologist program can split words in 27 languages, including Afrikaans and Welsh. Their telephones in the UK are 0274-733317 and 0727-52473. P.S. I still use MakeIndex quite happily. ------------------------------ %%% %%% Concerning subscriptions, address changes, unsubscribing: %%% BITNET: send a one-line mail message to LISTSERV@TAMVM1.BITNET: %%% SUBSCRIBE TEX-L % to subscribe %%% %%% All others: send mail to %%% texhax-request@score.stanford.edu %%% please send a valid arpanet address!! %%% %%% %%% All submissions to: texhax@score.stanford.edu %%% %%% Back issues available for FTPing as: %%% machine: directory: filename: %%% [SCORE.STANFORD.EDU]TEXHAXnn.yy %%% nn = issue number %%% yy = last two digits of current year %%%\bye %%% ------------------------------ End of TeXhax Digest ************************** -------