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 linguistics.lyx file in examples.
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 DocBookWrapperTag informalexample
86 DocBookWrapperAttr role='numbered'
87 DocBookWrapperMergeWithPrevious true
92 # Multiple numbered examples with covington.sty
93 Style Numbered_Examples_(consecutive)
94 CopyStyle Numbered_Example_(multiline)
95 LatexType Item_Environment
98 LabelCounter "example"
100 Argument listpreamble:1
101 LabelString "List preamble"
102 MenuString "List Preamble"
103 Tooltip "LaTeX code to be inserted before the first item"
111 LabelString "Custom Numbering|s"
112 Tooltip "Customize the numeration"
114 DocBookWrapperTag informalexample
115 DocBookWrapperAttr role='consecutive'
116 DocBookWrapperMergeWithPrevious true
118 HTMLClass NumberedExample
122 # Sub-examples with covington.sty
124 CopyStyle Numbered_Examples_(consecutive)
125 LatexName covsubexamples
126 LabelCounter "subexample"
127 StepParentCounter true
130 LabelString "Subexamples options"
131 MenuString "Subexamples options|s"
132 Tooltip "Add subexamples options here"
140 # Interlinear Glosses
143 # Two-Line gloss with covington.sty
144 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
149 Decoration minimalistic
158 Requires covington,csquotes
162 LabelString "Gloss options"
163 MenuString "Gloss Options|s"
164 Tooltip "Add digloss options here"
167 Decoration conglomerate
168 LabelString "Interlinear Gloss"
169 MenuString "Interlinear Gloss"
170 Tooltip "Add the inter-linear gloss here"
177 Decoration conglomerate
178 LabelString "Translation"
179 MenuString "Gloss Translation"
180 Tooltip "Add a free translation for the gloss"
189 # Three-Line gloss with covington.sty
190 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
192 LabelString Tri-Gloss
195 Decoration minimalistic
205 Requires covington,csquotes
208 LabelString "Gloss options"
209 MenuString "Gloss Options|s"
210 Tooltip "Add trigloss options here"
213 Decoration conglomerate
214 LabelString "Interlinear Gloss (1)"
215 MenuString "Interlinear Gloss (Line 1)|1"
216 Tooltip "Add the first inter-linear gloss line here"
223 Decoration conglomerate
224 LabelString "Interlinear Gloss (2)"
225 MenuString "Interlinear Gloss (Line 2)|2"
226 Tooltip "Add the first inter-linear gloss line here"
233 Decoration conglomerate
234 LabelString "Translation"
235 MenuString "Gloss Translation"
236 Tooltip "Add a translation for the glosse"
244 # A helper to group words in glosses
245 InsetLayout Flex:GroupGlossedWords
258 # Structure trees via the forest package
259 InsetLayout Flex:Structure_Tree
262 LatexType environment
270 ParbreakIsNewline true
276 % Load forest linguistics library, if available
277 \@ifpackagelater{forest}{2016/02/20}{%
278 \useforestlibrary*{linguistics}
281 DocBookRenderAsImage true
286 # Discourse Representation Structures
292 MenuString "Discourse Representation Structure|D"
298 ParbreakIsNewline true
303 Decoration conglomerate
304 LabelString "Referents"
305 MenuString "DRS Referents"
306 Tooltip "Add the DRS referents (universe) here"
313 InsetLayout Flex:DRS*
316 MenuString "Discourse Representation Structure (unspaced)|u"
321 InsetLayout Flex:IfThen-DRS
323 LabelString "If-Then DRS"
324 MenuString "If-Then DRS"
328 LabelString "Then-Referents"
329 MenuString "DRS Then-Referents"
330 Tooltip "Add the DRS then-referents (universe) here"
337 LabelString "Then-Conditions"
338 MenuString "DRS Then-Referents"
339 Tooltip "Add the DRS then-conditions here"
347 InsetLayout Flex:Cond-DRS
349 LabelString "Cond. DRS"
350 MenuString "Conditional DRS"
355 MenuString "DRS Condition"
356 Tooltip "Add the DRS condition here"
363 LabelString "Then-Referents"
364 MenuString "DRS Then-Referents"
365 Tooltip "Add the DRS then-referents (universe) here"
372 LabelString "Then-Conditions"
373 MenuString "DRS Then-Referents"
374 Tooltip "Add the DRS then-conditions here"
382 InsetLayout Flex:QDRS
384 LabelString "Dupl. Cond. DRS"
385 MenuString "Duplex Condition DRS"
390 MenuString "DRS Quantifier"
391 Tooltip "Add the DRS duplex quantifier here"
398 LabelString "Quant. Var."
399 MenuString "DRS Quantifier Variable"
400 Tooltip "Add the DRS duplex quantifier variables here"
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"
427 InsetLayout Flex:NegDRS
429 LabelString "Neg. DRS"
430 MenuString "Negated DRS"
435 InsetLayout Flex:SDRS
437 LabelString "Sent. DRS"
438 MenuString "DRS with Sentence above"
441 Decoration conglomerate
442 LabelString "Sentence"
443 MenuString "DRS Sentence"
444 Tooltip "Add the sentence here"
450 Decoration conglomerate
451 LabelString "Referents"
452 MenuString "DRS Referents"
453 Tooltip "Add the DRS referents (universe) here"
465 InsetLayout Flex:Expression
479 InsetLayout Flex:Concepts
493 InsetLayout Flex:Meaning
498 Requires covington,csquotes
508 OutlinerName tableau "Tableaux" #no AddToToc
517 ListName "List of Tableaux"