1 #\DeclareLyXModule[covington.sty,drs.sty,forest.sty,pict2e.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>
20 LabelString "(\arabic{example})"
24 GuiName "Numbered Example (Multiline)"
26 LabelString "(\arabic{examplei})"
32 LabelString "\theexamplei (\alph{subexample})"
40 # Single numbered example with covington.sty
41 Style Numbered_Example_(multiline)
54 AlignPossible Block, Left
56 LabelCounter "examplei"
65 # Multiple numbered examples with covington.sty
66 Style Numbered_Examples_(consecutive)
67 CopyStyle Numbered_Example_(multiline)
68 LatexType Item_Environment
71 LabelCounter "example"
73 Argument listpreamble:1
74 LabelString "List preamble"
75 MenuString "List Preamble"
76 Tooltip "LaTeX code to be inserted before the first item"
84 LabelString "Custom Numbering|s"
85 Tooltip "Customize the numeration"
90 # Sub-examples with covington.sty
92 CopyStyle Numbered_Examples_(consecutive)
93 LatexName covsubexamples
94 LabelCounter "subexample"
95 StepMasterCounter true
98 LabelString "Subexamples options"
99 MenuString "Subexamples options|s"
100 Tooltip "Add subexamples options here"
107 # Interlinear Glosses
110 # Two-Line gloss with covington.sty
111 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
116 Decoration minimalistic
125 Requires covington,csquotes
129 LabelString "Gloss options"
130 MenuString "Gloss Options|s"
131 Tooltip "Add digloss options here"
134 Decoration conglomerate
135 LabelString "Interlinear Gloss"
136 MenuString "Interlinear Gloss"
137 Tooltip "Add the inter-linear gloss here"
144 Decoration conglomerate
145 LabelString "Translation"
146 MenuString "Gloss Translation"
147 Tooltip "Add a free translation for the gloss"
156 # Three-Line gloss with covington.sty
157 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
159 LabelString Tri-Gloss
162 Decoration minimalistic
172 Requires covington,csquotes
175 LabelString "Gloss options"
176 MenuString "Gloss Options|s"
177 Tooltip "Add trigloss options here"
180 Decoration conglomerate
181 LabelString "Interlinear Gloss (1)"
182 MenuString "Interlinear Gloss (Line 1)|1"
183 Tooltip "Add the first inter-linear gloss line here"
190 Decoration conglomerate
191 LabelString "Interlinear Gloss (2)"
192 MenuString "Interlinear Gloss (Line 2)|2"
193 Tooltip "Add the first inter-linear gloss line here"
200 Decoration conglomerate
201 LabelString "Translation"
202 MenuString "Gloss Translation"
203 Tooltip "Add a translation for the glosse"
211 # A helper to group words in glosses
212 InsetLayout Flex:GroupGlossedWords
225 # Structure trees via the forest package
226 InsetLayout Flex:Structure_Tree
229 LatexType environment
237 ParbreakIsNewline true
243 % Load forest linguistics library, if available
244 \@ifpackagelater{forest}{2016/02/20}{%
245 \useforestlibrary*{linguistics}
252 # Discourse Representation Structures
258 MenuString "Discourse Representation Structure|D"
264 ParbreakIsNewline true
269 Decoration conglomerate
270 LabelString "Referents"
271 MenuString "DRS Referents"
272 Tooltip "Add the DRS referents (universe) here"
279 InsetLayout Flex:DRS*
282 MenuString "Discourse Representation Structure (unspaced)|u"
287 InsetLayout Flex:IfThen-DRS
289 LabelString "If-Then DRS"
290 MenuString "If-Then DRS"
294 LabelString "Then-Referents"
295 MenuString "DRS Then-Referents"
296 Tooltip "Add the DRS then-referents (universe) here"
303 LabelString "Then-Conditions"
304 MenuString "DRS Then-Referents"
305 Tooltip "Add the DRS then-conditions here"
313 InsetLayout Flex:Cond-DRS
315 LabelString "Cond. DRS"
316 MenuString "Conditional DRS"
321 MenuString "DRS Condition"
322 Tooltip "Add the DRS condition here"
329 LabelString "Then-Referents"
330 MenuString "DRS Then-Referents"
331 Tooltip "Add the DRS then-referents (universe) here"
338 LabelString "Then-Conditions"
339 MenuString "DRS Then-Referents"
340 Tooltip "Add the DRS then-conditions here"
348 InsetLayout Flex:QDRS
350 LabelString "Dupl. Cond. DRS"
351 MenuString "Duplex Condition DRS"
356 MenuString "DRS Quantifier"
357 Tooltip "Add the DRS duplex quantifier here"
364 LabelString "Quant. Var."
365 MenuString "DRS Quantifier Variable"
366 Tooltip "Add the DRS duplex quantifier variables here"
373 LabelString "Then-Referents"
374 MenuString "DRS Then-Referents"
375 Tooltip "Add the DRS then-referents (universe) here"
382 LabelString "Then-Conditions"
383 MenuString "DRS Then-Referents"
384 Tooltip "Add the DRS then-conditions here"
393 InsetLayout Flex:NegDRS
395 LabelString "Neg. DRS"
396 MenuString "Negated DRS"
401 InsetLayout Flex:SDRS
403 LabelString "Sent. DRS"
404 MenuString "DRS with Sentence above"
407 Decoration conglomerate
408 LabelString "Sentence"
409 MenuString "DRS Sentence"
410 Tooltip "Add the sentence here"
416 Decoration conglomerate
417 LabelString "Referents"
418 MenuString "DRS Referents"
419 Tooltip "Add the DRS referents (universe) here"
431 InsetLayout Flex:Expression
445 InsetLayout Flex:Concepts
459 InsetLayout Flex:Meaning
464 Requires covington,csquotes
474 OutlinerName tableau "Tableaux" #no AddToToc
483 ListName "List of Tableaux"