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