]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/sweave.module
forbid spellchecking in code layouts
[lyx.git] / lib / layouts / sweave.module
index 836ff73e857d5fd3b2d87513c879876a32af4e36..a09fd2a20ac22c52e93a318a74f49bda01cfb783 100644 (file)
@@ -1,6 +1,7 @@
 #\DeclareLyXModule[sweave->latex]{Sweave}
 #DescriptionBegin
-#Allows to use the statistical language S/R as a literate programming tool.
+#Allows to use the statistical language S/R as a literate programming tool via Sweave package.
+#See sweave.lyx in examples.
 #DescriptionEnd
 #Category: literate
 
@@ -9,7 +10,7 @@
 # - \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 31
 OutputType             literate
 OutputFormat           sweave
 
@@ -17,6 +18,13 @@ ClassOptions
        Other          "noae"
 End
 
+Preamble
+       <<echo=F>>=
+         if(exists("ls.dir")) setwd(ls.dir)
+         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
@@ -57,6 +66,7 @@ InsetLayout "Sweave Options"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
@@ -78,6 +88,7 @@ InsetLayout "S/R expression"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
@@ -99,6 +110,7 @@ InsetLayout "Sweave Input File"
        MultiPar              false
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End