Re: [R] Sweave/margin

From: Alun Pope <>
Date: Mon 21 Mar 2005 - 17:23:42 EST

You can also use longish lines with smaller text by the following device:  

\usepackage{fancyvrb} %in the preamble (ie before \begin{document})  

\fvset{fontsize=\small} %I think this can be changed during the document if you want, but I like it in the preamble too.  

Maybe the fancyvrb package has other ideas you can try.  

Hope this helps,

Dr Alun Pope  

Group Credit
St.George Bank
Level 9
182 George St
Sydney NSW 2000  

(T): 02 9236 1442
(F): 02 9236 1570

>>> Deepayan Sarkar <> 19/03/2005 9:01:41 am >>>

On Friday 18 March 2005 15:49, Katharina Hoff wrote:
> Hi!
> I am currently using Sweave for writing my bachelor thesis - and I
have a
> problem:
> I am using a LaTeX style (report) with quite big margin spaces. The
> generated LaTeX code "floats" into the margin - and it looks ugly.
The text
> is blocked and fine... then there comes some flattering code running
> the margin... and blocked text again.
> Considering the LaTeX output, I guess that Sweave puts the source
> somehow in LaTeX-boxes and I suppose there is a place where I could
> the width of the source code boxes (At a certain point, there is a
> closely before the text would drift out of the page. Then the code
> continues in new lines below.)
> Does anyone know where I could change or insert the box width?

If I understand your problem correctly, you might want to try putting

options(width = 40)

at the top of your first chunk.

> Or probably I am totally wrong and someone knows another solution...
> Hoping for help - and excuse if anyone asked this stupid question
before, I
> did not find it in the archive,

It's in the Sweave FAQ:

-Deepayan mailing list PLEASE do read the posting guide!

St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, PACT Accountants Investment Group Pty Limited AFSL 240693, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide! Received on Mon Mar 21 17:29:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:51 EST