]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
Correct version number
[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 82
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         Blue
82         EndFont
83         Requires              covington
84         Category              Linguistics
85 End
86
87
88 # Multiple numbered examples with covington.sty
89 Style Numbered_Examples_(consecutive)
90         CopyStyle             Numbered_Example_(multiline)
91         LatexType             Item_Environment
92         LatexName             covexamples
93         LabelType             Enumerate
94         LabelCounter          "example"
95         ResumeCounter         true
96         Argument listpreamble:1
97                 LabelString    "List preamble"
98                 MenuString     "List Preamble"
99                 Tooltip        "LaTeX code to be inserted before the first item"
100                 PassThru       1
101                 Font
102                         Family typewriter
103                         Color latex
104                 EndFont
105         EndArgument
106         Argument item:1
107                 LabelString   "Custom Numbering|s"
108                 Tooltip       "Customize the numeration"
109         EndArgument
110 End
111
112
113 # Sub-examples with covington.sty
114 Style Subexample
115         CopyStyle             Numbered_Examples_(consecutive)
116         LatexName             covsubexamples
117         LabelCounter          "subexample"
118         StepMasterCounter     true
119         Requires              covington
120         Argument 1
121                 LabelString   "Subexamples options"
122                 MenuString    "Subexamples options|s"
123                 Tooltip       "Add subexamples options here"
124                 PassThru       1
125         EndArgument
126 End
127
128
129 #
130 # Interlinear Glosses
131 #
132
133 # Two-Line gloss with covington.sty
134 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
135         LyXType               custom
136         LabelString           Gloss
137         LatexType             command
138         LatexName             digloss
139         Decoration            minimalistic
140         LabelFont
141           Size                Small
142         EndFont
143         MultiPar              true
144         CustomPars            false
145         ForcePlain            true
146         ParbreakIgnored       true
147         FreeSpacing           true
148         Requires              covington,csquotes
149         InToc                 true
150         ResetsFont            true
151         Argument 1
152                 LabelString   "Gloss options"
153                 MenuString    "Gloss Options|s"
154                 Tooltip       "Add digloss options here"
155         EndArgument
156         Argument post:1
157                 Decoration    conglomerate
158                 LabelString   "Interlinear Gloss"
159                 MenuString    "Interlinear Gloss"
160                 Tooltip       "Add the inter-linear gloss here"
161                 AutoInsert    true
162                 Mandatory     true
163                 FreeSpacing   true
164                 InsertOnNewline true
165         EndArgument
166         Argument post:2
167                 Decoration    conglomerate
168                 LabelString   "Translation"
169                 MenuString    "Gloss Translation"
170                 Tooltip       "Add a free translation for the gloss"
171                 AutoInsert    true
172                 Mandatory     true
173                 FreeSpacing   true
174                 InsertOnNewline true
175         EndArgument
176 End
177
178
179 # Three-Line gloss with covington.sty
180 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
181         LyXType               custom
182         LabelString           Tri-Gloss
183         LatexType             command
184         LatexName             trigloss
185         Decoration            minimalistic
186         LabelFont
187           Size                Small
188         EndFont
189         MultiPar              true
190         CustomPars            false
191         ForcePlain            true
192         ParbreakIgnored       true
193         FreeSpacing           true
194         InToc                 true
195         Requires              covington,csquotes
196         ResetsFont            true
197         Argument 1
198                 LabelString   "Gloss options"
199                 MenuString    "Gloss Options|s"
200                 Tooltip       "Add trigloss options here"
201         EndArgument
202         Argument post:1
203                 Decoration    conglomerate
204                 LabelString   "Interlinear Gloss (1)"
205                 MenuString    "Interlinear Gloss (Line 1)|1"
206                 Tooltip       "Add the first inter-linear gloss line here"
207                 Mandatory     true
208                 AutoInsert    true
209                 FreeSpacing   true
210                 InsertOnNewline true
211         EndArgument
212         Argument post:2
213                 Decoration    conglomerate
214                 LabelString   "Interlinear Gloss (2)"
215                 MenuString    "Interlinear Gloss (Line 2)|2"
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:3
223                 Decoration    conglomerate
224                 LabelString   "Translation"
225                 MenuString    "Gloss Translation"
226                 Tooltip       "Add a translation for the glosse"
227                 Mandatory     true
228                 AutoInsert    true
229                 InsertOnNewline true
230         EndArgument
231 End
232
233
234 # A helper to group words in glosses
235 InsetLayout Flex:GroupGlossedWords
236         LyxType               charstyle
237         LabelString           Group
238         LeftDelim             {
239         RightDelim            }
240         ResetsFont            true
241 End
242
243
244 #
245 # Trees
246 #
247
248 # Structure trees via the forest package
249 InsetLayout Flex:Structure_Tree
250         LyXType               custom
251         LabelString           Tree
252         LatexType             environment
253         LatexName             forest
254         Decoration            classic
255         LabelFont
256           Size                Small
257         EndFont
258         MultiPar              true
259         CustomPars            false
260         ParbreakIsNewline     true
261         FreeSpacing           true
262         Requires              forest
263         ResetsFont            true
264         PassThruChars         []
265         Preamble
266         % Load forest linguistics library, if available
267         \@ifpackagelater{forest}{2016/02/20}{%
268         \useforestlibrary*{linguistics}
269         }{}
270         EndPreamble
271 End
272
273
274 #
275 # Discourse Representation Structures
276 #
277
278 InsetLayout Flex:DRS
279         LyXType               custom
280         LabelString           DRS
281         MenuString            "Discourse Representation Structure|D"
282         LatexType             command
283         LatexName             drs
284         Decoration            classic
285         MultiPar              true
286         CustomPars            false
287         ParbreakIsNewline     true
288         FreeSpacing           true
289         Requires              drs
290         ResetsFont            true
291         Argument 1
292                 Decoration    conglomerate
293                 LabelString   "Referents"
294                 MenuString    "DRS Referents"
295                 Tooltip       "Add the DRS referents (universe) here"
296                 Mandatory     true
297                 AutoInsert    true
298         EndArgument
299 End
300
301
302 InsetLayout Flex:DRS*
303         CopyStyle             Flex:DRS
304         LabelString           DRS*
305         MenuString            "Discourse Representation Structure (unspaced)|u"
306         LatexName             drs*
307 End
308
309
310 InsetLayout Flex:IfThen-DRS
311         CopyStyle             Flex:DRS
312         LabelString           "If-Then DRS"
313         MenuString            "If-Then DRS"
314         LatexName             ifdrs
315         Argument post:1
316                 Decoration    classic
317                 LabelString   "Then-Referents"
318                 MenuString    "DRS Then-Referents"
319                 Tooltip       "Add the DRS then-referents (universe) here"
320                 Mandatory     true
321                 AutoInsert    true
322                 InsertOnNewline true
323         EndArgument
324         Argument post:2
325                 Decoration    classic
326                 LabelString   "Then-Conditions"
327                 MenuString    "DRS Then-Referents"
328                 Tooltip       "Add the DRS then-conditions here"
329                 Mandatory     true
330                 AutoInsert    true
331                 InsertOnNewline true
332         EndArgument
333 End
334
335
336 InsetLayout Flex:Cond-DRS
337         CopyStyle             Flex:DRS
338         LabelString           "Cond. DRS"
339         MenuString            "Conditional DRS"
340         LatexName             condrs
341         Argument post:1
342                 Decoration    classic
343                 LabelString   "Cond."
344                 MenuString    "DRS Condition"
345                 Tooltip       "Add the DRS condition here"
346                 Mandatory     true
347                 AutoInsert    true
348                 InsertOnNewline true
349         EndArgument
350         Argument post:2
351                 Decoration    classic
352                 LabelString   "Then-Referents"
353                 MenuString    "DRS Then-Referents"
354                 Tooltip       "Add the DRS then-referents (universe) here"
355                 Mandatory     true
356                 AutoInsert    true
357                 InsertOnNewline true
358         EndArgument
359         Argument post:3
360                 Decoration    classic
361                 LabelString   "Then-Conditions"
362                 MenuString    "DRS Then-Referents"
363                 Tooltip       "Add the DRS then-conditions here"
364                 Mandatory     true
365                 AutoInsert    true
366                 InsertOnNewline true
367         EndArgument
368 End
369
370
371 InsetLayout Flex:QDRS
372         CopyStyle             Flex:DRS
373         LabelString           "Dupl. Cond. DRS"
374         MenuString            "Duplex Condition DRS"
375         LatexName             qdrs
376         Argument post:1
377                 Decoration    classic
378                 LabelString   "Quant."
379                 MenuString    "DRS Quantifier"
380                 Tooltip       "Add the DRS duplex quantifier here"
381                 Mandatory     true
382                 AutoInsert    true
383                 InsertOnNewline true
384         EndArgument
385         Argument post:2
386                 Decoration    classic
387                 LabelString   "Quant. Var."
388                 MenuString    "DRS Quantifier Variable"
389                 Tooltip       "Add the DRS duplex quantifier variables here"
390                 Mandatory     true
391                 AutoInsert    true
392                 InsertOnNewline true
393         EndArgument
394         Argument post:3
395                 Decoration    classic
396                 LabelString   "Then-Referents"
397                 MenuString    "DRS Then-Referents"
398                 Tooltip       "Add the DRS then-referents (universe) here"
399                 Mandatory     true
400                 AutoInsert    true
401                 InsertOnNewline true
402         EndArgument
403         Argument post:4
404                 Decoration    classic
405                 LabelString   "Then-Conditions"
406                 MenuString    "DRS Then-Referents"
407                 Tooltip       "Add the DRS then-conditions here"
408                 Mandatory     true
409                 AutoInsert    true
410                 InsertOnNewline true
411         EndArgument
412         Requires              drs,pict2e
413 End
414
415
416 InsetLayout Flex:NegDRS
417         CopyStyle             Flex:DRS
418         LabelString           "Neg. DRS"
419         MenuString            "Negated DRS"
420         LatexName             negdrs
421 End
422
423
424 InsetLayout Flex:SDRS
425         CopyStyle             Flex:DRS
426         LabelString           "Sent. DRS"
427         MenuString            "DRS with Sentence above"
428         LatexName             sdrs
429         Argument 1
430                 Decoration    conglomerate
431                 LabelString   "Sentence"
432                 MenuString    "DRS Sentence"
433                 Tooltip       "Add the sentence here"
434                 Mandatory     true
435                 AutoInsert    true
436                 InsertOnNewline true
437         EndArgument
438         Argument 2
439                 Decoration    conglomerate
440                 LabelString   "Referents"
441                 MenuString    "DRS Referents"
442                 Tooltip       "Add the DRS referents (universe) here"
443                 Mandatory     true
444                 AutoInsert    true
445                 InsertOnNewline true
446         EndArgument
447 End
448
449
450 #
451 # Semantic Markup
452 #
453
454 InsetLayout Flex:Expression
455         LyxType               charstyle
456         LabelString           expr.
457         LatexType             command
458         LatexName             lexp
459         Requires              covington
460         Font
461           Shape               Italic
462         EndFont
463         InToc                 true
464         ResetsFont            true
465 End
466
467
468 InsetLayout Flex:Concepts
469         LyxType               charstyle
470         LabelString           concept
471         LatexType             command
472         LatexName             lcon
473         Requires              covington
474         Font
475           Shape               Smallcaps
476         EndFont
477         InToc                 true
478         ResetsFont            true
479 End
480
481
482 InsetLayout Flex:Meaning
483         LyxType               charstyle
484         LabelString           meaning
485         LatexType             command
486         LatexName             lmean
487         Requires              covington,csquotes
488         InToc                 true
489         ResetsFont            true
490 End
491
492
493 #
494 # OT Tableaux
495 #
496
497 OutlinerName tableau        "Tableaux" #no AddToToc
498
499 Float
500         Type                  tableau
501         GuiName               Tableau
502         Placement             tbp
503         Extension             otl
504         NumberWithin          none
505         Style                 plain
506         ListName              "List of Tableaux"
507         IsPredefined          false
508         UsesFloatPkg          true
509 End
510