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"
85 DocBookWrapperTag informalexample
86 DocBookWrapperAttr role='numbered'
87 DocBookWrapperMergeWithPrevious true
92 # Multiple numbered examples with covington.sty
93 Style Numbered_Examples_(consecutive)
94 CopyStyle Numbered_Example_(multiline)
95 LatexType Item_Environment
98 LabelCounter "example"
100 Argument listpreamble:1
101 LabelString "List preamble"
102 MenuString "List Preamble"
103 Tooltip "LaTeX code to be inserted before the first item"
111 LabelString "Custom Numbering|s"
112 Tooltip "Customize the numeration"
114 DocBookWrapperTag informalexample
115 DocBookWrapperAttr role='consecutive'
116 DocBookWrapperMergeWithPrevious true
121 # Sub-examples with covington.sty
123 CopyStyle Numbered_Examples_(consecutive)
124 LatexName covsubexamples
125 LabelCounter "subexample"
126 StepParentCounter true
129 LabelString "Subexamples options"
130 MenuString "Subexamples options|s"
131 Tooltip "Add subexamples options here"
138 # Interlinear Glosses
141 # Two-Line gloss with covington.sty
142 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
147 Decoration minimalistic
156 Requires covington,csquotes
160 LabelString "Gloss options"
161 MenuString "Gloss Options|s"
162 Tooltip "Add digloss options here"
165 Decoration conglomerate
166 LabelString "Interlinear Gloss"
167 MenuString "Interlinear Gloss"
168 Tooltip "Add the inter-linear gloss here"
175 Decoration conglomerate
176 LabelString "Translation"
177 MenuString "Gloss Translation"
178 Tooltip "Add a free translation for the gloss"
187 # Three-Line gloss with covington.sty
188 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
190 LabelString Tri-Gloss
193 Decoration minimalistic
203 Requires covington,csquotes
206 LabelString "Gloss options"
207 MenuString "Gloss Options|s"
208 Tooltip "Add trigloss options here"
211 Decoration conglomerate
212 LabelString "Interlinear Gloss (1)"
213 MenuString "Interlinear Gloss (Line 1)|1"
214 Tooltip "Add the first inter-linear gloss line here"
221 Decoration conglomerate
222 LabelString "Interlinear Gloss (2)"
223 MenuString "Interlinear Gloss (Line 2)|2"
224 Tooltip "Add the first inter-linear gloss line here"
231 Decoration conglomerate
232 LabelString "Translation"
233 MenuString "Gloss Translation"
234 Tooltip "Add a translation for the glosse"
242 # A helper to group words in glosses
243 InsetLayout Flex:GroupGlossedWords
256 # Structure trees via the forest package
257 InsetLayout Flex:Structure_Tree
260 LatexType environment
268 ParbreakIsNewline true
274 % Load forest linguistics library, if available
275 \@ifpackagelater{forest}{2016/02/20}{%
276 \useforestlibrary*{linguistics}
279 DocBookRenderAsImage true
284 # Discourse Representation Structures
290 MenuString "Discourse Representation Structure|D"
296 ParbreakIsNewline true
301 Decoration conglomerate
302 LabelString "Referents"
303 MenuString "DRS Referents"
304 Tooltip "Add the DRS referents (universe) here"
311 InsetLayout Flex:DRS*
314 MenuString "Discourse Representation Structure (unspaced)|u"
319 InsetLayout Flex:IfThen-DRS
321 LabelString "If-Then DRS"
322 MenuString "If-Then DRS"
326 LabelString "Then-Referents"
327 MenuString "DRS Then-Referents"
328 Tooltip "Add the DRS then-referents (universe) here"
335 LabelString "Then-Conditions"
336 MenuString "DRS Then-Referents"
337 Tooltip "Add the DRS then-conditions here"
345 InsetLayout Flex:Cond-DRS
347 LabelString "Cond. DRS"
348 MenuString "Conditional DRS"
353 MenuString "DRS Condition"
354 Tooltip "Add the DRS condition here"
361 LabelString "Then-Referents"
362 MenuString "DRS Then-Referents"
363 Tooltip "Add the DRS then-referents (universe) here"
370 LabelString "Then-Conditions"
371 MenuString "DRS Then-Referents"
372 Tooltip "Add the DRS then-conditions here"
380 InsetLayout Flex:QDRS
382 LabelString "Dupl. Cond. DRS"
383 MenuString "Duplex Condition DRS"
388 MenuString "DRS Quantifier"
389 Tooltip "Add the DRS duplex quantifier here"
396 LabelString "Quant. Var."
397 MenuString "DRS Quantifier Variable"
398 Tooltip "Add the DRS duplex quantifier variables here"
405 LabelString "Then-Referents"
406 MenuString "DRS Then-Referents"
407 Tooltip "Add the DRS then-referents (universe) here"
414 LabelString "Then-Conditions"
415 MenuString "DRS Then-Referents"
416 Tooltip "Add the DRS then-conditions here"
425 InsetLayout Flex:NegDRS
427 LabelString "Neg. DRS"
428 MenuString "Negated DRS"
433 InsetLayout Flex:SDRS
435 LabelString "Sent. DRS"
436 MenuString "DRS with Sentence above"
439 Decoration conglomerate
440 LabelString "Sentence"
441 MenuString "DRS Sentence"
442 Tooltip "Add the sentence here"
448 Decoration conglomerate
449 LabelString "Referents"
450 MenuString "DRS Referents"
451 Tooltip "Add the DRS referents (universe) here"
463 InsetLayout Flex:Expression
477 InsetLayout Flex:Concepts
491 InsetLayout Flex:Meaning
496 Requires covington,csquotes
506 OutlinerName tableau "Tableaux" #no AddToToc
515 ListName "List of Tableaux"