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"
167 # Interlinear Glosses
170 # Two-Line gloss with covington.sty
171 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
176 Decoration minimalistic
185 Requires covington,csquotes
189 LabelString "Gloss options"
190 MenuString "Gloss Options|s"
191 Tooltip "Add digloss options here"
194 LabelString "Sentence Comment"
195 MenuString "Sentence Comment"
196 Tooltip "Add an optional sentence comment here"
199 Decoration conglomerate
200 LabelString "Interlinear Gloss"
201 MenuString "Interlinear Gloss"
202 Tooltip "Add the inter-linear gloss here"
209 LabelString "Gloss Comment"
210 MenuString "Gloss Comment"
211 Tooltip "Add an optional gloss comment here"
214 Decoration conglomerate
215 LabelString "Translation"
216 MenuString "Gloss Translation"
217 Tooltip "Add a free translation for the gloss"
226 # Three-Line gloss with covington.sty
227 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
229 LabelString Tri-Gloss
232 Decoration minimalistic
242 Requires covington,csquotes
245 LabelString "Gloss options"
246 MenuString "Gloss Options|s"
247 Tooltip "Add trigloss options here"
250 LabelString "Sentence Comment"
251 MenuString "Sentence Comment"
252 Tooltip "Add an optional sentence comment here"
255 Decoration conglomerate
256 LabelString "Interlinear Gloss (1)"
257 MenuString "Interlinear Gloss (Line 1)|1"
258 Tooltip "Add the first inter-linear gloss line here"
265 LabelString "Gloss Comment (1)"
266 MenuString "Gloss Comment (Line 1)"
267 Tooltip "Add an optional gloss comment here"
270 Decoration conglomerate
271 LabelString "Interlinear Gloss (2)"
272 MenuString "Interlinear Gloss (Line 2)|2"
273 Tooltip "Add the second inter-linear gloss line here"
280 LabelString "Gloss Comment (2)"
281 MenuString "Gloss Comment (Line 2)"
282 Tooltip "Add an optional gloss comment here"
285 Decoration conglomerate
286 LabelString "Translation"
287 MenuString "Gloss Translation"
288 Tooltip "Add a translation for the glosse"
296 # A helper to group words in glosses
297 InsetLayout Flex:GroupGlossedWords
310 # Structure trees via the forest package
311 InsetLayout Flex:Structure_Tree
314 LatexType environment
322 ParbreakIsNewline true
328 % Load forest linguistics library, if available
329 \@ifpackagelater{forest}{2016/02/20}{%
330 \useforestlibrary*{linguistics}
333 DocBookRenderAsImage true
338 # Discourse Representation Structures
344 MenuString "Discourse Representation Structure|D"
350 ParbreakIsNewline true
355 Decoration conglomerate
356 LabelString "Referents"
357 MenuString "DRS Referents"
358 Tooltip "Add the DRS referents (universe) here"
365 InsetLayout Flex:DRS*
368 MenuString "Discourse Representation Structure (unspaced)|u"
373 InsetLayout Flex:IfThen-DRS
375 LabelString "If-Then DRS"
376 MenuString "If-Then DRS"
380 LabelString "Then-Referents"
381 MenuString "DRS Then-Referents"
382 Tooltip "Add the DRS then-referents (universe) here"
389 LabelString "Then-Conditions"
390 MenuString "DRS Then-Referents"
391 Tooltip "Add the DRS then-conditions here"
399 InsetLayout Flex:Cond-DRS
401 LabelString "Cond. DRS"
402 MenuString "Conditional DRS"
407 MenuString "DRS Condition"
408 Tooltip "Add the DRS condition here"
415 LabelString "Then-Referents"
416 MenuString "DRS Then-Referents"
417 Tooltip "Add the DRS then-referents (universe) here"
424 LabelString "Then-Conditions"
425 MenuString "DRS Then-Referents"
426 Tooltip "Add the DRS then-conditions here"
434 InsetLayout Flex:QDRS
436 LabelString "Dupl. Cond. DRS"
437 MenuString "Duplex Condition DRS"
442 MenuString "DRS Quantifier"
443 Tooltip "Add the DRS duplex quantifier here"
450 LabelString "Quant. Var."
451 MenuString "DRS Quantifier Variable"
452 Tooltip "Add the DRS duplex quantifier variables here"
459 LabelString "Then-Referents"
460 MenuString "DRS Then-Referents"
461 Tooltip "Add the DRS then-referents (universe) here"
468 LabelString "Then-Conditions"
469 MenuString "DRS Then-Referents"
470 Tooltip "Add the DRS then-conditions here"
479 InsetLayout Flex:NegDRS
481 LabelString "Neg. DRS"
482 MenuString "Negated DRS"
487 InsetLayout Flex:SDRS
489 LabelString "Sent. DRS"
490 MenuString "DRS with Sentence above"
493 Decoration conglomerate
494 LabelString "Sentence"
495 MenuString "DRS Sentence"
496 Tooltip "Add the sentence here"
502 Decoration conglomerate
503 LabelString "Referents"
504 MenuString "DRS Referents"
505 Tooltip "Add the DRS referents (universe) here"
517 InsetLayout Flex:Expression
531 InsetLayout Flex:Concepts
545 InsetLayout Flex:Meaning
550 Requires covington,csquotes
560 OutlinerName tableau "Tableaux" #no AddToToc
569 ListName "List of Tableaux"