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})"
21 PrettyFormat "(\arabic{example})"
25 GuiName "Numbered Example (Multiline)"
27 LabelString "(\arabic{examplei})"
28 PrettyFormat "(\arabic{examplei})"
34 LabelString "\theexamplei (\alph{subexample})"
35 PrettyFormat "\theexamplei (\alph{subexample})"
41 LabelString "\theexamplei (\alph{subexamplei})"
42 PrettyFormat "\theexamplei (\alph{subexamplei})"
48 LabelString "\theexamplei (\alph{subexampleii})"
49 PrettyFormat "\theexamplei (\alph{subexampleii})"
55 LabelString "\theexamplei (\alph{subexampleiii})"
56 PrettyFormat "\theexamplei (\alph{subexampleiii})"
62 LabelString "\theexamplei (\alph{subexampleiv})"
63 PrettyFormat "\theexamplei (\alph{subexampleiv})"
70 # Single numbered example with covington.sty
71 Style Numbered_Example_(multiline)
84 AlignPossible Block, Left
86 LabelCounter "examplei"
92 LabelString "Example options"
93 MenuString "Examples options|s"
94 Tooltip "Add examples options here"
98 DocBookWrapperTag informalexample
99 DocBookWrapperAttr role='numbered'
100 DocBookWrapperMergeWithPrevious true
105 # Multiple numbered examples with covington.sty
106 Style Numbered_Examples_(consecutive)
107 CopyStyle Numbered_Example_(multiline)
108 LatexType Item_Environment
109 LatexName covexamples
111 LabelCounter "example"
113 Argument listpreamble:1
114 LabelString "List preamble"
115 MenuString "List Preamble"
116 Tooltip "LaTeX code to be inserted before the first item"
124 LabelString "Judgment|J"
125 Tooltip "Grammaticality judgment marker"
130 LabelString "Custom Numbering|s"
131 Tooltip "Customize the numeration"
133 DocBookWrapperTag informalexample
134 DocBookWrapperAttr role='consecutive'
135 DocBookWrapperMergeWithPrevious true
137 HTMLClass NumberedExample
141 # Sub-examples with covington.sty
143 CopyStyle Numbered_Examples_(consecutive)
144 LatexName covsubexamples
145 LabelCounter "subexample"
146 StepParentCounter true
149 LabelString "Subexamples options"
150 MenuString "Subexamples options|s"
151 Tooltip "Add subexamples options here"
157 InsetLayout Flex:Example_Preamble
162 LabelString "Ex. Preamble"
165 Numbered_Example_(multiline), Numbered_Examples_(consecutive)
168 AllowedOccurrencesPerItem true
171 InsetLayout Flex:Subexample_Preamble
172 CopyStyle Flex:Example_Preamble
173 LatexName subexpreamble
174 LabelString "Subex. Preamble"
181 InsetLayout Flex:Example_Postamble
182 CopyStyle Flex:Example_Preamble
183 LatexName expostamble
184 LabelString "Ex. Postamble"
187 InsetLayout Flex:Subexample_Postamble
188 CopyStyle Flex:Example_Preamble
189 LatexName subexpostamble
190 LabelString "Subex. Postamble"
198 # Interlinear Glosses
201 # Two-Line gloss with covington.sty
202 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
207 Decoration minimalistic
216 Requires covington,csquotes
220 LabelString "Gloss options"
221 MenuString "Gloss Options|s"
222 Tooltip "Add digloss options here"
225 LabelString "Sentence Comment"
226 MenuString "Sentence Comment"
227 Tooltip "Add an optional sentence comment here"
230 Decoration conglomerate
231 LabelString "Interlinear Gloss"
232 MenuString "Interlinear Gloss"
233 Tooltip "Add the inter-linear gloss here"
240 LabelString "Gloss Comment"
241 MenuString "Gloss Comment"
242 Tooltip "Add an optional gloss comment here"
245 Decoration conglomerate
246 LabelString "Translation"
247 MenuString "Gloss Translation"
248 Tooltip "Add a free translation for the gloss"
257 # Three-Line gloss with covington.sty
258 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
260 LabelString Tri-Gloss
263 Decoration minimalistic
273 Requires covington,csquotes
276 LabelString "Gloss options"
277 MenuString "Gloss Options|s"
278 Tooltip "Add trigloss options here"
281 LabelString "Sentence Comment"
282 MenuString "Sentence Comment"
283 Tooltip "Add an optional sentence comment here"
286 Decoration conglomerate
287 LabelString "Interlinear Gloss (1)"
288 MenuString "Interlinear Gloss (Line 1)|1"
289 Tooltip "Add the first inter-linear gloss line here"
296 LabelString "Gloss Comment (1)"
297 MenuString "Gloss Comment (Line 1)"
298 Tooltip "Add an optional gloss comment here"
301 Decoration conglomerate
302 LabelString "Interlinear Gloss (2)"
303 MenuString "Interlinear Gloss (Line 2)|2"
304 Tooltip "Add the second inter-linear gloss line here"
311 LabelString "Gloss Comment (2)"
312 MenuString "Gloss Comment (Line 2)"
313 Tooltip "Add an optional gloss comment here"
316 Decoration conglomerate
317 LabelString "Translation"
318 MenuString "Gloss Translation"
319 Tooltip "Add a translation for the glosse"
327 # A helper to group words in glosses
328 InsetLayout Flex:GroupGlossedWords
335 Flex:Interlinear_Gloss_(2_Lines), Flex:Interlinear_Gloss_(2_Lines)@post:2,
336 Flex:Interlinear_Gloss_(3_Lines), Flex:Interlinear_Gloss_(3_Lines)@post:2,
337 Flex:Interlinear_Gloss_(3_Lines)@post:4
346 # Structure trees via the forest package
347 InsetLayout Flex:Structure_Tree
350 LatexType environment
358 ParbreakIsNewline true
364 % Load forest linguistics library, if available
365 \@ifpackagelater{forest}{2016/02/20}{%
366 \useforestlibrary*{linguistics}
369 DocBookRenderAsImage true
374 # Discourse Representation Structures
380 MenuString "Discourse Representation Structure|D"
386 ParbreakIsNewline true
391 Decoration conglomerate
392 LabelString "Referents"
393 MenuString "DRS Referents"
394 Tooltip "Add the DRS referents (universe) here"
401 InsetLayout Flex:DRS*
404 MenuString "Discourse Representation Structure (unspaced)|u"
409 InsetLayout Flex:IfThen-DRS
411 LabelString "If-Then DRS"
412 MenuString "If-Then DRS"
416 LabelString "Then-Referents"
417 MenuString "DRS Then-Referents"
418 Tooltip "Add the DRS then-referents (universe) here"
425 LabelString "Then-Conditions"
426 MenuString "DRS Then-Referents"
427 Tooltip "Add the DRS then-conditions here"
435 InsetLayout Flex:Cond-DRS
437 LabelString "Cond. DRS"
438 MenuString "Conditional DRS"
443 MenuString "DRS Condition"
444 Tooltip "Add the DRS condition here"
451 LabelString "Then-Referents"
452 MenuString "DRS Then-Referents"
453 Tooltip "Add the DRS then-referents (universe) here"
460 LabelString "Then-Conditions"
461 MenuString "DRS Then-Referents"
462 Tooltip "Add the DRS then-conditions here"
470 InsetLayout Flex:QDRS
472 LabelString "Dupl. Cond. DRS"
473 MenuString "Duplex Condition DRS"
478 MenuString "DRS Quantifier"
479 Tooltip "Add the DRS duplex quantifier here"
486 LabelString "Quant. Var."
487 MenuString "DRS Quantifier Variable"
488 Tooltip "Add the DRS duplex quantifier variables here"
495 LabelString "Then-Referents"
496 MenuString "DRS Then-Referents"
497 Tooltip "Add the DRS then-referents (universe) here"
504 LabelString "Then-Conditions"
505 MenuString "DRS Then-Referents"
506 Tooltip "Add the DRS then-conditions here"
515 InsetLayout Flex:NegDRS
517 LabelString "Neg. DRS"
518 MenuString "Negated DRS"
523 InsetLayout Flex:SDRS
525 LabelString "Sent. DRS"
526 MenuString "DRS with Sentence above"
529 Decoration conglomerate
530 LabelString "Sentence"
531 MenuString "DRS Sentence"
532 Tooltip "Add the sentence here"
538 Decoration conglomerate
539 LabelString "Referents"
540 MenuString "DRS Referents"
541 Tooltip "Add the DRS referents (universe) here"
553 InsetLayout Flex:Expression
567 InsetLayout Flex:Concepts
581 InsetLayout Flex:Meaning
586 Requires covington,csquotes
596 OutlinerName tableau "Tableaux" #no AddToToc
605 ListName "List of Tableaux"
608 PrettyFormat "Tableau ##"