Article View: comp.lang.postscript
Article #795Re: Landscape printing under (di)troff/PostScript
From: Dave Curry
Date: Wed, 02 Aug 1989 15:51
Date: Wed, 02 Aug 1989 15:51
42 lines
1725 bytes
1725 bytes
In article <81=g024X36Zp01@amdahl.uts.amdahl.com> dacwmk@uts.amdahl.com (William M. Kules) writes:
>
>Is landscape printing supported on troff/psdit driving a
>Post-Script printer?
>
As it happens, I needed to do this on Monday. I sent a note off to the
troff guru where I used to work (whose name I won't give out, to protect
the innocent), and he sent me the following instructions:
-----
We took the standard psdit prologue (/usr/lib/ps/psdit.pro) and created
a landscape version named /usr/lib/ps/land.pro by changing the line:
/xi {0 72 11 mul translate 72 resolution div dup neg scale 0 0 moveto
to:
/xi {90 rotate 72 resolution div dup neg scale 0 0 moveto
The land.pro prologue is accessed by "psdit -p/land.pro".
------
The above-mentioned line is line number 8 in our psdit.pro file; your
milage may vary.
Note that you have to adjust your line length, page offset, header and
footer margins to understand the rotated page; as near as I can tell
there is no way to change troff's idea that a page is 11 inches long.
For the -ms macros, I use something like:
.nr LL 10i
.nr PO .5i
.nr HM .5i
.nr FM 3i
.ll 10i
.po .5i
Which gives half-inch margins all around. Works great!
Dave Curry
davy@riacs.edu
Technical Details
Message-ID:
<1625@hydra.riacs.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!eos!riacs!davyReferences:
<81=g024X36Zp01@amdahl.uts.amdahl.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!eos!riacs!davy From: davy@riacs.edu (Dave Curry) Newsgroups: comp.lang.postscript Subject: Re: Landscape printing under (di)troff/PostScript Message-ID: <1625@hydra.riacs.edu> Date: 2 Aug 89 15:51:53 GMT References: <81=g024X36Zp01@amdahl.uts.amdahl.com> Reply-To: davy@hydra.riacs.edu.UUCP (Dave Curry) Organization: Research Institute for Advanced Computer Science Lines: 42