[TxMt] Print size

John Johnson johnatl at mac.com
Wed Mar 2 22:25:48 UTC 2005


Hello fellow TextMaters. I'm a Ruby programmer currently writing a web 
app with Ruby on Rails.

Is there a way to set the font size for printing?
I can't find anything, so I made this command that works well for me:

cd $TM_PROJECT_DIRECTORY
enscript -G -p /tmp/`basename ${TM_FILEPATH}`.ps --margins=36:36:36:36 
--mark-wrapped-lines=arrow $TM_FILEPATH
cd /tmp #`dirname $TM_FILEPATH`
open `basename $TM_FILEPATH`.ps

I have it bound to Shift+Splat+P.
It requires Enscript (port install enscript)
The enscript command line above adds a nice heading ( -G ), and sets 
the margins to 1/2" all around. This allows me to print on drilled 
paper two-sided. After enscript creates the PostScript, the open 
command opens it in Preview, where you can print it.

Regards,
   JJ




More information about the textmate mailing list