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

2007-01-16 Thread John C Frain
I often produce program listings in my LaTeX documents. I use the verbatim environment but use commands such as \addtolength{\oddsidemargin}{-0.95in} \addtolength{\evensidemargin}{-0.95in} to widen the printed page so that I do not have to resort to line continuation characters. This method

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

2007-01-16 Thread Michael Dewey
At 14:12 15/01/2007, Frank E Harrell Jr wrote: 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?

[R] How to format R code in LaTex documents

2007-01-15 Thread Benjamin Dickgiesser
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? Thank you! Benjamin __

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

2007-01-15 Thread Frank E Harrell Jr
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? Thank you! Benjamin Here's one way and

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

2007-01-15 Thread Charilaos Skiadas
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

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

2007-01-15 Thread Tim Calkins
Consider using the fancyvrb package if you need additional customization. On 1/16/07, Benjamin Dickgiesser [EMAIL PROTECTED] 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

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

2007-01-15 Thread Neil McLeod
Another alternative is to simply use LyX (www.lyx.org), which is a WYSIWYG (graphical) front-end for LaTeX. There's an code environment where you can paste everything right in, and it'll show in your PDF output exactly as it appears while editing. Also, not an answer to your question, but you