Subject: TeXhax Digest V89 #99 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 Friday, November 3, 1989 Volume 89 : Issue 99 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: ***Announcing the new Stanford TeX archive*** IMPORTANT: The Aston Archive \special question Re: TeX-Hax V89 #96 (MetaFont / "reading past FI") Re: Scanning past \fi RE: Immediate write of a character Braille in TeX (summary) Mac pictures in TeX Problem with endnotes Needed: American Psychological Assoc. style macros LaTeX to MASS-11 Conversion On-line LaTeX screen previewer Increasing the meta-ness of Computer Modern ------------------------------------------------------------------------ Date: Sat, 28 Oct 89 14:00:50 PDT From: Joe Weening Subject: ***Announcing the new Stanford TeX archive*** Keywords: Stanford TeX archive As you may have heard, the host Score.Stanford.EDU (a DECsystem-2060) has been retired after 10 years of faithful service to Stanford and the TeX community. The files that were in the directories at Score have been moved to the host Labrea.Stanford.EDU, which is a VAX-11/750 running 4.3 BSD Unix, used mainly as a file repository for the Stanford Computer Science Department. Labrea's Internet address is 36.8.0.47. To get TeX files from Labrea, open an FTP connection and log in as the user "anonymous", with any password. Connect to the directory "tex" (or "pub/tex", they are the same), and you will be at the top level of the TeX distribution directory. The files on Labrea are organized somewhat differently from the way they were on Score. This was done to correspond to the directory organization that Don Knuth is now using for his TeX development work on a Unix system. Files that were specific to Score have mostly been removed. On October 27, new versions of many programs and files were installed on Labrea. These include: TeX version 2.992 (beta release of 3.0) MF version 1.8 (beta release of 2.0) TANGLE version 4 WEAVE version 4 POOLtype version 3 TFtoPL version 3 PLtoTF version 3 GFtoDVI version 3 MFtype version 2 Don Knuth will soon send a message to TeXhax that describes these programs in more detail. If you FTP files from Labrea, please: - schedule major FTP sessions outside of normal working hours - take only the files you need Labrea is not a fast machine, and is easily overloaded by too much FTP traffic. Below is a short description of the TeX subdirectories on Labrea. Note that the copy of the Unix TeX distribution is now several months old; it contains TeX version 2.95 and other programs of similar vintage (late 1988/early 1989). Most people already have this version; if you don't, you probably want to wait until TeX 3.0 is incorporated into Unix TeX. amsfonts AMS Cyrillic and math symbols fonts amstex The AMSTeX macros archive Old files kept for posterity bibtex The BibTeX program and related files cm Metafont sources for the Computer Modern fonts errata Error logs for programs and documentation fonts TFM files for standard (and some non-standard) fonts gf GF font files (for Imagen and Lasewriter) imagen Various files to support Imagen printers latex LaTeX macros, font sources, related files lib Input files read by TeX, Metafont and other programs local Additional unsupported files from Don Knuth ln03 Various files to support LN03 printers mf Metafont source code and documentation mfware Metafont utilities tex TeX source code and documentation texware TeX utilities texhax TeXhax archives tugboat Files for things mentioned in TUGboat unix Unix TeX distribution from University of Washington unsupported Unsupported files from various sources web The WEB system It's possible that in the process of moving things, some files were accidentally removed or transferred incorrectly. If you find any problems with the TeX files on Labrea, please send a message to "tex@labrea.stanford.edu". ------------------------------------------------------------------------------- Date: Fri, 27 Oct 89 12:14 GMT From: Peter Flynn UCC Subject: IMPORTANT: The Aston Archive Keywords: Aston, server, GET command In my recent SERVERS document, referrence was made to a GET command at the Aston archive. I am now informed that this does not exist, so please do not try mailing a GET command to the Aston server. Sorry for this: it will be corrected in the next version due out mid-Nov. Peter ------------------------------------------------------------------------- Date: Tue, 24 Oct 89 17:09:28 BST From: "Prof. J. de Pillis" Subject: \special question Keywords: \special What is the command used within \special{ } for horizontal and vertical offsets? (hoffset, voffset?) Thanks!!! John de Pillis PS: If this English e-mail address is a problem, you can use jdp@ucrmath.ucr.edu ---------------------------------------------------------------------------- Date: Mon, 30 OCT 89 13:11:41 BST From: CHAA006%vaxa.rhbnc.ac.uk@NSFnet-Relay.AC.UK Reply-To: Philip Taylor (RHBNC) Subject: Re: TeX-Hax V89 #96 (MetaFont / "reading past FI") Keywords: METAFONT, \fi Daniel Keizer asked about MetaFont for MS/DOS systems. I use Turbo MetaFont, given away with incredible generosity by Richard Kinch of the Kinch Computer Company at TUG '89. The whole package (Turbo TeX, Turbo MetaFont) costs $150 executable-only, $300 with source. It seems excellent. My only wish is that Richard was available by 'phone at times other than 15:00 -- 17:00 local time --- there is zero overlap with the U.K. ! Wayne G. Sullivan comments that "TeX scans past \fi in evaluating the conditional text". I think, with the greatest respect to Wayne, that he has mis-read the situation: TeX is not "scanning past the \fi", but simply concatenating characters in its normal way; there is nothing about an "if {then} else fi" construct that implies closure. In the example that Wayne cites: \def\eleven{11} \pageno=1 \ifodd\pageno \pageno=\eleven \fi \eleven \number\pageno Guess the page number. \bye \ifodd \pageno evaluates to ; TeX expands the branch, yielding \pageno=11 the unconditional text is next expanded yielding 111Guess the pagenumber. as there was neither a nor a \relax after "\pageno=11", all following decimal digits are subsumed into the value to be assigned, and the effective assignment is \pageno=11111 % five ones, two from the conditional \eleven, % two from the unconditional \eleven, and one % from \number\pageno This all seems very reasonable to me, and I don't think it's fair to describe it as "TeX scanning past the \fi" --- there is no reason why an assignment has to be entirely bounded by an "if {then} else fi" construct. Philip Taylor Royal Holloway and Bedford New College. ----------------------------------------------------------------------------- Date: Sat, 28 Oct 89 13:24:01 EDT From: Denys Duchier Subject: Re: Scanning past \fi Keywords: TeX, \fi > A 'feature' of TeX, which is perhaps well known to texperts, but is new to > me, is that TeX scans past \fi in evaluating the conditional text. I first > noticed this for file names, but since these are systems-dependent, I give > a different example below. Can you guess the \count 0 that the following will > produce? > > \def\eleven{11} > \pageno=1 > \ifodd\pageno \pageno=\eleven \fi > \eleven \number\pageno Guess the page number. > \bye When TeX reads the 3rd line the end of line that comes after \fi disappears and now "\pageno=\eleven" and "\eleven" are no longer separated by anything and when TeX attempts to interpret what follows the "=" sign as a number it sees "\eleven\eleven" which expand into 1111. Try "\ifodd\pageno \pageno=\eleven\relax \fi". Denys Organization: Computer Science, Yale University, New Haven, CT 06520-2158 --------------------------------------------------------------------------- Date: Sun, 29 Oct 89 15:27:52 EST From: Jim Walker Subject: RE: Immediate write of a character Keywords: TeX, immediate write In TeXhax Digest v89 #94, Peter Scott proposes the problem > given a number in, say, \cc, perform an \immediate\write of \char\cc. I'm not surprised that this can't be done with \char. As I understand it, \char65 means "typeset whatever character is in position 65 of the current font", whereas a \write does not typeset anything. Besides the \ifcase solution, you could use definitions like: \bgroup \def\adef#1,#2{\expandafter\gdef\csname#1\endcsname{#2}} \adef32,{ } \adef33,! \adef34," \catcode`\#=12 \adef35,# \catcode`\$=12 \adef36,$ % . % . % . \adef122,z \catcode`\{=12 \adef123,{ \adef124,| \catcode`\}=12 \adef125,} \catcode`\~=12 \adef126,~ \egroup Then you can say things like \immediate\write16{\expandafter\csname\number\cc\endcsname} Obviously, this is no easier to type than the \ifcase solution, but it might be more efficient if you're going to be \write ing lots and lots of characters this way. --- James W. Walker, Department of Mathematics, University of South Carolina, Columbia SC 29208 BITnet: N410109@univscvm ------------------------------------------------------------------------------- Date: Sat, 28 Oct 89 16:46:55 MET From: Victor Eijkhout Subject: Braille in TeX (summary) Keywords: TeX, Braille A while back, I asked if people had ever done something with Braille typesetting in TeX. A few people responded. Thanks, in particular Malcolm, Hellmuth, and Dick. Here's what tangible information I have got. 1/ At the university of Western Ontario, London, Ontario, Canada N6A 5B7, R. Arrabito and H. J"urgensen have written a report: Computerized Braille Typesetting, Report 180 of the Department of Computer Science. This is a 10 page introduction to TeX and Braille, and a survey of their translation project so far. I give a quote from the introduction: "In fact, we are inclined to conlude that the very structures of the TeX language and the Braille transcription rules prohibit a universal translation algorithm." No email addresses of the authors known. 2/ In Germany, Dr. Gerd-D. Barg, (again only a physical address: Fernuniversitaet Hagen, D-5900 Hagen 1, Germany), has developed a Braille font and LaTeX style file, that are used for courseware at the university of Hagen. This font (only 300dpi pxl/pk) can be obtained from the listserver in Heidelberg: listserv@dhdurz1.bitnet That's it. Victor Eijkhout Department of Mathematics University of Nijmegen Toernooiveld 5 "Far out in the uncharted 6525 ED Nijmegen, the Netherlands backwaters of the unfash- ionable end of the +31 80 61 3169 western spiral arm (switchboard: 61 1111) of the galaxy" u641000@HNYKUN11.BITNET ------------------------------------------------------------------------------ Date: Fri, 27 Oct 89 10:16:58 -0800 From: Phil Windley Subject: Mac pictures in TeX Keywords: Mac, TeX Is there a way of taking pictures generated on a Macintosh and including them in TeX documents? Note that I'm interested in doing this in general, not in TeX running on the Mac. I have heard apocryphal stories of people using \special (with help from some other things) to do this, but have never met anyone who has. adTHANKSvance, phil ---------------------------------------------------------------------------- Date: Thu, 26 Oct 89 10:53:42 CDT From: dale@tarski.cogsci.uiuc.edu Subject: Problem with endnotes Keywords: endnotes Hello, Sorry to bother you again about the endnote macros. I've tried to modify them but I guess I don't understand them well enough. As you can see, I made two changes: one to produce notes in sans serif (which the journal requires) and one to indent the notes. I still have two problems. First, I need to put a blank line between each note. This should be easy, but I couldn't figure it out. Second, I need to be able to put notes on centered and emphasized text (like titles etc.). Now when I do this the note comes out centered or emphasized. Any help would be greatly appreciated. Thanks. Dale Gerdemann University of Illinois, Dept of Linguistics Cognitive Science Group, Beckman Institute dale@tarski.cogsci.uiuc.edu d-gerdemann@uiuc.edu % Use \endnote{1}{text}. At the end of your document, type % \producenotes to actually flush all end notes to be printed. % % macros for making endnotes instead of footnotes % We make @ signs act like letters, temporarily, to avoid conflict % between user names and internal control sequences of plain format. \catcode`@=11 \newbox\endnotebox \def\setendnotefont#1{\gdef\endnotefont{#1}} \setendnotefont{\sf} %%% Modified to use sans serif \def\endnote#1{\let\@sf\empty \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi #1\@sf\vendnote{{#1}}} \def\vendnote#1{\global\setbox\endnotebox= \vbox{\parindent=20pt\endnotefont\unvbox\endnotebox\bgroup %%% Modified to indent \indent\llap#1\ignorespaces\futurelet\next\aftergroup\no@te\relax}} \def\no@te{\ifcat\bgroup\noexpand\next \let\next\n@@te \else\let\next\n@t\fi \next} \def\n@@te{\bgroup\aftergroup\@endnote\let\next} \def\n@t#1{#1\@endnote} \def\@endnote{\strut\egroup} % \newcount\enotecounter \def\resetenotecount{\global\enotecounter=0 } \resetenotecount \def\setenotecount#1{\global\enotecounter=#1 } % \def\setendnoteflagfont#1{\gdef\endnoteflagfont{#1}} \setendnoteflagfont{\sevenrm} \def\enote{\unskip \global\advance \enotecounter by 1 % First bump the counter. % Now convert the current value of the counter into a superscripted numeral \endnote{{$^{\hbox{\endnoteflagfont\the\enotecounter}}$}}} % \def\producenotes{% \ifvoid\endnotebox\else\medskip\unvbox\endnotebox\par\fi} \catcode`@=12 % at signs are no longer letters --------------------------------------------------------------------------- Date: Sun, 29 Oct 89 23:18:05 PST From: gonzo@psych.Stanford.EDU (Richard Gonzalez) Subject: Needed: American Psychological Assoc. style macros Keywords: macro, American Psychological Association, style file Does an APA (American Psychological Assoc) style macro exist for LaTeX? I've been able to track down something that does the biblios according to APA guidelines but some of the other details (such as the unusual two-lined runninghead and funny headers) have been troublesome. Any suggestions for where to look? ------------------------------------------------------------------------------- Date: Sun, 29 Oct 89 13:35:30 PST From: Ian_Cumming@mtsg.ubc.ca Subject: LaTeX to MASS-11 Conversion Keywords: LaTeX, MASS-11, Conversion Lest anyone think the recent call for help is not serious, consider the following: My electronics company has 300 engineers, of which 60 regularily write reports containing mathematical equations. These people have recently turned to writing their own documents in LaTeX. On the other hand, our 40 secretaries are trained in VAX MASS-11 and, apart from typing documents, have to provide configuration control and maintenance over all company documents. They do not have the time or in some cases the ability to learn a detailed text preparation language such as LaTeX. While such a badly needed converter could not do all the nice things LaTeX can do, it could convert a subset of commands to produce a readable document. It would be a relatively simple task for a competent word processing operator to complete the page layout tasks in MASS-11. So, any offers ? Ian_Cumming@mtsg.ubc.ca ------------------------------------------------------------------------------ Date: Sun, 29 Oct 89 13:44:08 PST From: Ian_Cumming@mtsg.ubc.ca Subject: On-line LaTeX screen previewer Keywords: LaTeX, View, Screen previewer With fast workstations and 1000 point displays available such as the SUN, is anybody working on an on-line screen previewer ? It would work with split-screens or windows, with your text editor working in one window, and a `compiled on the fly' version of the typeset text in the other window. That would keep all our WYSIWYG detractors silent ! ------------------------------------------------------------------------------ Date: Mon, 30 OCT 89 14:04:25 BST From: CHAA006%vaxa.rhbnc.ac.uk@NSFnet-Relay.AC.UK Reply-To: Philip Taylor (RHBNC) Subject: Increasing the meta-ness of Computer Modern Keywords: fonts, Computer Modern I wonder if anyone has done any work on increasing the meta-ness of Computer Modern. At present, there are some 74 canonical CM fonts, but if one plots them on a multi-dimensional axis, there are many gaps. I am aware of John Sauter's work on interpolating design size, but I wish to go further: I would like to be able to generate, for example, Computer Modern Bold Caps and Small Caps at design sizes (5, 6, 7, 8, 9, 10, 12, 17)pt. I can make an attempt by carrying out various comparisons between the existing defined fonts, in pairs (cmr:cmb; cmr:cmcsc; cmb:cmcsc), and then selectively merging the differences to form *cmbcsc, but it would be {\it really} nice if the various axes could be separated out, and I could build an arbitrary font by an incantation such as: family := computer modern; face := roman; variant := caps_and_small_caps; weight := bold; slant := 0; design_size := 10pt; As this is distinctly parallel to the new font-loading mechanism of Mittelbach and Sch\"opf, I wonder if anyone has already investigated (and better, implemented) the idea ? Philip Taylor Royal Holloway and Bedford New College. ----------------------------------------------------------------------- %%% 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 ************************** -------