[R] Adding vertical space before and after Sweave chunk

Duncan Murdoch murdoch.duncan at gmail.com
Thu Jul 14 02:13:48 CEST 2011


On 13/07/2011 7:14 PM, Mark Heckmann wrote:
> I would like to have a bigger default space in front of and behind every Sweave chunk.
> I have seen that space between input and output is removed as follows:
>
> \fvset{listparameters={\setlength{\topsep}{0pt}}}
> \renewenvironment{Schunk}{\vspace{\topsep}}{\vspace{\topsep}}
>
> Still, I can't figure out how to add vertical space before and after the Sweave chunk.
> Can someone help?
>

"0pt" standard for "zero points".  Use a bigger number if you want a 
bigger space, e.g. 20pt.

Duncan Murdoch



More information about the R-help mailing list