Article View: comp.text
Article #1503Re: Importing postscript in troff
From: Chris Lewis
Date: Tue, 20 Mar 1990 20:36
Date: Tue, 20 Mar 1990 20:36
47 lines
2561 bytes
2561 bytes
In article <277@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
| In article <413@wmt.UUCP> mist@wmt.UUCP (Michiel Steltman) writes:
| <Now I would like to include postscript (for non pic-pictures) etc. in a troff
| <file, so that it flows uninterpreted into the same output. ( We use
| <troff | pscat | lpr ... ). I realize we could patch the postscript directly
| <into the pscat output, but I think there must be an easier way, using
| <the .so command of a file with some tricks...
|
| The answer is NO, you can't do it from within troff. You must have AT&T's
You're right - not directly....
| Documentor's Workbench 2.0+, or compatible. The reason why you can't is
| because the output is for the C/A/T phototypesetter, which is a binary type
| code, non-ASCII. It doesn't contain any features that allow codes to be
| passed from troff to pscat.
Unless you're using psroff instead of pscat. Amongst other things, psroff
is able to include arbitrary text in the printer stream, requested by
directives in CAT troff's input files. Psroff also uses this to emulate
".fp" commands and a few other things. If pscat supports ".fp", it may also
support some sort of file inclusion. Psroff release 2 (real soon now),
supports ".sy" (sort of) and a few other normally only ditroff goodies.
However, with psroff as currently incarnated, the Postscript must know
where it's supposed to go.
Here's a hint on how psroff does things - cause troff to merge its
stderr with stdout, ala:
(troff -t arguments 2>&1) | troff2ps
And use
.tm M<a line of ascii>
"M" is a unallocated CAT code, and is used by troff2ps to disambiguate
a stream of binary CAT codes from a newline terminated ASCII line which
is interpreted by troff2ps. Ala:
.tm MF1PA
M: special directive following
F: change fonts
1: on position 1, mount font PA
Or, in the original request:
.tm MI<your postscript file>
[It's fun to toot my own horn ;-)]
--
Chris Lewis, Elegant Communications Inc, {uunet!attcan,utzoo}!lsuc!eci386!clewis
Ferret mailing list: eci386!ferret-list, psroff mailing list: eci386!psroff-list
Technical Details
Message-ID:
<1990Mar20.203634.24978@eci386.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!telly!eci386!clewisReferences:
<413@wmt.UUCP> <277@vidiot.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!eci386!clewis From: clewis@eci386.uucp (Chris Lewis) Newsgroups: comp.text Subject: Re: Importing postscript in troff Keywords: postscript, troff, .so Message-ID: <1990Mar20.203634.24978@eci386.uucp> Date: 20 Mar 90 20:36:34 GMT References: <413@wmt.UUCP> <277@vidiot.UUCP> Reply-To: clewis@eci386.UUCP (Chris Lewis) Organization: Elegant Communications Inc., Toronto, Canada Lines: 48