TeXhax Digest Saturday, August 10, 1991 Volume 91 : Issue 034 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: Printing on Ricoh 6000/PS Modified Beebe driver for H-P lasers Posting-Greek TeX sromanu.mf Euler LaTeX style file? Textures and System 7 Re: Bibliography at the end of chapters ------------------------------------------------------------------------------- Date: Sat, 29 Jun 91 09:30 H From: Subject: Printing on Ricoh 6000/PS Keywords: TeX, Ricoh 6000/PS I've just installed TeX3.0 in our Sun4's here. I noticed that the printing of LaTeX Postscript output on our Ricoh 6000/PS laser-printer linked to Sun was very light whereas the PS files prints alright on a HP Laserjet III link to a PC. I am using dvips which generates fonts from MetaFont as needed. I played around with the mode_def. I can change the tone, etc but I was unable to get a satisfactory printout. Do you have any suitable mode_def for Ricoh 6000/PS? Or can you tell me who can help me? Or tell me which issue of texhax has the answer to my problem? Any help is welcome. I am not in the discussion group mailing list. Please answer to me directly. Thanks in advance. Y.K. Tan Electrical Engineering Department National University of Singapore 10 Kent Ridge Crescent Singapore 0511 e-mail: tyk@nuseev.bitnet Tel: 772-6319 ------------------------------------------------------------------------------- Date: Sun, 30 Jun 91 13:46:48 BST From: Dr R M Damerell (RHBNC) Subject: Modified Beebe driver for H-P lasers Keywords; dviware, Beebe driver The H-P Laserjet Plus and Two printers only allow 16 downloaded fonts on any page. Beebe's original driver (called dvijep) tried to overcome this limitation as follows: when extra fonts appear, their characters are not downloaded but sent as bitmaps. Unfortunately the L-J has some (undocumented) limit on the amount of bitmaps it can handle. When this is exceeded, it signals an error and stops. The top of the page is printed correctly but the bottom is erased and the rest of the job is unprintable. Although the Two has far more memory than the Plus it fails in exactly the same way, at the same place, on all examples I have seen. I have written a revised version of dvijep which tries to overcome this difficulty by using a device called pseudo fonts, suggested by N.Beebe. A pseudo font is a collection of chars of about the same size which may come from any number of TEX fonts. All chars in each pseudo font get downloaded onto the same printer font. Every new char goes into the first empty hole in the smallest font that will contain it. In the last resort, we use bitmapping. So if your text started with the words: Dear Saint George, I am hungry, Dragon. then you might put D S G I h g y into the first 7 slots in font 2 and e a r i n t o , m u n . into the first 12 slots of font 1. The actual assignment clearly depends on the precise size of each character. As an incidental bonus, the new program should be able to handle 256-char fonts. The new program is called dvi-hp. Barring bugs, I believe that you would have to do something very exotic to make it fail. I am asking if anybody is willing to help me by testing the program & reporting bugs. Please send bug reports to me, NOT to N Beebe. At present it seems to work on SUN-OS 3.5 and HPUX and VMS; I cannot test on any other system. I have been working from Version 2.10 of the Beebe drivers, which seems to be the latest official release. I am offering dvi-hp as a tar-compress-btoa archive. Besides the main program, this contains several header files that had to be altered. To unpack it, you need atob, uncompress, tar. Also you need a set of Beebe's header files. (Make a backup before you start). Put everything into a suitable place and (on Unix) do "make dvi-hp". ------------------------------------------------------------------------------ Date: Sat, 29 Jun 91 16:43:34 -0700 From: Yiannis Moschovakis Subject: Posting-Greek TeX Keywords: TeX, Greek Greek TeX Using extensions of the Levy fonts, I have put together a package which makes it very easy to process in plain TeX or LaTeX files with mixed Greek and English text. It is meant primarily for use on a PC, where one can enter Greek text directly, but it can be installed in any machine which runs TeX 3.0. The package is available by anonymous ftp from math.ucla.edu, in the directory pub/greektex. Yiannis N. Moschovakis ynm@math.ucla.edu ----------------------------------------------------------------------------- Date: Tue, 25 Jun 91 17:44:59 -0700 From: mackay@cs.washington.edu (Pierre MacKay) Subject: sromanu.mf Keywords: sromanu.mf, SliTeX Back in 1986, I made up the file sromanu.mf with the characteristic serifed I used in the SliTeX fonts to reduce ambiguity. At that time I copied the entire contents of romanu.mf and inserted the substitute coding for the letter I. This was a bad idea for two reasons: 1. It provided a wholly unnecessary duplication of programs for 25 out of the 26 letters in romanu.mf. 2. If such duplication hangs around for long enough, it ceases to be duplication, and becomes a variant. By using a macro which calls in existing code in the parent romanu.mf for all but the one altered character, it is possible to get a much smaller file, and one which has far less risk of becoming subtly different from the parent file. It is extremely doubtful that immediate recompilation of the SliTeX fonts is needed. The changes, if any, would be very subtle. Nonetheless, it would be a good idea to replace the old sromanu.mf with this new one. %%%-------------------------------------------------------------%%% % File: MF Inputs sromanu.mf % Author: Pierre A. MacKay % Internet: mackay@cs.washington.edu % Date: June 25, 1991 % % This for the SLITeX fonts: lcmss8, lcmssb8, lcmssi8. % All characters in romanu.mf except I are generated % A special I with slab serifs is then substituted for the % normal, confusing, sans-serif I of cmss* fonts. % Based on the macros in the METAFONTbook, Appendix E, % page 307 & 312. Just as in the case of the iff % macro, this depends on the expectation that every % character program will end with endchar. string currenttitle; def exclude_I expr t = currenttitle:= t; if t = "The letter I" : let next_ = lose_it_ else: let next_ = use_it_ fi; next_ enddef; % Add _ to the macro names used by iff to avoid confusion. def use_it_ = relax; enddef; def lose_it_ = let endchar = fi; let ; = fix_ semi_ if false: enddef; let cmchar = exclude_I; input romanu let cmchar=relax; % Uppercase I provided by Pierre A. MacKay, in June l986. % The I has slab serifs based on the proportions of % the upper and lower horizontals of upper case E. cmchar "The letter I"; beginchar("I",max(6u#,4u#+cap_stem#),cap_height#,0); italcorr cap_height#*slant-.25u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem pickup crisp.nib; % arms based on proportions of uppercase E pos3(slab,90); pos4(slab if not serifs:+2stem_corr fi,-90); x3=x4=x1; top y3r=h; bot y4r=0; pos5(hair,0); pos6(hair,0); % top and bottom right arms rt x5r=rt x6r=hround(w-u); pos7(hair,180); pos8(hair,180); % top and bottom left arms lft x7r=lft x8r=hround(u); y5=y7=good.y(y3l-beak)-eps; % beak in case we ever want a beaked serif! y6=y8=good.y(y4l+beak)+eps; % watch that this doesn't get too heavy arm(3,5,a,darkness,jut); arm(3,7,b,darkness,jut); % top left and right arms arm(4,6,c,darkness,jut); arm(4,8,d,darkness,jut); % bottom left and right if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8); endchar; %%%-------------------------------------------------------------%%% Some parts of the Turkish font package are subject to the same sort of improvement. Email concerned with UnixTeX distribution software should be sent primarily to: elisabet@max.u.washington.edu Elizabeth Tachikawa otherwise to: mackay@cs.washington.edu Pierre A. MacKay Smail: Northwest Computing Support Center TUG Site Coordinator for Thomson Hall, Mail Stop DR-10 Unix-flavored TeX University of Washington Seattle, WA 98195 (206) 543-6259 -------------------------------------------------------------------------- Date: Tue, 25 Jun 91 15:32:01 -0700 From: Darrell Long Subject: Euler LaTeX style file? Keywords: LaTeX, Euler Does anyone have a LaTeX style file that changes the math fonts to the Euler fonts? Thanks, DL ------------------------------------------------------------------------------- Date: Tue, 25 Jun 91 14:46:17 EDT From: Peter Galko Subject: Textures and System 7 Keywords: TeXtures, System 7, >Does anyone know from direct experience that TeXtures is fully >compatible with the new Mac operating system 7 release version. I am >using TeXtures 1.2 but can switch to 1.3 if necessary. According to what Barry Smith of Blue Sky Reasearch wrote me, Textures 1.3 is fully compatible with Apple's new System 7 (except for a possible small detail: "(We know of one error situation that is not handled gracefully [read: it crashes when you try to print without correct fonts], but it conforms to the Apple guidelines [and we've told them so, and it should show up in checklists, etc.] There's nothing that takes special advantage of System 7, yet.)") A new version of Textures (a very big TeX) numbered 1.4 is due for shipping on July 1 (along with version 1.0 of the PostScript version of the CM fonts); there is also a integrated edition of Textures and tools like BibTex being released under the name of "Classic Textures". Prof. Peter Galko E-mail: PTRPB@ACADVM1.UOTTAWA.CA Department of Electrical Engineering or PTRPB@UOTTAWA.BITNET Room A-509, Colonel By Hall or galko@rascal.ics.utexas.edu 770 King Edward Avenue University of Ottawa Telephone: (613)-564-7097 OTTAWA, Ontario, CANADA K1N 6N5 FAX: (613)-564-6882 ------------------------------------------------------------------------------- Date: Tue, 25 Jun 91 19:22:27 MSZ From: XITIJSCH%DDATHD21@UWAVM.U.WASHINGTON.EDU Subject: Re: Bibliography at the end of chapters Keywords: bibliography Jose' Reynaldo A. Setti wrote in TeXhax V91 #26 (I know, a while ago): > I am curious to know if there is a way of inserting a bibliography at > the end of a chapter, when using the report style in LaTeX. > and BibTeX. So far, all I got was a bibliography which included > all the references in the preceding chapters. Granted, I really > didn't try it hard---I'd rather not re-invent the wheel. Since this topic had been asked alot in the past I'll post a LaTeX style option below which handles this problem. If you will use it you must put each chapter in a different file and \include these files in your root file. (Lookup the description of \include in the LaTeXbook.) Of course, the \bibliography tags are within the document parts, ie., within the \include file. Use BibTeX on your document parts. Don't be shocked if each document part starts a new page. (It's reasonable for books and collections.) I can't resist adding my $0.02: Of course, the style file below is a kludge (look at the code). Of course, the functionality should be available in a general way with BibTeX and LaTeX/Plain TeX. Especially as it would be *very* easy to implement. I hope 1.0 has it. btw, sorry for the missing documentation to the style file. Joachim =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Joachim Schrod Email: xitijsch@ddathd21.bitnet Computer Science Department Technical University of Darmstadt, Germany ================ snip snap ======================================== % bibperinclude.sty 25 Jun 91 %------------------------------------------------------------ % Copyright 1991 by Joachim Schrod. % % Allows multiple \bibliography tags in one document. % Usable for collections, journals etc. % Each tag must be in an include file, but there a \bibliography tag was not % functionable anyhow. (Note: include means \include, not \input!) % This does not work with nested \include's, when \bibliography is % called after \include within a part. % % NOTE: This is a kludge !! % Check for changes in latex.tex !! % Of course, the whole stuff should be handled more generally % in LaTeX/BibTeX (it would be VERY easy) !! % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 1, or (at your option) % any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program; if not, write to the Free Software % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. % js: Joachim Schrod % 25 Jun 91 js: first release % CONCEPT OVERVIEW: % % If a \bibliography tag is given in an include file, a \bibdata tag % is written to the aux file of this included part. BibTeX will run on % this aux file and produce a bbl file. But the \bibliography tag will % try to read the bbl file \jobname.bbl -- which, of course, will not % exist. % This leads to a trivial change: \bibliography now reads the file % BibTeX produces. % % % % Changing software? % ``When in doubt, use brute force'' [D. Ritchie] % % The implementation here is problematic as internal macros of LaTeX % are changed (\bibliography and \@include). The original definitions % are cited below, they were taken from the latex.tex version as of % January 14, 1991. % You are warned. % % btw, please note: the percents in the code below are not there by % accident, they are needed (and you will not need more...) Furthermore % I think the code is now more readable ;-) % \bibliography now does not read \jobname.bbl any more but \@bblfile. % The default binding for \@bblfile is \@mainbblfile, i.e., \jobname.bbl. % We don't need a blank in the name as it is read with \@input which % appends a \relax. \def\@mainbblfile{\jobname.bbl} \let\@bblfile=\@mainbblfile %%%%%%%%%%%%%%%% original definition %%% % \def\bibliography#1{\if@filesw\immediate\write\@auxout{\string\bibdata{#1}}\fi % \@input{\jobname.bbl}} %%% %%%%%%%%%%%%%%%% \def\bibliography#1{% \if@filesw \immediate\write\@auxout{\string\bibdata{#1}}% \fi \@input{\@bblfile}% %%%% change } % \@include (called by \include) now defines \@bblfile before it inputs % the document part. It is redefined again later. %%%%%%%%%%%%%%%% original definition %%% %%% \def\@include#1 {\clearpage %%% \if@filesw \immediate\write\@mainaux{\string\@input{#1.aux}}\fi %%% \@tempswatrue\if@partsw \@tempswafalse\edef\@tempb{#1}\@for %%% \@tempa:=\@partlist\do{\ifx\@tempa\@tempb\@tempswatrue\fi}\fi %%% \if@tempswa \if@filesw \let\@auxout=\@partaux %%% \immediate\openout\@partaux #1.aux %%% \immediate\write\@partaux{\relax}\fi\@input{#1.tex}\clearpage %%% \@writeckpt{#1}\if@filesw \immediate\closeout\@partaux \fi %%% \let\@auxout=\@mainaux\else\@nameuse{cp@#1}\fi} %%% %%%%%%%%%%%%%%%% \def\@include#1 {% \clearpage \if@filesw \immediate\write\@mainaux{\string\@input{#1.aux}}% \fi \@tempswatrue \if@partsw \@tempswafalse \edef\@tempb{#1}% \@for \@tempa:=\@partlist \do{% \ifx \@tempa\@tempb \@tempswatrue \fi }% \fi \if@tempswa \if@filesw \let\@auxout\@partaux \immediate\openout\@partaux #1.aux % Blank! \immediate\write\@partaux{\relax}% \fi \def\@bblfile{#1.bbl}% %%%% change \@input{#1.tex}% \clearpage \let\@bblfile\@mainbblfile %%%% change \@writeckpt{#1}% \if@filesw \immediate\closeout\@partaux \fi \let\@auxout\@mainaux \else \@nameuse{cp@#1}% \fi } \endinput ================ snip snap ======================================== ----------------------------------------------------------------------- %%% 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.nnn %%% yy = last two digits of current year %%% nnn = issue number %%% %%%\bye %%% End of TeXhax Digest ************************** -------