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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] På vegne af Paul Murrell
> Sendt: 11. oktober 2007 10:13
> Til: Albert Sorribas Tello
> Cc: [email protected]
> 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
> [EMAIL PROTECTED]
> http://www.stat.auckland.ac.nz/~paul/
>
> ______________________________________________
> [email protected] 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.
>
______________________________________________
[email protected] 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.