linguistics.module: proper example counters

Uses the new counter tags.
This commit is contained in:
Juergen Spitzmueller 2016-10-14 20:09:25 +02:00
parent 0eb651a2cf
commit a85fa80060

View File

@ -7,33 +7,26 @@
# Author: Jürgen Spitzmüller <spitz@lyx.org> # Author: Jürgen Spitzmüller <spitz@lyx.org>
Format 60 Format 61
# FIXME: It is currently not possible to share a
# counter in layouts with STATIC and ENUMERATE
# LabelType. The counters are not stepped properly.
Counter example Counter example
Within chapter Within chapter
# LabelString "(\arabic{example})" LabelString "(\arabic{example})"
LabelString "Examples:"
End End
Counter examplei Counter examplei
Within chapter Within chapter
# LabelString "(\arabic{examplei})" LabelString "(\arabic{examplei})"
LabelString "Examples:"
End End
Counter subexample Counter subexample
Within examplei Within examplei
# LabelString "\theexamplei (\alph{subexample})" LabelString "\theexamplei (\alph{subexample})"
LabelString "Subexample:"
End End
Counter subexamplei Counter subexamplei
Within examplei Within examplei
# LabelString "\theexamplei (\alph{subexamplei})" LabelString "\theexamplei (\alph{subexamplei})"
LabelString "Subexample:"
End End
# single numbered example with covington.sty # single numbered example with covington.sty
@ -41,7 +34,8 @@ Style Numbered_Example_(multiline)
LatexType Environment LatexType Environment
LatexName covexample LatexName covexample
NextNoIndent 1 NextNoIndent 1
Margin Dynamic Margin First_Dynamic
ParIndent (1)x
LabelSep xx LabelSep xx
ParSkip 0.0 ParSkip 0.0
ItemSep 0.2 ItemSep 0.2
@ -51,10 +45,8 @@ Style Numbered_Example_(multiline)
Align Block Align Block
AlignPossible Block, Left AlignPossible Block, Left
LabelType Static LabelType Static
# LabelCounter "example" LabelCounter "examplei"
LabelString "Example:"
LabelFont LabelFont
Shape Italic
Color Blue Color Blue
EndFont EndFont
Requires covington Requires covington
@ -76,6 +68,7 @@ Style Numbered_Examples_(consecutive)
LatexName covexamples LatexName covexamples
LabelType Enumerate LabelType Enumerate
LabelCounter "example" LabelCounter "example"
ResumeCounter true
Argument item:1 Argument item:1
LabelString "Custom Numbering|s" LabelString "Custom Numbering|s"
Tooltip "Customize the numeration" Tooltip "Customize the numeration"
@ -95,6 +88,7 @@ Style Subexample
CopyStyle Numbered_Examples_(consecutive) CopyStyle Numbered_Examples_(consecutive)
LatexName subexample LatexName subexample
LabelCounter "subexample" LabelCounter "subexample"
StepMasterCounter true
Requires covington,enumitem Requires covington,enumitem
Preamble Preamble
\newenvironment{subexample}{% \newenvironment{subexample}{%