Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
[Posted and mailed] In article <8ftv7s$1eno$1@pukkie.phys.uu.nl>, pit@hst33127.phys.uu.nl (Peter Suetterlin) writes: > Hi group! > > Does anyone here know a printing program that knows about the IDL > syntax an can produce nice-looking printouts (e.g. grey comments, bold > keywords etc.)? > > I'm working on Unix, PostScript output would be preferred... I've written an IDL filter for the very nice a2ps program http://www-inf.enst.fr/~demaille/a2ps/ It comes with the a2ps distribution. I haven't updated the filter for quite awhile, but it will cover most of the IDL keywords and functions. You can create a Postscript file with a2ps -E idl -o file.ps file.pro a2ps has many other options available as well. Regards, --bob -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ Robert S. Mallozzi 256-544-0887 Mail Code SD 50 http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Peter Suetterlin wrote: > > In article <392282D6.E5443B29@mpipsykl.mpg.de>, > Benno Puetz <puetz@mpipsykl.mpg.de> writes: > >>> Does anyone here know a printing program that knows about the IDL >>> syntax an can produce nice-looking printouts (e.g. grey comments, bold >>> keywords etc.)? > >> EMACS + IDLWAVE mode > > Thanks, I'm using that already, BUT: > > Emacs just PostScript-Prints the (coloured) buffer, and that does not > look very nice on a BW-printer.... You can change the faces emacs uses to fontify special sections of the code. E.g. here I've changed the colors: (set-face-foreground font-lock-comment-face "FireBrick") (set-face-foreground font-lock-string-face "DarkOrchid") (set-face-foreground font-lock-keyword-face "DarkGreen") (set-face-foreground font-lock-function-name-face "Navy") (set-face-foreground font-lock-variable-name-face "Magenta") (set-face-foreground font-lock-reference-face "DarkSlateGray") Obviously, you'd prefer to use non-color options such as: (make-face-bold font-lock-function-name-face) but see make-face-bold-italic and all the other face editing commands available. JD -- J.D. Smith |*| WORK: (607) 255-5842 Cornell University Dept. of Astronomy |*| (607) 255-6263 304 Space Sciences Bldg. |*| FAX: (607) 255-5875 Ithaca, NY 14853 |*|
In article <392282D6.E5443B29@mpipsykl.mpg.de>, Benno Puetz <puetz@mpipsykl.mpg.de> writes: >> Does anyone here know a printing program that knows about the IDL >> syntax an can produce nice-looking printouts (e.g. grey comments, bold >> keywords etc.)? > EMACS + IDLWAVE mode Thanks, I'm using that already, BUT: Emacs just PostScript-Prints the (coloured) buffer, and that does not look very nice on a BW-printer.... Peter PS: Please! don't post HTML! -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter Sterrenkundig Instituut Utrecht Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl ____________________________________________________________ ______________
Peter Suetterlin wrote: &nbsp; Hi group! Does anyone here know a printing program that knows about the IDL syntax an can produce nice-looking printouts (e.g. grey comments, bold keywords etc.)? &nbsp; EMACS +&nbsp;<a href="http://www.strw.leidenuniv.nl/~dominik/Tools/idlwave/">IDLWAVE&nbsp;mode &nbsp; --&nbsp; Benno Puetz Kernspintomographie Max-Planck-Institut f. Psychiatrie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; Tel.: +49-89-30622-413 Kraepelinstr. 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax : +49-89-30622-520 80804 Muenchen, Germany &nbsp;