Paul Johnson wrote:

I've been using Lyx in conjunction with noweb and R to make
statistical writeups.  I've boiled this down to a pretty simple thing,
described here:

http://www.ku.edu/~pauljohn/latex/lyxAndSweave.txt

Could you please add these informations to LyX's wiki:

wiki.lyx.org

That would help other LyX users.

Is there a way I can automate the delivery of the preference

\converter "literate" "latex" "Rweave $$i" ""

with the lyx document itself, to save the users the re-configution problem?

Not together with the LyX-file. You can deliver a preferences file that contains the converter definition. (I attached an example.) The user has to copy this file to the folder ~/lyx/share/lyx and probably reconfigure or restart LyX (when it was open while the preferences file was copied), please test.

regards Uwe
### This file is part of
### ========================================================
###          LyX, The Document Processor
###
###          Copyright 1995 Matthias Ettrich
###          Copyright 1995-2001 The LyX Team.
###
### ========================================================

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save


#
# MISC SECTION ######################################
#

\preview_scale_factor 1.0

#
# SCREEN & FONTS SECTION ############################
#

\screen_zoom 120
\screen_font_roman "Times New Roman"
\screen_font_sans "Arial"
\screen_font_typewriter "Courier New"

#
# COLOR SECTION ###################################
#


#
# PRINTER SECTION ###################################
#


#
# EXPORT SECTION ####################################
#


#
# TEX SECTION #######################################
#


#
# FILE SECTION ######################################
#


#
# ASCII EXPORT SECTION ##############################
#


#
# SPELLCHECKER SECTION ##############################
#

\spell_command "ispell"

#
# LANGUAGE SUPPORT SECTION ##########################
#


#
# 2nd MISC SUPPORT SECTION ##########################
#


#
# FORMATS SECTION ##########################
#


#
# CONVERTERS SECTION ##########################
#
\converter "literate" "latex" "Rweave $$i" ""

Reply via email to