mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Set AddToToc for custom insets
* Fixme * Todonotes * Literate programming (sweave, knitr) * Theorems
This commit is contained in:
parent
3c9b62a69d
commit
3dcb71eaa2
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
@ -69,7 +74,7 @@ End
|
|||||||
|
|
||||||
Style Corollary
|
Style Corollary
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName cor
|
LatexName cor
|
||||||
LabelString "Corollary \thetheorem."
|
LabelString "Corollary \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -87,7 +92,7 @@ End
|
|||||||
|
|
||||||
Style Lemma
|
Style Lemma
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName lem
|
LatexName lem
|
||||||
LabelString "Lemma \thetheorem."
|
LabelString "Lemma \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -105,7 +110,7 @@ End
|
|||||||
|
|
||||||
Style Proposition
|
Style Proposition
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName prop
|
LatexName prop
|
||||||
LabelString "Proposition \thetheorem."
|
LabelString "Proposition \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -123,7 +128,7 @@ End
|
|||||||
|
|
||||||
Style Conjecture
|
Style Conjecture
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName conjecture
|
LatexName conjecture
|
||||||
LabelString "Conjecture \thetheorem."
|
LabelString "Conjecture \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -141,7 +146,7 @@ End
|
|||||||
|
|
||||||
Style Fact
|
Style Fact
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName fact
|
LatexName fact
|
||||||
LabelString "Fact \thetheorem."
|
LabelString "Fact \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -159,7 +164,7 @@ End
|
|||||||
|
|
||||||
Style Definition
|
Style Definition
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName defn
|
LatexName defn
|
||||||
LabelString "Definition \thetheorem."
|
LabelString "Definition \thetheorem."
|
||||||
Font
|
Font
|
||||||
@ -252,7 +257,7 @@ End
|
|||||||
|
|
||||||
Style Remark
|
Style Remark
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName rem
|
LatexName rem
|
||||||
LabelString "Remark \thetheorem."
|
LabelString "Remark \thetheorem."
|
||||||
Font
|
Font
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -69,7 +74,7 @@ End
|
|||||||
|
|
||||||
Style Corollary
|
Style Corollary
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName cor
|
LatexName cor
|
||||||
LabelString "Corollary \thetheorem."
|
LabelString "Corollary \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -87,7 +92,7 @@ End
|
|||||||
|
|
||||||
Style Lemma
|
Style Lemma
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName lem
|
LatexName lem
|
||||||
LabelString "Lemma \thetheorem."
|
LabelString "Lemma \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -105,7 +110,7 @@ End
|
|||||||
|
|
||||||
Style Proposition
|
Style Proposition
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName prop
|
LatexName prop
|
||||||
LabelString "Proposition \thetheorem."
|
LabelString "Proposition \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -123,7 +128,7 @@ End
|
|||||||
|
|
||||||
Style Conjecture
|
Style Conjecture
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName conjecture
|
LatexName conjecture
|
||||||
LabelString "Conjecture \thetheorem."
|
LabelString "Conjecture \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -141,7 +146,7 @@ End
|
|||||||
|
|
||||||
Style Fact
|
Style Fact
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName fact
|
LatexName fact
|
||||||
LabelString "Fact \thetheorem."
|
LabelString "Fact \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
@ -159,7 +164,7 @@ End
|
|||||||
|
|
||||||
Style Definition
|
Style Definition
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName defn
|
LatexName defn
|
||||||
LabelString "Definition \thetheorem."
|
LabelString "Definition \thetheorem."
|
||||||
Font
|
Font
|
||||||
@ -252,7 +257,7 @@ End
|
|||||||
|
|
||||||
Style Remark
|
Style Remark
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
DependsOn Theorem
|
DependsOn Theorem
|
||||||
LatexName rem
|
LatexName rem
|
||||||
LabelString "Remark \thetheorem."
|
LabelString "Remark \thetheorem."
|
||||||
Font
|
Font
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user