comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: linux enscript?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: linux enscript? [message #32550 is a reply to message #32549] Tue, 15 October 2002 12:55 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 15 Oct 2002 11:38:57 -0700, Bruce Bowler wrote:

> On Tue, 15 Oct 2002 12:49:39 -0400, savoie put fingers to keyboard and
> said:
>
>
>> Andrew Noymer <noymer@socrates.Berkeley.EDU> writes:
>>
>>> Bruce Bowler <bbowler@bigelow.org> writes:
>>>
>>>> Given that the "print the current pro file" from the IDLDE on Linux
>>>> is,
>>>
>>> M-x ps-spool-buffer-with-faces
>>
>>
>> That's almost what I said, but I didn't want to imply that the only
>> integrated development tool for IDL on *nix is emacs.
>>
>> But I use 'M-x ps-print-buffer-with-faces' And it's only pretty if you
>> use idlwave mode: <a href="http://www.idlwave.org">www.idlwave.org</a>
>
> (danger will robinson - what follows is probably really an emacs
> question - in case you can't tell, I'm used to using emacs as an editor,
> not a development environment)
>
> OK, I've downloaded idlwave and it seems OK so far. I opened one of my
> pro files and it nicely color coded everything and when I printed it it
> color coded stuff properly. Now, how do I get it to number the lines
> and print "2-up" when I hit the print button?

Try:

(setq ps-landscape-mode t
ps-spool-duplex t
ps-line-number t
ps-zebra-stripes t
ps-zebra-stripe-height 1)

in your .emacs. You can read about these variables in the Emacs
"Postscript Variables" info node, or the beginning of the ps-print.el lisp
file. You can even put background images behind your text, change the
headers, etc.

One caveat: the little printer button is bound to `print-buffer' which
comes from a separate piece of printing code (one of the joys and
frustrations of Emacs is the variety of packages available which do very
similar things). Either just "M-x ps-print-buffer-with-faces", or, for
bonus points, figure out how to change what the print-button calls.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_continents
Next Topic: new IDL book / neues deutschsprachiges IDL Buch (erstes?)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:43:23 PDT 2025

Total time taken to generate the page: 0.00489 seconds