Set AddToToc for custom insets

* Fixme
* Todonotes
* Literate programming (sweave, knitr)
* Theorems
This commit is contained in:
Guillaume Munch 2015-11-18 01:35:14 +00:00
parent 3c9b62a69d
commit 3dcb71eaa2
8 changed files with 65 additions and 22 deletions

View File

@ -12,7 +12,9 @@
# Authors: Mark Edgington <edgimar@gmail.com> # Authors: Mark Edgington <edgimar@gmail.com>
# Jürgen Spitzmüller <spitz@lyx.org> # Jürgen Spitzmüller <spitz@lyx.org>
Format 58 Format 59
OutlinerName fixme "Fixme"
# #
# List of FIXMEs # List of FIXMEs
@ -59,6 +61,8 @@ InsetLayout Flex:Fixme_Note
Size Small Size Small
EndFont EndFont
MultiPar false MultiPar false
AddToToc fixme
IsTocCaption 1
Argument 1 Argument 1
LabelString "Options" LabelString "Options"
MenuString "Fixme Note Options|s" MenuString "Fixme Note Options|s"
@ -103,6 +107,7 @@ InsetLayout Flex:Fixme_Note_(Targeted)
LabelString "Note" LabelString "Note"
Mandatory 1 Mandatory 1
MenuString "Fixme Note|x" MenuString "Fixme Note|x"
IsTocCaption 1
Tooltip "Insert the FIXME note here" Tooltip "Insert the FIXME note here"
AutoInsert 1 AutoInsert 1
EndArgument EndArgument
@ -144,6 +149,7 @@ InsetLayout Flex:Fixme_Note_(Multipar)
Argument 2 Argument 2
LabelString "Summary" LabelString "Summary"
Mandatory 1 Mandatory 1
IsTocCaption 1
MenuString "Fixme Summary" MenuString "Fixme Summary"
Tooltip "Insert a summary of the FIXME note here" Tooltip "Insert a summary of the FIXME note here"
AutoInsert 1 AutoInsert 1
@ -184,6 +190,7 @@ InsetLayout Flex:Fixme_Note_(Multipar_Targeted)
EndArgument EndArgument
Argument 2 Argument 2
LabelString "Summary" LabelString "Summary"
IsTocCaption 1
Mandatory 1 Mandatory 1
MenuString "Fixme Summary" MenuString "Fixme Summary"
Tooltip "Insert a summary of the FIXME note here" Tooltip "Insert a summary of the FIXME note here"

View File

@ -6,12 +6,14 @@
# Note that this file is included in sweave.module, # Note that this file is included in sweave.module,
# knitr.module and noweb.module. # knitr.module and noweb.module.
Format 58 Format 59
Counter chunk Counter chunk
PrettyFormat "Chunk ##" PrettyFormat "Chunk ##"
End End
OutlinerName literate "Literate programming"
InsetLayout "Flex:Chunk" InsetLayout "Flex:Chunk"
LabelString "Chunk" LabelString "Chunk"
LatexType none LatexType none
@ -36,12 +38,15 @@ InsetLayout "Flex:Chunk"
Spellcheck 0 Spellcheck 0
FreeSpacing true FreeSpacing true
ForceLTR true ForceLTR true
AddToToc literate
IsTocCaption 0
Argument 1 Argument 1
Mandatory 1 Mandatory 1
LabelString "Options" LabelString "Options"
Tooltip "Options" Tooltip "Options"
LeftDelim << LeftDelim <<
RightDelim >>=<br/> RightDelim >>=<br/>
IsTocCaption 1
EndArgument EndArgument
ResetsFont false ResetsFont false
ForceOwnlines true ForceOwnlines true

View File

@ -22,7 +22,7 @@
# - Case (by inclusion) # - Case (by inclusion)
# We need separate counters for each theorem-like style. # We need separate counters for each theorem-like style.
Format 58 Format 59
Counter theorem Counter theorem
End End
Counter corollary Counter corollary
@ -50,6 +50,8 @@ End
Counter claim Counter claim
End End
OutlinerName thm "Definitions & Theorems"
Style Theorem Style Theorem
Category Reasoning Category Reasoning
Margin First_Dynamic Margin First_Dynamic
@ -57,9 +59,12 @@ Style Theorem
LatexName thm LatexName thm
NextNoIndent 1 NextNoIndent 1
ResetArgs 1 ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1 Argument 1
LabelString "Additional Theorem Text" LabelString "Additional Theorem Text"
Tooltip "Additional text appended to the theorem header" Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument EndArgument
LabelSep xx LabelSep xx
ParIndent MMM ParIndent MMM

