[comp.text] Landscape mode with Psroff!!

arun@tinton.ccur.com (Arun Kandappan) (12/18/90)

	How can I print troff files in landscape mode ? I have a tbl|troff
output that is printed using psroff on a laserwriter. I looked for options
to convert the output to a landscape mode as the table is to be a broad one.
Is there any way to accomplish this ?

	thanks
	Arun Kandappan
-----------
Arun Kandappan
arun@tinton.ccur.com

npn@cbnewsl.att.com (nils-peter.nelson) (12/20/90)

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.

clewis@ecicrl.UUCP (Chris Lewis) (12/21/90)

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)