home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!madsen
- From: madsen@cs.iastate.edu (Dave Madsen)
- Newsgroups: comp.sys.amiga.applications
- Subject: Error in Pagestream PostScript
- Message-ID: <Bxx5CL.5xI@news.iastate.edu>
- Date: 18 Nov 92 15:50:43 GMT
- Article-I.D.: news.Bxx5CL.5xI
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- Lines: 25
-
- I have discovered an error in Pagestream 2.21 generated PostScript code. The
- error deals with the code that handles the generation of arrows at the end
- of lines.
-
- In /doendstyle there is a line that reads:
-
- /angle dy dx atan def
-
- If dx and dy are both zero, this causes an /undefinedresult error with atan in
- standard PostScript. A couple of documents that I have recently produced
- have generated this error when I attempted to print them. A proposed solution
- is to change this line to:
-
- /angle dy dx 2 copy add 0 eq {pop pop 0} {atan} ifelse def
-
- which will return zero if both operands are zero, otherwise it will perform
- the atan function with the original operands...
-
- Dave
-
- --
- ---------------------------------------------------------------------------
- Dave R. Madsen | Computer Science Department | Office: 107 Atanasoff
- Systems Support Group | Iowa State University | madsen@cs.iastate.edu
- ---------------------------------------------------------------------------
-