TeXhax Digest Wednesday, October 14, 1987 Volume 87 : Issue 82 [SCORE.STANFORD.EDU]TEXHAX82.87 Editor: Malcolm Brown Today's Topics: wide page numbers Magnifying picture environment A generic list of figures macro JTeX is now on Turing.Stanford.EDU Postscript to Impress conversion program needed top-aligned matrices Mixing landscape & portrait mode in LaTeX macros defining macros Help TeX on the ATT 3B1? LaTeX Notes (Re: TeXhax Digest V87 #80) TeX error and footnote inside tabular environment Enhancements to Kellerman & Smith distribution of VAX/VMS TeX ---------------------------------------------------------------------- 3-Oct-87 10:51:11-PDT,2178;000000000000 Date: Sat, 3 Oct 87 16:03:17 BST From: Paul Karger To: TeXhax@score.stanford.edu Subject: wide page numbers I have found that the table of contents and list of figures/tables definitions in LaTeX's book, report, and article styles all fail to handle page numbers that are wider than a couple of digits. In particular, if you number pages within chapters, such that a page number is of the form: chapter_number-page_within_chapter then as soon as you get more than 10 chapters, the table of contents will start getting overfull hboxes for the page numbers 10-1, 10-2, etc. The same this will happen with very large documents (>1000 pages). In looking at the style files, the width of the page numbers in these cases is fixed. I could just increase the values of the constants in a private copy of report.sty, but surely there is a better way to handle this, perhaps in the fashion of the bibliography code that determines the width of the entry number field, based on the number of entries. Has anyone else run into this problem and come up with a solution? In a related problem, is there a way to get pagestyle{myheadings} to take effect on the first pages of the table of contents, list of figures/tables, and bibliography. The first page of chapters requires a \thispagestyle, but there does not seem to be an easy way to get a \thispagestyle into the tableofcontents or bibliography. In particular, \addtocontents will not allow a \thispagestyle to be inserted. (It blows up in a horrible fashion.) Thanks for any help that anyone can offer. (The report.sty in use is dated 17 Dec 1985.) ------------------------------ Date: Tue, 6 Oct 87 18:36:43 est From: munnari!csadfa.oz.au!gyp@uunet.UU.NET (Patrick Tang) To: texhax@score.stanford.edu Subject: Magnifying picture environment Is there a way of magnifying figures drawn using \picture environment without phsically changing the coordinates of the \picture environment commands. NB:Magnifying implies either reducing or enlarging the size specified in the \picture environment. Tang Guan Yaw/Patrick International:+61 62 68 8185 Local: (062)68 8185 Dept. Computer Science ACSNET/CSNET: gyp@csadfa.oz Telex:ADFADM AA62030 University College, ADFA, ARPA: gyp%csadfa.oz@uunet.uu.net Canberra. ACT. 2600, AUSTRALIA. UUCP: ...!uunet!munnari!csadfa.oz!gyp ------------------------------ Date: Mon, 5 Oct 87 16:00:53 CDT From: "Bruce G. Greenblatt" To: texhax@SCORE.STANFORD.EDU Subject: A generic list of figures macro I would like to have a generic list of figures type macro in LaTeX, so that I can produce a list of anything I want at the beginning of my document. This would be similar to the \newtheorem command. I would like to say: \newfigure{algorithm}[chapter] \begin{algorithm} ... Algorithm goes here! ... \caption{Some Wonderful Algorithm} \end{algorithm} Then, a \listofalgorithms command would produce the List of Algorithms at the beginning of my document. I can do almost what I want with \write commands of TeX. Clearly, the only difficult part is producing the List of Algorithms. Any suggestions would really be appreciated. Thanks, Bruce Greenblatt ------------------------------ Mail-From: YASKI created at 29-Sep-87 11:40:15 Date: Tue 29 Sep 87 11:40:15 From: Yasuki Saito Subject: JTeX is now on Turing.Stanford.EDU To: laser-lovers@BRILLIG.UMD.EDU Japanese lovers, As I promised at this year's TUG meeting, I installed JTeX (Japanese TeX) on a machine called Turing (DEC2060 at CSLI, Center for the Study of Language and Information). You should look into the following directory of Turing ( Turing.Stanford.EDU): PS: Read a file PS:README.TXT first. This directory should be accessible by anonymous FTP. Currently available public Japanese fonts made from JIS 24 dots font can be found in PS: subdirectory. If you are interested in using high quality Japanese fonts from DNP (Dai-Nippon Printing), please contact me. Unix version of JTeX will soon be available. -yaski ------------------------------ Date: Tue, 6 Oct 87 14:22:32 pdt From: hildum@iris.ucdavis.edu (Eric Hildum) To: texhax@score.stanford.edu Subject: Postscript to Impress conversion program needed Hello, I am looking for a program that will convert Postscript graphics images (plots, etc.) to Impress so that the images may be plotted on a laser printer. I have available for my use most common varieties of MacIntosh, VMS 4.6, and Ultrix 2.0. If you know of any utilities that may be of use to me, please send mail to one of the addresses given below. Thank you, Eric Hildum dehildum@ucdavis.edu (Internet) dehildum@ucdavis.bitnet (BITNET) ucbvax!ucdavis!dehildum (uucp) ------------------------------ Date: 6 Oct 87 9:49 -0800 From: Donald Arseneau To: texhax@SCORE.STANFORD.EDU Subject: top-aligned matrices Dfr@usna.arpa doean't seem to work for me, the conection fails at usna.mil so here is my response to the question about matrices aligned at the top: % Hello; I gave your problem a bit of thought, and what I thought % was that \vtop would easily do the trick. That is true if you only % need the naked array normally provided by \matrix --- simply change % the \vcenter to \vtop in the definition of \matrix in the TeXbook--- % but with parentheses, of course, there is a problem. When I tried % it out the matrix contents lined up well but \pmatrix gave % parentheses centered on the line as in: % | | % | | % Z = | 0 0 0 | % | 0 0 0 | % | 0 0 0 | % ... and un-centering the parentheses is a real problem. % % Well here is my solution using explicit measurements to remember % where the proper baseline of the inner matrix is: % \catcode`\@=11 \newbox\matbox \def\topmatrix#1{\setbox\matbox=\vtop{\normalbaselines\m@th % set the matrix in \ialign{\hfil$##$\hfil&&\quad\hfil$##$\hfil\crcr % a \vtop so the \mathstrut\crcr\noalign{\kern-\baselineskip} % first baseline #1\crcr\mathstrut\crcr\noalign{\kern-\baselineskip}}} % lines up. % get twice difference between baseline and centerline of inner matrix: \dimen255=\dp\matbox \advance\dimen255 by -\ht\matbox % Center matrix and surround with parentheses: \setbox\matbox=\hbox{$\left( \,\vcenter{\box\matbox}\,\right)$} % Correct for difference between baseline and centerline of parentheses: \advance\dimen255 by -\dp\matbox \advance\dimen255 by \ht\matbox % Lower centered matrix back to its proper baseline: \lower0.5\dimen255\box\matbox } \catcode`\@=12 One identity matrix is: $I_4=\topmatrix{1&0&0&0\cr 0&1&0&0\cr 0&0&1&0\cr 0&0&0&1\cr}$, and the top row should line up with the line of text. \bye % Donald Arseneau (asnd@triumfcl.bitnet) ------------------------------ Date: Wed, 7 Oct 87 01:21 GMT From: Peter Flynn To: texhax@score.stanford.edu Consider the following piece of TeXt. The objective is to get a single prime dash to represent "feet". ------------------------------------------------------------------------------- it is 4$'$ long it is 4$~'$ long \vfill\eject\end ------------------------------------------------------------------------------- Now process it on my PC ------------------------------------------------------------------------------- This is TeX, Version 2.0 (PCTeX 1.50, (c)Personal TeX, Inc 1986) (preloaded format=plain 87.3.28) 7 OCT 1987 01:02 **test (test.tex ! Undefined control sequence. '->\\ bgroup\prim@s l.1 it is 4$' $ long ? x No pages of output. ------------------------------------------------------------------------------- Now process it on my VAX ------------------------------------------------------------------------------- This is TeX, VAX/VMS Version 2.0.0 (preloaded format=plain 86.5.17) 7 OCT 1987 01:08 **TEST (DB2:[NETGUIDE]TEST.TEX;1 ! Missing { inserted. ~ '->~ \bgroup \prim@s l.3 it is 4$~' $ long ? x No pages of output. ------------------------------------------------------------------------------- Now answer the following questions (1 side of paper, 30 marks, no cheating) a. Why does PC-TeX trip up on a single RH quote in math mode? b. Why does the VAX trip up on an attempted supersuperscript RH quote in math mode? The TeXbook says (p.130) that a single RH quote acts as a \prime in math mode. Even $~\prime$ is still a bit big, so I tried uparrowing an RH quote to get it even smaller. Incidentally $~\prime$ and $~{~\prime}$ work just fine. Over to you, Don. Peter Flynn, Computer Bureau, University College, Cork, Ireland (CBTS8001@IRUCCVAX.BITNET) ------------------------------ Date: Wed, 7 Oct 87 11:38:57 EDT From: akk2@tut.cc.rochester.edu (Atul Kacker) To: texhax@score.stanford.edu Subject: Mixing landscape & portrait mode in LaTeX Is it possible to have a few pages in a LaTeX document print in landscape mode and the rest in portrait mode ? And how about having a full document in landscape mode but have the page numbers in portrait mode ? I need to insert a few tables in my thesis in a landscape mode and still have the page numbers at the bottom like the rest. Atul Kacker Internet: akk2@tut.cc.rochester.edu UUCP : {decwrl,cmcl2}!rochester!tut!akk2 ------------------------------ Date: Tue, 6 Oct 87 16:09:29 EST From: mds@l.cc.purdue.edu (Mark Senn) To: texhax-request@score.stanford.edu Subject: macros defining macros I'd like to use a macro to define another macro. This works when I define the macro manually (if I don't use a macro to define it). \let\@Next=\@DoPlainApplication \ifx\@FutureLet [% \let\@Next=\@DoNumberedApplication \fi \@Next When defining the macro using another macro I would like to be able to say, assuming #1 is "Application" (without the quotes of course): \let\@Next=\csname @DoPlain#1\endcsname \ifx\@FutureLet [% \let\@Next=\csname @DoNumbered#1\endcsname \fi I tried sprinkling \expandafter's and doing most everything else I could think of in and around the \let\@Next statements. It didn't work. What should I be doing? Thanks, Mark Senn mds@l.cc.purdue.edu ------------------------------ Date: Tue, 6 Oct 87 15:22:23 PDT From: russell@bluebell.ucdavis.edu (Michael Russell) To: texhax-request@score.stanford.edu Subject: Help I rather doubt that this is the right place to mail this, and I'd very much appreciate it if you could direct me to the right place. Here is my plight: We got a distribution of TeX from the University of Washington (I believe), and we have a faculty member here who is using it and is having a lot of trouble with missing fonts. We installed all the fonts that came with the distribution, but that apparently is not enough. I don't know the first thing about TeX, but it sure seems to me that the faculty member should be able to control the fonts he is using, but that's not important really. I have been instructed to do whatever is necessary to get the extra fonts. If the UW fonts are insufficient, where do I go to get more fonts? Thank you very kindly for your time. \ Michael Russell \ Staff Programmer for the Division of Computer Science \ of the Department of Electrical Engineering and \ Computer Science on the Davis campus of the /\ University of California / \ INTERNET: russell@ucdavis.ucdavis.edu / \ BITNET: RUSSELL@UCDAVIS / \ UUCP: ...!{ucbvax,lll-crg,sdcsvax}!ucdavis!russell ------------------------------ Date: Wed, 7 Oct 87 16:00 CST From: Dick Brown Subject: TeX on the ATT 3B1? To: TeXhax@SCORE.STANFORD.EDU Has anyone ported TeX to the ATT 3B1 microcomputer? This is a 68010-based machine running System V. Is anyone working on a port? If there is no port, there are a couple of Pascal compilers available for it (neither seems particularly related to the Berkeley compiler), and of course it has C. Naturally, I'd much rather use an existing port. If I have to do some work myself, what would the path of least resistance be? Thanks for any tips, advice, etc. Dick Brown (rbrown@carleton.edu, ...!inhp4!stolaf!brownr) Department of Math and Computer Science Carleton College Northfield, MN 55057 (507)663-4450 ------------------------------ From: lamport@src.DEC.COM (Leslie Lamport) Date: 7 Oct 1987 2111-PDT (Wednesday) To: TeXhax@Score.Stanford.edu Subject: LaTeX Notes (Re: TeXhax Digest V87 #80) Herman F. Vogt zult aan blad 156 van het LaTeX boek kijken. Daar vindt hij [The \footnote] command may be used only in paragraph mode to produce ordinary footnotes. It should not be used inside a box... Hij moet \footnotemark en \footnotetext gebruiken. Moshe Vardi complains of a "strange line break" after "Chuangtse". He doesn't say what is strange about it or after which of the two "Chuangtse"s it occurs. Running it, I find a break after "Chuangtse," (that is, after the comma), which didn't seem too unreasonable, but I haven't had a chance actually to look at the output. However, line breaking in a parbox is different from ordinary line breaking because a \sloppy declaration is in effect. This can be overridden by an explicit \fussy declaration in the parbox. Doing so causes an overfull hbox, which \sloppy will not allow. Leslie Lamport ------------------------------ Date: Wed, 7 Oct 87 22:38 PDT From: Subject: TeX error and footnote inside tabular environment To: texhax@score.stanford.edu Peter Galvin (galvin-peter@yale.arpa) just wrote about getting a !TeX capacity exceeded, sorry [buffer size=500] error while TeXing a input file. I recently had a similar error while LaTeXing a book on our VAX 8650. The book had a master file that called several subfiles. The problem, it turned out, was caused by a fluke in the master file. The file was one long continuous line, instead of having hard carriage returns at the end of each text line. I corrected the problem and the TeX capacity exceeded error went away. Herman F. Vogt wondered how to create footnotes within the tabular environment. All you have to do is create the tabular environment within a minipage environment. The footnotes will be lettered instead of numbered. David J. Buerger Santa Clara University dbuerger@scu.bitnet ------------------------------ From: ABBOTTP <@Cs.Ucl.AC.UK:ABBOTTP@mail.aston.ac.uk> To: TEXHAX <@Cs.Ucl.AC.UK:TEXHAX@score.stanford.edu> Date: 8-Oct-1987 07:11 BST Subject: Aston Archive update From: Peter Abbott Dept: Computing Service Tel No: 021 359 5492 -direct PUBLIC account at Aston University UK October 5 1987 This text is available in aston.kirk::[public]000aston.readme The ID is PUBLIC and the password PUBLIC For each set of software an index file has been created with the name 000index.list and is stored in the top directory of the set of software. Each set of software is stored below PUBLIC and where relevant in further sub directories. I have a copy of VMS_SHAR and am awaiting a suitable SHAR for `UNIX'. I can also create `TAR' files for FTP but at present the TRANSFER/BINARY fails (DEC have been notified). Further items are always welcome. Peter Abbott %%% Peter's list is too long for inclusion in the digest. It is available %%% for FTPing as %%% ABBOTT.TXH %%% on the machine [SCORE.STANFORD.EDU]. For those on BITNET, it can be %%% obtained from TEX-L using a GET command %%% %%% malcolm %%% ------------------------------ Date: Thu, 8 Oct 87 07:37:38 PDT From: KARNEY%PPC.MFENET@NMFECC.ARPA Subject: Enhancements to Kellerman & Smith distribution of VAX/VMS TeX To: TeXhax@Score.Stanford.EDU I have a number of enhancements to the Kellerman & Smith distribution of VAX/VMS TeX, that I am willing to share. I will distribute DIFFERENCES between my change files and Kellerman & Smith's. Thus, you will need the Kellerman & Smith distribution to use my changes. (I am not particularly interested in software distribution; I would prefer if my changes were incorporated into the distribution. Kellerman & Smith, are you listening?) In brief the changes are: TeX and Metafont: (1) Provide hooks for the calling of an editor on an error. This is accomplished by defining TEX$EDIT to point to a DCL command file which accepts 3 arguments (file name, line number, and TeX image name). This command file then can be used to call any VAX editor (e.g., EVE, EDT, Emacs). TeX calls this command file using LIB$DO_COMMAND which is terminal. Thus you (or your editor) must reinvoke TeX after exiting from the editor. (2) The CPU time is printed out at the end of the run. (3) A logical name TEX$OUTPUT (resp. MF$OUTPUT) is defined to point to the resulting DVI (resp. GF) file. This can be used by cooperating software. (E.g., GFTOPK reads MF$OUTPUT by default. Similarly DVITYPE uses TEX$OUTPUT.) (4) The command line is remembered by a logical name TEX$MEMORY (resp. MF$MEMORY). Conventions follow those of David Fuchs' TOPS-20 change file. (5) Command line is converted to lower case. Thus TEX \relax test \bye is a sensible thing to type. No quotes are needed. This means that qualifiers must come immediately after the command name. (6) TEX and MF are defined as symbols rather than verbs. They parse their input lines using CLI$DCL_PARSE. (This is primarily to facilitate the installation of TeX by non-privileged people---like me!) (7) Search lists can be used in the input file spec. E.g., we have TEX$INPUTS defined as a search list pointing to several TeX input areas. (Kellerman & Smith call $PARSE on the input file, which translates a search list logical name to its first entry.) (8) Use the old David Fuchs conventions on TeX areas (TEX$INPUTS, TEX$FONTS, etc.) (9) Fixed some bug whereby EDT files could not be read by TeX. Metafont only: (10) Support graphical output (thanks to Jane Colman) on Visual 550 and Macintoshes running VersaTerm (or VersaTerm Pro). It's relatively easy to added other Tektronix compatible terminals (but they need to be able to erase selectively). Bibtex: (11) remembers its command line. Other programs: (12) Use TEX$OUTPUT and MF$OUTPUT where appropriate. (13) Run programs via symbols instead of verbs. (14) Search lists accepted. If you're interested drop me a note at the address below. Please allow three to four weeks for delivery. Charles Karney Plasma Physics Laboratory Phone: 609/683-2607 Princeton University MFEnet: Karney@PPC.MFEnet PO Box 451 ARPAnet: Karney%PPC.MFEnet@NMFECC.ARPA Princeton, NJ 08544-0451 Bitnet: Karney%PPC.MFEnet@ANLVMS.Bitnet ------------------------------ %%% %%% subscriptions, address changes to: texhax-request@score.stanford.edu %%% %%% submissions to: texhax@score.stanford.edu %%% please send a valid arpanet address!! %%% %%% BITNET redistribution: TEX-L@TAMVM1.BITNET (list server) %%% %%%\bye %%% ------------------------------ End of TeXhax Digest ************************** -------