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)
163 InsetLayout Flex:Subexample_Preamble
164 CopyStyle Flex:Example_Preamble
165 LatexName subexpreamble
166 LabelString "Subex. Preamble"
173 InsetLayout Flex:Example_Postamble
174 CopyStyle Flex:Example_Preamble
175 LatexName expostamble
176 LabelString "Ex. Postamble"
179 InsetLayout Flex:Subexample_Postamble
180 CopyStyle Flex:Example_Preamble
181 LatexName subexpostamble
182 LabelString "Subex. Postamble"
190 # Interlinear Glosses
193 # Two-Line gloss with covington.sty
194 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
199 Decoration minimalistic
208 Requires covington,csquotes
212 LabelString "Gloss options"
213 MenuString "Gloss Options|s"
214 Tooltip "Add digloss options here"
217 LabelString "Sentence Comment"
218 MenuString "Sentence Comment"
219 Tooltip "Add an optional sentence comment here"
222 Decoration conglomerate
223 LabelString "Interlinear Gloss"
224 MenuString "Interlinear Gloss"
225 Tooltip "Add the inter-linear gloss here"
232 LabelString "Gloss Comment"
233 MenuString "Gloss Comment"
234 Tooltip "Add an optional gloss comment here"
237 Decoration conglomerate
238 LabelString "Translation"
239 MenuString "Gloss Translation"
240 Tooltip "Add a free translation for the gloss"
249 # Three-Line gloss with covington.sty
250 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
252 LabelString Tri-Gloss
255 Decoration minimalistic
265 Requires covington,csquotes
268 LabelString "Gloss options"
269 MenuString "Gloss Options|s"
270 Tooltip "Add trigloss options here"
273 LabelString "Sentence Comment"
274 MenuString "Sentence Comment"
275 Tooltip "Add an optional sentence comment here"
278 Decoration conglomerate
279 LabelString "Interlinear Gloss (1)"
280 MenuString "Interlinear Gloss (Line 1)|1"
281 Tooltip "Add the first inter-linear gloss line here"
288 LabelString "Gloss Comment (1)"
289 MenuString "Gloss Comment (Line 1)"
290 Tooltip "Add an optional gloss comment here"
293 Decoration conglomerate
294 LabelString "Interlinear Gloss (2)"
295 MenuString "Interlinear Gloss (Line 2)|2"
296 Tooltip "Add the second inter-linear gloss line here"
303 LabelString "Gloss Comment (2)"
304 MenuString "Gloss Comment (Line 2)"
305 Tooltip "Add an optional gloss comment here"
308 Decoration conglomerate
309 LabelString "Translation"
310 MenuString "Gloss Translation"
311 Tooltip "Add a translation for the glosse"
319 # A helper to group words in glosses
320 InsetLayout Flex:GroupGlossedWords
327 Flex:Interlinear_Gloss_(2_Lines), Flex:Interlinear_Gloss_(2_Lines)@post:2,
328 Flex:Interlinear_Gloss_(3_Lines), Flex:Interlinear_Gloss_(3_Lines)@post:2,
329 Flex:Interlinear_Gloss_(3_Lines)@post:4
338 # Structure trees via the forest package
339 InsetLayout Flex:Structure_Tree
342 LatexType environment
350 ParbreakIsNewline true
356 % Load forest linguistics library, if available
357 \@ifpackagelater{forest}{2016/02/20}{%
358 \useforestlibrary*{linguistics}
361 DocBookRenderAsImage true
366 # Discourse Representation Structures
372 MenuString "Discourse Representation Structure|D"
378 ParbreakIsNewline true
383 Decoration conglomerate
384 LabelString "Referents"
385 MenuString "DRS Referents"
386 Tooltip "Add the DRS referents (universe) here"
393 InsetLayout Flex:DRS*
396 MenuString "Discourse Representation Structure (unspaced)|u"
401 InsetLayout Flex:IfThen-DRS
403 LabelString "If-Then DRS"
404 MenuString "If-Then DRS"
408 LabelString "Then-Referents"
409 MenuString "DRS Then-Referents"
410 Tooltip "Add the DRS then-referents (universe) here"
417 LabelString "Then-Conditions"
418 MenuString "DRS Then-Referents"
419 Tooltip "Add the DRS then-conditions here"
427 InsetLayout Flex:Cond-DRS
429 LabelString "Cond. DRS"
430 MenuString "Conditional DRS"
435 MenuString "DRS Condition"
436 Tooltip "Add the DRS condition here"
443 LabelString "Then-Referents"
444 MenuString "DRS Then-Referents"
445 Tooltip "Add the DRS then-referents (universe) here"
452 LabelString "Then-Conditions"
453 MenuString "DRS Then-Referents"
454 Tooltip "Add the DRS then-conditions here"
462 InsetLayout Flex:QDRS
464 LabelString "Dupl. Cond. DRS"
465 MenuString "Duplex Condition DRS"
470 MenuString "DRS Quantifier"
471 Tooltip "Add the DRS duplex quantifier here"
478 LabelString "Quant. Var."
479 MenuString "DRS Quantifier Variable"
480 Tooltip "Add the DRS duplex quantifier variables here"
487 LabelString "Then-Referents"
488 MenuString "DRS Then-Referents"
489 Tooltip "Add the DRS then-referents (universe) here"
496 LabelString "Then-Conditions"
497 MenuString "DRS Then-Referents"
498 Tooltip "Add the DRS then-conditions here"
507 InsetLayout Flex:NegDRS
509 LabelString "Neg. DRS"
510 MenuString "Negated DRS"
515 InsetLayout Flex:SDRS
517 LabelString "Sent. DRS"
518 MenuString "DRS with Sentence above"
521 Decoration conglomerate
522 LabelString "Sentence"
523 MenuString "DRS Sentence"
524 Tooltip "Add the sentence here"
530 Decoration conglomerate
531 LabelString "Referents"
532 MenuString "DRS Referents"
533 Tooltip "Add the DRS referents (universe) here"
545 InsetLayout Flex:Expression
559 InsetLayout Flex:Concepts
573 InsetLayout Flex:Meaning
578 Requires covington,csquotes
588 OutlinerName tableau "Tableaux" #no AddToToc
597 ListName "List of Tableaux"