View File

@ -20,7 +20,9 @@
# - Proof # - Proof
# - Case (by inclusion) # - Case (by inclusion)
Format 58 Format 59
OutlinerName thm "Definitions & Theorems"
Style Theorem Style Theorem
Category Reasoning Category Reasoning
@ -29,9 +31,12 @@ Style Theorem
LatexName thm LatexName thm
NextNoIndent 1 NextNoIndent 1
ResetArgs 1 ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1 Argument 1
LabelString "Additional Theorem Text" LabelString "Additional Theorem Text"
Tooltip "Additional text appended to the theorem header" Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument EndArgument
LabelSep xx LabelSep xx
ParIndent MMM ParIndent MMM

View File

@ -19,7 +19,9 @@
# - Claim # - Claim
# - Proof # - Proof
Format 58 Format 59
OutlinerName thm "Definitions & Theorems"
Style Theorem* Style Theorem*
Category Reasoning Category Reasoning
@ -30,9 +32,12 @@ Style Theorem*
LabelString "Theorem." LabelString "Theorem."
NextNoIndent 1 NextNoIndent 1
ResetArgs 1 ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1 Argument 1
LabelString "Additional Theorem Text" LabelString "Additional Theorem Text"
Tooltip "Additional text appended to the theorem header" Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument EndArgument
LabelSep xx LabelSep xx
ParIndent MMM ParIndent MMM

View File

@ -26,8 +26,9 @@
# - Note # - Note
Format 58 Format 59
OutlinerName thm "Definitions & Theorems"
Counter theorem Counter theorem
End End
@ -37,9 +38,12 @@ Style Theorem
LatexType Environment LatexType Environment
LatexName theorem LatexName theorem
NextNoIndent 1 NextNoIndent 1
AddToToc thm
IsTocCaption 1
Argument 1 Argument 1
LabelString "Name/Title" LabelString "Name/Title"
Tooltip "Alternative optional name or title" Tooltip "Alternative optional name or title"
IsTocCaption 1
EndArgument EndArgument
LabelSep xx LabelSep xx
ParIndent MMM ParIndent MMM
@ -259,6 +263,8 @@ Style Prob
LabelFont LabelFont
Series Bold Series Bold
EndFont EndFont
AddToToc thm
IsTocCaption true
End End
@ -288,6 +294,7 @@ Style Sol
Mandatory 1 Mandatory 1
LabelString "Label of Problem" LabelString "Label of Problem"
Tooltip "Label of the corresponding problem" Tooltip "Label of the corresponding problem"
InToc
EndArgument EndArgument
End End

View File

@ -20,7 +20,9 @@
# - Claim # - Claim
# - Case (by inclusion) # - Case (by inclusion)
Format 58 Format 59
OutlinerName thm "Definitions & Theorems"
Style Theorem Style Theorem
Category Reasoning Category Reasoning
@ -29,9 +31,12 @@ Style Theorem
LatexName thm LatexName thm
NextNoIndent 1 NextNoIndent 1
ResetArgs 1 ResetArgs 1
AddToToc thm
IsTocCaption 1
Argument 1 Argument 1
LabelString "Additional Theorem Text" LabelString "Additional Theorem Text"
Tooltip "Additional text appended to the theorem header" Tooltip "Additional text appended to the theorem header"
IsTocCaption 1
EndArgument EndArgument
LabelSep xx LabelSep xx
ParIndent MMM ParIndent MMM

View File

@ -8,7 +8,9 @@
# Authors: Stephen <stephen4mailinglists@googlemail.com> # Authors: Stephen <stephen4mailinglists@googlemail.com>
# Jürgen Spitzmüller <spitz@lyx.org> # Jürgen Spitzmüller <spitz@lyx.org>
Format 58 Format 59
OutlinerName todonotes "TODO"
# #
# List of TODOs # List of TODOs
@ -67,6 +69,8 @@ InsetLayout Flex:TODO_Note_(Margin)
MultiPar true MultiPar true
LatexType command LatexType command
LatexName todo LatexName todo
AddToToc todonotes
IsTocCaption 1
Argument 1 Argument 1
LabelString "Options" LabelString "Options"
MenuString "TODO Note Options|s" MenuString "TODO Note Options|s"