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 Help > Specific Manuals > Linguistics.
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 LabelString "Example options"
86 MenuString "Examples options|s"
87 Tooltip "Add examples options here"
91 DocBookWrapperTag informalexample
92 DocBookWrapperAttr role='numbered'
93 DocBookWrapperMergeWithPrevious true
98 # Multiple numbered examples with covington.sty
99 Style Numbered_Examples_(consecutive)
100 CopyStyle Numbered_Example_(multiline)
101 LatexType Item_Environment
102 LatexName covexamples
104 LabelCounter "example"
106 Argument listpreamble:1
107 LabelString "List preamble"
108 MenuString "List Preamble"
109 Tooltip "LaTeX code to be inserted before the first item"
117 LabelString "Judgment|J"
118 Tooltip "Grammaticality judgment marker"
123 LabelString "Custom Numbering|s"
124 Tooltip "Customize the numeration"
126 DocBookWrapperTag informalexample
127 DocBookWrapperAttr role='consecutive'
128 DocBookWrapperMergeWithPrevious true
130 HTMLClass NumberedExample
134 # Sub-examples with covington.sty
136 CopyStyle Numbered_Examples_(consecutive)
137 LatexName covsubexamples
138 LabelCounter "subexample"
139 StepParentCounter true
142 LabelString "Subexamples options"
143 MenuString "Subexamples options|s"
144 Tooltip "Add subexamples options here"
150 InsetLayout Flex:Example_Preamble
155 LabelString "Ex. Preamble"
159 InsetLayout Flex:Subexample_Preamble
160 CopyStyle Flex:Example_Preamble
161 LatexName subexpreamble
162 LabelString "Subex. Preamble"
166 InsetLayout Flex:Example_Postamble
167 CopyStyle Flex:Example_Preamble
168 LatexName expostamble
169 LabelString "Ex. Postamble"
172 InsetLayout Flex:Subexample_Postamble
173 CopyStyle Flex:Example_Preamble
174 LatexName subexpostamble
175 LabelString "Subex. Postamble"
180 # Interlinear Glosses
183 # Two-Line gloss with covington.sty
184 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
189 Decoration minimalistic
198 Requires covington,csquotes
202 LabelString "Gloss options"
203 MenuString "Gloss Options|s"
204 Tooltip "Add digloss options here"
207 LabelString "Sentence Comment"
208 MenuString "Sentence Comment"
209 Tooltip "Add an optional sentence comment here"
212 Decoration conglomerate
213 LabelString "Interlinear Gloss"
214 MenuString "Interlinear Gloss"
215 Tooltip "Add the inter-linear gloss here"
222 LabelString "Gloss Comment"
223 MenuString "Gloss Comment"
224 Tooltip "Add an optional gloss comment here"
227 Decoration conglomerate
228 LabelString "Translation"
229 MenuString "Gloss Translation"
230 Tooltip "Add a free translation for the gloss"
239 # Three-Line gloss with covington.sty
240 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
242 LabelString Tri-Gloss
245 Decoration minimalistic
255 Requires covington,csquotes
258 LabelString "Gloss options"
259 MenuString "Gloss Options|s"
260 Tooltip "Add trigloss options here"
263 LabelString "Sentence Comment"
264 MenuString "Sentence Comment"
265 Tooltip "Add an optional sentence comment here"
268 Decoration conglomerate
269 LabelString "Interlinear Gloss (1)"
270 MenuString "Interlinear Gloss (Line 1)|1"
271 Tooltip "Add the first inter-linear gloss line here"
278 LabelString "Gloss Comment (1)"
279 MenuString "Gloss Comment (Line 1)"
280 Tooltip "Add an optional gloss comment here"
283 Decoration conglomerate
284 LabelString "Interlinear Gloss (2)"
285 MenuString "Interlinear Gloss (Line 2)|2"
286 Tooltip "Add the second inter-linear gloss line here"
293 LabelString "Gloss Comment (2)"
294 MenuString "Gloss Comment (Line 2)"
295 Tooltip "Add an optional gloss comment here"
298 Decoration conglomerate
299 LabelString "Translation"
300 MenuString "Gloss Translation"
301 Tooltip "Add a translation for the glosse"
309 # A helper to group words in glosses
310 InsetLayout Flex:GroupGlossedWords
323 # Structure trees via the forest package
324 InsetLayout Flex:Structure_Tree
327 LatexType environment
335 ParbreakIsNewline true
341 % Load forest linguistics library, if available
342 \@ifpackagelater{forest}{2016/02/20}{%
343 \useforestlibrary*{linguistics}
346 DocBookRenderAsImage true
351 # Discourse Representation Structures
357 MenuString "Discourse Representation Structure|D"
363 ParbreakIsNewline true
368 Decoration conglomerate
369 LabelString "Referents"
370 MenuString "DRS Referents"
371 Tooltip "Add the DRS referents (universe) here"
378 InsetLayout Flex:DRS*
381 MenuString "Discourse Representation Structure (unspaced)|u"
386 InsetLayout Flex:IfThen-DRS
388 LabelString "If-Then DRS"
389 MenuString "If-Then DRS"
393 LabelString "Then-Referents"
394 MenuString "DRS Then-Referents"
395 Tooltip "Add the DRS then-referents (universe) here"
402 LabelString "Then-Conditions"
403 MenuString "DRS Then-Referents"
404 Tooltip "Add the DRS then-conditions here"
412 InsetLayout Flex:Cond-DRS
414 LabelString "Cond. DRS"
415 MenuString "Conditional DRS"
420 MenuString "DRS Condition"
421 Tooltip "Add the DRS condition here"
428 LabelString "Then-Referents"
429 MenuString "DRS Then-Referents"
430 Tooltip "Add the DRS then-referents (universe) here"
437 LabelString "Then-Conditions"
438 MenuString "DRS Then-Referents"
439 Tooltip "Add the DRS then-conditions here"
447 InsetLayout Flex:QDRS
449 LabelString "Dupl. Cond. DRS"
450 MenuString "Duplex Condition DRS"
455 MenuString "DRS Quantifier"
456 Tooltip "Add the DRS duplex quantifier here"
463 LabelString "Quant. Var."
464 MenuString "DRS Quantifier Variable"
465 Tooltip "Add the DRS duplex quantifier variables here"
472 LabelString "Then-Referents"
473 MenuString "DRS Then-Referents"
474 Tooltip "Add the DRS then-referents (universe) here"
481 LabelString "Then-Conditions"
482 MenuString "DRS Then-Referents"
483 Tooltip "Add the DRS then-conditions here"
492 InsetLayout Flex:NegDRS
494 LabelString "Neg. DRS"
495 MenuString "Negated DRS"
500 InsetLayout Flex:SDRS
502 LabelString "Sent. DRS"
503 MenuString "DRS with Sentence above"
506 Decoration conglomerate
507 LabelString "Sentence"
508 MenuString "DRS Sentence"
509 Tooltip "Add the sentence here"
515 Decoration conglomerate
516 LabelString "Referents"
517 MenuString "DRS Referents"
518 Tooltip "Add the DRS referents (universe) here"
530 InsetLayout Flex:Expression
544 InsetLayout Flex:Concepts
558 InsetLayout Flex:Meaning
563 Requires covington,csquotes
573 OutlinerName tableau "Tableaux" #no AddToToc
582 ListName "List of Tableaux"