From murdoch.duncan at gmail.com  Fri Jan  3 01:59:29 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Thu, 02 Jan 2014 19:59:29 -0500
Subject: [Rd] Sweave trims console output in "tex" mode
In-Reply-To: <52C60A17.1040208@ivt.baug.ethz.ch>
References: <52C5FEAF.5020708@ivt.baug.ethz.ch> <52C60835.8060605@gmail.com>
	<52C60A17.1040208@ivt.baug.ethz.ch>
Message-ID: <52C60B71.3090803@gmail.com>

On 14-01-02 7:53 PM, Kirill M?ller wrote:
> On 01/03/2014 01:45 AM, Duncan Murdoch wrote:
>> You are running with the strip.white option set to TRUE.  That strips
>> blank lines at then beginning and end of each output piece.  Just set
>> strip.white=FALSE.
> Thanks, the code below works perfectly. I have also found the
> documentation in ?RweaveLatex .
>
> I'm not sure if the default setting is sensible for "results=tex",
> though.

But results=tex is not the default.  Having defaults for one option 
depend on the setting for another is confusing, so I think the current 
setting is appropriate.

> Has this changed in the recent past?

I don't think so; check the NEWS file or use svn blame on the source to 
be sure.

Duncan Murdoch

>
>
> -Kirill
>
>
> \documentclass{article}
> \begin{document}
> <<inline,echo=FALSE,results=tex,strip.white=FALSE>>=
> cat("a\n")
> cat("b\n \n")
> cat("c\nd")
> @
> \end{document}
>



[Rd] Sweave trims console output in "tex" mode
Duncan Murdoch