UKTeX Digest Thursday, 8 Jul 1993 Volume 93 : Issue 23 ``The UKTeX Digest is brought to you as a free, unfunded and voluntary service of the UK TeX Users Group and the UK TeX Archive.'' Today's Topics: {Questions & Answers}: Equation editor for Unix Complete citation Re: Merging lists of numbers Re: Merging lists of numbers Survey: UKTeX Digest in MIME format E D I T O R ' S N O T E There will be a "summer break" in UKTeX for the next three weeks, while the Editor takes some paternity leave! However, please continue to send questions, answers and announcements for inclusion. --Ed. Administrivia: Moderators: Peter Abbott (Aston University) and David Osborne (University of Nottingham) Contributions: UKTeX@uk.ac.tex Administration, subscription and unsubscription requests: UKTeX-request@uk.ac.tex ---------------------------------------------------------------------- Date: Fri, 02 Jul 1993 13:58:24 -0000 From: I.Ellery@uk.ac.east-anglia.xgate Subject: Equation editor for Unix I am forwarding this for HP003@UK.AC.EAST-ANGLIA.CPC865, reply either to me, him or UkTeX! > I have just seen a demo of a program called Equation Editor > running on a MAC this morning. It is a WYSIWIG environment for > creating complex equations. The advantage is it can output in > TeX format and so can be pasted straight into your .tex file. > Do you know if a similar program exists for workstations, in > particular HP's (commerical or public domain) ? Thanks, Ian Ian Ellery, email i.ellery@uk.ac.uea Computer Centre, (i.ellery@uea.ac.uk) University of East Anglia phone 0603 592392 Norwich, NR4 7TJ fax 0603 505859 ------------------------------ Date: Sun, 04 Jul 1993 17:13:47 -0000 From: David_Rhead@uk.ac.nottingham.ccc.vme Subject: Complete citation In UKTeX issue 22, "Andy" of Strathclyde's Computer Science department asked about (1) how to \cite{Bloggs} and have the full reference appear in situ so as to be able to, for example, (2) prepare reading lists. Assuming that Andy's real problem is (2), the solution seems easy. It is You don't want \cite, you want \nocite. See page 74 of Lamport's book or page 2 of Patashnik's "BibTeXing". For example, the following .tex file will give a reading list that consists of everything in test.bib. (Here authordate1-4.sty is a .sty file that gives the type of un-numbered reference-list you'd probably want in a reading list, and authordate1.bst is chosen to go with authordate1-4.sty. They're available from Aston. But \nocite will work even if you don't use these.) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \documentstyle[11pt,authordate1-4]{report} \begin{document} \nocite{*} \bibliographystyle{authordate1} \bibliography{test} \end{document} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - There are people whose real problem is (1), or something like (1). They tend to be in the humanities or law, and to want to have citations in footnotes, or citations in bibliographical essays. They may not want a reference-list (because all the information is in footnotes) or they may want a reference-list that uses a different format from that used in footnotes (e.g., "surname, initial" in one, but "initial surname" in the other). I don't know of anything that can do (1) properly. I have an experimental system for the LaTeX end. It's cumbersome, but I can't think of anything better. (It ignores \cite, etc., and defines bespoke commands.) I suppose a .bst file could be written that would deal with the BibTeX end -- but not in time to help Andy if his problem is really (1). David Rhead ------------------------------ Date: Mon, 05 Jul 1993 08:54:37 +0000 From: Dave Love Subject: Re: Merging lists of numbers >>From: Adrian F Clark > Generating page numbers comes down to the following TeX or LaTeX > problem. Given a macro with a set of numeric arguments, as in say > \xref{1 2 4 4 6 7 7 7 7 41} > (the arguments of which would be generated by \pagerefs) how easy > would it be for \xref to generate > "See pages 1, 2, 4, 6, 7, and 41." > i.e., the macro has to ignore duplicate arguments (which should be > already sorted, fortunately) and output "and" before the last number > in the list. The actual format of the arguments is fairly flexible, > since they'll be machine-generated. noweb already does it like this -- see Ramsey's code. cites.sty sorts and merges a list of citations, but doesn't put `and' before the last entry -- an unnecessary refinement IMHO, but doubtless not impossible. Alan Jeffrey's lambda.sty is probably the most elegant way of processing lists of expandable items i.e., not \pagerefs as explained in the article. ------------------------------ Date: Mon, 05 Jul 1993 15:38:41 -0000 From: David Carlisle Subject: Re: Merging lists of numbers > Date: Thu, 01 Jul 1993 16:48:54 +0100 > From: Adrian F Clark > Subject: Merging lists of numbers [.....] > > Generating page numbers comes down to the following TeX or LaTeX > problem. Given a macro with a set of numeric arguments, as in say > > \xref{1 2 4 4 6 7 7 7 7 41} > > (the arguments of which would be generated by \pagerefs) how easy > would it be for \xref to generate > > "See pages 1, 2, 4, 6, 7, and 41." > > i.e., the macro has to ignore duplicate arguments (which should be > already sorted, fortunately) and output "and" before the last number > in the list. The actual format of the arguments is fairly flexible, > since they'll be machine-generated. > > Neat LaTeX solutions on the back of a e-postcard, please! The following macros seem to work, although I havent tested them too much. they work by expansion only which is useful sometimes if you want to use it in a \write. It uses -1 as an end of list marker so as written it only works for non-negative integers. % Document Previewer: xdvi % Document Type: TeX % Master File: xref.tex %%%%%%%%%%%%%%%%%%%%%%%%% \def\TT#1#2{#1} \def\FF#1#2{#2} \def\FirstRef#1 #2 {% \ifnum#1=#2 \expandafter\TT\else\expandafter\FF\fi {\FirstRef#2 }% {\ifnum#2>-1 \expandafter\TT\else\expandafter\FF\fi {See pages #1\LaterRef#2 }% {See page #1}}} \def\LaterRef#1 #2 {% \ifnum#1=#2 \expandafter\TT\else\expandafter\FF\fi {\LaterRef#2 }% {\ifnum#2>-1 \expandafter\TT\else\expandafter\FF\fi {, #1\LaterRef#2 }% { and #1}}} \def\xref#1{\FirstRef#1 -1 } \xref{1 2 4 4 6 7 7 7 7 41} \xref{1} \xref{1 1 1} \xref{1 1 1 2 3 3} \bye ------------------------------ Date: Thu, 08 Jul 1993 18:02:20 +0100 From: David Osborne Subject: Survey: UKTeX Digest in MIME format I'm currently investigating for my own use the MIME* extensions to RFC822 to allow multimedia mail. One facility it provides is the ability to send digests as multipart messages, where all the parts of the digest (table of contents, administrative information, digested messages, trailer) can be individually listed, extracted, etc., by a MIME-capable mail reader. There are a number of other whizzo things which can be done in MIME, such as the inclusion of images (pictures of the archivists, perhaps?); or including instructions which would allow, when reading the message, the automatic retrieval of items from the UK TeX Archive using Internet ftp, which could be very useful. Before venturing too far into this, I'd like some feedback to gauge how many people this would benefit. If you're wondering whether MIME is available for your system, Nat Borenstein's "metamail" package provides MIME support for a dozen or so of the popular Unix mail systems and I believe MIME-capable mailers for DOS and Macintosh are available now or in beta-test. (I'm using MH 6.8 on Unix, which includes MIME support for audio, image and video on my Sun SPARCstation). So, if you have access to a MIME mail reader and think it would be useful to have UKTeX Digest in MIME format, please let me know by mail to UKTeX-request@tex.ac.uk. Please give your message the subject "UKTeX MIME survey". I'll summarise any findings in a later issue of the Digest. Thanks ~~David Osborne (UKTeX Digest editor) * Multipurpose Internet Mail Extensions ------------------------------ UK TeX ARCHIVE at ASTON UNIVERSITY >>> UK.AC.TEX <<< *** Interactive and file transfer access *** JANET: uk.ac.tex (DTE 000020120091) Username: public, Password: public Internet: tex.ac.uk [134.151.40.18] -- telnet/rlogin, anonymous ftp ftp.tex.ac.uk [134.151.44.19] -- anonymous ftp, gopher For telnet access, login: public, password: public For anonymous ftp, login: anonymous, password: *** Mail server *** Send mail to TeXserver@uk.ac.tex (JANET) or TeXserver@tex.ac.uk (rest of the world) with message body containing the word HELP \section FILES OF INTEREST [tex-archive]00readme.txt [tex-archive]00index.files [tex-archive]0000index.zip_vve [tex-archive]00last7days.files [tex-archive]00last7days.zip_vve [tex-archive]00last30days.files [tex-archive]00last30days.zip_vve [tex-archive.doc]TeX-FAQ.txt (Frequently Asked Questions list) [tex-archive.doc]FAQ-Supplement-*.txt (FAQ supplement) \section DIGESTS This year's UKTeX back issues are stored in the archive in directory [tex-archive.digests.uktex.93] This year's TeXhax back issues are stored in the archive in directory [tex-archive.digests.texhax.93] Latest TeXhax: V93 #11 \section MEDIA DISTRIBUTIONS Postal addresses are given below. \subsection Washington Unix TeX distribution tape Latest copy of May/June 1991 contains: TeX 3.14, LaTeX 2.09, Metafont 2.7, plus many utilities suitable for Unix 4.2/4.3BSD & System V tar format, 1600bpi, blockfactor 20, 1 file (36Mb) Copies available on: One 2400ft 0.5" tape sent to Aston with return labels AND return postage OR One Quarter-Inch Cartridge, QIC-120 or QIC-150 format (DC600A or DC6150) sent with envelope AND stamps for return postage to Nottingham (Due to currency exchange, this service is offered only within the UK) \subsection VMS tapes VMS backup of the archive requires three 2400ft tapes at 6250bpi. VMS backup of TeX 2.991 plus PSprint requires one 2400ft tape. \subsection Exabyte 8mm tapes Same contents available as 0.5" tapes. Following tape types available: SONY Video 8 cassette P5 90MP, MAXELL Video 8 cassette P5-90, TDK Video 8 cassette P5-90MPB \section TeX IMPLEMENTATIONS FOR SMALL COMPUTERS \subsection OzTeX V1.4 (for Macintosh) Send 7 UNFORMATTED 800K disks to Aston with return postage. \subsection emTeX (for OS/2, PC-DOS and MS-DOS) The complete package (Thirteen 3.5" disks in High Density format ONLY) is available from Aston at a cost of 20 pounds sterling, including EmTeX, "bonus disks", LJ fonts, DVIPS, documentation, post and packing (DO NOT SEND DISKS): specify Set A. FLI files for FX, 5 pounds sterling: specify Set B. FLI files for P6M, 5 pounds sterling: specify Set C. For general enquiries, and a free catalogue detailing other disk formats, precompiled fonts and lots of other goodies, contact: Eigen PD Software, P.O. Box 722, Swindon SN2 6YB (tel: 0793-611270) (JANET e-mail address: kellett@uk.ac.cran.rmcs) \subsection TeX for the Atari ST All enquiries for disks etc. should be directed to: The South West Software Library, P.O. Box 562, Wimborne, Dorset BH21 2YD (JANET e-mail address: mdryden@uk.co.compulink.cix) \section POSTAGE RATES All prices in Pounds Sterling. For Aston orders, make cheques payable to Aston University. 0.5" tapes: UK: 2.50 (one tape), 5.00 (two tapes). Europe: 5.00 (one tape), 9.00 (two tapes). Outside Europe please enquire. 8mm tapes: UK: 1.00, Europe: 2.00. Quarter-inch cartridges: UK: 1.00, Europe: 2.00. Diskettes: Quantity/Size Europe World UK 1st UK 2nd 18/3.5" 3.10 5.10 1.40 1.10 11/3.5" 1.80 2.90 0.80 0.65 18/5.25" 1.20 2.00 0.60 0.50 11/5.25" 0.80 1.30 0.50 0.35 \section POSTAL ADDRESSES Please include SELF-ADDRESSED ADHESIVE LABELS for return postage. Peter Abbott Information Systems, Aston University, Aston Triangle, Birmingham B4 7ET David Osborne Cripps Computing Centre, University of Nottingham, Nottingham NG7 2RD (for Quarter-inch cartridges ONLY -- must include stamps for return postage ) \section UK TeX USERS GROUP Details available By E-mail: UKTuG-Enquiries@uk.ac.tex Post or phone: David Penfold, Edgerton Publishing Services, 30 Edgerton Road, Edgerton, Huddersfield HD3 3AD (Tel: 0484 519462) Fax: E McNeil-Sinclair 0272 236169 \bye End of UKTeX Digest [Volume 93 Issue 23] ****************************************