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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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