Skip to content
Prev 138794 / 398506 Next

Sweave and extra line

On 06/03/2008 5:59 PM, Christophe Genolini wrote:
Here's some code I worked out a while ago:

% This removes the extra spacing after code and output chunks in Sweave,
% but keeps the spacing around the whole block.

\fvset{listparameters={\setlength{\topsep}{0pt}}}
\renewenvironment{Schunk}{\vspace{\topsep}}{\vspace{\topsep}}

Put this somewhere in your code before the first Sweave chunk.

Duncan Murdoch