commit d1c1a4520c0c3d85b064475ac4b172b97cd09848
Author: Guillaume Munch <[email protected]>
Date:   Sun Jan 8 19:19:25 2017 +0100

    Fine tune AddToToc options for Sweave, Knitr
---
 lib/layouts/knitr.module  |    2 ++
 lib/layouts/litinsets.inc |    1 +
 lib/layouts/sweave.module |    4 ++++
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lib/layouts/knitr.module b/lib/layouts/knitr.module
index 246c90a..17c2dd2 100644
--- a/lib/layouts/knitr.module
+++ b/lib/layouts/knitr.module
@@ -37,6 +37,8 @@ InsetLayout "Flex:Sweave Options"
        Spellcheck            0
        FreeSpacing           true
        ForceLTR              true
+       AddToToc              literate
+       IsTocCaption          1
 End
 
 InsetLayout "Flex:S/R expression"
diff --git a/lib/layouts/litinsets.inc b/lib/layouts/litinsets.inc
index 7f72ba3..886496f 100644
--- a/lib/layouts/litinsets.inc
+++ b/lib/layouts/litinsets.inc
@@ -47,6 +47,7 @@ InsetLayout "Flex:Chunk"
             LeftDelim     <<
             RightDelim    >>=<br/>
                        IsTocCaption  1
+                       AutoInsert    1
     EndArgument
     ResetsFont            false
     ForceOwnlines         true
diff --git a/lib/layouts/sweave.module b/lib/layouts/sweave.module
index 5b7799b..6ddac9f 100644
--- a/lib/layouts/sweave.module
+++ b/lib/layouts/sweave.module
@@ -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

Reply via email to