]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/sweave.module
- theorems-without-preamble.inc: new file to provide theorem environments without...
[lyx.git] / lib / layouts / sweave.module
index a77fd1e09b552a58d25ffba6571f6e894202d67e..4f600ed20fd359229738114e0cc74f301617db22 100644 (file)
@@ -1,15 +1,17 @@
 #\DeclareLyXModule[sweave->latex]{Sweave}
 #DescriptionBegin
 #Allows to use the statistical language S/R as a literate programming tool via Sweave package.
+#See sweave.lyx in examples.
 #DescriptionEnd
 #Category: literate
+#Excludes: lilypond
 
 
 # To add :
 # - \setkeys{Gin}{width=0.8\textwidth} How to add such a "beast"? This is used to define
 #   the size of produced plots.
 
-Format 30
+Format 35
 OutputType             literate
 OutputFormat           sweave
 
@@ -17,6 +19,12 @@ ClassOptions
        Other          "noae"
 End
 
+AddToPreamble
+       <<echo=F>>=
+         if(exists("ls.enc")) options(encoding=ls.enc)
+       @
+EndPreamble
+
 Style Chunk
        Category              Sweave
        LatexType             Paragraph
@@ -28,6 +36,7 @@ Style Chunk
        FreeSpacing           1
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        ## What is LabelType used for?
        LabelType             Static
        TextFont
@@ -40,7 +49,7 @@ Style Scrap
        ObsoletedBy           Chunk
 End
 
-InsetLayout "Sweave Options"
+InsetLayout "Flex:Sweave Options"
        LabelString           "Sweave opts"
        LatexType             Command
        LaTexName             SweaveOpts
@@ -57,11 +66,12 @@ InsetLayout "Sweave Options"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
 
-InsetLayout "S/R expression"
+InsetLayout "Flex:S/R expression"
        LabelString           "S/R expr"
        LatexType             Command
        LaTexName             Sexpr
@@ -78,11 +88,12 @@ InsetLayout "S/R expression"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
 
-InsetLayout "Sweave Input File"
+InsetLayout "Flex:Sweave Input File"
        LabelString           "Sweave Input File"
        LatexType             Command
        LaTexName             SweaveInput
@@ -99,6 +110,7 @@ InsetLayout "Sweave Input File"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End