Subject: TeXhax Digest V90 #18 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, February 16, 1990 Volume 90 : Issue 18 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: National alphabets How do I figure out the final page placement of floats??? (*URGENT*) LaTeX problem formatting computer output ln03 driver source wanted? File Formats LaTex header line problem FTPing TEX from Score / LISTSERV 2 color printing Greek Style File? Compiling METAFONT on a SUN3 using gcc Success with metafont, failure with mtexdemo Exercise 11.5 of TeXBook Quite logical, captain! ------------------------------------------------------------------------------- Date: 30 JAN 90 14:39:14 From: Z3000PA%AWITUW01.BITNET@UWAVM.ACS.WASHINGTON.EDU Subject: National alphabets Keywords: TeX, typestting, alphabets In TUGboat 10/3, pp.342-345, Yannis Haralambous has compiled a list of what he considers all important national characters within the latin alphabet languages. This list looks very complete with respect to the "letters", but it sadly misses the "other characters" that are essential for typesetting texts in non-English languages. Please, don't forget the french quotes = <> and the german quotes = ,,Anf\"uhrungszeichen`` or ,,G\"ansef\"u\ss chen`` and maybe other characters for other European languages! Hubert Partl, Vienna, Austria --------------------------------------------------------------------------- Date: Thu, 1 Feb 90 11:03:17 MET DST From: Dirk Husemann Subject: How do I figure out the final page placement of floats??? (*URGENT*) Keywords: TeX/LaTeX, floats Hi, Currently I'm writing my minor thesis using LaTeX. Sofar I've been really enthused about TeX/LaTeX capabilities. However, I've encountered a problem which I couldn't figure out how to do: For including bit image picture (GEM image format) --- which is possible with TeX for the Atari ST --- I'd like to have a maxipage environ- ment, i.e. an environment using the current textwidth and marginparwidth as display area. When I use singlesided documents everything is quite easy, I just use a mechanism similar to that of refman.sty. Yet, the problem starts when I use twosided documents and put a maxipage environment into a float --- a figure, e.g. --- the same mechanism I used for singlesided docs fails, because the float might end up on the next page which is consequently an even-side page (or an odd-side page, depending on the page the float was created), but not an odd-side page. So --- I need a way to determine the page number the float will finally end up on to do a correct shift to left or right. My question: How can I determine this page number? As the deadline for my thesis is in about two weeks, any help would really be appreciated! Dirk Husemann %---------------------- Smile, tomorrow will be worse! ------------------ X.400: RFC822: dkhusema@immd4.informatik.uni-erlangen.de RFC822: dkhusema@immd4.informatik.uni-erlangen.dbp.de [BETTER!FASTER!] UUCP: {pyramid,unido}!fauern!immd4.informatik.uni-erlangen.de!dkhusema %-- Beam me up, Scotty, there's no intelligent life down here! -- %------------------- My opinions are mine, mine, mine ------------------- ---------------------------------------------------------------------------- Date: Mon, 29 JAN 90 16:57:59 GMT From: POPX%VAX.OXFORD.AC.UK@UWAVM.ACS.WASHINGTON.EDU Subject: LaTeX problem formatting computer output Keywords: LaTeX, formatting I wonder whether somebody could help with a Latex problem. It concerns formatting of computer output. I'm writing a book in which I need to include figures containing logs of annotated computer output and user input. The usual way to do this would be to use 'verbatim', putting a verbatim environment inside a 'figure' environment, and embedding the log inside that. However, I want to distinguish between output and input, by placing them in different typefaces. I can make my program mark the beginning and end of each line of output, by putting special characters before and after. So what I'd like is this kind of thing: \begin{log} \op{$} CALCULATE \op{:} 2 + 2 => \op{4 :} \op{:} 3 * 7 => \op{21 :} exit; \op{Bye.} \op{$} LOGOUT \end{log} where what's enclosed in \op{...} is to be italicised (say) to indicate that it's a prompt, or reply, or some other kind of output, and everything else is assumed to be input and left alone. For this to maintain column alignment, both typefaces will have to be non proportionally-spaced, as \tt is now. The example above didn't demonstrate annotation. I need this to comment on what the user and program are doing: \begin{log} \annotate{The dollar prompt shows we're talking to the operating system. Now, call the calculator program.} \op{$} CALCULATE \op[:} 2 + 2 => \op{4 :} \annotate{And the answer was 4, as you'd expect.} \op{:} 3 * 7 => \op{21 :} exit; \annotate{The user, thoroughly bored, returns to the joys of VMS.} \op{Bye.} \op{$} LOGOUT \end{log} I'd be very grateful for any suggestions. Incidentally, some of these logs will be long, and may need to split over several pages. + Jocelyn Paine + + + + JANET: popx@uk.ac.ox.vax + + BITNET: popx%uk.ac.ox.vax@ac.uk + + INTERNET: popx%uk.ac.ox.vax@nsfnet-relay.ac.uk + + UUCP: Please don't. Our site won't subscribe. + + Smail: Experimental Psychology Department, + South Parks Road, Oxford OX1 3UD, UK. + + Phone: Oxford (0865) 271444 (Messages only). + --------------------------------------------------------------------------- Date: 29 Jan 90 19:36:42 gmt From: G.Toal%EDINBURGH.AC.UK@UWAVM.ACS.WASHINGTON.EDU Subject: ln03 driver source wanted? Keywords: printer, LN03 Hello friends, I've been asked to get a ln03 laser (not postscript) running on a machine which *isn't* vax/vms... I don't know much about ln03's except that they are Dec printers -- and I have a terrible suspicion that if I can find a driver for it, it will be highly VMS specific!? I'd be delighted if someone can prove me wrong :-) Could anyone who knows of the source (pref C, possibly Pascal) of an ln03 driver please mail me? (Or post a short note here if mail bounces which it often does) I can fetch files via janet ftp & arpa ftp, and by mail elsewhere. Many thanks, Graham Toal PS. In the dim & distant past I remember seeing postings about ln03s... Are they troublesome, even if you have a driver that works? Any tips would also be appreciated. ------------------------------------------------------------------------------- Date: Wed, 31 Jan 1990 11:37 EST From: Norman Walsh Subject: File Formats Keywords: .dvi, .pk, .mf Hello, I hope someone out there can guide me in the right direction. I am looking for more information about the file formats used by TeX and related utilities. Specifically, what is the format of a .dvi file, a .pk file, and a .mf file? ndw Also, is there a public domain version of "metafont" available? ------------------------------------------------------------------------------- Date: Wed, 31 Jan 90 22:54:13 MEZ From: Erich Neuwirth Subject: LaTex header line problem Keywords: LaTeX, header I do not want to reinvent the wheel, so my question when doing, say, a dictionary in LaTeX I want to have the first and the last entry on each page in the header. Is there a simple way to do this (without going into the output routine). Does anybody have a style file achieving this? Erich Neuwirth ------------------------------------------------------------------------------- Date: 31 Jan 90 12:56 GMT+0100 From: Hans-Georg Kerkhoff PTB Berlin phone +49 (30)3481-344 Subject: FTPing TEX from Score / LISTSERV Keywords: FTP, TeX Hello Eric, as you may know, there is a big community in Europe using TEX,LATEX, etc. You may also know that anonymous FTP is not available in Europe. All files at the different repositories in US cannot be accessed from Europe. Files sent to LISTSERV@TAMVM1 don't show up. Is it possible to install some MAILER DAEMON or a LISTSERV similar procedure at score.stanford which will accept commands by mail to help all people in Europe? I am thinking of something similar to the archive server at Rochester or Clarkson. Hans G. Kerkhoff ------------------------------------------------------------------------------- Date: Wed, 31 Jan 90 21:12:25 MEZ From: Erich Neuwirth Subject: 2 color printing Keywords: TeX, printing I have a problem: I need to do 2 color printing for titles and some theorems in a schoolbook. I do not think I am the first one with this problem. is there - somewhere out there in netland -- a macro package solvin this problem. And I also would need rastered background for some boxes (could be done via Postscript) Can anybody give me some hooks where to get such a thing? Erich Neuwirth ------------------------------------------------------------------------------- Date: Tue, 30 Jan 90 16:13:42 +0100 From: Joachim Quantz Subject: Greek Style File? Keywords: fonts, Greek Is there a style file for greek letters which includes facilities for the spiriti, accents, iota subscriptum etc., i.e. which allows quotation of greek texts? Thanks, Joachim ------------------------------------------------------------------------------- Date: Mon, 29 Jan 90 13:07:33 GMT From: Martin Ward Subject: Compiling METAFONT on a SUN3 using gcc Keywords: METAFONT Has anyone successfully compiled Metafont (using Web-to-C) on a Sun3 using gcc? All my attempts lead to the following error when I attempt to load cmbase: ./inimf \&plain cmbase '\\dump' This is METAFONT, C Version 1.7 (INIMF) (/usr/local/gnu/tex/mf/inputs/cmbase.mf ! An expression can't begin with `;'. 0 ; l.604 rulepen:=pensquare; ? x Transcript written on cmbase.log. It compiles and works ok if I use the SUN C compiler (but I'd like to have the extra speed gcc gives). Martin. My ARPANET address is: martin%EASBY.DUR.AC.UK@CUNYVM.CUNY.EDU OR: martin%uk.ac.dur.easby@nfsnet-relay.ac.uk UUCP:...!mcvax!ukc!easby!martin JANET: martin@uk.ac.dur.easby BITNET: martin%dur.easby@ac.uk ------------------------------------------------------------------------------- %%Moderator`s note: We are unable to include the file referred to %%in the following article due to its length. It is available from %%Mr. Adler upon request. Date: Mon, 29 Jan 90 17:13:42 EST From: Allan Adler Subject: Success with metafont, failure with mtexdemo Keywords: METAFONT I have finally succeeded in doing the following: (1) compiling new fonts with metafont (2) keeping them in my directory and printing out a tex file which uses them. This involved using dvialw . Attempts using dvi2ps have been unsuccessful so far. That was the good news. The tex file I printed out was obtained from the file mtexdemo.tex, part of the mtex package for typesetting music with TeX. I did succeed in running mtexdemo.tex through tex and running the file mtexdemo.dvi through dvialw with no difficulties. However, when I tried to print out the dvi-alw file, the Apple laserwriter thought about it for a long time and then gave up, printing out a picture of the laserwriter. I decided that maybe the laserwriter was being given too much to handle, so I edited file mtexdemo.tex so that all of the music after the first endchord was left. I followed it by \endsong and \end and that is what I succeeded in printing out. It is a single line of music running all the way to the right margin and ending somewhere in the middle of the measure. It seems as though the measure would end somewhere to the right of the physical page boundary and that suggests that the laserwriter might be rejecting a page which exceed the physical boundary by too much. What can I do about it ? I don't know whether one is supposed to rotate the page (and I don't know how that can be done with a TeX file). Or maybe there is some parameter somewhere in the file which one can change. But I don't see it. I have trouble reading this TeX file because of its advanced constructions and because my German is not that good, although I do speak and read a certain amount of German---oh, did I forget to mention that the program was written in Germany and the comments are mostly in German ? I am enclosing a copy of the file mtexdemo.tex, the file mtex.tex (which is included by mtexdemo.tex), and the file mtexinfoenglish.tex (which explains the package). I am not enclosing the font files. They basically consists of fonts for drawing notes and staves and beams and slurs and clefs etc. Can someone tell me how to hack mtex.tex and/or mtexdemo.tex so that I can print out the file mtexdemo.tex ? Allan Adler ara@lom1.math.yale.edu ----------------------------------------------------------------------------- Date: Wed, 31 Jan 90 19:53:51 EST From: Allan Adler Subject: Exercise 11.5 of TeXBook Keywords: TeX, exercises I am having trouble with Exercise 11.5 of the TeXbook. I enclose the solution, as I have copied it. I think I did the copying correctly. Following the solution is an invocation of the macro \demobox to test it. It fails and gives error messages about not being able to use \hrule in this context. The log file is enclosed. If this is a bug and if DEK is reading this, the check can be mailed to me at the following address: Allan Adler Math.Dept. Yale University New Haven, CT 06511 However, I don't know one way or the other and would be glad to hear from people who do know. Allan Adler ara@lom1.math.yale.edu %============================================================================== \def\dolist{\afterassignment\dodolist\let\next= } \def\dodolist{\ifx\next\endlist \let\next\relax \else \\\let\next\dolist \fi \next} \def\endlist{\endlist} \def\hidehrule#1#2{\kern-#1% \hrule height#1 depth#2 \kern-#2 } \def\hidevrule#1#2{\kern-#1{\dimen0=#1 \advance\dimen0 by#2\vrule width\dimen0}\kern-#2 } \def\makeblankbox#1#2{\hbox{\lower\dp0\vbox{\hidehrule{#1}{#2}% \kern-#1 % overlap the rules at corners \hbox to \wd0{\hidevrule{#1}{#2}% \raise\ht0\vbox to #1{}% set the vrule height \lower\dp0\vtop to #1{}% set the vrule depth \hfil\hidevrule{#2}{#1}% \kern-#1\hidehrule{#2}{#1}}}}} \def\maketypebox{\makeblankbox{0pt}{1pt}} \def\makelightbox{\makeblankbox{.2pt}{.2pt}} \def\\{\expandafter\if\space\next\ \else \setbox0=\hbox{\next}\maketypebox\fi} \def\demobox#1{\setbox0=\hbox{\dolist#1\endlist}% \copy0\kern-\wd0\makelightbox} \demobox{Hi there, I'm feeling a little boxed in.} %========================================================================== This is TeX, Version 2.0 for Berkeley UNIX (preloaded format=plain 87.9.22) 31 JAN 1990 19:41 **boxtest (boxtest.tex (demobox.tex) ! You can't use `\hrule' here except with leaders. \hrule \hidehrule #1#2->\kern -#1\hrule height#1 depth#2 \kern -#2 \makeblankbox ...}{#1}\kern -#1\hidehrule {#2}{#1} }}} \\...^M\else \setbox 0=\hbox {\next }\maketypebox \fi \dodolist ...t \endlist \let \next \relax \else \\ \let \next \dolist \fi \next H i there, I'm feeling a little boxed in. \demobox #1->\setbox 0=\hbox {\dolist #1 \endlist }\copy 0\kern -\wd 0\makeli... l.2 ...x{Hi there, I'm feeling a little boxed in.} ? h To put a horizontal rule in an hbox or an alignment, you should use \leaders or \hrulefill (see The TeXbook). ? x No pages of output. ----------------------------------------------------------------------------- Date: Thu, 01 Feb 90 16:23:25 MET From: Victor Eijkhout Subject: Quite logical, captain! Keywords: TeX A colleague of mine just showed me a fine example of TeX's logic: replacing \max_j by \max_i in some formula made a page somewhat shorter, so one line could be moved from the next, on the next page a whole display was moved back, on the next a display containing a \eqalign was moved over... Within five pages this 2 point (or so) action had more than a half page consequence! Wow! 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 ----------------------------------------------------------------------- %%% 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 ************************** -------