rauletta@gmuvax2.gmu.edu (Richard J. Auletta) (11/20/89)
I have recently begun inserting more EPS files in to my troff documents and was always quite frustrated as to where the "image" would show up on the page. In particular I refer to idraw that appears to set the coordinates at the lower-left of an 8.5X11 sheet so that when the origin was translated to the present troff position the image would be offset by its location in the idraw image. Is this usual for EPS? This macro takes the bounding box information and calculates the proper space and offset for the image to be centered on the page. Any suggestions/improvements? --R J Auletta rauletta@gmuvax2.gmu.edu .\" This macro centers an EPS file based on the bounding box information. .\" Usage: .BB file Bounding_Box Example: .BB test.eps 143 413 469 613 .\" Assumes the usage of Elan's macro package. .\" .de BB .cS \\$1 \\$4p-\\$2p \\$5p-\\$3p ((\n(.l-(\\$4p-\\$2p)/2)-\\$2p)u \\$3p ..