[R] Best use of LaTeX listings package for pretty printing R code

Anupam Tyagi AnupTyagi at yahoo.com
Tue Sep 26 05:33:04 CEST 2006

Frank E Harrell Jr <f.harrell <at> vanderbilt.edu> writes:

> This is what I have been using.  Does anyone have a better way?  In 
> particular I would like to see letters in comment strings not stretched 
> so much.  Thanks -Frank

It may be possible to pass on all comments to a verbatim like environment inside
the listings environment, by defining and redefining the preamble to listings. I
hope it does not interfere with something else in LaTeX. Anupam.

More information about the R-help mailing list