Re: [R] How to format R code in LaTex documents

From: Charilaos Skiadas <>
Date: Mon 15 Jan 2007 - 14:31:48 GMT

On Jan 15, 2007, at 8:42 AM, Benjamin Dickgiesser wrote:

> Hi,
> I am planning on putting some R script in an appendix of a LaTex
> document. Can anyone recommend me a way of how to format it? Is there
> a way to keep all line breaks without having to insert \\ in every
> single line?

I think the LaTeX environments "lstlisting" and/or "verbatim" might do what you want.

> Thank you!
> Benjamin

Haris mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue Jan 16 01:45:09 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 15 Jan 2007 - 16:30:30 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.