home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / applicat / 8780 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.4 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!madsen
  2. From: madsen@cs.iastate.edu (Dave Madsen)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Error in Pagestream PostScript
  5. Message-ID: <Bxx5CL.5xI@news.iastate.edu>
  6. Date: 18 Nov 92 15:50:43 GMT
  7. Article-I.D.: news.Bxx5CL.5xI
  8. Sender: news@news.iastate.edu (USENET News System)
  9. Organization: Iowa State University, Ames, IA
  10. Lines: 25
  11.  
  12. I have discovered an error in Pagestream 2.21 generated PostScript code.  The
  13. error deals with the code that handles the generation of arrows at the end
  14. of lines.
  15.  
  16. In /doendstyle there is a line that reads:
  17.  
  18. /angle dy dx atan def
  19.  
  20. If dx and dy are both zero, this causes an /undefinedresult error with atan in 
  21. standard PostScript.  A couple of documents that I have recently produced
  22. have generated this error when I attempted to print them.  A proposed solution
  23. is to change this line to:
  24.  
  25. /angle dy dx 2 copy add 0 eq {pop pop 0} {atan} ifelse def
  26.  
  27. which will return zero if both operands are zero, otherwise it will perform
  28. the atan function with the original operands...
  29.  
  30. Dave
  31.  
  32. --
  33. ---------------------------------------------------------------------------
  34. Dave R. Madsen        | Computer Science Department | Office: 107 Atanasoff
  35. Systems Support Group |   Iowa State University     | madsen@cs.iastate.edu
  36. ---------------------------------------------------------------------------
  37.