Whew! This is a *HOT* topic! Picking a PostScript print styler program
is almost a religious experience. You *all* had great suggestions and I
will include a listing of the names of packages (and some sites) at the
bottom of this post.
What I originally wanted to do was print listings to a PostScript
printer such that two "pages" of code would appear on one sheet in
landscape mode. I used to use "enscript -2Gr" to do this. Turns out
that enscript is a commercial product that comes from Adobe as part of
the Transcript package. Whoops!
What I wound up doing was downloading "nenscript," something that
produces output identical to the old enscript. I chose this over the
others for no other reason than I knew some commands for enscript, and
this package claimed option compatibility. This is a really great
package, it builds quickly with about 5 or 6 files to cc, and has a man
page and is all set to install to /usr/local. The latest version is
called nenscript-1.13++.tar.z, and I got my copy off of the Sunsite
Linux archive:
ftp://sunsite.unc.edu/pub/Linux/system/Printing/nenscript-1.13++.tar.z
Be wary, the .z extension is really a Gnu-zip compressed file, not a
standard UNIX compression.
I didn't like the way nenscript uses a default of "lpr -P" as the
printer, followed by "PostScript" as the print queue, so I made some
really minor changes to get it to dump its output to standard out:
defs.h:37: #define DEF_PRINTER ""
machdep.h:48: #define LPR "cat"
Further, I'm using an HP LaserJet 4M Plus, and at first, the output
looked to run off the page, so I did:
paper.h:32: #define SILLY_PAGE
Thanks tons, net! You've just saved countless trees! It's a world
thing, you must understand...
-----------------------------------------------------------------------
NAMES OF PACKAGES SUGGESTED BY NETFOLK (in no particular order):
mpage
nenscript -- can get from
ftp://sunsite.unc.edu/pub/Linux/system/Printing/nenscript-1.13++.tar.z
ftp://ftp.cc.gatech.edu/ac86/linux/system/Printing/nenscript-1.13++.tar.z
ftp://mrcnext.cso.uiuc.edu/pub/linux/system/Printing/nenscript-1.13++.tar.z
a2ps
pstools
psf
yup, available from
ftp://ftp.bf.rmit.edu.au/pub/src/yup
MP, freeware originally from SUN. You can get the latest version from
ftp.adelaide.edu.au:/pub/sun/richb or
ftp.iesd.auc.dk:/pub/packages/mpdist. The MP package requires C++ to
compile and comes with a Motif GUI interface.
xa2ps
two PERL scripts called 'psify' and '[n]up' (where n is a number,etc..)
(ghostscript will do it too, but it is a really huge thing to install
if all you want to do is this type of printing -- Russ)
----------------------------------------+----------------------------------
Russ Fink, Loral Aerosys (301-805-0501) | 7375 Executive Place Suite 101
email: rfink_at_hornet.aerosys.loral.com | Seabrook, MD 20706 USA
----------------------------------------+----------------------------------
G L O B A L S T A R -- THE solution for worldwide voice/data communications
Received on Thu Jun 01 1995 - 16:26:45 NZST