On Wed, Nov 22, 2006 at 12:08:05PM +0100, Gregor Gorjanc wrote:
> There were some attempts[3, 4] to fuse Sweave with LyX. Proposed "hack"
> is a nice one and documented in Extended manual, but it is a hack. I
> would like to provide direct support for Sweave in LyX without modifying
> preference files/menus. Do you see some value in helping me with this -
> I am willing to learn and I think that this should not be much of a work
> to do.
> 
> Up to now I applied the following and I got things working - I added
> this to preference file or appropriately modifying the menus:
> 
> \converter literate latex "R CMD Sweave $$i"
>                           "parselog=listerrors g"
> \converter literate program "R CMD Stangle $$i"
>                             "originaldir,parselog=listerrors g"
> 
> I also tweaked system configure.py (preferable if this should be in
> future LyX) getting the same effect. However, I am not satisfied with
> this since with above changes user has to tweak the files/menus and I do
> not have the support to import and export Sweave files and adding proper
> entries in configure.py  causes Noweb to disapear - since I use literate
> for Sweave.

> Is there any way to provide functionality for "several" literate
> systems - if there are apropriate tools on the system of course? 

The usual trick is to define an additional target format 'latex2' or
maybe 'latexSweave' 

Andre'

Reply via email to