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)
161 AllowedOccurrencesPerItem true
164 InsetLayout Flex:Subexample_Preamble
165 CopyStyle Flex:Example_Preamble
166 LatexName subexpreamble
167 LabelString "Subex. Preamble"
174 InsetLayout Flex:Example_Postamble
175 CopyStyle Flex:Example_Preamble
176 LatexName expostamble
177 LabelString "Ex. Postamble"
180 InsetLayout Flex:Subexample_Postamble
181 CopyStyle Flex:Example_Preamble
182 LatexName subexpostamble
183 LabelString "Subex. Postamble"
191 # Interlinear Glosses
194 # Two-Line gloss with covington.sty
195 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
200 Decoration minimalistic
209 Requires covington,csquotes
213 LabelString "Gloss options"
214 MenuString "Gloss Options|s"
215 Tooltip "Add digloss options here"
218 LabelString "Sentence Comment"
219 MenuString "Sentence Comment"
220 Tooltip "Add an optional sentence comment here"
223 Decoration conglomerate
224 LabelString "Interlinear Gloss"
225 MenuString "Interlinear Gloss"
226 Tooltip "Add the inter-linear gloss here"
233 LabelString "Gloss Comment"
234 MenuString "Gloss Comment"
235 Tooltip "Add an optional gloss comment here"
238 Decoration conglomerate
239 LabelString "Translation"
240 MenuString "Gloss Translation"
241 Tooltip "Add a free translation for the gloss"
250 # Three-Line gloss with covington.sty
251 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
253 LabelString Tri-Gloss
256 Decoration minimalistic
266 Requires covington,csquotes
269 LabelString "Gloss options"
270 MenuString "Gloss Options|s"
271 Tooltip "Add trigloss options here"
274 LabelString "Sentence Comment"
275 MenuString "Sentence Comment"
276 Tooltip "Add an optional sentence comment here"
279 Decoration conglomerate
280 LabelString "Interlinear Gloss (1)"
281 MenuString "Interlinear Gloss (Line 1)|1"
282 Tooltip "Add the first inter-linear gloss line here"
289 LabelString "Gloss Comment (1)"
290 MenuString "Gloss Comment (Line 1)"
291 Tooltip "Add an optional gloss comment here"
294 Decoration conglomerate
295 LabelString "Interlinear Gloss (2)"
296 MenuString "Interlinear Gloss (Line 2)|2"
297 Tooltip "Add the second inter-linear gloss line here"
304 LabelString "Gloss Comment (2)"
305 MenuString "Gloss Comment (Line 2)"
306 Tooltip "Add an optional gloss comment here"
309 Decoration conglomerate
310 LabelString "Translation"
311 MenuString "Gloss Translation"
312 Tooltip "Add a translation for the glosse"
320 # A helper to group words in glosses
321 InsetLayout Flex:GroupGlossedWords
328 Flex:Interlinear_Gloss_(2_Lines), Flex:Interlinear_Gloss_(2_Lines)@post:2,
329 Flex:Interlinear_Gloss_(3_Lines), Flex:Interlinear_Gloss_(3_Lines)@post:2,
330 Flex:Interlinear_Gloss_(3_Lines)@post:4
339 # Structure trees via the forest package
340 InsetLayout Flex:Structure_Tree
343 LatexType environment
351 ParbreakIsNewline true
357 % Load forest linguistics library, if available
358 \@ifpackagelater{forest}{2016/02/20}{%
359 \useforestlibrary*{linguistics}
362 DocBookRenderAsImage true
367 # Discourse Representation Structures
373 MenuString "Discourse Representation Structure|D"
379 ParbreakIsNewline true
384 Decoration conglomerate
385 LabelString "Referents"
386 MenuString "DRS Referents"
387 Tooltip "Add the DRS referents (universe) here"
394 InsetLayout Flex:DRS*
397 MenuString "Discourse Representation Structure (unspaced)|u"
402 InsetLayout Flex:IfThen-DRS
404 LabelString "If-Then DRS"
405 MenuString "If-Then DRS"
409 LabelString "Then-Referents"
410 MenuString "DRS Then-Referents"
411 Tooltip "Add the DRS then-referents (universe) here"
418 LabelString "Then-Conditions"
419 MenuString "DRS Then-Referents"
420 Tooltip "Add the DRS then-conditions here"
428 InsetLayout Flex:Cond-DRS
430 LabelString "Cond. DRS"
431 MenuString "Conditional DRS"
436 MenuString "DRS Condition"
437 Tooltip "Add the DRS condition here"
444 LabelString "Then-Referents"
445 MenuString "DRS Then-Referents"
446 Tooltip "Add the DRS then-referents (universe) here"
453 LabelString "Then-Conditions"
454 MenuString "DRS Then-Referents"
455 Tooltip "Add the DRS then-conditions here"
463 InsetLayout Flex:QDRS
465 LabelString "Dupl. Cond. DRS"
466 MenuString "Duplex Condition DRS"
471 MenuString "DRS Quantifier"
472 Tooltip "Add the DRS duplex quantifier here"
479 LabelString "Quant. Var."
480 MenuString "DRS Quantifier Variable"
481 Tooltip "Add the DRS duplex quantifier variables here"
488 LabelString "Then-Referents"
489 MenuString "DRS Then-Referents"
490 Tooltip "Add the DRS then-referents (universe) here"
497 LabelString "Then-Conditions"
498 MenuString "DRS Then-Referents"
499 Tooltip "Add the DRS then-conditions here"
508 InsetLayout Flex:NegDRS
510 LabelString "Neg. DRS"
511 MenuString "Negated DRS"
516 InsetLayout Flex:SDRS
518 LabelString "Sent. DRS"
519 MenuString "DRS with Sentence above"
522 Decoration conglomerate
523 LabelString "Sentence"
524 MenuString "DRS Sentence"
525 Tooltip "Add the sentence here"
531 Decoration conglomerate
532 LabelString "Referents"
533 MenuString "DRS Referents"
534 Tooltip "Add the DRS referents (universe) here"
546 InsetLayout Flex:Expression
560 InsetLayout Flex:Concepts
574 InsetLayout Flex:Meaning
579 Requires covington,csquotes
589 OutlinerName tableau "Tableaux" #no AddToToc
598 ListName "List of Tableaux"