home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / text / tex / 14667 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.5 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!julienas!sophia!charly.inria.fr!djossou
  2. From: djossou@charly.inria.fr (Coco Djossou)
  3. Newsgroups: comp.text.tex
  4. Subject: twoup.ps [Re: LaTeX: two pages in one???]
  5. Message-ID: <37714@sophia.inria.fr>
  6. Date: 6 Jan 93 14:09:56 GMT
  7. References: <1993Jan6.123432.18436@news.uit.no>
  8. Sender: news@sophia.inria.fr
  9. Reply-To: Coco.Djossou@sophia.inria.fr
  10. Organization: INRIA Sophia Antipolis
  11. Lines: 65
  12.  
  13.  
  14.       From: stig@staff.cs.uit.no (Stig Johansen)
  15.       Newsgroups: comp.text.tex
  16.       Subject: LaTeX: two pages in one???
  17.       Message-ID: <1993Jan6.123432.18436@news.uit.no>
  18.       Date: 6 Jan 93 12:34:32 GMT
  19.  
  20. |> Is there an easy way to put two pages from a LaTeX report or book on the 
  21. |> same physical page, rotated 90 degrees and translated appropriate?
  22.  
  23. My mailer is unable to reach <stig@staff.cs.uit.no>, I follow up my reply
  24. to the newsgroup.
  25.  
  26.    ----- Transcript of session follows -----
  27. While talking to hpserv0.cs.uit.no:
  28. >>> RCPT To:<stig@staff.cs.uit.no>
  29. <<< 554 <stig@staff.cs.uit.no>... "Unknown User.  Contact postmaster@cs.uit.no"
  30. 554 stig@staff.cs.uit.no (Stig Johansen)... Service unavailable
  31.  
  32.    ----- Unsent message follows -----
  33. Date: Wed, 6 Jan 1993 15:02:04 +0100
  34. From: Coco Djossou <Coco.Djossou@sophia.inria.fr>
  35. Message-Id: <199301061402.AA15586@charly.inria.fr>
  36. To: stig@staff.cs.uit.no (Stig Johansen)
  37. Subject: Re: LaTeX: two pages in one???
  38.  
  39. |> Is there an easy way to put two pages from a LaTeX report or book on the 
  40. |> same physical page, rotated 90 degrees and translated appropriate?
  41.  
  42. Greetings,
  43. Your problem is a PostScript problem, if you have Tomas Rokicki's dvips
  44. version 5.47 (or >) you just have to use the following filter <twoup.ps>
  45.  
  46. dvips -h twoup.ps -t landscape file.dvi|lpr
  47.  
  48.  
  49. === SAVE AS twoup.ps===
  50. % twoup.ps for dvips 5.47 by Piet van Oostrum <piet@cs.ruu.nl>
  51. %
  52. %
  53. % the constants are for A4 paper.
  54. % Use with dvips -h twoup -t landscape 
  55. %
  56. /isoddpage true def
  57. /orig-showpage /showpage load def
  58. /factor 0.707106781187 def
  59. /showpage {
  60.         isoddpage not { orig-showpage } if
  61.         /isoddpage isoddpage not store } def
  62.  
  63. /bop-hook {
  64.         /vsize 1 factor add neg def
  65.         isoddpage {factor factor scale}
  66.                 { 0 544.283799804 translate} ifelse
  67.         } def
  68.  
  69. /end-hook{ isoddpage not { orig-showpage } if } def
  70.  
  71. /start-hook {/eos{ isoddpage {clear SS restore /isoddpage true store}
  72.                 {clear SS restore /isoddpage false store}
  73.                                  ifelse} B
  74.         /bos{/SS save N
  75.                 isoddpage not {factor factor scale} if} B
  76. } def
  77. %%%%%%%%%%%%%%%%%%%%%%%%%%%
  78.