TeXhax Digest Wednesday, July 8, 1987 Volume 87 : Issue 55 [SCORE.STANFORD.EDU]TEXHAX55.87 Editor: Malcolm Brown Today's Topics: Re: BibTex primer More Initial problems in BibTeX Hyphenation for non-english languages Re: BibTex primer Help! Re: Sun rasterfiles in a TeX/Postscript document texhax archives TeX for AT&T 7300 Re: Hyphenation for non-english languages write-white ---------------------------------------------------------------------- Date: 26 Jun 87 07:28:36 EST (Fri) From: Jean-Francois Lamy To: futrell%corwin.ccs.northeastern.edu@RELAY.CS.NET Subject: Re: BibTex primer Your message implies that you need 3N passes of LaTeX for each mod to your document. This is only true if you keep destroying the auxiliary files. I use a little script that copies the auxiliary files before starting up (don't blame LaTeX, this is much better done by the cp command than by a TeX macro!). When an error occurs and you interrupt LaTeX you are effectively stuck with partial, useless auxiliary files, which means that all the hard work that went into the biblography making is lost. If you have a copy of the previous auxiliary files, however, and can put them back in place, you lose none of your bibliographical and cross-references. Two scripts are included below. Use "lt document" instead of "latex document". If something goes wrong, do a "ltres" after getting out of LaTeX (I wish there was a way for lt to do it automatically, but the current Unix version can't distinguish between a mistake you correct on the fly and one you couldn't fix). With this method, you only need to run BibTeX when you add a new entry or reference. Since normally you don't add new references in the last few iterations, and that it usually takes at least two iterations after adding the last reference to fix other things, you can see the consolidation of the references as a side effect of you fixing the other stuff. In effect, this gives you N or N+1 passes instead of 3N. Don't forget to get this added to your Local Guide! Jean-Francois Lamy lamy@ai.toronto.edu (CSNet,UUCP,Bitnet) AI Group, Dept of Computer Science lamy@ai.toronto.cdn (EAN X.400) University of Toronto, Canada M5S 1A4 {seismo,watmath}!ai.toronto.edu!lamy #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh lt <<'END_OF_lt' X#!/bin/sh X# X# invoke LaTeX, saving auxiliary files, cleaning up if everything goes well X# a separate script is needed for restoring the files since errors X# successfully corrected on the fly would cause spurious restoration X# of the backups. X# X# Jean-Francois Lamy, lamy@ai.toronto.edu, October 86 X# XPATH=/bin:/usr/bin:/usr/local Xfor f in *.aux *.lof *.lot *.toc Xdo X if [ -s $f ] ; then X cp $f $f.sav X fi Xdone Xtrap : 1 2 3 13 15 Xif latex $@ Xthen X echo "" X echo -n "Cleaning up..." X /bin/rm *.sav X echo "done" Xelse X echo "" X echo \ X"LaTeX error(s) occurred -- 'ltres' can restore the previous auxiliary files." Xfi END_OF_lt if test 597 -ne `wc -c ltres <<'END_OF_ltres' X#!/bin/sh X# X# Restore LaTeX auxiliary files saved by 'lt' X# Jean-Francois Lamy, lamy@ai.toronto.edu, October 86 X# X for f in *.sav X do X if [ -s $f ] ; then X cp $f `basename $f .sav` X fi X done X rm *.sav X END_OF_ltres if test 197 -ne `wc -c To: texhax@score.stanford.edu Submission to: TeXHax From: Rouben Rostamian (rostamia@umbc3.umd.edu) Organization: University of Maryland, Baltimore County Keywords: Cross-referencing labels in LaTeX Subject: A LaTeX question When revising manuscripts including many cross-referncing labels, it is annoying to have to keep track of the correspondence between the labels, which appear in the source file, and their expanded values, which appear in the printout. For example, if you need to revise equation (3.14) in your printout, you first need to get its label, say `my_equation', under which it appears in the LaTeX file. Lamport's program lablst.tex is a step towards solving this problem; it produces a listing of the labels and their corresponding printed values. However, this means that the user will have to coordinate his efforts to simultaneously deal with three documents in the revision process: the source file, the printout, and the output of the lablst.tex. This is especially annoying in situations when the manuscript is written, submitted for typing, and is going to be proof-read by someone with no familiarity with LaTeX; things just don't seem to be as easy as they were in the good old days! It will be nice to have a `draft' documentstyle option which will do the following. The equaitons numbers (also theorems, etc.) will be printed together with their corresponding labels. Also, \ref or \cite will cause both the number and the label to be printed. For example, an equation number may appear as the array: (3.14) my_equation (printed in a smallish type size) both at the equation itself, and elsewhere when the equation is refered to. This will substantially ease the proofreader's task. Does such documentstyle option already exist? Is it hard to create? I would like to have a copy of a code that does this or something similar. Hints about how to go about doing it myself are also welcome. Rouben Rostamian Department of Mathematics ------------------------------ Date: 26 Jun 1987 09:14:10-EDT (Friday) From: "Victor S. Miller" To: TeXhax@score.stanford.edu Subject: More Initial problems in BibTeX The recent discussion about accented initials prompted me to bring up another similar problem that I have encountered: In French (and maybe other languages) first names, there is often a hyphen, such as Jean-Pierre Jean-Francois, etc. The standard way (at least judging by copious examples) of abbreviating this name consists of the two initials separated by a hyphen, such as J-P or J-F. Oren, is there any chance that this will work in the next release of BibTeX? Victor S. Miller -- IBM Research victor@ibm.com or victor@yktvmx.bitnet ------------------------------ Date: Fri, 26 Jun 87 15:32:17 MEZ From: Z3000PA%AWITUW01.BITNET@forsythe.stanford.edu Subject: Hyphenation for non-english languages To: texhax@score.stanford.edu For the german language, I know of the old (rather poor) german hyphenation patterns by Bernd Schulze and of the new (very useful) patterns by Norbert Schwarz (Univ Bochum). The latter are also distributed with MicroTeX and PCTeX (at least, in Germany and Austria). But what about other languages like french, italian ... ? Perhaps, someone could compile a table of hyphenation patterns (similar to that of device drivers) to be published in TUGboat? For the printing of "mixed" texts, I would also like to know: For which computer types is the famous Multilingual T~eX available, and where do I obtain these adaptions? Or do I just get an additional change file that will turn my monolingual TeX into a multilingual one? Where is ist? (Owing to L.Lamport, I realize that TeX and LaTeX have been designed for American use only and do not meet the highest quality criteria if used with other languages. However, they are very fine products and ARE actually used outside the USA, therefore requests like this one should be read like: "It's far from ideal, but it's better than nothing".) ------------------------------ Mail-From: PATASHNIK created at 26-Jun-87 07:10:36 Date: Fri 26 Jun 87 07:10:36-PDT From: Oren Patashnik Subject: Re: BibTex primer To: futrell%corwin.ccs.northeastern.edu@RELAY.CS.NET, > There's not much expertise in BibTex around here. One person that uses > it suggests running LaTeX, BibTeX, LaTeX, LaTeX (3 passes of LaTeX!) > to get things in proper form. I cannot believe the system was designed > so inefficiently. What I'd like to see is a trivial example of > which items to insert at what points in my sources to get a bibliography > to appear with minimum # of passes. I have successfully produced > bibliographies and the correct citations but want to do it more efficiently. Believe it or not, the system was designed so that it could run MORE efficiently. As it is, BibTeX runs as quickly as it does because it doesn't have to read the entire .tex file, it merely has to read the .aux file that LaTeX produces on an earlier run---since .aux files are generally much smaller than .tex files, this is a win. The current scheme is: LaTeX's first run writes the .aux file from which BibTeX gets its information, then BibTeX's run produces a .bbl file with the bibliographic information for LaTeX, then LaTeX's next run uses this information, then LaTeX's last run gets the forward references correct. I agree that if you do your bibliography as the very last thing, this system is inefficient; however, if you do the bibliography NEAR the end of your work, but not AT the end, then you're not making any more runs of LaTeX than you would otherwise, so the greatly speeded up BibTeX actually does make the whole system faster. > It's also been suggested that I remove .aux files when re-doing things, etc. > All this is done on our 4.3BSD vaX. The LaTeX book is mum on these issues. Unless I misunderstand you, you definitely should NOT do this, since this is creating extra LaTeX passes for you---BibTeX NEEDS the .aux files. I'm currently updating BibTeX and within a week or so there will be some more documentation. Hope this helps. --Oren Patashnik (BibTeX implementor) ------------------------------ Date: Fri, 26 Jun 87 16:17 N From: Reply-To: Subject: Help! To: TEXHAX@score.stanford.edu We are using the LnTex driver from Kellerman & Smith (Vax/Vms) for our Ln03+ laser printer, and after one year we got a problem. We didn't discover it before because all our papers begin usually with a title in boldface (more on this later) which seems to cure the trouble! The problem is that if we try to print the minus sign in an upper- or underscript, like in $$\alpha~{-1}$$ or $$\alpha_{-1}$$ LnTex will not print it! However it recognizes that there must be something because it shifts the number after the sign "-" to the left, and it produces a blank AFTER the number! We discovered however that if the page begins with: \centerline{\bf HELP} i.e. anything in bold, then the "-" sign magically appears. In any case the DVI file is OK because I printed it also on a Qms and the "-" is there! Is anybody out there who can help? Is it a bug with the program or with us? Thanks a lot Max Calvani ------------------------------ Date: Fri, 26 Jun 87 10:40:34 edt From: trevor@grasp.cis.upenn.edu (Trevor Darrell) Posted-Date: Fri, 26 Jun 87 10:40:34 edt To: jipping%swen%cs.uiowa.edu@relay.cs.net Subject: Re: Sun rasterfiles in a TeX/Postscript document > Including a Postscript version of a Sun screendump in a TeX file always > puts the image on the bottom, left side of the page. I understand that > this is the default location for graphics on a Postscript printer. > I would like placement of the image to be *relative* to the placement > of the ``\special'' command in the TeX source. I have a package that does what you want and more, called ``psfig/tex'', only problem being at this moment it only works with dvips from ArborText. Dvi2ps support should be in the next release (of dvi2ps); all that is needed is adding a literal postscript pass through to dvi2ps. I have just recieved a beta copy of the new dvips that has psfig support (hasn't even been untar'ed yet...), and I'm going to take a quick look at retrofitting the \special code into the exisiting dvi2ps to tide people over for the short term. In any case you can ftp it from linc.cis.upenn.edu; first get psfigtex.README then read that and decide what files you want. (the source itself is quite small, but the entire documentation bundle has some huge figures) It was also send over mod.sources (aka. comp.sources.unix) several months ago and should be in the various archive sites. > -- Mike Jipping > jipping@cs.uiowa.edu --trevor trevor@linc.cis.upenn.edu ps. (the troff version of this (actually the original) will be availble for ftp shortly, after some distribution issues are resolved with adobe systems). ------------------------------ Date: Fri, 26 Jun 87 12:00:49 edt From: fred sullivan To: texhax@score.stanford.edu Subject: texhax archives Are there texhax archives available for anonymous ftp? In what directory? I understand that common TeX is public domain. Where can I get it? Is it in the texhax archives? Please reply directly, as I am not on the texhax mailing list. Thanks very much, Fred Sullivan Department of Mathematical Sciences State University of New York at Binghamton Email: sullivan@marge.math.binghamton.edu %% Regarding the first question: TeXhax digests are archived on the machine %% score.stanford.edu. They can be anonymously FTPed. To do so, request %% the file TEXHAXnn.yy, where "nn" is the issue number and %% "yy" the year. Malcolm ------------------------------ Date: Fri, 26 Jun 87 11:26:51 CDT From: Patrick Landry To: texhax@SCORE.STANFORD.EDU Subject: TeX for AT&T 7300 I am the System Administrator for The Center for Advanced Computer Studies. One of my users has just purchased a ATT 7300 and would like to run TeX on it. I am only familiar with the standard Unix TeX distribution and the 7300 does not have a pascal compiler. Could someone please give me a pointer to the public domain C TeX implementation. Thanks in advance. ---patrick--- Patrick Landry The Center for Advanced Computer Studies University of Soutwestern Louisiana pml%usl@relay.cs.net PS - we are not on the Internet hence "ftp"ing is not possible ------------------------------ Mail-From: BEETON created at 26-Jun-87 20:30:12 Date: Fri 26 Jun 87 20:30:12-PDT From: Barbara Beeton Subject: Re: Hyphenation for non-english languages To: Z3000PA%AWITUW01.BITNET@Forsythe.Stanford.EDU the editor of tugboat would be most delighted to receive current information on hyphenation patterns and to publish a list of what exists and from whom they can be obtained. perhaps arrangements can be made to include the patterns (if their developers are willing) in the standard distribution. (in fact, i have as set of portuguese patterns already, contributed to the cause by pedro de rezende of northeastern university.) anyone wishing to provide information, patterns, or reviews of same, please let me know. i shall schedule publication for the fall issue; the editorial deadline will be early october, but the sooner, the better. (i get lots of requests for information on this subject!) -- barbara beetlon editor, tugboat (arpa: bnb@xx.lcs.mit.edu) ------------------------------ Date: Fri, 26 Jun 87 16:33:35 GMT From: CMI011%UK.AC.SOUTHAMPTON.IBM@ac.uk To: TEXHAX@score.stanford.edu Can anyone help me? a) we have the Unix TeX tape from last year, which has versions for a Sun 2. All seems OK, except for the fairly vital `undump' program, which does not work on our Sun 3 machine. Could some kind person mail me a copy of the source of 'undump' that has been proven to compile and work on a recent Sun? b) does anyone have experience yet with using NeWs on a Sun as a TeX previewing environment? For those of us who print on a PostScript printer, previewing the output from dvi2ps, rather than the .dvi file, makes quite a lot of sense. I would be interested to hear thoughts on the matter. Sebastian Rahtz spqr@uk.ac.soton.cm or cmi011@uk.ac.soton.ibm sebastian rahtz ------------------------------ Date: Sat, 27 Jun 87 13:34:14 PDT From: Bruce Langdon To: jdb%arbortext@umix.cc.umich.edu Subject: write-white Guess I didn't phrase my earlier posting well. I was actually trying to point out to all those people who are looking for white-write pixel files that Arbortext includes those in its commercial distribution. Some of us are willing to pay a little to get ArborText's support, of which this is one example. I have seen the results when one uses canon-type pixels and they are BAD. I gave to those people the opinions on metafont parameters from texhax and TuGBoat, and also the ArborText flyer. They can decide how much their time is worth. Disclaimer: I haven't seen any output with ArborText write-white pixels. We use only their write-black pixels on canon engines. Bruce Langdon L-472 langdon@lll-lcc.ARPA Physics Department 339650%d@nmfecc.ARPA Lawrence Livermore National Laboratory Livermore, CA 94550 (415) 422-5444 UUCP: ..{ihnp4,qantel,ucdavis,pyramid,styx,topaz}!lll-lcc!langdon ..{gymble,ll-xn,seismo}!lll-crg!lll-lcc!langdon ------------------------------ %%% %%% 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 ************************** -------