The choice of the noweb or LaTeX syntax is irrelevant here; even if
you use SweaveSyntaxLatex, you have to either (1) put the Chunk
environment in the *second* paragraph and indent it, or (2) write the
R code in a TeX code environment and leave one blank line before <<>>=
(or \begin{Scode}{})

Regards,
Yihui
--
Yihui Xie <[email protected]>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, May 22, 2011 at 6:57 PM, Lucas <[email protected]> wrote:
> Yihui Xie <xie <at> yihui.name> writes:
>
>>
>> Hi,
>>
>> I think you can indent the chunk (Alt+Shift+Right) to keep it inside
>> the enumerate environment, however, I don't think it is possible to
>> put the chunk directly after \item if you use the Chunk environment,
>> i.e. you need to write something after \item, and the chunk can be put
>> in the next paragraph but still belongs to this \item.
> Thanks for the quick reply.
>
> Would it be possible to tell LyX to output the LaTeX (as opposed to noweb)
> Sweave syntax, or would this not solve my issue?
>
> --Lucas
>
>
>
>
>
>
>
>

Reply via email to