]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/sweave.module
Backport to generate_contributions.py
[lyx.git] / lib / layouts / sweave.module
index d579fb5897b1f5e5265abb6d11a4f0e1f41d6684..94c1c29dd3ee39a2c909bbf58917e3e852133ba9 100644 (file)
@@ -1,32 +1,43 @@
-#\DeclareLyXModule[Sweave.sty]{Sweave - S/R literate programming}
+#\DeclareLyXModule[sweave->latex]{Sweave}
 #DescriptionBegin
-#Allows to use the statistical language S/R as a literate programming tool - Sweave.
+#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
 
-# Within the chunk, lines are separated by newlines (Ctrl-Return)!
 
 # 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 11
-OutputType              literate
-#OutputFormat           sweave
+Format 34
+OutputType             literate
+OutputFormat           sweave
+
+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
@@ -54,7 +65,9 @@ InsetLayout "Sweave Options"
          Size                Small
        EndFont
        MultiPar              false
-       PassThru              true
+       PassThru              1
+       ParbreakIsNewline     1
+       Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
 End
@@ -74,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
@@ -94,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