]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / linguistics.module
1 #\DeclareLyXModule[covington.sty,drs.sty,forest.sty,pict2e.sty]{Linguistics}
2 #\DeclareCategory{Academic Field Specifics}
3 #DescriptionBegin
4 #Defines some special environments useful for linguistics (numbered examples,
5 #glosses, semantic markup, tableau floats).
6 #See linguistics.lyx file in examples.
7 #DescriptionEnd
8
9 # Author: Jürgen Spitzmüller <spitz@lyx.org>
10
11 Format 99
12
13 #
14 # Counters
15 #
16
17 Counter example
18         GuiName Example
19         Within               chapter
20         LabelString          "(\arabic{example})"
21 End
22
23 Counter examplei
24         GuiName              "Numbered Example (Multiline)"
25         Within               chapter
26         LabelString          "(\arabic{examplei})"
27 End
28
29 Counter subexample
30         GuiName              Subexample
31         Within               examplei
32         LabelString          "\theexamplei (\alph{subexample})"
33 End
34
35 Counter subexamplei
36         GuiName              Subexample
37         Within               examplei
38         LabelString          "\theexamplei (\alph{subexamplei})"
39 End
40
41 Counter subexampleii
42         GuiName              Subexample
43         Within               examplei
44         LabelString          "\theexamplei (\alph{subexampleii})"
45 End
46
47 Counter subexampleiii
48         GuiName              Subexample
49         Within               examplei
50         LabelString          "\theexamplei (\alph{subexampleiii})"
51 End
52
53 Counter subexampleiv
54         GuiName              Subexample
55         Within               examplei
56         LabelString          "\theexamplei (\alph{subexampleiv})"
57 End
58
59 #
60 # Numbered Examples
61 #
62
63 # Single numbered example with covington.sty
64 Style Numbered_Example_(multiline)
65         LatexType             Environment
66         LatexName             covexample
67         NextNoIndent          1
68         Margin                First_Dynamic
69         ParIndent             (1)x
70         LabelSep              xx
71         ParSkip               0.0
72         ItemSep               0.2
73         TopSep                0.7
74         BottomSep             0.7
75         ParSep                0.3
76         Align                 Block
77         AlignPossible         Block, Left
78         LabelType             Static
79         LabelCounter          "examplei"
80         LabelFont
81                 Color         textlabel1
82         EndFont
83         Requires              covington
84         Category              Linguistics
85         DocBookWrapperTag     informalexample
86         DocBookWrapperAttr    role='numbered'
87         DocBookWrapperMergeWithPrevious  true
88         DocBookTag            para
89 End
90
91
92 # Multiple numbered examples with covington.sty
93 Style Numbered_Examples_(consecutive)
94         CopyStyle             Numbered_Example_(multiline)
95         LatexType             Item_Environment
96         LatexName             covexamples
97         LabelType             Enumerate
98         LabelCounter          "example"
99         ResumeCounter         true
100         Argument listpreamble:1
101                 LabelString    "List preamble"
102                 MenuString     "List Preamble"
103                 Tooltip        "LaTeX code to be inserted before the first item"
104                 PassThru       1
105                 Font
106                         Family typewriter
107                         Color latex
108                 EndFont
109         EndArgument
110         Argument item:1
111                 LabelString   "Custom Numbering|s"
112                 Tooltip       "Customize the numeration"
113         EndArgument
114         DocBookWrapperTag     informalexample
115         DocBookWrapperAttr    role='consecutive'
116         DocBookWrapperMergeWithPrevious  true
117         DocBookTag            para
118         HTMLClass             NumberedExample
119 End
120
121
122 # Sub-examples with covington.sty
123 Style Subexample
124         CopyStyle             Numbered_Examples_(consecutive)
125         LatexName             covsubexamples
126         LabelCounter          "subexample"
127         StepParentCounter     true
128         Requires              covington
129         Argument 1
130                 LabelString   "Subexamples options"
131                 MenuString    "Subexamples options|s"
132                 Tooltip       "Add subexamples options here"
133                 PassThru       1
134         EndArgument
135         HTMLClass          SubExample
136 End
137
138
139 #
140 # Interlinear Glosses
141 #
142
143 # Two-Line gloss with covington.sty
144 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
145         LyXType               custom
146         LabelString           Gloss
147         LatexType             command
148         LatexName             digloss
149         Decoration            minimalistic
150         LabelFont
151           Size                Small
152         EndFont
153         MultiPar              true
154         CustomPars            false
155         ForcePlain            true
156         ParbreakIgnored       true
157         FreeSpacing           true
158         Requires              covington,csquotes
159         InToc                 true
160         ResetsFont            true
161         Argument 1
162                 LabelString   "Gloss options"
163                 MenuString    "Gloss Options|s"
164                 Tooltip       "Add digloss options here"
165         EndArgument
166         Argument post:1
167                 Decoration    conglomerate
168                 LabelString   "Interlinear Gloss"
169                 MenuString    "Interlinear Gloss"
170                 Tooltip       "Add the inter-linear gloss here"
171                 AutoInsert    true
172                 Mandatory     true
173                 FreeSpacing   true
174                 InsertOnNewline true
175         EndArgument
176         Argument post:2
177                 Decoration    conglomerate
178                 LabelString   "Translation"
179                 MenuString    "Gloss Translation"
180                 Tooltip       "Add a free translation for the gloss"
181                 AutoInsert    true
182                 Mandatory     true
183                 FreeSpacing   true
184                 InsertOnNewline true
185         EndArgument
186 End
187
188
189 # Three-Line gloss with covington.sty
190 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
191         LyXType               custom
192         LabelString           Tri-Gloss
193         LatexType             command
194         LatexName             trigloss
195         Decoration            minimalistic
196         LabelFont
197           Size                Small
198         EndFont
199         MultiPar              true
200         CustomPars            false
201         ForcePlain            true
202         ParbreakIgnored       true
203         FreeSpacing           true
204         InToc                 true
205         Requires              covington,csquotes
206         ResetsFont            true
207         Argument 1
208                 LabelString   "Gloss options"
209                 MenuString    "Gloss Options|s"
210                 Tooltip       "Add trigloss options here"
211         EndArgument
212         Argument post:1
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"
217                 Mandatory     true
218                 AutoInsert    true
219                 FreeSpacing   true
220                 InsertOnNewline true
221         EndArgument
222         Argument post:2
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"
227                 Mandatory     true
228                 AutoInsert    true
229                 FreeSpacing   true
230                 InsertOnNewline true
231         EndArgument
232         Argument post:3
233                 Decoration    conglomerate
234                 LabelString   "Translation"
235                 MenuString    "Gloss Translation"
236                 Tooltip       "Add a translation for the glosse"
237                 Mandatory     true
238                 AutoInsert    true
239                 InsertOnNewline true
240         EndArgument
241 End
242
243
244 # A helper to group words in glosses
245 InsetLayout Flex:GroupGlossedWords
246         LyxType               charstyle
247         LabelString           Group
248         LeftDelim             {
249         RightDelim            }
250         ResetsFont            true
251 End
252
253
254 #
255 # Trees
256 #
257
258 # Structure trees via the forest package
259 InsetLayout Flex:Structure_Tree
260         LyXType               custom
261         LabelString           Tree
262         LatexType             environment
263         LatexName             forest
264         Decoration            classic
265         LabelFont
266           Size                Small
267         EndFont
268         MultiPar              true
269         CustomPars            false
270         ParbreakIsNewline     true
271         FreeSpacing           true
272         Requires              forest
273         ResetsFont            true
274         PassThruChars         []
275         Preamble
276         % Load forest linguistics library, if available
277         \@ifpackagelater{forest}{2016/02/20}{%
278         \useforestlibrary*{linguistics}
279         }{}
280         EndPreamble
281     DocBookRenderAsImage  true
282 End
283
284
285 #
286 # Discourse Representation Structures
287 #
288
289 InsetLayout Flex:DRS
290         LyXType               custom
291         LabelString           DRS
292         MenuString            "Discourse Representation Structure|D"
293         LatexType             command
294         LatexName             drs
295         Decoration            classic
296         MultiPar              true
297         CustomPars            false
298         ParbreakIsNewline     true
299         FreeSpacing           true
300         Requires              drs
301         ResetsFont            true
302         Argument 1
303                 Decoration    conglomerate
304                 LabelString   "Referents"
305                 MenuString    "DRS Referents"
306                 Tooltip       "Add the DRS referents (universe) here"
307                 Mandatory     true
308                 AutoInsert    true
309         EndArgument
310 End
311
312
313 InsetLayout Flex:DRS*
314         CopyStyle             Flex:DRS
315         LabelString           DRS*
316         MenuString            "Discourse Representation Structure (unspaced)|u"
317         LatexName             drs*
318 End
319
320
321 InsetLayout Flex:IfThen-DRS
322         CopyStyle             Flex:DRS
323         LabelString           "If-Then DRS"
324         MenuString            "If-Then DRS"
325         LatexName             ifdrs
326         Argument post:1
327                 Decoration    classic
328                 LabelString   "Then-Referents"
329                 MenuString    "DRS Then-Referents"
330                 Tooltip       "Add the DRS then-referents (universe) here"
331                 Mandatory     true
332                 AutoInsert    true
333                 InsertOnNewline true
334         EndArgument
335         Argument post:2
336                 Decoration    classic
337                 LabelString   "Then-Conditions"
338                 MenuString    "DRS Then-Referents"
339                 Tooltip       "Add the DRS then-conditions here"
340                 Mandatory     true
341                 AutoInsert    true
342                 InsertOnNewline true
343         EndArgument
344 End
345
346
347 InsetLayout Flex:Cond-DRS
348         CopyStyle             Flex:DRS
349         LabelString           "Cond. DRS"
350         MenuString            "Conditional DRS"
351         LatexName             condrs
352         Argument post:1
353                 Decoration    classic
354                 LabelString   "Cond."
355                 MenuString    "DRS Condition"
356                 Tooltip       "Add the DRS condition here"
357                 Mandatory     true
358                 AutoInsert    true
359                 InsertOnNewline true
360         EndArgument
361         Argument post:2
362                 Decoration    classic
363                 LabelString   "Then-Referents"
364                 MenuString    "DRS Then-Referents"
365                 Tooltip       "Add the DRS then-referents (universe) here"
366                 Mandatory     true
367                 AutoInsert    true
368                 InsertOnNewline true
369         EndArgument
370         Argument post:3
371                 Decoration    classic
372                 LabelString   "Then-Conditions"
373                 MenuString    "DRS Then-Referents"
374                 Tooltip       "Add the DRS then-conditions here"
375                 Mandatory     true
376                 AutoInsert    true
377                 InsertOnNewline true
378         EndArgument
379 End
380
381
382 InsetLayout Flex:QDRS
383         CopyStyle             Flex:DRS
384         LabelString           "Dupl. Cond. DRS"
385         MenuString            "Duplex Condition DRS"
386         LatexName             qdrs
387         Argument post:1
388                 Decoration    classic
389                 LabelString   "Quant."
390                 MenuString    "DRS Quantifier"
391                 Tooltip       "Add the DRS duplex quantifier here"
392                 Mandatory     true
393                 AutoInsert    true
394                 InsertOnNewline true
395         EndArgument
396         Argument post:2
397                 Decoration    classic
398                 LabelString   "Quant. Var."
399                 MenuString    "DRS Quantifier Variable"
400                 Tooltip       "Add the DRS duplex quantifier variables here"
401                 Mandatory     true
402                 AutoInsert    true
403                 InsertOnNewline true
404         EndArgument
405         Argument post:3
406                 Decoration    classic
407                 LabelString   "Then-Referents"
408                 MenuString    "DRS Then-Referents"
409                 Tooltip       "Add the DRS then-referents (universe) here"
410                 Mandatory     true
411                 AutoInsert    true
412                 InsertOnNewline true
413         EndArgument
414         Argument post:4
415                 Decoration    classic
416                 LabelString   "Then-Conditions"
417                 MenuString    "DRS Then-Referents"
418                 Tooltip       "Add the DRS then-conditions here"
419                 Mandatory     true
420                 AutoInsert    true
421                 InsertOnNewline true
422         EndArgument
423         Requires              drs,pict2e
424 End
425
426
427 InsetLayout Flex:NegDRS
428         CopyStyle             Flex:DRS
429         LabelString           "Neg. DRS"
430         MenuString            "Negated DRS"
431         LatexName             negdrs
432 End
433
434
435 InsetLayout Flex:SDRS
436         CopyStyle             Flex:DRS
437         LabelString           "Sent. DRS"
438         MenuString            "DRS with Sentence above"
439         LatexName             sdrs
440         Argument 1
441                 Decoration    conglomerate
442                 LabelString   "Sentence"
443                 MenuString    "DRS Sentence"
444                 Tooltip       "Add the sentence here"
445                 Mandatory     true
446                 AutoInsert    true
447                 InsertOnNewline true
448         EndArgument
449         Argument 2
450                 Decoration    conglomerate
451                 LabelString   "Referents"
452                 MenuString    "DRS Referents"
453                 Tooltip       "Add the DRS referents (universe) here"
454                 Mandatory     true
455                 AutoInsert    true
456                 InsertOnNewline true
457         EndArgument
458 End
459
460
461 #
462 # Semantic Markup
463 #
464
465 InsetLayout Flex:Expression
466         LyxType               charstyle
467         LabelString           expr.
468         LatexType             command
469         LatexName             lexp
470         Requires              covington
471         Font
472           Shape               Italic
473         EndFont
474         InToc                 true
475         ResetsFont            true
476 End
477
478
479 InsetLayout Flex:Concepts
480         LyxType               charstyle
481         LabelString           concept
482         LatexType             command
483         LatexName             lcon
484         Requires              covington
485         Font
486           Shape               Smallcaps
487         EndFont
488         InToc                 true
489         ResetsFont            true
490 End
491
492
493 InsetLayout Flex:Meaning
494         LyxType               charstyle
495         LabelString           meaning
496         LatexType             command
497         LatexName             lmean
498         Requires              covington,csquotes
499         InToc                 true
500         ResetsFont            true
501 End
502
503
504 #
505 # OT Tableaux
506 #
507
508 OutlinerName tableau        "Tableaux" #no AddToToc
509
510 Float
511         Type                  tableau
512         GuiName               Tableau
513         Placement             tbp
514         Extension             otl
515         NumberWithin          none
516         Style                 plain
517         ListName              "List of Tableaux"
518         IsPredefined          false
519         UsesFloatPkg          true
520 End
521