home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / ps / psnup / README < prev   
Text File  |  1991-02-26  |  3KB  |  58 lines

  1.     Nup is designed to be used as a wrap around any PostScript file.
  2. Simply prepend nup.pre.ps, and append nup.post.ps, and it should work. There
  3. are three tokens in nup.pre.ps which need to be changed before sending it to
  4. the printer:
  5.     @#@Pages@#@    should be changed to the number of pages per sheet.
  6.             2 gets you 2-up, 16 gets you 16-up, etc.
  7.     @#@Rev@#@    Should be changed to 'true' or 'false', depending on
  8.             whether you want the first page in the file to
  9.             appear in the lower right corner of the page or the
  10.             upper left. This is designed to accomodate files
  11.             which have had their pages reversed.
  12.     @#@Start@#@    Should be changed to the number of the spot where
  13.             you want the first page to appear. This is to allow
  14.             for 2-up printing with the first page on the right
  15.             hand side, like a book.
  16.  
  17. I change these for each run with sed in a shell script that puts it all
  18. together.
  19.     Since Nup is heavily commented, I have provided psc, which
  20. compresses out white space and comments to provide a more efficient
  21. downloadable file. I call the compressed versions nup.pro and nup.epi, which
  22. is in keeping with Adobe's naming scheme.
  23.     As the header for the file indicates, I'd like to see any
  24. interesting modification of Nup. Deletion of unwanted features ("I got rid
  25. of those borders") does not count as interesting.
  26.     Finally, If you have produced any other code to do things like this,
  27. announce it on the net. There are lots of people, including me, who would
  28. like to see it.
  29.  
  30.     --Ned Batchelder
  31.     (ned@UPenn.CSNet)
  32. -------------------------------------------------
  33. Included with this release is a shell script (psnup) that acts as a user
  34. interface to Ned's "nup" code.  You hand it arbitrary Postscript code, and
  35. it pre and post appends nup.pro and nup.epi, substituting in the above
  36. mentioned parameters as it goes.  See the manual page that I've
  37. included.  Edit the makefile and go.  The only parameter I believe
  38. you need is the optional definition of "-Dindex=strchr" in the Makefile
  39. if your system doesn't have the str??? routines (ie: as vanilla BSD/V7).
  40. Installation consists simply of copying psnup to your local bin directory
  41. and copying the manual page to your local manual page directory.
  42.  
  43. To make things simpler, psnup is generated by inserting in the nup.pro
  44. and nup.epi into marked places in the psnup.sh file.  In this manner
  45. you don't need a library directory, and psnup is entirely self-contained
  46. in one file.  I have made absolutely no changes to Ned's code, other than
  47. to remove a "%!" at the beginning of nup.pre.ps which will fool some
  48. Postscript interpreters (eg: Pageview).  Psnup is careful to maintain
  49. trailing control-d's and the Document Formatting Convention if the input
  50. postscript has them.
  51.  
  52. A number of people have been requesting psnup, but I tried to get a hold
  53. of Ned before posting it.  I've been unable to contact him.  So, here it
  54. is.
  55.  
  56.     Chris Lewis
  57.     (clewis@ferret.ocunix.on.ca)
  58.