commit a50c0f7d138e010065e45141afb26378f1e56c92
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Mon Mar 16 18:43:51 2015 +0100

    Add proper importers for Sweave and knitr.
    
    Fixes bug #8734.

diff --git a/lib/configure.py b/lib/configure.py
index b81ed6e..4493c15 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -735,7 +735,9 @@ def checkConverterEntries():
     path, t2l = checkProg('a LaTeX/Noweb -> LyX converter', [in_binary_subdir, 
in_binary_subdir + version_suffix, in_binary_dir, in_binary_dir + 
version_suffix, 'tex2lyx' + version_suffix, 'tex2lyx'],
         rc_entry = [r'''\converter latex      lyx        "%% -f $$i $$o"       
""
 \converter latexclipboard lyx        "%% -fixedenc utf8 -f $$i $$o"    ""
-\converter literate   lyx        "%% -n -m noweb -f $$i $$o"   ""'''], 
not_found = 'tex2lyx')
+\converter literate   lyx        "%% -n -m noweb -f $$i $$o"   ""
+\converter sweave   lyx        "%% -n -m sweave -f $$i $$o"    ""
+\converter knitr   lyx        "%% -n -m knitr -f $$i $$o"      ""'''], 
not_found = 'tex2lyx')
     if path == '':
         logger.warning("Failed to find tex2lyx on your system.")
 
diff --git a/status.21x b/status.21x
index 2ee6a30..53b30e3 100644
--- a/status.21x
+++ b/status.21x
@@ -32,6 +32,7 @@ What's new
 
 - Add possibility via the layout file to prevent LyX from loading inputenc.
 
+- Add Sweave and knitr importers (bug 8734).
 
 
 * TEX2LYX IMPROVEMENTS

Reply via email to