On Sat, 22 Mar 2003, Walter Cazzola wrote: > On Fri, 21 Mar 2003, ahoward wrote: > > > > Unfortunately, I'm looking for syntax highlighting and not for > > > keywordis/blocks alignment. I want something that automatically prints > > > ruby keywords in boldface, comments in italics and so on. > > > > Of course inside LaTeX documents, do you know a script that do that > > > without writing it by myself? > > > vim can export ruby code to html - doing all of the above. i'm > > guessing that there is something which could convert html to latex. > > > for f in *.rb; do gvim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" $f; done > > > the results are really nice. google("html2latex")[0] is http://html2latex.sourceforge.net/ That is ruby pseudocode BYW, I don't have a tool to do that. :-) html2latex is Perl based. It is left as an exercise for the reader to translate it into ruby :-) Hugh