]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/sweave.module
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / sweave.module
index 11b9e35b255c9af658602c81bc734064c764eff5..e8583d685060bb2c0b8bf3039d51c9804b425068 100644 (file)
@@ -1,12 +1,20 @@
 #\DeclareLyXModule[sweave->latex,fancyvrb.sty]{Sweave}
+#\DeclareCategory{Literate Programming}
 #DescriptionBegin
 #Allows to use the statistical language S/R as a literate programming tool via the Sweave() function.
-#See sweave.lyx in examples.
+#For more info see the LyX example file sweave.lyx.
 #DescriptionEnd
-#Category: literate
 #Excludes: lilypond
 
-Format 35
+Format 99
+
+Input litinsets.inc
+
+Counter chunk
+       GuiName "Knitr Chunk"
+    InitialValue 2
+End
+
 OutputType             literate
 OutputFormat           sweave
 
@@ -20,32 +28,6 @@ AddToPreamble
        @
 EndPreamble
 
-Style Chunk
-       Category              Sweave
-       LatexType             Paragraph
-       LatexName             dummy
-       Margin                static
-       Align                 Left
-       AlignPossible         Block, Left, Right, Center
-       TopSep                0.7
-       BottomSep             0.7
-       NewLine               0
-       FreeSpacing           1
-       PassThru              1
-       ParbreakIsNewline     1
-       Spellcheck            0
-       ## What is LabelType used for?
-       LabelType             Static
-       TextFont
-         Color               latex
-         Family              Typewriter
-       EndFont
-End
-
-Style Scrap
-       ObsoletedBy           Chunk
-End
-
 InsetLayout "Flex:Sweave Options"
        LabelString           "Sweave opts"
        LatexType             Command
@@ -66,6 +48,8 @@ InsetLayout "Flex:Sweave Options"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          0
 End
 
 InsetLayout "Flex:S/R expression"
@@ -110,4 +94,6 @@ InsetLayout "Flex:Sweave Input File"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          1
 End