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}
283 # Discourse Representation Structures
289 MenuString "Discourse Representation Structure|D"
295 ParbreakIsNewline true
300 Decoration conglomerate
301 LabelString "Referents"
302 MenuString "DRS Referents"
303 Tooltip "Add the DRS referents (universe) here"
310 InsetLayout Flex:DRS*
313 MenuString "Discourse Representation Structure (unspaced)|u"
318 InsetLayout Flex:IfThen-DRS
320 LabelString "If-Then DRS"
321 MenuString "If-Then DRS"
325 LabelString "Then-Referents"
326 MenuString "DRS Then-Referents"
327 Tooltip "Add the DRS then-referents (universe) here"
334 LabelString "Then-Conditions"
335 MenuString "DRS Then-Referents"
336 Tooltip "Add the DRS then-conditions here"
344 InsetLayout Flex:Cond-DRS
346 LabelString "Cond. DRS"
347 MenuString "Conditional DRS"
352 MenuString "DRS Condition"
353 Tooltip "Add the DRS condition here"
360 LabelString "Then-Referents"
361 MenuString "DRS Then-Referents"
362 Tooltip "Add the DRS then-referents (universe) here"
369 LabelString "Then-Conditions"
370 MenuString "DRS Then-Referents"
371 Tooltip "Add the DRS then-conditions here"
379 InsetLayout Flex:QDRS
381 LabelString "Dupl. Cond. DRS"
382 MenuString "Duplex Condition DRS"
387 MenuString "DRS Quantifier"
388 Tooltip "Add the DRS duplex quantifier here"
395 LabelString "Quant. Var."
396 MenuString "DRS Quantifier Variable"
397 Tooltip "Add the DRS duplex quantifier variables here"
404 LabelString "Then-Referents"
405 MenuString "DRS Then-Referents"
406 Tooltip "Add the DRS then-referents (universe) here"
413 LabelString "Then-Conditions"
414 MenuString "DRS Then-Referents"
415 Tooltip "Add the DRS then-conditions here"
424 InsetLayout Flex:NegDRS
426 LabelString "Neg. DRS"
427 MenuString "Negated DRS"
432 InsetLayout Flex:SDRS
434 LabelString "Sent. DRS"
435 MenuString "DRS with Sentence above"
438 Decoration conglomerate
439 LabelString "Sentence"
440 MenuString "DRS Sentence"
441 Tooltip "Add the sentence here"
447 Decoration conglomerate
448 LabelString "Referents"
449 MenuString "DRS Referents"
450 Tooltip "Add the DRS referents (universe) here"
462 InsetLayout Flex:Expression
476 InsetLayout Flex:Concepts
490 InsetLayout Flex:Meaning
495 Requires covington,csquotes
505 OutlinerName tableau "Tableaux" #no AddToToc
514 ListName "List of Tableaux"