🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6473

Re: HOW TO PRINT TROFF GENERATED PSC FILES IN LANDSCAPE MODE

#6473
From: Chris Lewis
Date: Sat, 23 Jan 1993 05:38
37 lines
1985 bytes
In article <48936@ogicse.ogi.edu> rajesh@mse.ogi.edu (Rajesh Dighde) writes:
>How can I program the postscript file so that the output
>will be in landscape mode.  Specifically I want to print
>some tables generated by troff typesetter.

What we need to know is what computer you're using, what kind
of troff, and what you're using to convert troff output to
PostScript.  And, exactly what you want to do - just rotate
and squish vertically to fit?  Or what?

The mechanics of doing this is by putting a bit of code
at the top of each page that will do a translate and rotate
and possibly a scale.  Some of the troff packages have this
built-in, and others will require manual editing of the
PostScript output.

If you have to manually edit each page, you want to put
the following in right after each "%%Page:" comment:

    612 0 translate 90 rotate

(the above assumes 8.5" wide paper).

You also have to tell troff that a page is 8.5" high - how
you do this depends on which macro package you're using.  In
MM, use -rL8.5i.  With man or ms, you usually have to insert
a ".pl 8.5i" into your document.

If you're using psroff (not Adobe Transcript), get your administrator
to upgrade to Psroff 3.0 PL15 (available in ftp.uunet.ca
distrib/chris_lewis/psroff3.0pl15), and read the manual page
about landscape - it's builtin with PL15, and none of the above
handwaving is necessary.
-- 
Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
Ferret list: ferret-request@ferret.ocunix.on.ca
Technical Details
Message-ID: <4163@ecicrl.ocunix.on.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!ecicrl!clewis
References: <48936@ogicse.ogi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!ecicrl!clewis
From: clewis@ferret.ocunix.on.ca (Chris Lewis)
Newsgroups: comp.lang.postscript
Subject: Re: HOW TO PRINT TROFF GENERATED PSC FILES IN LANDSCAPE MODE
Message-ID: <4163@ecicrl.ocunix.on.ca>
Date: 23 Jan 93 05:38:16 GMT
References: <48936@ogicse.ogi.edu>
Distribution: usa
Organization: Elegant Communications Inc., Ottawa, Canada
Lines: 37