PrintLogo

Changing Margins with Enscript




Enscript is pretty cool for printing off listings. One problem with my Ghostscript support for my printer is that the margins aren't exact, so if I just use "lpr filename", it doesn't print right. The top line gets munched, or it loses lines at the bottom. I'm usually printing off listings, so the files are unformatted anyway. To set margins, use the --margins option. For instance, on my printer, I can use:

enscript --margins=50:50:50:100 mem.asm

to print off my assembly listing properly. Enscript can also print off line numbers and you can set the font if you like.



This article comes from Coprolite:
http://coprolite.com/

The URL for this story is:
http://coprolite.com/art20.html

Copyright 1997-2006 Coprolite.com. Read our Terms of Use.