From: Richard Heck Date: Sat, 1 Jun 2013 21:42:36 +0000 (-0400) Subject: Use counter for new chunk insets, and set it to 2 in knitr and X-Git-Tag: 2.1.0beta1~77 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4106fe37ac3afd6179d90f936512941d6920242e;p=features.git Use counter for new chunk insets, and set it to 2 in knitr and sweave modules. --- diff --git a/lib/layouts/knitr.module b/lib/layouts/knitr.module index e7ccb34222..c71897969c 100644 --- a/lib/layouts/knitr.module +++ b/lib/layouts/knitr.module @@ -7,7 +7,13 @@ #Excludes: lilypond | sweave Format 45 + Input litinsets.inc + +Counter chunk + InitialValue 2 +End + OutputType literate OutputFormat knitr diff --git a/lib/layouts/litinsets.inc b/lib/layouts/litinsets.inc index 4f95019451..4829889828 100644 --- a/lib/layouts/litinsets.inc +++ b/lib/layouts/litinsets.inc @@ -8,34 +8,39 @@ Format 45 +Counter chunk + PrettyFormat "Chunk ##" +End + InsetLayout "Flex:Chunk" - LabelString "Chunk" - LatexType none - LyXType Custom - RightDelim
@ - 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 >>=
- EndArgument + LabelString "Chunk" + LatexType none + LyXType Custom + Counter chunk + RightDelim
@ + 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 >>=
+ EndArgument End diff --git a/lib/layouts/sweave.module b/lib/layouts/sweave.module index dd0e642ef1..56123d4660 100644 --- a/lib/layouts/sweave.module +++ b/lib/layouts/sweave.module @@ -7,7 +7,13 @@ #Excludes: lilypond Format 45 + Input litinsets.inc + +Counter chunk + InitialValue 2 +End + OutputType literate OutputFormat sweave