]> git.lyx.org Git - features.git/commitdiff
Fine tune AddToToc options for Sweave, Knitr
authorGuillaume Munch <gm@lyx.org>
Sun, 8 Jan 2017 18:19:25 +0000 (19:19 +0100)
committerGuillaume Munch <gm@lyx.org>
Mon, 9 Jan 2017 17:22:22 +0000 (18:22 +0100)
lib/layouts/knitr.module
lib/layouts/litinsets.inc
lib/layouts/sweave.module

index 246c90ac319e5588e74495d56108fb1cb1021f1c..17c2dd2465753868533e187bea7bd84d365b88a2 100644 (file)
@@ -37,6 +37,8 @@ InsetLayout "Flex:Sweave Options"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          1
 End
 
 InsetLayout "Flex:S/R expression"
index 7f72ba3cffecec56687fa4e1f92cf3632fab8936..886496ff19068ae1e73d924187e3f074850d7212 100644 (file)
@@ -47,6 +47,7 @@ InsetLayout "Flex:Chunk"
             LeftDelim     <<
             RightDelim    >>=<br/>
                        IsTocCaption  1
+                       AutoInsert    1
     EndArgument
     ResetsFont            false
     ForceOwnlines         true
index 5b7799b531d5da09a4c67ce486359dc121b6af8d..6ddac9f9ee00a7c2e6aad22e22d9725448daf36e 100644 (file)
@@ -47,6 +47,8 @@ InsetLayout "Flex:Sweave Options"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          0
 End
 
 InsetLayout "Flex:S/R expression"
@@ -91,4 +93,6 @@ InsetLayout "Flex:Sweave Input File"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          1
 End