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

From: Neil McLeod <neil.a.mcleod_at_gmail.com>
Date: Tue 16 Jan 2007 - 05:49:53 GMT

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 might also want to check out xtable (http://cran.r-project.org/src/contrib/Descriptions/xtable.html), which allows R to output LaTeX that can be pasted into your .tex file.

On 1/15/07, Tim Calkins <tcalkins@gmail.com> wrote:
>
> Consider using the fancyvrb package if you need additional customization.
>
> On 1/16/07, Benjamin Dickgiesser <dickgiesser@gmail.com> 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
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> Tim Calkins
> 0406 753 997
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Ubuntu Linux 6.06 (Dapper Drake)

	[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Jan 16 16:55:44 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 Tue 16 Jan 2007 - 07:30:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.