🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6119

Re: 2 logical pages per physical, again...

#6119
From: Glenn Reid
Date: Mon, 27 May 1991 00:26
45 lines
2156 bytes
Counselor Neon writes
> Now, I have two files that are normally printed in landscape mode.  I want  
them
> to come out like :
> on one physical sheet of paper.  They do come out that way, with one problem.
> Page one is upside-down, so that the tops of both logical pages appear in the
> *center* of the physical page. 
>   The files : one is plain ascii text; I have been using enscript -r to make
> it into a landscape-oriented PS file.  The other file is an IDL-generated 
> graph which is already in PS form.

I think you can fix this problem by editing the enscript prologue file
that should be in /usr/lib/transcript/enscript.pro.  There is a line in
there that looks like this:

	/Landscape{90 rotate 0 -15840 translate}def

You should change it to look like this:

	/Landscape{-90 rotate -15840 -3600 translate}def

Note: enscript uses a strange coordinate system and in fact places the
origin off the page when in Landscape mode, but at least experimentally
the above code seems to do the trick.  You might need to hack the
translation components if it isn't working for you.  As a reference,
the number -15840 is exactly 792 points (the long edge of an 8.5"x11"
page) multiplied by the enscript scale factor of .05.  The value -3600
is (792-612) / .05 for obscure reasons (the aforementioned off-page
condition).

For "normal" PostScript code on a letter-sized page, you would see
either

	90 rotate 0 -612 translate
or
	-90 rotate -792 0 translate

to get you into Landscape mode in either orientation.

Good luck.

--
 Glenn Reid				RightBrain Software
 glenn@heaven.woodside.ca.us		NeXT/PostScript developers
 ..{adobe,next}!heaven!glenn		415-326-2974 (NeXTfax 326-2977)
Technical Details
Message-ID: <514@heaven.woodside.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!adobe!heaven!heaven.woodside.ca.us
References: <tarrall.675280105@yertle.Colorado.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!adobe!heaven!heaven.woodside.ca.us
From: glenn@heaven.woodside.ca.us (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: 2 logical pages per physical, again...
Message-ID: <514@heaven.woodside.ca.us>
Date: 27 May 91 00:26:00 GMT
References: <tarrall.675280105@yertle.Colorado.EDU>
Sender: glenn@heaven.woodside.ca.us
Lines: 45