Subject: TeXhax Digest V89 #97 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, October 27, 1989 Volume 89 : Issue 97 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: Needed: driver that passes a page to QuickDraw Is there a TeX-based program that runs on the Macintosh? Downloading fonts with MacTeX and TeXtures Including Macintosh figures Previewer for DECwindows Linotronic output Immediate write of a character Re: TeXhax Digest V89 #84 (dvidoc.sty) Re: Doing documents in Russian (in TeX) Re: LaTeX, BibTeX, bibliography Re: \topfigrule LaTeX bug in footnotemark ----------------------------------------------------------------------------- %%Moderator`s note: The following answers to TeXtures queries appearing in %%the TeXhax Digest were supplied by Doug Henderson of Blue Sky Research %%(DLATEX%UCBCMSA.BITNET@UWAVM.ACS.WASHINGTON.EDU). Date: Tue, 24 Oct 89 17:21 PDT From: Brandon S. Allbery (allbery@NCoast.ORG) Subject: Needed: driver that passes a page to QuickDraw Keywords: TeXtures, drivers, QuickDraw Does there exist from *anyone* a program which will print DVI files on ImageWriter LQ's, or (more preferably) a standard output driver that passes a page to QuickDraw for printing/viewing? It might not be particularly pretty to send it e.g. a bitmap of some kind, but at least it would use standard mac print architecture... Alternatively, how about TFM files for various standard Mac fonts and a direct DVI-to-QuickDraw converter? Thanks in advance, ++Brandon Yes, we have such a program. It is called Textures. Textures will work with QuickDraw or PostScript based printers. Feel free to give us a call and discuss its capabilities further. Our number here at Blue Sky Research is 1-800-622-8398. ----------------------------------------------------------------------- Date: Tue, 24 Oct 89 17:21 PDT From: Philip Wong (ins_apw@jhunix) Subject: Is there a TeX-based program that runs on the Macintosh? Keywords: TeX, Macintosh Yes, as a matter of fact, we believe we have what you're looking for. It is called Textures, a Macintosh-based TeX system. It has, among other things, a built-in text editor, a TeX engine, an on-screen previewer, and the ability to include graphics from a variety of programs. Please give us (Blue Sky Research) a call at 1-800-622-8398 for more information. ------------------------------------------------------------------------- Date: Tue, 24 Oct 89 17:21 PDT From: Levent Mollamustafaoglu (molla@trboun) Subject: Downloading fonts with MacTeX and TeXtures Keywords: MacTeX, TeXtures, fonts Levent Mollamustafaoglu asks about downloading fonts with MacTeX and Textures on the Macintosh. I can't speak for MacTeX, but Textures automatically (and transparently) downloads any of the Computer Modern fonts required for each job (assuming, of course, that the fonts are installed on the host Macintosh as recommended). PostScript fonts are NOT automatically downloaded; resident fonts (such as Times and Helvetica) need not be downloaded, while additional purchased fonts (Garamond, for example) should be downloaded by the user via the Adobe Font Downloader or the Apple LaserWriter Font Tool. ------------------------------------------------------------------------- Date: Tue, 24 Oct 89 17:21 PDT From: Darrell D. E. Long Subject: Including Macintosh figures Keywords: Macintosh figures, TeXtures What is the one true way of including Macintosh figures? If anyone knows, please drop me a note. I'm really gettting tired of scissors and glue. One true way? I believe the short answer is to use a Macintosh computer. But seriously, we at Blue Sky Research are selling Textures, a TeX based product for the Macintosh computer, which will allow you to include a number of different picture formats. These file formats include PICT files, Encapsulated PostScript drawings or illustrations (from programs such as Adobe Illustrator), and raw PostScript code. Perhaps you would like to contact us for more information. Our number here at Blue Sky Research is 1-800-622-8398. ----------------------------------------------------------------------------- Date: Tue, 24 Oct 89 16:02 EST From: "Jo Schambach, (216) 672-3146" Subject: Previewer for DECwindows Keywords: Previewer, DECwindows Could somebody please tell me where I can get a previewer for our Vaxstation running VMS 5.1 and DECwindows (ftp or vmsdump)? I tried the program "xdvi", which is deposited at "gateway.dec.com", but it seems like I don't have all the include files for a standard X11 system. I don't have any experience with either X11 or DECwindow programming, so I don't know how to change the code to make it compile on our system. (A second problem is that we only have GNU C, which sometimes doesn't behave at all like VAX VMS C, but that could be solved by compiling it at another location on our campus) So the ideal program would be one that uses DECwindow includes and compiles under GNU C. Thanks in advance for answers. Jo ************************************************************************* * Joachim Schambach | Bitnet: JOS@KENTPHYS * * Physics Department | Internet: JOS%KSUVXC@KSUVXA.KENT-STATE.EDU * * Kent State University | * * Kent, OH 44242, USA | Phone: x1-216-672-3146 * ************************************************************************* --------------------------------------------------------------------------- Date: Tue, 24 Oct 89 07:49:39 PDT From: KARNEY%PPC.MFENET@CCC.NMFECC.GOV Subject: Linotronic output Keywords: TeX, Linotronic output dfredkin@ucsd.edu in TeXhax V89 #94 asks about using cm fonts on a Linotronic. There is no reason why you can't use cm fonts on a Linotronic at 1270 pixels/inch. You need two things: (1) the fonts at the right resolution, and (2) a program to produce the appropriate ps file. (1) You can generate the fonts with metafont with the following mode_def. % Linotronic. % Phil Taylor (P.Taylor%vaxb.rhbnc.ac.uk@NSS.Cs.Ucl.AC.UK) recommends using % LN03 mode_def of John Sauter (sauter%dssdev.DEC@decwrl.dec.com) from TeXhax % V88 #07 with pixel_per_inch replaced by 1270. mode_def linotronic = proofing:=0; % no, we're not making proofs fontmaking:=1; % yes, we are making a font tracingtitles:=0; % no, don't show titles in the log pixels_per_inch:=1270; % 50 pixels per mm blacker:=0.65; % blacker pens %blacker:=0.3; % makes CMR5 "a" look better fillin:=-0.1; % compensate for light diagonals o_correction:=.5; % overshoot enddef; In .pk format the Linotronic fonts need about 4 times the disk space of 300/in fonts. (2) I converted Nelson Beebe's dvialw for the Apple Laserwriter to use these higher resolution fonts and the results are indeed beautiful. Other dvi->Lintronic programs exist. [Note that it is possible to use the output from a 300/in dvi->ps driver program (e.g., dvialw) and print it directly on the Linotronic. The cm fonts will then be represented at 300/in bitmaps, which the Lintronic will rescale to match its higher resolution. The results will be fairly ugly. The outline fonts Times-Roman et al. will print fine.] Charles Karney Phone: +1 609 243 2607 Plasma Physics Laboratory FAX: +1 609 243 2160 Princeton University MFEnet: Karney@PPC.MFENET PO Box 451 Internet: Karney%PPC.MFENET@CCC.NMFECC.GOV Princeton, NJ 08543-0451 Bitnet: Karney%PPC.MFENET@LBL.BITNET --------------------------------------------------------------------------- Date: Tue, 24 Oct 89 06:08:32 -0500 From: svb@cs.purdue.edu (Stephan Bechtolsheim) Subject: Immediate write of a character Keywords: immediate write, character > The problem: given a number in, say, \cc, perform an \immediate\write > of \char\cc. > \newcount\cc > \cc=65 > \immediate\write16{\char\cc} There is no way to do this. As simple as that. You could use a big \ifcase statement. Stephan Bechtolsheim ------------------------------------------------------------------------- Date: Thu, 21 Sep 89 23:41:00 EDT From: hedrick@aramis.rutgers.edu Subject: Re: TeXhax Digest V89 #84 (dvidoc.sty) Keywords: dvidoc.sty I have a version of dvidoc.sty that does a considerably better job than the original. My goal is to be able to produce online documentation using LaTeX. I do not require fixed-width versions of absolutely every LaTeX feature. I have no idea what some of the fancier math should look like in a .doc file. What I want is the ability to do "normal" text and have it come out looking fairly nice. This file combines features of the original dvidoc.sty, with some of the feaures of a more recent version of divdoc, by Langdon. It adjusts spacing to be multiples of a line. This gets rid of some of the inconsistent vertical spacing present in the previous version. It provides new versions of things that used math mode, and so looked odd. In particular, the table of contents, footnotes, and the mark used for itemize. Before suggesting that this be put into the official dvidoc distribution, I thought it would be best to ask that a few people try it out. It is available for anonymous ftp on athos.rutgers.edu as pub/dvidoc.sty. --------------------------------------------------------------------------- Date: Tue, 24 Oct 89 00:09 EDT From: Subject: Re: Doing documents in Russian (in TeX) Keywords: TeX, Russian Jacob Gore writes in the recent TeXhax: >Over the last few months, I find myself typesetting Russian text with LaTeX >more and more often. I use the pre-generated 300dpi mcyr and mcyb fonts, >and the commonly available cyracc.def and cyrillic.sty. Naturally, the problem of setting Russian text with TeX has been attracting attention here and in the USSR. >There are several things that make it unnecessarily painful, and I wonder >if there are relatively simple (i.e., not too time-consuming) ways to fix >things up. I made life easier by using the code page mechanism in MS-DOS to create a Cyrillic code page + a small TSR to redefine the keyboard when Scroll-Lock is toggled. I create a file in which Russian characters are represented by characters >127, in accordance with various standards. At present, I use Sb26TeX which can read 8-bit characters, but in the past I used a simple preprocessor to read such file and write a 7-bit transliterated file suitable for any TeX. Or, one can start with the 7-bit coding. Of course, the 'new' TeX will have 8-bit input as a standard. >..... >1. The letter 'Te' followed by the letter 'Es' is a very common occurence >in Russian, but "ts" is a ligature for the letter 'Tse'. I don't think 'Tse' >is used nearly as often as "TeEs". Having all those "t{\cydot}s"'s in the >input is a pain. Is there a way to make "ts" generate separate letters, >"TeEs" instead of 'Tse'? I also have the option to enter transliterated text (using only ASCII, that is). However, I had to abandon the very elegant ligature scheme (a pity, really, but it's not compatible with hyphenation). I used PLtoTF/TFtoPL to remove all ligatures except the ones related to quotes and dashes. I use control sequences to enter the characters which don't correspond directly to latin characters. So, when I used to enter |ot{\cydot}sev|, I now enter |otsev| and when I used to enter |zhnets|, I now enter |{\zh}ne{\ts}|. >... >The second problem is hyphenation. It has three aspects: > >... >2. Hyphenation can (and often does) breaks up ligatures. For example, >"shch" is a ligature for the letter Shcha. The English hyphenation table >seems to like hyphenating sh-ch, so instead of one letter, Shcha, I get >two: Sh\-Ch. That's why I had to forget about the ligatures and use \cs's. I see no way around it, unfortunately. >3. Words containing the letters Yo ("\"e"), I-kratkoye ("{\u i}"), Myagkii >Znak ("{\cprime}" or "p1") and Tverdyi Znak ("\cdprime" or "p2") cannot >be listed in the \hyphenation{...} command. The only way I found to >prevent bad hyphenation in such words is by inserting "\-"'s in the text. Short I (\u\i) should really be a separate letter in the font. In any decent Cyrillic typeface the accents on upper and lowercase are different, so floating accent is not appropriate here. The 'znaki' should not pose any problem with \hyphenation{...}? Are you sre? Anyway, this is a moot point: read on. >I don't suppose someone has a hyphenation table for Russian? Any other >suggestions on how to ease these difficulties? Someone does. Hyphenation patterns for Russian were described in my M.A. Thesis, ``An Implementation of Liang's Algorithm for the Russian language'', CCNY, 1988. They have since been improved a lot (and may be improved yet again). There is, by the way, a LISTSERV mailing list (RUSTEX-L) used for discussing the Russian TeX project with a collection of related files (the patterns, the code page, soon, hopefully, the fonts) graciously hosted on UBVM.CC.BUFFALO.EDU (UBVM on BITNET). If you want to subscribe, send mail whose body consists of the line ``SUB RUSTEX-L Your Name'' to LISTSERV@UBVM. To get the list of files, send GET RUSTEX-L FILELIST to the LISTSERV. To post a message (not a command!) to the list, mail it to RUSTEX-L@UBVM. I'll try to dig up some recent postings and forward them to you to give you some idea of what's been discussed (sorry, no archives). >And, the last problem... can't use 300dpi fonts in the previewer I'm using. >Does anybody have these fonts at other resolutions? That's American Math Society's Cyrillic. Other resolutions and magsteps can be ordered directly from AMS for a small fee. (Or, wait for the upcoming fonts.) Good luck, Dimitri Vulis Department of Mathematics City University of New York Graduate Center Bitnet: DLV@CUNYVMS1 ----------------------------------------------------------------------------- Date: Tue, 24 Oct 89 14:35:09 EDT From: Denys Duchier Subject: Re: LaTeX, BibTeX, bibliography Keywords: LaTeX, BibTeX, bibliography %% This is just a quick stab at it, but is seems to work: %% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %% put the following in your preamble (it wouldn't work as a .sty file). %% now you must insert the command \chapbib at the end of each chapter %% where you want the bibliography section to be inserted. For each %% chapter there is now a corresponding file \jobname.\the\@chapauxcnt.aux %% Suppose your document is foo.tex, you must now invoke bibtex not only %% on foo, but also on foo.1, foo.2, etc... \makeatletter \newwrite\@chapaux \def\@citex[#1]#2{\if@filesw \immediate\write\@auxout{\string\citation{#2}}\immediate \write\@chapaux{\string\citation{#2}}\fi \def\@citea{}\@cite{\@for\@citeb:=#2\do {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined {b@\@citeb}{{\bf ?}\@warning {Citation `\@citeb' on page \thepage \space undefined}}% \hbox{\csname b@\@citeb\endcsname}}}{#1}} \def\nocite#1{\@bsphack \if@filesw \immediate\write\@auxout{\string\citation{#1}}\immediate \write\@chapaux{\string\citation{#1}}\fi \@esphack} \let\OLDchapter\chapter \newcount\@chapauxcnt \@chapauxcnt = 0 \def\@bibdata{} \def\@bibstyle{} \def\chapter{\advance\@chapauxcnt 1 \if@filesw \immediate\closeout\@chapaux \immediate\openout\@chapaux \jobname.\the\@chapauxcnt.aux \immediate\write\@chapaux{\string\bibdata{\@bibdata}} \immediate\write\@chapaux{\string\bibstyle{\@bibstyle}} \fi \OLDchapter} \def\BOGUSchapter#1#2{} \def\chapbib{\let\NEWchapter\chapter \let\chapter\BOGUSchapter \section*{Bibliography} \@input{\jobname.\the\@chapauxcnt.bbl} \let\chapter\NEWchapter} \def\bibliography#1{\if@filesw \immediate\write\@auxout{\string\gdef\string\@bibdata{#1}} \immediate\write\@auxout{\string\bibdata{#1}}\fi \@input{\jobname.bbl}} \def\bibliographystyle#1{\if@filesw \immediate\write\@auxout{\string\gdef\string\@bibstyle{#1}} \immediate\write\@auxout{\string\bibstyle{#1}}\fi} \makeatother %%--Denys Organization: Computer Science, Yale University, New Haven, CT 06520-2158 ------------------------------------------------------------------------- Date: Tue, 10 Oct 89 15:30:31 +0100 From: Francis Borceux Subject: Re: \topfigrule Keywords: LaTeX, \topfigrule Producing a book with LaTeX, I would like to draw an horizontal line between the heading and the text of each page. I discovered the command "topfigrule" in the LaTeX file...but not the way to use it. How strange it is: the LaTeX book did precisely use such a presentation, but does not explain how to realize it. Francis Borceux, Louvain-la-Neuve, Belgium ------------------------------------------------------------------------------- Date: Wed, 25 Oct 89 14:28:13 EDT From: peckham@cs.cornell.edu (Stephen Peckham) Subject: LaTeX bug in footnotemark Keywords: LaTeX, bug, footnotemark There appears to be a bug in the \footnotemark command. When footnotes appear inside a minipage, letters are used instead of numbers. However, when the \footnotemark and \footnotetext commands are used, the \footnotetext command uses a letter, but the footnotemark command uses a number. It appears that this can be corrected by changing the following two definitions from: \def\footnotemark{\@ifnextchar[{\@xfootnotemark }{\stepcounter{footnote}\xdef\@thefnmark{\thefootnote}\@footnotemark}} \def\@xfootnotemark[#1]{\begingroup \c@footnote #1\relax \xdef\@thefnmark{\thefootnote}\endgroup \@footnotemark} to: \def\footnotemark{\@ifnextchar[{\@xfootnotemark }{\stepcounter{footnote}\xdef\@thefnmark{\thempfn}\@footnotemark}} ^^^^^^^^ \def\@xfootnotemark[#1]{\begingroup \c@footnote #1\relax \xdef\@thefnmark{\thempfn}\endgroup \@footnotemark} Organization: Cornell Univ. CS Dept, Ithaca NY ----------------------------------------------------------------------- %%% 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 ************************** -------