Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!ames!amdcad!sun!peterb@dsiramd.nz From: peterb@dsiramd.nz (Peter Burgess) Newsgroups: comp.text.desktop Subject: Re: Sun + Mac + Laserwriter Message-ID: <27438@sun.uucp> Date: Tue, 8-Sep-87 18:12:42 EDT Article-I.D.: sun.27438 Posted: Tue Sep 8 18:12:42 1987 Date-Received: Thu, 10-Sep-87 05:42:29 EDT Sender: news@sun.uucp Reply-To: peterb@dsiramd.UUCP (Peter Burgess) Distribution: comp Organization: DSIR Applied Mathematics Division, Wellington, New Zealand Lines: 113 Approved: desktop-request%plaid@sun.com Stanley C. Ahalt writes: >We are running a network of Suns with an attatched Laserwriter. Of >course, I have a Mac at home. Most of my word-processing is done >in TeX, and I would dearly love to be able to embed my graphics >(in postscript form) in my TeX documents. >If I lw the ps file, the graphics print out just fine. However, if I >embed the file in the TeX source, and use the PrintChart command supplied >by ArborText to print the file, nothing at all prints! I have concluded >that there is some incompatability between the environment set-up >by ArborText's dvips and the LaserPrep file (version 65) supplied by Apple. We have had a similar problem. Although, we do not have Macs ourselves we some times want to be able to print Mac-Draw files for other people. I think the problem you are having is probably due to the LaserWriter running out of memory. What happens is that there is a file called dvips.opt which the ArborText driver looks at to determine what sort of printer you have and how much memory is available. The figure in this file will not take into account all the memory used by the Mac-Draw macros. Another problem is that the Laser-Prep macros actually check to see what fonts are available in the printer when they are downloaded and allocate memory for each font. This means that if some of the TeX fonts have been downloaded then more memory will be used unnecessarily. One way to fix the problem might be to reduce the figure in dvips.opt. What we do is to permanently download a version of the Laser-Prep macros as soon as the printer is switched on. To do this you need to get hold of a version of the file (extracting it from the front of a Mac-Draw file is probably the safest way). You then insert the following PostScript at the front: % Control-D (about to load md) == % Control-D %%This MacDraw prolog was constructed by CLN and RDB with the latest files that %% could be found. It seems to be able to coexist with DVIPS.PRO . %%This version 4-Nov-1986 /md where {pop (This MacDraw download is unnecessary as it has already been done.\n) print flush currentdict begin} {0 serverdict begin exitserver} ifelse /md where {pop} {userdict begin} ifelse /md where {pop} {/md 250 dict def} ifelse md begin %--------- End of our prolog. You may need to put the following in as well unless your Laser-Prep file already has it at the front: systemdict /currentpacking known{currentpacking true setpacking}if /LW{save statusdict /product get(LaserWriter)anchorsearch exch pop{length 0 eq{1 }{2}ifelse}{0}ifelse exch restore}bind def /LW+{LW 2 eq}bind def /ok{systemdict /statusdict known dup{LW 0 gt and}if}bind def ok{statusdict begin 9 sccinteractive 3 ne exch 0 ne or{9 0 3 setsccinteractive}if waittimeout 300 lt{/waittimeout 300 def}if end}if % Laser-Prep stuff for Mac-Draw goes here. At the end of the Laser-Prep you have: end pop % cln % Control-D (md loaded) == % Control-D This file should be printed first before other permanently downloaded stuff. After the ArborText stuff has been printed you should find out the amount of memory left and adjust the dvips.opt file accordingly. Here is some PostScript which prints the memory usage: %Control-D /nstr 8 string def /Helvetica-Bold findfont 20 scalefont setfont 100 700 moveto ( Postscript version ) show version show 100 650 moveto ( Total virtual memory ) show vmstatus nstr cvs show 100 600 moveto ( Virtual memory used ) show nstr cvs show 100 500 moveto ( Nesting level ) show nstr cvs show 100 550 moveto ( Virtual memory available ) show vmstatus exch sub nstr cvs show showpage %Control-D Peter Burgess, Applied Mathematics Division, New Zealand Govt. Dept. of Scientific and Industrial Research. UUCP: ...!seismo!uunet!vuwcomp!dsiramd.nz!peterb ACSNET: peterb@dsiramd.nz ---------------------------------------- Submissions to: desktop%plaid@sun.com -OR- sun!plaid!desktop Administrivia to: desktop-request%plaid@sun.com -OR- sun!plaid!desktop-request Paths: {ihnp4,decwrl,hplabs,seismo,ucbvax}!sun Chuq Von Rospach chuq@sun.COM Delphi: CHUQ We live and learn, but not the wiser grow -- John Pomfret (1667-1703)