🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #1830

Re: Importing PostScript

#1830
From: Fred Hansen
Date: Mon, 20 May 1991 02:32
37 lines
1631 bytes
Excerpts from internet.info-andrew: 17-May-91 Importing PostScript Mark
-@uk.co.gec-avionic (1205+0)

> 1. Ability to import PostScript.

This is straight-forward, though it could certainly be made less klunky.
here is an example:

.ne 1.9i
'PB  432 80
'if  \n(zT  \{\
\!%!
\!    432 troffadjust 80 neg translate
\!
\!	%%%%%%%%%%The postscript embedment comes after this.
\!
\!	0 0 moveto  72 0 lineto 72 72 lineto stroke
\!
\!	%%%%%%%%%%Embedment ends before here.
\!\}
'PE 432 80

    Figure 1. Draw the bottom and right of a one inch cube.  The
    space for this image is 432 PostScript points wide and 80 high. 
    The 1.9 in the .ne leaves room for this caption as well.

The PB and PE macros are part of the standard tmac.atk.  They work by
breaking the line into two separately composed sublines, so things don't
work too well if there are multiple images on a line or if the image
comes near the margin.  Incidentally, giving the whole thing the style
RightFlush or Centrered will make the image have that justification;
that is the purpose of the troffadjust line.

Fred Hansen

(ps. Please spell your return address in proper internet order when
sending mail outside Britain.)
Technical Details
Message-ID: <McBnImq00VsPE_GmZk@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!ucbvax!ANDREW.CMU.EDU!wjh+
References: <EcAxnpr02QU1I=qF1T@gandalf>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!ucbvax!ANDREW.CMU.EDU!wjh+
From: wjh+@ANDREW.CMU.EDU (Fred Hansen)
Newsgroups: comp.soft-sys.andrew
Subject: Re: Importing PostScript
Message-ID: <McBnImq00VsPE_GmZk@andrew.cmu.edu>
Date: 20 May 91 02:32:18 GMT
References: <EcAxnpr02QU1I=qF1T@gandalf>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 37