-#\DeclareLyXModule[covington.sty,elocalloc.sty,enumitem.sty,forest.sty,pgfopts.sty,trimspaces.sty]{Linguistics}
+#\DeclareLyXModule[covington.sty,enumitem.sty,forest.sty]{Linguistics}
#DescriptionBegin
#Defines some special environments useful for linguistics (numbered examples,
#glosses, semantic markup, tableau floats).
# Author: Jürgen Spitzmüller <spitz@lyx.org>
-Format 60
+Format 68
+
+Counter example
+ Within chapter
+ LabelString "(\arabic{example})"
+End
+
+Counter examplei
+ Within chapter
+ LabelString "(\arabic{examplei})"
+End
+
+Counter subexample
+ Within examplei
+ LabelString "\theexamplei (\alph{subexample})"
+End
+
+Counter subexamplei
+ Within examplei
+ LabelString "\theexamplei (\alph{subexamplei})"
+End
+
+OutlinerName tableau "Tableaux" #no AddToToc (built-in)
# single numbered example with covington.sty
Style Numbered_Example_(multiline)
LatexType Environment
LatexName covexample
NextNoIndent 1
- Margin Dynamic
+ Margin First_Dynamic
+ ParIndent (1)x
LabelSep xx
ParSkip 0.0
ItemSep 0.2
Align Block
AlignPossible Block, Left
LabelType Static
- LabelString "Example:"
+ LabelCounter "examplei"
LabelFont
- Shape Italic
Color Blue
EndFont
Requires covington
% This code can be removed eventually
\@ifundefined{covexample}{%
\newenvironment{covexample}{\begin{example}}{\end{example}}%
- }
+ }{}
EndPreamble
Category Linguistics
End
CopyStyle Numbered_Example_(multiline)
LatexType Item_Environment
LatexName covexamples
- LabelString "Examples:"
+ LabelType Enumerate
+ LabelCounter "example"
+ ResumeCounter true
Argument item:1
LabelString "Custom Numbering|s"
Tooltip "Customize the numeration"
% This code can be removed eventually
\@ifundefined{covexamples}{%
\newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
- }
+ }{}
EndPreamble
End
Style Subexample
CopyStyle Numbered_Examples_(consecutive)
LatexName subexample
- LabelString "Subexample:"
+ LabelCounter "subexample"
+ StepMasterCounter true
Requires covington,enumitem
Preamble
\newenvironment{subexample}{%
# Tableaux for Optimality Theory
+OutlinerName tableau "Tableaux" #no AddToToc
+
Float
Type tableau
GuiName Tableau