home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5629 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!rutgers!uwvax!astroatc!vidiot!brown
  2. From: brown@vidiot.UUCP (Vidiot)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: EPS files inside procedures or loops
  5. Message-ID: <4459@vidiot.UUCP>
  6. Date: 21 Nov 92 05:30:03 GMT
  7. References: <1992Nov18.210823.8944@dsg.cs.tcd.ie>
  8. Reply-To: brown@vidiot.UUCP (Vidiot)
  9. Organization: Vidiot's Hangout
  10. Lines: 43
  11.  
  12. In article <1992Nov18.210823.8944@dsg.cs.tcd.ie> cjmchale@dsg.cs.tcd.ie (Ciaran McHale) writes:
  13. <
  14. <If I want something (e.g., a logo) to appear on each page of a document
  15. <then I could either write the code once for each page, or write a
  16. <procedure (which goes into the document's prolog) which does the
  17. <necessary and then invoke this procedure for every page. One benefit of
  18. <this latter solution is a reduction in the size of the PS file.
  19. <
  20. <But what if the thing I want to appear on each page is an EPS file? Is
  21. <it legal to have code like the following:
  22. <
  23. <    /foo
  24. <    {
  25. <        "some housekeeping before including EPS file"
  26. <        ... included EPS file here
  27. <        "some housekeeping after including EPS file"
  28. <    } def
  29. <
  30. <and then invoke foo multiple times in the document? I looked in the Red
  31. <Book (the new one for PS Level 2) at the sections which deal with EPS
  32. <files and couldn't find any discussion of this.
  33. <
  34. <What I think would prevent the above from working is if the EPS file
  35. <contained an image whose data was read directly from "currentfile" (as
  36. <is often the case with images).
  37.  
  38. All of this should work, including images, though that I haven't done
  39. personally.
  40.  
  41. The part that may get you is that if the included EPS file doesn't place
  42. its definitions into a dictionary, you will run out of dictionary space.
  43. You will have to increase the dictionary size in order to be able to
  44. include the EPS file.
  45.  
  46. I do a few neat things with groff and I plan on posting a description of what
  47. I do to get it to work.  I've combined the power of groff and the power of
  48. PostScript and done some fancy things.  Soon I plan and providing examples
  49. of what I have done.  Maybe someone else could use what I have done.
  50. -- 
  51.       harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
  52. Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
  53.       rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
  54.                                    brown@wi.extrel.com
  55.