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