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