On Sat, Oct 12, 2013 at 4:58 AM, Liviu Andronic <landronim...@gmail.com> wrote: > Dear all, > I would suggest that we perform a minor redefinition of the new chunk inset. > > As I recently found out, in some instances LyX can place the inset on > the same line as some other LaTeX command (see attached): > \centering{}<<>>= > 2+2 #chunk > @ > > My patch would ensure that there is always a break between the inset > content and the surrounding LaTeX code. To my understanding there are > no downsides, as LaTeX simply ignores redundant empty lines. But the > upside is that in some instances compilation of Sweave/knitr documents > wouldn't break. > > With the attached patch applied, the above construct becomes: > \centering{} > <<>>= > 2+2 #chunk > @ > > and compilation proceeds without a hitch. > > What do you think? Regards,
Seems reasonable to me. Does anyone object? Scott