🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #10981

twoup.ps [Re: LaTeX: two pages in one???]

#10981
From: Coco Djossou
Date: Wed, 06 Jan 1993 14:09
65 lines
2667 bytes
	  From: stig@staff.cs.uit.no (Stig Johansen)
	  Newsgroups: comp.text.tex
	  Subject: LaTeX: two pages in one???
	  Message-ID: <1993Jan6.123432.18436@news.uit.no>
	  Date: 6 Jan 93 12:34:32 GMT

|> Is there an easy way to put two pages from a LaTeX report or book on the 
|> same physical page, rotated 90 degrees and translated appropriate?

My mailer is unable to reach <stig@staff.cs.uit.no>, I follow up my reply
to the newsgroup.

   ----- Transcript of session follows -----
While talking to hpserv0.cs.uit.no:
>>> RCPT To:<stig@staff.cs.uit.no>
<<< 554 <stig@staff.cs.uit.no>... "Unknown User.  Contact postmaster@cs.uit.no"
554 stig@staff.cs.uit.no (Stig Johansen)... Service unavailable

   ----- Unsent message follows -----
Date: Wed, 6 Jan 1993 15:02:04 +0100
From: Coco Djossou <Coco.Djossou@sophia.inria.fr>
Message-Id: <199301061402.AA15586@charly.inria.fr>
To: stig@staff.cs.uit.no (Stig Johansen)
Subject: Re: LaTeX: two pages in one???

|> Is there an easy way to put two pages from a LaTeX report or book on the 
|> same physical page, rotated 90 degrees and translated appropriate?

Greetings,
Your problem is a PostScript problem, if you have Tomas Rokicki's dvips
version 5.47 (or >) you just have to use the following filter <twoup.ps>

dvips -h twoup.ps -t landscape file.dvi|lpr


=== SAVE AS twoup.ps===
% twoup.ps for dvips 5.47 by Piet van Oostrum <piet@cs.ruu.nl>
%
%
% the constants are for A4 paper.
% Use with dvips -h twoup -t landscape 
%
/isoddpage true def
/orig-showpage /showpage load def
/factor 0.707106781187 def
/showpage {
        isoddpage not { orig-showpage } if
        /isoddpage isoddpage not store } def

/bop-hook {
        /vsize 1 factor add neg def
        isoddpage {factor factor scale}
                { 0 544.283799804 translate} ifelse
        } def

/end-hook{ isoddpage not { orig-showpage } if } def

/start-hook {/eos{ isoddpage {clear SS restore /isoddpage true store}
                {clear SS restore /isoddpage false store}
                                 ifelse} B
        /bos{/SS save N
                isoddpage not {factor factor scale} if} B
} def
%%%%%%%%%%%%%%%%%%%%%%%%%%%
Technical Details
Message-ID: <37714@sophia.inria.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!julienas!sophia!charly.inria.fr!djossou
References: <1993Jan6.123432.18436@news.uit.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!julienas!sophia!charly.inria.fr!djossou
From: djossou@charly.inria.fr (Coco Djossou)
Newsgroups: comp.text.tex
Subject: twoup.ps [Re: LaTeX: two pages in one???]
Message-ID: <37714@sophia.inria.fr>
Date: 6 Jan 93 14:09:56 GMT
References: <1993Jan6.123432.18436@news.uit.no>
Sender: news@sophia.inria.fr
Reply-To: Coco.Djossou@sophia.inria.fr
Organization: INRIA Sophia Antipolis
Lines: 65