**From:** Andrew Robinson (*andrewr@uidaho.edu*)

**Date:** Tue 23 Mar 2004 - 03:45:03 EST

**Next message:**Marc Schwartz: "Re: [R] Setting the 'fig' graphic parameter"**Previous message:**Prof Brian Ripley: "Re: [R] Setting the 'fig' graphic parameter"**In reply to:**Rado Bonk: "[R] R commands formating for LaTeX"**Next in thread:**Harold Doran: "RE: [R] R commands formating for LaTeX"

Message-id: <200403220845.03079.andrewr@uidaho.edu>

Rado,

a simple solution is to use the verbatim environment in LaTeX:

\begin{verbatim}

... R input and output pasted here ...

\end{verbatim}

However, I very strongly recommend that you consider using Sweave instead.

Good luck,

Andrew

On Monday 22 March 2004 08:27, Rado Bonk wrote:

*> Dear R users,
*

*>
*

*> I have to include typical UNIX formated R commands and outputs into the
*

*> article using LaTeX.
*

*>
*

*> What is the easiest way to include R prompt commands and text outputs
*

*> (including messages) into LaTeX documents? Is there any template or
*

*> library?
*

*>
*

*> So far I'm trying to produce R commands in LaTeX using LaTeX general
*

*> format options.
*

*>
*

*> Thanks,
*

*>
*

*> Rado
*

*>
*

*> ______________________________________________
*

*> R-help@stat.math.ethz.ch mailing list
*

*> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
*

*> PLEASE do read the posting guide!
*

*> http://www.R-project.org/posting-guide.html
*

-- Andrew Robinson Ph: 208 885 7115 Department of Forest Resources Fa: 208 885 6226 University of Idaho E : andrewr@uidaho.edu PO Box 441133 W : http://www.uidaho.edu/~andrewr Moscow ID 83843 Or: http://www.biometrics.uidaho.edu No statement above necessarily represents my employer's opinion.______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

**Next message:**Marc Schwartz: "Re: [R] Setting the 'fig' graphic parameter"**Previous message:**Prof Brian Ripley: "Re: [R] Setting the 'fig' graphic parameter"**In reply to:**Rado Bonk: "[R] R commands formating for LaTeX"**Next in thread:**Harold Doran: "RE: [R] R commands formating for LaTeX"

*
This archive was generated by hypermail 2.1.3
: Fri 23 Apr 2004 - 18:36:39 EST
*