Skip to content
Prev 47393 / 63424 Next

Sweave trims console output in "tex" mode

On 01/03/2014 01:06 PM, Duncan Murdoch wrote:
Thanks. In the future, I'll quote at least full sentences and everything 
they refer to, to avoid confusion and make sure that context is maintained.
Indeed, it only makes a difference for code that generates large 
portions of LaTeX (such as tikzDevice).
I agree, given this data and considering that trimming the terminal 
newline can be considered a feature. Perhaps comments are the only use 
case where the newline is really important. But then I don't see how to 
reliably detect comments, as the catcode for % can be changed, e.g., in 
a verbatim environment. I'll consider printing a \relax after the 
comment in tikzDevice, this should be robust and sufficient.


-Kirill