Re: [R] R commands formating for LaTeX

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew Robinson (andrewr@uidaho.edu)
Date: Tue 23 Mar 2004 - 03:45:03 EST


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


About this list Date view Thread view Subject view Author view Attachment view

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