home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6419 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.9 KB

  1. Path: sparky!uunet!uunet.ca!ecicrl!clewis
  2. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: HOW TO PRINT TROFF GENERATED PSC FILES IN LANDSCAPE MODE
  5. Message-ID: <4163@ecicrl.ocunix.on.ca>
  6. Date: 23 Jan 93 05:38:16 GMT
  7. References: <48936@ogicse.ogi.edu>
  8. Distribution: usa
  9. Organization: Elegant Communications Inc., Ottawa, Canada
  10. Lines: 37
  11.  
  12. In article <48936@ogicse.ogi.edu> rajesh@mse.ogi.edu (Rajesh Dighde) writes:
  13. >How can I program the postscript file so that the output
  14. >will be in landscape mode.  Specifically I want to print
  15. >some tables generated by troff typesetter.
  16.  
  17. What we need to know is what computer you're using, what kind
  18. of troff, and what you're using to convert troff output to
  19. PostScript.  And, exactly what you want to do - just rotate
  20. and squish vertically to fit?  Or what?
  21.  
  22. The mechanics of doing this is by putting a bit of code
  23. at the top of each page that will do a translate and rotate
  24. and possibly a scale.  Some of the troff packages have this
  25. built-in, and others will require manual editing of the
  26. PostScript output.
  27.  
  28. If you have to manually edit each page, you want to put
  29. the following in right after each "%%Page:" comment:
  30.  
  31.     612 0 translate 90 rotate
  32.  
  33. (the above assumes 8.5" wide paper).
  34.  
  35. You also have to tell troff that a page is 8.5" high - how
  36. you do this depends on which macro package you're using.  In
  37. MM, use -rL8.5i.  With man or ms, you usually have to insert
  38. a ".pl 8.5i" into your document.
  39.  
  40. If you're using psroff (not Adobe Transcript), get your administrator
  41. to upgrade to Psroff 3.0 PL15 (available in ftp.uunet.ca
  42. distrib/chris_lewis/psroff3.0pl15), and read the manual page
  43. about landscape - it's builtin with PL15, and none of the above
  44. handwaving is necessary.
  45. -- 
  46. Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
  47. Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
  48. Ferret list: ferret-request@ferret.ocunix.on.ca
  49.