Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Martin Maechler
> Duncan Murdoch > on Fri, 3 Jan 2014 05:52:27 -0500 writes: > On 14-01-03 4:57 AM, Martin Maechler wrote: >>> Kirill Müller on >>> Fri, 3 Jan 2014 02:04:06 +0100 writes: >> >> > On 01/03/2014 01:59 AM, Duncan Murdoch wrote: >> But >> results=tex is n

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 03/01/2014 7:32 AM, Kirill Müller wrote: On 01/03/2014 01:06 PM, Duncan Murdoch wrote: > On 14-01-03 5:47 AM, Kirill Müller wrote: >> I'm sorry, I didn't mean to be rude. Do you prefer including the entire >> original message when replying? Or perhaps I misunderstood you when you >> wrote: > >

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
On 01/03/2014 01:06 PM, Duncan Murdoch wrote: On 14-01-03 5:47 AM, Kirill Müller wrote: I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: You don't need to include irrelevant material in your r

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 14-01-03 5:47 AM, Kirill Müller wrote: I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: You don't need to include irrelevant material in your reply, but you should include explanatory mater

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
On 14-01-03 4:57 AM, Martin Maechler wrote: Kirill Müller 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 >> confusi

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
I'm sorry, I didn't mean to be rude. Do you prefer including the entire original message when replying? Or perhaps I misunderstood you when you wrote: > Carriage returns usually don't matter in LaTeX, so I didn't even know about this option, though I use results=tex quite often. I had to look

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Duncan Murdoch
It's dishonest to quote me out of context. Duncan Murdoch On 14-01-03 3:40 AM, Kirill Müller wrote: On 01/03/2014 02:34 AM, Duncan Murdoch wrote: Carriage returns usually don't matter in LaTeX I'd rather say they do. One is like a space, two or more end a paragraph and start a new one. If new

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Martin Maechler
> Kirill Müller > 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 ap

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-03 Thread Kirill Müller
On 01/03/2014 02:34 AM, Duncan Murdoch wrote: Carriage returns usually don't matter in LaTeX I'd rather say they do. One is like a space, two or more end a paragraph and start a new one. If newlines are stripped away, the meaning of the TeX code can change, in some cases dramatically (e.g. if c

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-02 Thread Duncan Murdoch
On 14-01-02 8:04 PM, Kirill Müller wrote: 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 th

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-02 Thread Kirill Müller
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

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-02 Thread Duncan Murdoch
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 a

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-02 Thread Kirill Müller
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 ?RweaveLate

Re: [Rd] Sweave trims console output in "tex" mode

2014-01-02 Thread Duncan Murdoch
On 14-01-02 7:05 PM, Kirill Müller wrote: Hi In the example .Rnw file below, only the newline between c and d is visible in the resulting .tex file after running R CMD Sweave. What is the reason for this behavior? Newlines are important in LaTeX and should be preserved. In particular, this beha

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

2014-01-02 Thread Kirill Müller
Hi In the example .Rnw file below, only the newline between c and d is visible in the resulting .tex file after running R CMD Sweave. What is the reason for this behavior? Newlines are important in LaTeX and should be preserved. In particular, this behavior leads to incorrect LaTeX code gene