]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/sweave.module
Backport to generate_contributions.py
[lyx.git] / lib / layouts / sweave.module
index a6821ac49a92d7a06969ff0827bae6ff745aece6..94c1c29dd3ee39a2c909bbf58917e3e852133ba9 100644 (file)
@@ -1,15 +1,17 @@
 #\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
+#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 34
 OutputType             literate
 OutputFormat           sweave
 
@@ -17,21 +19,25 @@ 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
        LatexName             dummy
        Margin                static
-       ParSep                0.4
-       TopSep                0.4
-       BottomSep             0.4
-       ItemSep               0.4
        Align                 Left
        AlignPossible         Block, Left, Right, Center
        NewLine               0
        FreeSpacing           1
        PassThru              1
        ParbreakIsNewline     1
+       Spellcheck            0
        ## What is LabelType used for?
        LabelType             Static
        TextFont
@@ -59,7 +65,9 @@ InsetLayout "Sweave Options"
          Size                Small
        EndFont
        MultiPar              false
-       PassThru              true
+       PassThru              1
+       ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
@@ -79,7 +87,9 @@ InsetLayout "S/R expression"
          Size                Small
        EndFont
        MultiPar              false
-       PassThru              true
+       PassThru              1
+       ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
@@ -99,7 +109,9 @@ InsetLayout "Sweave Input File"
          Size                Small
        EndFont
        MultiPar              false
-       PassThru              true
+       PassThru              1
+       ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End