enscript, psnup, pdfnup

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
pdfjam: /usr/bin/pdfnup
% dpkg -S /usr/bin/psnup
psutils: /usr/bin/psnup
% dpkg -S /usr/bin/enscript
enscript: /usr/bin/enscript


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s