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})"
37 # Single numbered example with covington.sty
38 Style Numbered_Example_(multiline)
51 AlignPossible Block, Left
53 LabelCounter "examplei"
62 # Multiple numbered examples with covington.sty
63 Style Numbered_Examples_(consecutive)
64 CopyStyle Numbered_Example_(multiline)
65 LatexType Item_Environment
68 LabelCounter "example"
70 Argument listpreamble:1
71 LabelString "List preamble"
72 MenuString "List Preamble"
73 Tooltip "LaTeX code to be inserted before the first item"
81 LabelString "Custom Numbering|s"
82 Tooltip "Customize the numeration"
87 # Sub-examples with covington.sty
89 CopyStyle Numbered_Examples_(consecutive)
90 LatexName covsubexamples
91 LabelCounter "subexample"
92 StepMasterCounter true
95 LabelString "Subexamples options"
96 MenuString "Subexamples options|s"
97 Tooltip "Add subexamples options here"
104 # Interlinear Glosses
107 # Two-Line gloss with covington.sty
108 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
113 Decoration minimalistic
122 Requires covington,csquotes
126 LabelString "Gloss options"
127 MenuString "Gloss Options|s"
128 Tooltip "Add digloss options here"
131 Decoration conglomerate
132 LabelString "Interlinear Gloss"
133 MenuString "Interlinear Gloss"
134 Tooltip "Add the inter-linear gloss here"
141 Decoration conglomerate
142 LabelString "Translation"
143 MenuString "Gloss Translation"
144 Tooltip "Add a free translation for the gloss"
153 # Three-Line gloss with covington.sty
154 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
156 LabelString Tri-Gloss
159 Decoration minimalistic
169 Requires covington,csquotes
172 LabelString "Gloss options"
173 MenuString "Gloss Options|s"
174 Tooltip "Add trigloss options here"
177 Decoration conglomerate
178 LabelString "Interlinear Gloss (1)"
179 MenuString "Interlinear Gloss (Line 1)|1"
180 Tooltip "Add the first inter-linear gloss line here"
187 Decoration conglomerate
188 LabelString "Interlinear Gloss (2)"
189 MenuString "Interlinear Gloss (Line 2)|2"
190 Tooltip "Add the first inter-linear gloss line here"
197 Decoration conglomerate
198 LabelString "Translation"
199 MenuString "Gloss Translation"
200 Tooltip "Add a translation for the glosse"
208 # A helper to group words in glosses
209 InsetLayout Flex:GroupGlossedWords
222 # Structure trees via the forest package
223 InsetLayout Flex:Structure_Tree
226 LatexType environment
234 ParbreakIsNewline true
240 % Load forest linguistics library, if available
241 \@ifpackagelater{forest}{2016/02/20}{%
242 \useforestlibrary*{linguistics}
249 # Discourse Representation Structures
255 MenuString "Discourse Representation Structure|D"
261 ParbreakIsNewline true
266 Decoration conglomerate
267 LabelString "Referents"
268 MenuString "DRS Referents"
269 Tooltip "Add the DRS referents (universe) here"
276 InsetLayout Flex:DRS*
279 MenuString "Discourse Representation Structure (unspaced)|u"
284 InsetLayout Flex:IfThen-DRS
286 LabelString "If-Then DRS"
287 MenuString "If-Then DRS"
291 LabelString "Then-Referents"
292 MenuString "DRS Then-Referents"
293 Tooltip "Add the DRS then-referents (universe) here"
300 LabelString "Then-Conditions"
301 MenuString "DRS Then-Referents"
302 Tooltip "Add the DRS then-conditions here"
310 InsetLayout Flex:Cond-DRS
312 LabelString "Cond. DRS"
313 MenuString "Conditional DRS"
318 MenuString "DRS Condition"
319 Tooltip "Add the DRS condition here"
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:QDRS
347 LabelString "Dupl. Cond. DRS"
348 MenuString "Duplex Condition DRS"
353 MenuString "DRS Quantifier"
354 Tooltip "Add the DRS duplex quantifier here"
361 LabelString "Quant. Var."
362 MenuString "DRS Quantifier Variable"
363 Tooltip "Add the DRS duplex quantifier variables here"
370 LabelString "Then-Referents"
371 MenuString "DRS Then-Referents"
372 Tooltip "Add the DRS then-referents (universe) here"
379 LabelString "Then-Conditions"
380 MenuString "DRS Then-Referents"
381 Tooltip "Add the DRS then-conditions here"
390 InsetLayout Flex:NegDRS
392 LabelString "Neg. DRS"
393 MenuString "Negated DRS"
398 InsetLayout Flex:SDRS
400 LabelString "Sent. DRS"
401 MenuString "DRS with Sentence above"
404 Decoration conglomerate
405 LabelString "Sentence"
406 MenuString "DRS Sentence"
407 Tooltip "Add the sentence here"
413 Decoration conglomerate
414 LabelString "Referents"
415 MenuString "DRS Referents"
416 Tooltip "Add the DRS referents (universe) here"
428 InsetLayout Flex:Expression
442 InsetLayout Flex:Concepts
456 InsetLayout Flex:Meaning
461 Requires covington,csquotes
471 OutlinerName tableau "Tableaux" #no AddToToc
480 ListName "List of Tableaux"