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