From maechler at stat.math.ethz.ch  Fri Jan  3 18:37:32 2014
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri, 3 Jan 2014 18:37:32 +0100
Subject: [Rd] Sweave trims console output in "tex" mode
In-Reply-To: <52C6966B.9030305@gmail.com>
References: <52C5FEAF.5020708@ivt.baug.ethz.ch> <52C60835.8060605@gmail.com>
	<52C60A17.1040208@ivt.baug.ethz.ch> <52C60B71.3090803@gmail.com>
	<52C60C86.30702@ivt.baug.ethz.ch>
	<21190.35234.470149.759415@stat.math.ethz.ch>
	<52C6966B.9030305@gmail.com>
Message-ID: <21190.62812.358759.720694@stat.math.ethz.ch>

>>>>> Duncan Murdoch <murdoch.duncan at gmail.com>
>>>>>     on Fri, 3 Jan 2014 05:52:27 -0500 writes:

    > On 14-01-03 4:57 AM, Martin Maechler wrote:
    >>>>>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch> on
    >>>>>>> Fri, 3 Jan 2014 02:04:06 +0100 writes:
    >> 
    >> > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> 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.
    >> 
    >> > True. On the other hand, I cannot imagine that >
    >> "results=tex" is useful at all without >
    >> "strip.white=FALSE". If the strip.white option would >
    >> auto-adjust, things would "just work". Anyway, I'm not a
    >> > very active user of Sweave.
    >> 
    >> I think in this case, it would be quite useful if
    >> strip.white got a new default, say "adaptive", which
    >> would becomde FALSE for 'results=tex'.
    >> 
    >> Otherwise, for "safety", we'd have to recommend that
    >> 'results=tex' is always combined with strip.white=FALSE,
    >> which I'd find quite inconvenient.

    > Old documents could change if you did that, and that's a
    > bad thing.

    > As I told Kirill (and as he rudely deleted when he quoted
    > me), I use results=tex frequently, and I had never noticed
    > a problem with this.  In my usage (and I'd guess in most
    > people's) I never output multiple paragraphs in paragraph
    > mode from a code chunk.  I would normally just write that
    > in the LaTeX part of the document.  The results=tex usage
    > is for the case where I am constructing complicated LaTeX
    > macros (e.g. for tables), that are too tedious to type by
    > hand.

    > I can imagine cases where I would output text in paragraph
    > mode, and I guess Kirill was trying to do that, but they
    > are rare, and it would cost less for the users of those
    > rare cases to change the strip.white default than it would
    > for everyone else to do it.

    > Duncan Murdoch

I now agree.  Thanks a lot, Duncan, for the extra statistical
information you've collected about this.

Martin Maechler



[Rd] Sweave trims console output in "tex" mode
Martin Maechler