TeXhax Digest Monday, August 10, 1987 Volume 87 : Issue 66 Editor: Malcolm Brown Today's Topics: Contents of LaTeX style collection, 2nd August 1987 Sucking files Questions on Appendix and Bibliography (LaTeX) LaTeX book bug Where can I find .... Help with LN03 on Sun underlining headers Sun 3 driver for HP LaserJet Plus Nelson Beebe DVI driver family Update #9 Re: footnote numbering ---------------------------------------------------------------------- To: texhax@score.stanford.edu Subject: Contents of LaTeX style collection, 2nd August 1987 Date: Sun, 02 Aug 87 14:03:33 -0400 From: Ken Yap The LaTeX style collection now has the files listed below. More submissions are very welcome. 00directory format.sty slem.doc 00index fullpage.doc slem.sty 00readme fullpage.sty spacecites.doc a4.sty geophysics.sty spacecites.sty a4wide.sty german.sty suthesis.doc aaai-instructions.tex ieeetr.bst suthesis.sty aaai-named.bst ist21.sty texindex.doc aaai.sty latex.bug texindex.pas acm.bst layout.readme texindex.sty agugrl.sample layout.tex texnames.doc agugrl.sty lcustom.tex texnames.sty agujgr.sample lfonts_ams.readme textyl.readme agujgr.sty lfonts_ams.tex textyl.shar1 amssymbols.sty lgraph.shar textyl.shar2 art10.txt local.suppl textyl.shar3 art11.txt memo.sty textyl.shar4 art12.txt mfr.sty textyl.shar5 article.txt mitthesis.sample textyl.shar6 biihead.sty mitthesis.sty textyl.shar7 ctex.readme natsci.bst textyl.shar8 ctex.shar1 newalpha.bst textyl.shar9 ctex.shar2 nopagenumbers.doc tgrind.sty ctex.shar3 nopagenumbers.sty threepart.sty ctex.shar4 remark.sty titlepage.txt ctex.shar5 resume.sample trademark.sty ctex.shar6 resume.sty uct10.doc cyrillic.sty sc21-wg1.sty uct11.doc dayofweek.tex sc21.sty uct12.doc deproc.sty sfwmac.sty ucthesis.doc deprocldc.tex showlabels.sty ucthesis.readme docsty.c siam.bib uuencode.shar docsty.readme siam.bst vdm.doc doublespace.sty siam.doc vdm.sty draft.sty siam.sty vdm.tex drafthead.sty siam.tex ws87.p dvidoc.shar1 siam10.doc wsltex.c dvidoc.shar2 siam10.sty wsltex.p epic.shar1 siam11.sty xxxcustom.tex epic.shar2 siam12.sty xxxslides.sty 1. For Internet users - how to ftp: Here is an example session. Disclaimer: ftp syntax varies from host to host. Your syntax may be different. The syntax presented here is that of Unix ftp. Comments in parentheses. % ftp cayuga.cs.rochester.edu (a.k.a. cs.rochester.edu, a.k.a. 192.5.53.209) ... (general blurb) user: anonymous password: ftp> cd public/latex-style (where the files are) ftp> ls (to see what is there) ... (lots of output) ftp> get 00index ... (more blurb) ftp> quit 2. Non-Internet users - how to retrieve by mail: An archive server has been installed. Send a piece of mail to LaTeX-Style (@rochester.arpa, @cs.rochester.edu, via uucp or your favourite gateway) in the following format: Subject line should contain the phrase "@file request". Body of the mail should start with a line containing only an @ (at) sign. The first line following should be a mail address FROM rochester TO you. Then follow by the names of the files you want, either one to each line, or many to each line, separated by spaces. End with a line containing only an @ sign. Case is not significant. For example, if you are user at site.bitnet, this is what you should send: To: latex-style@rochester.arpa Subject: @file request @ user%site.bitnet@wiscvm.wisc.edu (don't forget your address!) 00readme 00index @ Caveat: our mailer is pretty ignorant of BITNET, CSNET or UUCP addresses unless they are in registered domains. It is best that you supply explicit gateway routes. Also use the new domainized form of addresses whenever possible because the old .ARPA addresses are fading away. user%site.bitnet@wiscvm.wisc.edu user%site.csnet@relay.cs.net (not csnet-relay.arpa anymore) site!user@seismo.css.gov (not seismo.arpa anymore) Long UUCP paths are discouraged. System administrators get upset and your turnaround is very slow anyway. Do not include any messages in the mail. It will not be seen by human eyes. Be patient as the server is actually a batch program run once a day. Files will be sent in batches, each not exceeding 100kbytes in size. 3. IBM PC and clone users - how to get a distribution: David Hopper of Toronto, Canada is offering copies of the style collection on diskettes. This is not a commercial enterprise. David is doing this in his own time as a favour to the TeX community. The entire set of style files, not including the C-TeX files, as of June 1st, fits on one 1.2 MB diskette or three 360KB diskettes. No subsetting, please. Send David 1. Formatted diskettes, 2. Indication of the format required, 3. A self-addressed mailer, and 4. A $5.00 donation per set of files, to cover postage and equipment wear & tear. (If you live outside North America, airmail delivery will probably require more postage. You should probably contact David for details.) David's address: David W. Hopper, 446 Main Street, Toronto, Ontario, Canada M4C 4Y2 Thanks, David. Ken LaTeX-Style@Rochester.Arpa LaTeX-Style@cs.Rochester.Edu ..!rochester!latex-style ------------------------------ Date: Mon, 3 Aug 87 10:32:32 BST From: CMI011%UK.AC.SOUTHAMPTON.IBM@ac.uk To: TEXHAX@score.stanford.edu There are many requests on TeXhax for previewers. Can I suggest that this general need should in fact be divided into three parts for anything other than the beginner who needs reassurance: a) the need for an intelligent debugging environment for TeX, that lets you see that you have done something gross like never closing an italicisation, or helps with those opaque TeX error messages. b) the need for an accurate previewer of complicated setting (maths, tables etc), or new styles. c) a 'structure previewer', to see how the document is coming along as a readable object rather than a piece of typesetting. The first need is NOT best solved by a previewer; the second - well, I just print out the page.... the screen previewer we have (on a PC) is too slow and a strain on the eyes. The third is more interesting - do we actually need to see a TeX version of the document in order to see the structure and actually READ it? The lack of a previewer on our Unix machine, and the realisation that all we wanted was to read SOME kind of formatted output, prompted a colleage and myself to spend 10 minutes on a Unix shell script to roughly convert LaTeX source to nroff 'mm' source, and then run it through 'nroff -mm | ul'. TeXxies will gasp in horror, non-Unix people will be irritated, but for those of you who just write text with LaTeX, and want to see whats going on, try this... of course its just a dirty hack, but wotthehell, life is too short. sebastian rahtz computer science, southampton, uk spqr@uk.ac.soton.cm ("please dont savage me leslie lamport") ---------------------------------------- # sed script to convert LaTeX to mm sed 's/\\tableofcontents/\.TC/ /\\bibliographystyle/d /\\documentstyle/d s/\\begin document /\.SA 1 \.nr Pt 2 \.nr Ps 0 \.nr Si 10 \.nr Cl 2/ /\\end document /d /\\thanks/d s/\\title \(.*\) /\.TL \1/ /\\title /N s/\\title \(.*\) /\.TL \1/ s/\\footnote \([^ ]*\) /.FS \1\\\*F .FE/ /\\footnote /N s/\\footnote \([^ ]*\) /\\\*F .FS \1 .FE/ /\\footnote /N s/\\footnote \([^ ]*\) /.FS \1\\\*F .FE/ s/\\author \(.*\) /\.AU \"\1\"/ /\\author /N s/\\author \(.*\) /\.AU \"\1\"/ s/\\date \(.*\) /\.AF \"\1/ s/\\maketitle.*/\.MT 4/ s/\\section \(.*\) /\.H 1 \"\1/ s/\\subsection \(.*\) /\.H 2 \"\1/ s/\\subsubsection \(.*\) /\.H 3 \"\1/ s/\\begin ding.*$/\.BL/ s/\\begin itemize /\.BL/ s/\\begin enumerate /\.AL/ s/\\begin description /\.VL 10/ s/\\end description /\.LE/ s/\\end dinglist /\.LE/ s/\\end itemize /\.LE/ s/\\end enumerate /\.LE/ s/ \\bf \([^ ]*\) /\\fB\1\\fP/g / \\bf /N s/ \\bf \([^ ]*\) /\\fB\1\\fP/g s/ \\em \([^ ]*\) /\\fI\1\\fP/g / \\em /N s/ \\em \([^ ]*\) /\\fI\1\\fP/g s/ \\it \([^ ]*\) /\\fI\1\\fP/g / \\it /N s/ \\it \([^ ]*\) /\\fI\1\\fP/g s/ \\sc \([^ ]*\) /\\s-2\1\\s+2/g s/\\item/\.LI / s/\\item\[\(.*\)\]/\.LI \"\1\"/' | \ tr '\007' '\012' ------------------------------ Date: Mon, 03 Aug 87 11:09:08 CDT From: Don Hosek To: TEXHAX@score.stanford.edu Does anybody have a use for MetaFont specials? -DH ------------------------------ Date: 3-AUG-1987 17:25:55 From: ABBOTTP%UK.AC.ASTON.MAIL%UK.AC.RL.GB@ac.uk To: TEXHAX@score.stanford.edu Subject: Sucking files Aston University - Electronic Mail From: Peter Abbott ABBOTTP@UK.AC.ASTON.MAIL Dept: Computing Service Tel No: 021 359 5492 -direct The following command procedures have been sent to me to enable VMS users to 'suck' the BEEBE and TREVORROW files and may be useful to others. (Thanks to Phil Taylor of RHBNC) ============================== F E T C H . C O M ============================== $ @sys$utilities:pull uk.ac.aston.kirk [public.beebe]'p1' 'p1' public public =============================== P U L L . C O M =============================== $ set noon $ loop_1: $ delete temp.tmp;* $ assign/user temp.tmp sys$Output $ list $ count = 0 $ open/read/error=20$ input temp.tmp $ loop_2: $ read/error=20$ /end=10$ input buffer $ count = count + 1 $ goto loop_2 $ 10$: $ close input $ if count .le. 4 then goto 20$ $ wait 00:00:30.00 $ goto loop_1 $ 20$: $ remote_site = p1 $ remote_file = p2 $ local_file = p3 $ remote_user = p4 $ remote_pswd = p5 $ transfer - 'remote_site'::'remote_file' - 'local_file' - /user='remote_user','remote_pswd' ============================= End of Information ============================== I have just received an update from Nelson Beebe and it will be added to the directory shortly. I am prepared to create a distribution list to notify users of changes as they become available. Please send me your JANET name and address to be added to the circulation list if you want to receive details of updates. Peter ------------------------------ Date: Mon, 3 Aug 87 12:52:51 EDT From: akk2@tut.cc.rochester.edu (Atul Kacker) To: texhax@score.stanford.edu Subject: Questions on Appendix and Bibliography (LaTeX) I have two questions : 1. I have a separate tex file that has a collection of \bibitems. I would like my main file to read this biblio file (and do proper cross-referencing), but not actually include it in the .DVI file. I can get around it at printing time by printing only selected pages, but was wondering if there was a better way ? 2. How does one get an Appendix title ? i.e. I would like my appendix to look like APPENDIX A This is the title of the appendix And this is the text of the appendix...... I am using the mitthesis style under the report style in LaTeX. Any help welcome. Thanks. ------------------------------ Date: Mon, 03 Aug 87 11:33:58 CDT From: Don Hosek Subject: LaTeX book bug To: TEXHAX@score.stanford.edu According to both my dictionary and Peanuts, it's van Beethoven, not von Beethoven. :~) -DH ------------------------------ Date: 3 Aug 87 16:24:00 EDT From: "FALCON::NIELAND" Subject: Where can I find .... To: "texhax" Where can I find the following items for VAX/VMS: 1) The Wordstar to LaTeX filter in PASCAL or in C; 2) PSPRINT; 3) DVI2VDU; PSPRINT and DVI2VDU were sent to Stanford for the Stanford distribution, according to the last issue of TUGBoat, but when I received my distribution tape, they were not on it. I would very much appreciate any response. I would like to be able to FTP the files, if possible. Thanks in advance, :) Ted Nieland TNIELAND@WPAFB-AAMRL.ARPA NIELAND%FALCON.DECNET@WPAFB-AAMRL.ARPA Dayton, Ohio (513) 255-5156 ------------------------------ Date: Mon, 3 Aug 87 09:24:30 CDT From: Charlie Root To: texhax@SCORE.STANFORD.EDU I am looking for an LN03 printcap for a VAX 11/780 running 4.3BSD. The one I have does not drive the printer correctly. If you have a working printcap, please be kind and send a copy to the following address: ------------------------------ Date: Mon, 3 Aug 87 16:39:23 EDT From: ajb%mwcamis@mitre.arpa To: texhax@score.stanford.edu Subject: Help with LN03 on Sun Iam running the very latest release of unix-tex on my Sun-3/280. I tried to use Thomas' ln03dvi, but without much success. Some of the problems that I have already found and fixed involve hardwired little-endian reads. But still, the output comes out gr garbled on the printer. Does anyone out there have a working dvi filter for the ln03 (or ln03+) that WORKS on a Sun ? Thanks, Alan J Broder Arpanet: ajb@mitre.arpa ------------------------------ Date: Tue, 04 Aug 87 08:02:13 Greenwich Mean Time To: From: Subject: underlining headers In the last issues of TeXhax several people discussed ways to put a horizontal rule below the header in LaTeX. Leslie Lamport pointed out the right way to do it is to redefine \@evenhead resp. \@oddhead. Here's a solution using \vadjust. It also solves the problem of putting vertical space between the header and the rule. ----------------------_CUT HERE_-------------------- % pagestyle `underline'. Puts a horizontal rule below the header. % The vertical space of 0.3ex is conjectural. % Uses definition of \ps@headings to be independent of the document style. \typeout{^^JDocument style option `underline'.^^J} \if@twoside \def\ps@underline{\ps@headings \def\@evenhead{\rm \thepage\hfil \sl\leftmark\vadjust{\vskip 0.3ex\hrule }}\def\@oddhead{\hbox{}\sl \rightmark \hfil \rm\thepage\vadjust{\vskip 0.3ex\hrule}}}\else \def\ps@underline{\ps@headings \def\@oddhead{\hbox {}\sl \rightmark \hfil \rm\thepage\vadjust{\vskip 0.3ex\hrule}}}\fi ------------------------_CUT HERE_------------------------------- Rainer Schoepf Inst. f. Physik Univ. Mainz Staudinger Weg 7 D-6500 Mainz West Germany ------------------------------ Date: 3 Aug 87 09:20:00 EST From: "James L. Blue" Subject: Sun 3 driver for HP LaserJet Plus To: "texhax" Someone here at the National Bureau of Standards wants a driver, running on a Sun 3, for a HP LaserJet Plus. Does anyone have one? (Please respond directly, as we are not on this mailing list.) Thanks Jim Blue Scientific Computing Division National Bureau of Standards ------------------------------ Date: 4-AUG-1987 14:37:17 From: ABBOTTP%UK.AC.ASTON.MAIL%UK.AC.RL.GB@ac.uk To: TEXHAX@score.stanford.edu Subject: Nelson Beebe DVI driver family Update #9 Aston University - Electronic Mail From: Peter Abbott ABBOTTP@UK.AC.ASTON.MAIL Dept: Computing Service Tel No: 021 359 5492 -direct Updates numbers #7 and #9 have been added to the public account for the Nelson Beebe software. (#8 is still missing and will be added as soon as it is received.) The file name are 00mail.7 and 00mail.9 They can be 'sucked' in the same way as the other files. Peter ------------------------------ Date: 04. August 1987, 17:04:55 (CET) From: XITIJSCH%DDATHD21.BITNET@forsythe.stanford.edu Subject: Re: footnote numbering To: TEXHAX@score.stanford.edu In the TeXhax issue #60 Malcolm Brown asked for a possibility to number footnotes subsequently on each page. He didn't state if he needs this possibility, i.e. these macros, in a special environment. In my eyes this is a nice small exercise to show the development of TeX macros and therefore I send you this contribution. First I introduce a macro set to number footnotes subsequently on each page. This macro set is written with the concept of literate programming in mind and is portable in the manner that few changes have to be made to the macros to get them running with every macro package that uses the PLAIN definitions (LaTeX does). The macro set has been tested with PLAIN TeX, LaTeX and an other macro package of my own, always with correct results. But I have only spent a few hours to write and test the macros, so don't blame me if errors occur. After introducing the macro set I close with some remarks on TeX macro development, i.e. in TeX programming and I also describe possible improvements to the macros and an other solution strategy using LaTeX. ---------------------------------------------- macro set for numbering footnotes on each page ---------- cut here ------------------------------------------------------ %% Joachim's macros and comments are too lengthy for digest distribution. %% I invite you to acquire them from Score using FTP or from the TEX-L %% server. For the former method, you should ``get'' the file %% schrod.txh %% once you've anonymously logged onto score.stanford.edu %% %% My own thanks to Joachim for an elegant and detailed reply to my %% inquiry. ---------- cut here ------------------------------------------------------ For the use of the above macro set the following fact must be obeyed: IT IS STATED EXPLICITLY THAT THE COMMENTS ARE AN INTEGRAL PART OF THIS MACRO SET. IF THE MACRO SET IS ALTERED THE COMMENTS HAVE TO BE ALTERED, TOO. THEY MUST NOT BE DELETED. The writing of TeX macros is a task of programming. The computer science community has struggled for years to encourage structured program development. The idea of literate programming is promoted more and more (e.g. in the CACM). WHY DO WE THROW ALL THIS AWAY WHEN TeX MACROS ARE WRITTEN?? It is my opinion that the only satisfactory way to write TeX macros which can be maintained is to use the principles of literate programming: describing the macros for a human reader, not for TeX. (Perhaps the time will come, when we get a TeX-WEB.) It could be said very much about this topic, but back to the macros. They are not fully developed, some features are still missing, e.g. warnings when new footnotes are inserted or when footnote numbers have been changed. Other improvements can be made on the construction of the footnote names. By involving section numbers or analogous numbers the ``running away'' of the footnote numbers (caused by the insertion of a new footnote) can be limited. Scanning through the LaTeX source it seems to me that the same realization idea can be implemented by writing appropriate \newlabel commands to the auxiliary file and referencing them. But I'm not sure---perhaps L.Lamport can state a comment. Well, this has become a rather long piece. I hope, it helps you. Joachim Schrod TH Darmstadt Institut fuer Theoretische Informatik Joachim Schrod Alexanderstr. 24 D-6100 Darmstadt West Germany ------------------------------ End of TeXhax Digest ************************** -------