Path: utzoo!attcan!uunet!mcvax!inria!laas!ralph From: ralph@laas.laas.fr (Ralph P. Sobek) Newsgroups: comp.text Subject: Re: are you tired of this question yet? Summary: Is it possible to include Mac files in LaTeX/TeX? Keywords: LaTeX, TeX, Dvi2ps, Macintosh, LaserPrep Message-ID: <249@laas.laas.fr> Date: 23 Nov 88 18:09:46 GMT References: <8811120047.AA06427@garnet.berkeley.edu> Organization: LAAS-CNRS Toulouse France Lines: 44 > print either. E.g., I used > > macfilter PostScript0 | lpr -Plw > I've gotten this to work. Basically my macfilter, would prepend a slightly edited version of `LaserPrep', Mac's adorable file. To run from Unix, some of the privileged initializations have to be removed. Then you just have your macfilter send out the modified LaserPrep and your PostScript0 file should be generated by command-F (only the file in PostScript). Here's the beginning of my LaserPrep file, nothing else was modified: %! %%Title: "Laser Prep -- The Apple PostScript Dictionary (md)" %%Creator: Apple Software Engineering %%CreationDate: Thursday, March 19, 1987 %{appledict version #67 0 % ) CopyRight Apple Computer, Inc. 1984,1985,1986,1987 All Rights Reserved. %%EndComments %%BeginProcSet: "(AppleDict md)" 67 0 % userdict /md known {stop} if % serverdict begin 0000 exitserver % statusdict begin waittimeout 300 lt {0 60 300 setdefaulttimeouts} if end ( Starting load of Mac LaserPrep.ps ) print currentfile statusdict begin serverdict begin product (LaserWriter II NT) eq revision 1 eq and {/setrealdevice {//setrealdevice exec 31 sendpcmd 4 eq tonerlight} bind def > I feel that if I can just get the file to print using lpr then I can > get it to print in my latex document (I'm already including postscript > stuff in my latex file that I made with Poskanzer's pbm programs). Unfortunately, my conclusion for now is IMPOSSIBLE. The best that I've been able to do is to get a Mac image inserted in LaTeX on a page by itself, with no control left to dvi2ps to number or title the page. I still haven't been able to eliminate the `showpage' command that's hidden under LaserPrep's `cp' command. I believe that the problem requires an expert of LaserPrep and PostScript. If anybody has succeeded I'd love to hear about it. Ralph P. Sobek Disclaimer: The above ruminations are my own. ralph@laas.laas.fr Addresses are ordered by importance. ralph@lasso.uucp, or ...!uunet!mcvax!lasso!ralph If all else fails, try: SOBEK@FRMOP11.BITNET sobek@eclair.Berkeley.EDU