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>
19 LabelString "(\arabic{example})"
24 LabelString "(\arabic{examplei})"
29 LabelString "\theexamplei (\alph{subexample})"
34 LabelString "\theexamplei (\alph{subexamplei})"
42 # Single numbered example with covington.sty
43 Style Numbered_Example_(multiline)
56 AlignPossible Block, Left
58 LabelCounter "examplei"
67 # Multiple numbered examples with covington.sty
68 Style Numbered_Examples_(consecutive)
69 CopyStyle Numbered_Example_(multiline)
70 LatexType Item_Environment
73 LabelCounter "example"
75 Argument listpreamble:1
76 LabelString "List preamble"
77 MenuString "List Preamble"
78 Tooltip "LaTeX code to be inserted before the first item"
86 LabelString "Custom Numbering|s"
87 Tooltip "Customize the numeration"
92 # Sub-examples with covington.sty
94 CopyStyle Numbered_Examples_(consecutive)
95 LatexName covsubexamples
96 LabelCounter "subexample"
97 StepMasterCounter true
100 LabelString "Subexamples options"
101 MenuString "Subexamples options|s"
102 Tooltip "Add subexamples options here"
109 # Interlinear Glosses
112 # Two-Line gloss with covington.sty
113 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
118 Decoration minimalistic
127 Requires covington,csquotes
131 LabelString "Gloss options"
132 MenuString "Gloss Options|s"
133 Tooltip "Add digloss options here"
136 Decoration conglomerate
137 LabelString "Interlinear Gloss"
138 MenuString "Interlinear Gloss"
139 Tooltip "Add the inter-linear gloss here"
146 Decoration conglomerate
147 LabelString "Translation"
148 MenuString "Gloss Translation"
149 Tooltip "Add a free translation for the gloss"
158 # Three-Line gloss with covington.sty
159 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
161 LabelString Tri-Gloss
164 Decoration minimalistic
174 Requires covington,csquotes
177 LabelString "Gloss options"
178 MenuString "Gloss Options|s"
179 Tooltip "Add trigloss options here"
182 Decoration conglomerate
183 LabelString "Interlinear Gloss (1)"
184 MenuString "Interlinear Gloss (Line 1)|1"
185 Tooltip "Add the first inter-linear gloss line here"
192 Decoration conglomerate
193 LabelString "Interlinear Gloss (2)"
194 MenuString "Interlinear Gloss (Line 2)|2"
195 Tooltip "Add the first inter-linear gloss line here"
202 Decoration conglomerate
203 LabelString "Translation"
204 MenuString "Gloss Translation"
205 Tooltip "Add a translation for the glosse"
213 # A helper to group words in glosses
214 InsetLayout Flex:GroupGlossedWords
227 # Structure trees via the forest package
228 InsetLayout Flex:Structure_Tree
231 LatexType environment
239 ParbreakIsNewline true
245 % Load forest linguistics library, if available
246 \@ifpackagelater{forest}{2016/02/20}{%
247 \useforestlibrary*{linguistics}
254 # Discourse Representation Structures
260 MenuString "Discourse Representation Structure|D"
266 ParbreakIsNewline true
271 Decoration conglomerate
272 LabelString "Referents"
273 MenuString "DRS Referents"
274 Tooltip "Add the DRS referents (universe) here"
281 InsetLayout Flex:DRS*
284 MenuString "Discourse Representation Structure (unspaced)|u"
289 InsetLayout Flex:IfThen-DRS
291 LabelString "If-Then DRS"
292 MenuString "If-Then DRS"
296 LabelString "Then-Referents"
297 MenuString "DRS Then-Referents"
298 Tooltip "Add the DRS then-referents (universe) here"
305 LabelString "Then-Conditions"
306 MenuString "DRS Then-Referents"
307 Tooltip "Add the DRS then-conditions here"
315 InsetLayout Flex:Cond-DRS
317 LabelString "Cond. DRS"
318 MenuString "Conditional DRS"
323 MenuString "DRS Condition"
324 Tooltip "Add the DRS condition here"
331 LabelString "Then-Referents"
332 MenuString "DRS Then-Referents"
333 Tooltip "Add the DRS then-referents (universe) here"
340 LabelString "Then-Conditions"
341 MenuString "DRS Then-Referents"
342 Tooltip "Add the DRS then-conditions here"
350 InsetLayout Flex:QDRS
352 LabelString "Dupl. Cond. DRS"
353 MenuString "Duplex Condition DRS"
358 MenuString "DRS Quantifier"
359 Tooltip "Add the DRS duplex quantifier here"
366 LabelString "Quant. Var."
367 MenuString "DRS Quantifier Variable"
368 Tooltip "Add the DRS duplex quantifier variables here"
375 LabelString "Then-Referents"
376 MenuString "DRS Then-Referents"
377 Tooltip "Add the DRS then-referents (universe) here"
384 LabelString "Then-Conditions"
385 MenuString "DRS Then-Referents"
386 Tooltip "Add the DRS then-conditions here"
395 InsetLayout Flex:NegDRS
397 LabelString "Neg. DRS"
398 MenuString "Negated DRS"
403 InsetLayout Flex:SDRS
405 LabelString "Sent. DRS"
406 MenuString "DRS with Sentence above"
409 Decoration conglomerate
410 LabelString "Sentence"
411 MenuString "DRS Sentence"
412 Tooltip "Add the sentence here"
418 Decoration conglomerate
419 LabelString "Referents"
420 MenuString "DRS Referents"
421 Tooltip "Add the DRS referents (universe) here"
433 InsetLayout Flex:Expression
447 InsetLayout Flex:Concepts
461 InsetLayout Flex:Meaning
466 Requires covington,csquotes
476 OutlinerName tableau "Tableaux" #no AddToToc
485 ListName "List of Tableaux"