]> git.lyx.org Git - features.git/commitdiff
Use counter for new chunk insets, and set it to 2 in knitr and
authorRichard Heck <rgheck@lyx.org>
Sat, 1 Jun 2013 21:42:36 +0000 (17:42 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 1 Jun 2013 21:42:36 +0000 (17:42 -0400)
sweave modules.

lib/layouts/knitr.module
lib/layouts/litinsets.inc
lib/layouts/sweave.module

index e7ccb342226cae7df1569a21d8e80af904601f49..c71897969c768da04e3bada78091b1fe292b0ac8 100644 (file)
@@ -7,7 +7,13 @@
 #Excludes: lilypond | sweave
 
 Format 45
+
 Input litinsets.inc
+
+Counter chunk
+    InitialValue 2
+End
+
 OutputType             literate
 OutputFormat           knitr
 
index 4f950194516deef6eb7afb5c2d93af05c47849ad..48298898288c8906ffbea97f90ce02b6722373cd 100644 (file)
@@ -8,34 +8,39 @@
 
 Format 45
 
+Counter chunk
+    PrettyFormat "Chunk ##"
+End
+
 InsetLayout "Flex:Chunk"
-        LabelString           "Chunk"
-        LatexType             none
-        LyXType               Custom
-        RightDelim            <br/>@
-        Decoration            Classic
-       Font
-         Color               latex
-         Family              typewriter
-       EndFont
-       #LabelFont
-         #Color               latex
-         #Size                Small
-       #EndFont
-        MultiPar              true
-       CustomPars            false
-       ForcePlain            true
-        PassThru              1
-        ParbreakIsNewline     1
-       KeepEmpty             true
-        Spellcheck            0
-        FreeSpacing           true
-        ForceLTR              true
-        Argument 1
-                Mandatory     1
-                LabelString   "Options"
-                Tooltip       "Options"
-                LeftDelim     <<
-                RightDelim    >>=<br/>
-        EndArgument
+    LabelString          "Chunk"
+    LatexType            none
+    LyXType              Custom
+    Counter              chunk
+    RightDelim           <br/>@
+    Decoration           Classic
+    Font
+      Color              latex
+      Family             typewriter
+    EndFont
+    #LabelFont
+      #Color              latex
+      #Size               Small
+    #EndFont
+      MultiPar            true
+    CustomPars            false
+    ForcePlain            true
+      PassThru            1
+      ParbreakIsNewline   1
+    KeepEmpty             true
+    Spellcheck            0
+    FreeSpacing           true
+    ForceLTR              true
+    Argument 1
+            Mandatory     1
+            LabelString   "Options"
+            Tooltip       "Options"
+            LeftDelim     <<
+            RightDelim    >>=<br/>
+    EndArgument
 End
index dd0e642ef138325a52428aefa3a3f5f8e14cba0a..56123d466008e27319b3db2d7a4188af05fb1892 100644 (file)
@@ -7,7 +7,13 @@
 #Excludes: lilypond
 
 Format 45
+
 Input litinsets.inc
+
+Counter chunk
+    InitialValue 2
+End
+
 OutputType             literate
 OutputFormat           sweave