[R] How can I obtain a boxed sweave output within Latex?
Frede Aakmann Tøgersen
FredeA.Togersen at agrsci.dk
Thu Oct 11 13:30:18 CEST 2007
Why not use the obvious e.g.
\RecustomVerbatimEnvironment{Sinput}{Verbatim}%
{formatcom=\color{red},frame=single,framerule=2pt}
\RecustomVerbatimEnvironment{Soutput}{Verbatim}%
{formatcom=\color{blue},frame=single,framerule=2pt}
See http://www.ctan.org/tex-archive/macros/latex/contrib/fancyvrb/ and the fancyvrb.pdf for different options.
Med venlig hilsen
Frede Aakmann Tøgersen
> -----Oprindelig meddelelse-----
> Fra: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] På vegne af Paul Murrell
> Sendt: 11. oktober 2007 10:13
> Til: Albert Sorribas Tello
> Cc: r-help at r-project.org
> Emne: Re: [R] How can I obtain a boxed sweave output within Latex?
>
> Hi
>
>
> Albert Sorribas Tello wrote:
> > This question is about including code and R results in Latex trough
> > Sweave. It works fine and is of great help. Now may
> question is how to
> > get the code and the output computed by R within a frame in Latex.
> > Does any one have an idea on that. I tried \fbox, etc. but
> it seems to
> > have problems with the code chunk generation of Sweave and
> I ger errors.
> > I would appreciate any suggestion. I'll writting a statistical book
> > and it would be very useful to have the R stuff boxed to
> highligth it.
>
>
> Try the boxedminipage package.
>
> Paul
>
>
> > Thanks for any help.
> >
> >
>
>
> --
> Dr Paul Murrell
> Department of Statistics
> The University of Auckland
> Private Bag 92019
> Auckland
> New Zealand
> 64 9 3737599 x85392
> paul at stat.auckland.ac.nz
> http://www.stat.auckland.ac.nz/~paul/
>
> ______________________________________________
> R-help at r-project.org 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.
>
More information about the R-help
mailing list