Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] instructions to use .eps in troff wanted

24 views
Skip to first unread message

Rudolf Sykora

unread,
Nov 19, 2009, 4:15:43 AM11/19/09
to
Hello,

is there any good place where I could read how to embed some pictures into a troff document?
Preferably a way that works in plan9, too...
I can't find much about it anywhere.
What do you use?

Thanks
Ruda

Richard Miller

unread,
Nov 19, 2009, 4:23:20 AM11/19/09
to
> is there any good place where I could read how to embed some pictures into a
> troff document?

mpictures(6)


Jonas Amoson

unread,
Nov 19, 2009, 5:21:29 PM11/19/09
to
The documents in /sys/doc does not contain many EPS
pictures, but you can look at /sys/doc/8�/8�.ms Here
is an example of what I used in my submission to
IWP9'09 (I am using the ms macros):

.KF
.sp
.BP figures/lyxlinux.eps 4.0
.EP
.DS C
Figure 1: Screenshot of LyX running under Linux.
.DE
.sp
.KE


.KF and .KE means that the picture "floats" in the document.
.sp is vertical space
.BP is inclusion of the eps file, 4 inches in height.
.DS C Means that the caption (picture description) is centred.
(did not make any automatic counting of figures here)
.DE is end of the caption

And I used the following command (in a mkfile) to generate:

tbl gui.ms | troff -ms -mpictures | dpost -f >gui.ps

As you see, you have to tell that you are using picture
inclusion macros. Everything under plan 9, using groff
might differ...

/Jonas

Anthony Sorace

unread,
Nov 19, 2009, 10:27:47 PM11/19/09
to
For my company, I generate contracts using troff on Plan 9. The
contracts all contain my digital signature - that is, a postscript
image of my signature - like so:

.BP /usr/a/Pictures/sigs/signature.ps .5 "" "" "" l

I generate postscript for these documents like so:

troff -mm -mpictures foo.mm | lp -d stdout | addpsfonts > foo.ps

Rudolf Sykora

unread,
Nov 20, 2009, 4:40:53 AM11/20/09
to
Thank you all :)
Ruda

matt

unread,
Nov 23, 2009, 7:44:39 AM11/23/09
to

Rudolf Sykora wrote:

/n/sources/contrib/maht/ppm2eps/

0 new messages