So we take what's in the first Chunk paragraph, strip off the << and >>=
delimiters, and put that into the argument of the Chunk inset. Then we
take everything up to the last Chunk paragraph, put that as a sequence
of paragraphs into the Chunk inset, and discard the last Chunk
paragraph. Yes?
Richard
On 05/23/2013 12:11 PM, Liviu Andronic wrote:
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 <[email protected]> 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