🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6816

Re: Eroff, -me floating keeps & PostScript

#6816
From: R. J. Auletta
Date: Wed, 07 Feb 1990 15:28
30 lines
1415 bytes
In article <sZnPX0W00VswAGplIN@andrew.cmu.edu> jaap+@andrew.cmu.edu (Jaap Akkerhuis) writes:
>Excerpts from netnews.comp.text: 2-Feb-90 Eroff, -me floating keeps &..
>Eli Messinger@ebm.almade (792)
>
>> I am trying to include a PostScript figure inside a floating keep, using
>> Elan's eroff as,
>
>>     Some introductory text about the Figure,
>>     .(z
>>     .hl
>>     .cS figure.ps 5i 3i
>>     Figure Title Text
>>     .hl
>>     .)z
>>     and some more text afterwards.

This may not be a solution but here is a little macro that uses
the eroff macros to center a EPS figure based on the bounding box
information at the top of the EPS.

.\" 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
..

--R J Auletta
  rauletta@gmuvax2.gmu.edu
Technical Details
Message-ID: <769@gmuvax2.gmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pyrdc!gmu90x!gmuvax2!rauletta
References: <1347@ks.UUCP> <sZnPX0W00VswAGplIN@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pyrdc!gmu90x!gmuvax2!rauletta
From: rauletta@gmuvax2.gmu.edu (R. J. Auletta)
Newsgroups: comp.text
Subject: Re: Eroff, -me floating keeps & PostScript
Message-ID: <769@gmuvax2.gmu.edu>
Date: 7 Feb 90 15:28:48 GMT
References: <1347@ks.UUCP> <sZnPX0W00VswAGplIN@andrew.cmu.edu>
Reply-To: rauletta@gmuvax2.UUCP (R. J. Auletta)
Organization: George Mason Univ. Fairfax, Va.
Lines: 30