The three programs mentioned in the title of this post are quite useful for manipulating all kinds of documents. Here’s an example:
enscript -E -o cfile_pretty.ps cfile.c
psnup -2 cfile_pretty.ps cfile_pretty-1x2.ps
The first command will take cfile.c and generate a postscript file containing the C source code complete with syntax highlighting. I tend to print a good bit of source code, only to discover that the part I care about and continually refer back to is relatively small. Thus, I like having the ability to print more than one “page” of enscript output on a single page of paper.
The commands above will help make that happen. I had more trouble finding this information on the web than I expected; hence this post.
% dpkg -S /usr/bin/pdfnup
% dpkg -S /usr/bin/psnup
% dpkg -S /usr/bin/enscript