1 #\DeclareLyXModule[covington.sty,drs.sty,forest.sty,pict2e.sty,varwidth.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"
158 Numbered_Example_(multiline), Numbered_Examples_(consecutive)
162 InsetLayout Flex:Subexample_Preamble
163 CopyStyle Flex:Example_Preamble
164 LatexName subexpreamble
165 LabelString "Subex. Preamble"
172 InsetLayout Flex:Example_Postamble
173 CopyStyle Flex:Example_Preamble
174 LatexName expostamble
175 LabelString "Ex. Postamble"
178 InsetLayout Flex:Subexample_Postamble
179 CopyStyle Flex:Example_Preamble
180 LatexName subexpostamble
181 LabelString "Subex. Postamble"
189 # Interlinear Glosses
192 # Two-Line gloss with covington.sty
193 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
198 Decoration minimalistic
207 Requires covington,csquotes
211 LabelString "Gloss options"
212 MenuString "Gloss Options|s"
213 Tooltip "Add digloss options here"
216 LabelString "Sentence Comment"
217 MenuString "Sentence Comment"
218 Tooltip "Add an optional sentence comment here"
221 Decoration conglomerate
222 LabelString "Interlinear Gloss"
223 MenuString "Interlinear Gloss"
224 Tooltip "Add the inter-linear gloss here"
231 LabelString "Gloss Comment"
232 MenuString "Gloss Comment"
233 Tooltip "Add an optional gloss comment here"
236 Decoration conglomerate
237 LabelString "Translation"
238 MenuString "Gloss Translation"
239 Tooltip "Add a free translation for the gloss"
248 # Three-Line gloss with covington.sty
249 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
251 LabelString Tri-Gloss
254 Decoration minimalistic
264 Requires covington,csquotes
267 LabelString "Gloss options"
268 MenuString "Gloss Options|s"
269 Tooltip "Add trigloss options here"
272 LabelString "Sentence Comment"
273 MenuString "Sentence Comment"
274 Tooltip "Add an optional sentence comment here"
277 Decoration conglomerate
278 LabelString "Interlinear Gloss (1)"
279 MenuString "Interlinear Gloss (Line 1)|1"
280 Tooltip "Add the first inter-linear gloss line here"
287 LabelString "Gloss Comment (1)"
288 MenuString "Gloss Comment (Line 1)"
289 Tooltip "Add an optional gloss comment here"
292 Decoration conglomerate
293 LabelString "Interlinear Gloss (2)"
294 MenuString "Interlinear Gloss (Line 2)|2"
295 Tooltip "Add the second inter-linear gloss line here"
302 LabelString "Gloss Comment (2)"
303 MenuString "Gloss Comment (Line 2)"
304 Tooltip "Add an optional gloss comment here"
307 Decoration conglomerate
308 LabelString "Translation"
309 MenuString "Gloss Translation"
310 Tooltip "Add a translation for the glosse"
318 # A helper to group words in glosses
319 InsetLayout Flex:GroupGlossedWords
326 Flex:Interlinear_Gloss_(2_Lines), Flex:Interlinear_Gloss_(2_Lines)@post:2,
327 Flex:Interlinear_Gloss_(3_Lines), Flex:Interlinear_Gloss_(3_Lines)@post:2,
328 Flex:Interlinear_Gloss_(3_Lines)@post:4
337 # Structure trees via the forest package
338 InsetLayout Flex:Structure_Tree
341 LatexType environment
349 ParbreakIsNewline true
355 % Load forest linguistics library, if available
356 \@ifpackagelater{forest}{2016/02/20}{%
357 \useforestlibrary*{linguistics}
360 DocBookRenderAsImage true
365 # Discourse Representation Structures
371 MenuString "Discourse Representation Structure|D"
377 ParbreakIsNewline true
382 Decoration conglomerate
383 LabelString "Referents"
384 MenuString "DRS Referents"
385 Tooltip "Add the DRS referents (universe) here"
392 InsetLayout Flex:DRS*
395 MenuString "Discourse Representation Structure (unspaced)|u"
400 InsetLayout Flex:IfThen-DRS
402 LabelString "If-Then DRS"
403 MenuString "If-Then DRS"
407 LabelString "Then-Referents"
408 MenuString "DRS Then-Referents"
409 Tooltip "Add the DRS then-referents (universe) here"
416 LabelString "Then-Conditions"
417 MenuString "DRS Then-Referents"
418 Tooltip "Add the DRS then-conditions here"
426 InsetLayout Flex:Cond-DRS
428 LabelString "Cond. DRS"
429 MenuString "Conditional DRS"
434 MenuString "DRS Condition"
435 Tooltip "Add the DRS condition here"
442 LabelString "Then-Referents"
443 MenuString "DRS Then-Referents"
444 Tooltip "Add the DRS then-referents (universe) here"
451 LabelString "Then-Conditions"
452 MenuString "DRS Then-Referents"
453 Tooltip "Add the DRS then-conditions here"
461 InsetLayout Flex:QDRS
463 LabelString "Dupl. Cond. DRS"
464 MenuString "Duplex Condition DRS"
469 MenuString "DRS Quantifier"
470 Tooltip "Add the DRS duplex quantifier here"
477 LabelString "Quant. Var."
478 MenuString "DRS Quantifier Variable"
479 Tooltip "Add the DRS duplex quantifier variables here"
486 LabelString "Then-Referents"
487 MenuString "DRS Then-Referents"
488 Tooltip "Add the DRS then-referents (universe) here"
495 LabelString "Then-Conditions"
496 MenuString "DRS Then-Referents"
497 Tooltip "Add the DRS then-conditions here"
506 InsetLayout Flex:NegDRS
508 LabelString "Neg. DRS"
509 MenuString "Negated DRS"
514 InsetLayout Flex:SDRS
516 LabelString "Sent. DRS"
517 MenuString "DRS with Sentence above"
520 Decoration conglomerate
521 LabelString "Sentence"
522 MenuString "DRS Sentence"
523 Tooltip "Add the sentence here"
529 Decoration conglomerate
530 LabelString "Referents"
531 MenuString "DRS Referents"
532 Tooltip "Add the DRS referents (universe) here"
544 InsetLayout Flex:Expression
558 InsetLayout Flex:Concepts
572 InsetLayout Flex:Meaning
577 Requires covington,csquotes
587 OutlinerName tableau "Tableaux" #no AddToToc
596 ListName "List of Tableaux"