Richard, I'm sorry but I gave you an imperfect equivalent for the inset example. The attached knitr-new.lyx is better, and also uses the argument inset. The relevant bits are:
\begin_layout Standard \begin_inset Flex Chunk status open \begin_layout Plain Layout \begin_inset Argument 1 status open \begin_layout Plain Layout TEST \end_layout \end_inset 2+2 \end_layout \end_inset \end_layout The code below is the old-style equivalent of the above. On Thu, May 23, 2013 at 5:17 PM, Richard Heck <rgh...@lyx.org> wrote: > \begin_layout Chunk > <<TEST>>= > \end_layout > > \begin_layout Chunk > 2+2 > \end_layout > > \begin_layout Chunk > @ > \end_layout > > Is it correct, then, to remove the first and last chunks, and leave only the > middle bit? > I do not have a good understanding of the LyX file format. Maybe JMarc knows better? Liviu
knitr-new.lyx
Description: Binary data