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,
Alun
 
 
---------------------
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 <deepayan@stat.wisc.edu> 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
Sweave
> generated LaTeX code "floats" into the margin - and it looks ugly.
The text
> is blocked and fine... then there comes some flattering code running
over
> the margin... and blocked text again.
>
> Considering the LaTeX output, I guess that Sweave puts the source
code
> somehow in LaTeX-boxes and I suppose there is a place where I could
change
> the width of the source code boxes (At a certain point, there is a
break,
> 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:
http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html

-Deepayan

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html



**********************************************************************
*****   IMPORTANT INFORMATION    *****
This document should be read only by those persons to whom it is 
addressed and its content is not intended for use by any other 
persons.  If you have received this message in error, please notify 
us immediately.  Please also destroy and delete the message from 
your computer.  Any unauthorised form of reproduction of this message 
is strictly prohibited.

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]]


