🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #2246

Re: Landscape mode with Psroff!!

#2246
From: Chris Lewis
Date: Fri, 21 Dec 1990 08:31
40 lines
2454 bytes
In article <1990Dec19.185602.863@cbnewsl.att.com> npn@cbnewsl.att.com (nils-peter.nelson) writes:

>In DWB 3.1,
>	troff etc | dpcl -plandscape { or -pl } | lp
>does what you want. dpcl is the HP LaserJet postprocessor;
>it also has options for multiple copies, selected pages
>only, X and Y translation on the page and alternate
>(user-defined) font directories.

(Gee, the only thing that psroff doesn't do in the above list is
landscape ;-)

If you're stuck with CAT troff (you can't afford the 50K for DWB 3.1),
and you're driving HP Laserjets, you can get a copy of jetroff from
Rick Richardson (rick@pcrat).  You tell psroff to generate ditroff and
run it thru jetroff, and jetroff can, I believe, do landscape on the
laserjet.  Psroff cannot by itself.  It might not be all that hard tho, you
might try inserting the landscape directive (in lj.lib) and see what happens.
(well, one thing that would be wierd is that the characters would be
sideways (I think), psroff cannot generate landscape fonts).  The maximum
width of a line would be 7.54".

If you're driving a Postscript printer, it's a relatively simple matter
to insert a rotate, translate and a scale into a separate copy of ps.lib
to generate the landscape.  (You'd cheat and scale stuff so that the 7.54"
max line length would become 11" on the printer.  Then all your dimensions
and point sizes would be similarly scaled).  Alternately, you can obtain
one of the n-up programs that float around the net.  At least one of them
works quite nicely with psroff (Phil Smith's one from phri?  Mentioned
in comp.lang.postscript very recently).

CAT troff has a line length plus page offset internal limit of 7.54",
so you can't make lines 11" wide by 8.5" high unless you can scale in the
printer (and factor in the scaling in point size requests and line
drawing etc.)
-- 
Chris Lewis, Phone: (613) 832-0541
UUCP: uunet!utai!lsuc!ecicrl!clewis
Moderator of the Ferret Mailing List (ferret-request@eci386)
Psroff mailing list (psroff-request@eci386)
Technical Details
Message-ID: <1026@ecicrl.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!eci386!ecicrl!clewis
References: <61559@masscomp.ccur.com> <1990Dec19.185602.863@cbnewsl.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!eci386!ecicrl!clewis
From: clewis@ecicrl.UUCP (Chris Lewis)
Newsgroups: comp.text
Subject: Re: Landscape mode with Psroff!!
Message-ID: <1026@ecicrl.UUCP>
Date: 21 Dec 90 08:31:46 GMT
References: <61559@masscomp.ccur.com> <1990Dec19.185602.863@cbnewsl.att.com>
Reply-To: clewis@ecicrl.UUCP (Chris Lewis)
Organization: Elegant Communications Inc., Ottawa, Canada
Lines: 40