groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] mpictures in groff


From: andlabs
Subject: Re: [Groff] mpictures in groff
Date: Tue, 4 Sep 2007 05:10:51 -0700 (PDT)

Thanks. That was just what I was looking for, but I'll now have to figure out
this: how to get it work work more like mpictures for a tutorial I'm
writing.


Joerg van den Hoff-2 wrote:
> 
> On Mon, Sep 03, 2007 at 08:01:39PM -0700, andlabs wrote:
>> 
>> Hello. I'm getting ready to install Plan 9 from Bell Labs on an old
>> computer
>> I have, and I noticed that it has a wonderful macro set called
>> "mpictures",
>> which allows you to put a PostScript image within your document:
>> 
>> .BP image.ps
>> .\" Minimal; this just puts the image in
>> .EP
>> 
>> .BP image.ps 40
>> .\" keeps the image within a 40x\n(.l invisible frame.
>> .EP
>> 
>> .BP image.ps 300 300 r "" o "\fBhello\fP"
>> .\" resizes the image to a 300x300 square at the right of the page
>> .\" (the "" means no indent from that position; this is the default)
>> .\" and give it an outlined frame, under it put the words "Hello" in bold
>> All this text goes around the frame.
>> Using this space for text is useful.
>> The null argument was needed so I could use the others.
>> .br
>> .CW mpictures
>> does not only have this, but also a more powerful
>> .CW .PI
>> macro.
>> .EP
>> 
>> I tried moving the file from Plan 9's distro to my tmac/ folder, but it
>> didn't go very nicely with groff. Does groff provide an alternative?
>> Thanks.
>> -- 
> 
> not exactly, but `.PSPIC' comes close. cf. `man groff_tmac'
> 
> 
> joerg
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mpictures-in-groff-tf4375188.html#a12476919
Sent from the Groff - General mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]