1 #\DeclareLyXModule[covington.sty,forest.sty]{Linguistics}
2 #\DeclareCategory{Academic Field Specifics}
4 #Defines some special environments useful for linguistics (numbered examples,
5 #glosses, semantic markup, tableau floats).
6 #See linguistics.lyx file in examples.
9 # Author: Jürgen Spitzmüller <spitz@lyx.org>
15 LabelString "(\arabic{example})"
20 LabelString "(\arabic{examplei})"
25 LabelString "\theexamplei (\alph{subexample})"
30 LabelString "\theexamplei (\alph{subexamplei})"
33 OutlinerName tableau "Tableaux" #no AddToToc (built-in)
35 # single numbered example with covington.sty
36 Style Numbered_Example_(multiline)
49 AlignPossible Block, Left
51 LabelCounter "examplei"
60 # multiple numbered examples with covington.sty
61 Style Numbered_Examples_(consecutive)
62 CopyStyle Numbered_Example_(multiline)
63 LatexType Item_Environment
66 LabelCounter "example"
68 Argument listpreamble:1
69 LabelString "List preamble"
70 MenuString "List Preamble"
71 Tooltip "LaTeX code to be inserted before the first item"
79 LabelString "Custom Numbering|s"
80 Tooltip "Customize the numeration"
85 # multiple numbered examples with covington.sty
87 CopyStyle Numbered_Examples_(consecutive)
88 LatexName covsubexamples
89 LabelCounter "subexample"
90 StepMasterCounter true
93 LabelString "Subexamples options"
94 MenuString "Subexamples options|s"
95 Tooltip "Add subexamples options here"
101 # glosse (2 lines) with covington.sty
102 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
107 Decoration minimalistic
116 Requires covington,csquotes
120 LabelString "Gloss options"
121 MenuString "Gloss Options|s"
122 Tooltip "Add digloss options here"
125 Decoration conglomerate
126 LabelString "Interlinear Gloss"
127 MenuString "Interlinear Gloss"
128 Tooltip "Add the inter-linear gloss here"
135 Decoration conglomerate
136 LabelString "Translation"
137 MenuString "Gloss Translation"
138 Tooltip "Add a free translation for the gloss"
147 # glosse (3 lines) with covington.sty
148 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
150 LabelString Tri-Gloss
153 Decoration minimalistic
163 Requires covington,csquotes
166 LabelString "Gloss options"
167 MenuString "Gloss Options|s"
168 Tooltip "Add trigloss options here"
171 Decoration conglomerate
172 LabelString "Interlinear Gloss (1)"
173 MenuString "Interlinear Gloss (Line 1)|1"
174 Tooltip "Add the first inter-linear gloss line here"
181 Decoration conglomerate
182 LabelString "Interlinear Gloss (2)"
183 MenuString "Interlinear Gloss (Line 2)|2"
184 Tooltip "Add the first inter-linear gloss line here"
191 Decoration conglomerate
192 LabelString "Translation"
193 MenuString "Gloss Translation"
194 Tooltip "Add a translation for the glosse"
202 # Structure trees via the forest package
203 InsetLayout Flex:Structure_Tree
206 LatexType environment
214 ParbreakIsNewline true
220 % Load forest linguistics library, if available
221 \@ifpackagelater{forest}{2016/02/20}{%
222 \useforestlibrary*{linguistics}
228 # Some semantik markup for Semantics
229 InsetLayout Flex:Expression
243 InsetLayout Flex:Concepts
257 InsetLayout Flex:Meaning
262 Requires covington,csquotes
268 # A helper to group words in Glosses
269 InsetLayout Flex:GroupGlossedWords
278 # Tableaux for Optimality Theory
279 OutlinerName tableau "Tableaux" #no AddToToc
288 ListName "List of Tableaux"