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