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})"
38 LabelString "\theexamplei (\alph{subexamplei})"
44 LabelString "\theexamplei (\alph{subexampleii})"
50 LabelString "\theexamplei (\alph{subexampleiii})"
56 LabelString "\theexamplei (\alph{subexampleiv})"
63 # Single numbered example with covington.sty
64 Style Numbered_Example_(multiline)
77 AlignPossible Block, Left
79 LabelCounter "examplei"
88 # Multiple numbered examples with covington.sty
89 Style Numbered_Examples_(consecutive)
90 CopyStyle Numbered_Example_(multiline)
91 LatexType Item_Environment
94 LabelCounter "example"
96 Argument listpreamble:1
97 LabelString "List preamble"
98 MenuString "List Preamble"
99 Tooltip "LaTeX code to be inserted before the first item"
107 LabelString "Custom Numbering|s"
108 Tooltip "Customize the numeration"
113 # Sub-examples with covington.sty
115 CopyStyle Numbered_Examples_(consecutive)
116 LatexName covsubexamples
117 LabelCounter "subexample"
118 StepMasterCounter true
121 LabelString "Subexamples options"
122 MenuString "Subexamples options|s"
123 Tooltip "Add subexamples options here"
130 # Interlinear Glosses
133 # Two-Line gloss with covington.sty
134 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
139 Decoration minimalistic
148 Requires covington,csquotes
152 LabelString "Gloss options"
153 MenuString "Gloss Options|s"
154 Tooltip "Add digloss options here"
157 Decoration conglomerate
158 LabelString "Interlinear Gloss"
159 MenuString "Interlinear Gloss"
160 Tooltip "Add the inter-linear gloss here"
167 Decoration conglomerate
168 LabelString "Translation"
169 MenuString "Gloss Translation"
170 Tooltip "Add a free translation for the gloss"
179 # Three-Line gloss with covington.sty
180 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
182 LabelString Tri-Gloss
185 Decoration minimalistic
195 Requires covington,csquotes
198 LabelString "Gloss options"
199 MenuString "Gloss Options|s"
200 Tooltip "Add trigloss options here"
203 Decoration conglomerate
204 LabelString "Interlinear Gloss (1)"
205 MenuString "Interlinear Gloss (Line 1)|1"
206 Tooltip "Add the first inter-linear gloss line here"
213 Decoration conglomerate
214 LabelString "Interlinear Gloss (2)"
215 MenuString "Interlinear Gloss (Line 2)|2"
216 Tooltip "Add the first inter-linear gloss line here"
223 Decoration conglomerate
224 LabelString "Translation"
225 MenuString "Gloss Translation"
226 Tooltip "Add a translation for the glosse"
234 # A helper to group words in glosses
235 InsetLayout Flex:GroupGlossedWords
248 # Structure trees via the forest package
249 InsetLayout Flex:Structure_Tree
252 LatexType environment
260 ParbreakIsNewline true
266 % Load forest linguistics library, if available
267 \@ifpackagelater{forest}{2016/02/20}{%
268 \useforestlibrary*{linguistics}
275 # Discourse Representation Structures
281 MenuString "Discourse Representation Structure|D"
287 ParbreakIsNewline true
292 Decoration conglomerate
293 LabelString "Referents"
294 MenuString "DRS Referents"
295 Tooltip "Add the DRS referents (universe) here"
302 InsetLayout Flex:DRS*
305 MenuString "Discourse Representation Structure (unspaced)|u"
310 InsetLayout Flex:IfThen-DRS
312 LabelString "If-Then DRS"
313 MenuString "If-Then DRS"
317 LabelString "Then-Referents"
318 MenuString "DRS Then-Referents"
319 Tooltip "Add the DRS then-referents (universe) here"
326 LabelString "Then-Conditions"
327 MenuString "DRS Then-Referents"
328 Tooltip "Add the DRS then-conditions here"
336 InsetLayout Flex:Cond-DRS
338 LabelString "Cond. DRS"
339 MenuString "Conditional DRS"
344 MenuString "DRS Condition"
345 Tooltip "Add the DRS condition here"
352 LabelString "Then-Referents"
353 MenuString "DRS Then-Referents"
354 Tooltip "Add the DRS then-referents (universe) here"
361 LabelString "Then-Conditions"
362 MenuString "DRS Then-Referents"
363 Tooltip "Add the DRS then-conditions here"
371 InsetLayout Flex:QDRS
373 LabelString "Dupl. Cond. DRS"
374 MenuString "Duplex Condition DRS"
379 MenuString "DRS Quantifier"
380 Tooltip "Add the DRS duplex quantifier here"
387 LabelString "Quant. Var."
388 MenuString "DRS Quantifier Variable"
389 Tooltip "Add the DRS duplex quantifier variables here"
396 LabelString "Then-Referents"
397 MenuString "DRS Then-Referents"
398 Tooltip "Add the DRS then-referents (universe) here"
405 LabelString "Then-Conditions"
406 MenuString "DRS Then-Referents"
407 Tooltip "Add the DRS then-conditions here"
416 InsetLayout Flex:NegDRS
418 LabelString "Neg. DRS"
419 MenuString "Negated DRS"
424 InsetLayout Flex:SDRS
426 LabelString "Sent. DRS"
427 MenuString "DRS with Sentence above"
430 Decoration conglomerate
431 LabelString "Sentence"
432 MenuString "DRS Sentence"
433 Tooltip "Add the sentence here"
439 Decoration conglomerate
440 LabelString "Referents"
441 MenuString "DRS Referents"
442 Tooltip "Add the DRS referents (universe) here"
454 InsetLayout Flex:Expression
468 InsetLayout Flex:Concepts
482 InsetLayout Flex:Meaning
487 Requires covington,csquotes
497 OutlinerName tableau "Tableaux" #no AddToToc
506 ListName "List of Tableaux"