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