From: Jim Freeze Date: 2003-03-22T02:32:19+09:00 Subject: Re: [Ruby] Re: Ruby & LaTeX On Saturday, 22 March 2003 at 2:15:41 +0900, Walter Cazzola wrote: > On Sat, 22 Mar 2003, Jim Freeze wrote: > > > > Dear Ruby Experts, > > > I'm new to Ruby notwithstanding that I have the following silly problem: > > > I have to list some ruby code in a paper I'm writing by using LaTeX, I > > > would like to pretty print such a code but both listings.sty and > > > lgrinds.sty (two LaTeX styles for pretty printing list of code) do not > > > support the ruby language. > > > Are you looking for syntax color highlighting? I haven't had the need for > > a Ruby pretty print tool that arranged {} or do/ends, unlike what > > is common with {} in C. > > > If you don't need syntax highlighting, then you may want to check > > out fancyverbatim. > > 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? The only thing I can think of is to use vim's conversion to html, then a html2latex converter. I have not done the latter recently, but vim does a good job and supports ruby. -- Jim Freeze ---------- It looks like blind screaming hedonism won out.