]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
a48fbc8409113b73501156a931b0aebd909a4fbb
[lyx.git] / lib / layouts / linguistics.module
1 #\DeclareLyXModule[covington.sty,forest.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 74
12
13 Counter example
14         Within               chapter
15         LabelString          "(\arabic{example})"
16 End
17
18 Counter examplei
19         Within               chapter
20         LabelString          "(\arabic{examplei})"
21 End
22
23 Counter subexample
24         Within               examplei
25         LabelString          "\theexamplei (\alph{subexample})"
26 End
27
28 Counter subexamplei
29         Within               examplei
30         LabelString          "\theexamplei (\alph{subexamplei})"
31 End
32
33 OutlinerName tableau    "Tableaux" #no AddToToc (built-in)
34
35 # single numbered example with covington.sty
36 Style Numbered_Example_(multiline)
37         LatexType             Environment
38         LatexName             covexample
39         NextNoIndent          1
40         Margin                First_Dynamic
41         ParIndent             (1)x
42         LabelSep              xx
43         ParSkip               0.0
44         ItemSep               0.2
45         TopSep                0.7
46         BottomSep             0.7
47         ParSep                0.3
48         Align                 Block
49         AlignPossible         Block, Left
50         LabelType             Static
51         LabelCounter          "examplei"
52         LabelFont
53                 Color         Blue
54         EndFont
55         Requires              covington
56         Category              Linguistics
57 End
58
59
60 # multiple numbered examples with covington.sty
61 Style Numbered_Examples_(consecutive)
62         CopyStyle             Numbered_Example_(multiline)
63         LatexType             Item_Environment
64         LatexName             covexamples
65         LabelType             Enumerate
66         LabelCounter          "example"
67         ResumeCounter         true
68         Argument listpreamble:1
69                 LabelString    "List preamble"
70                 MenuString     "List Preamble"
71                 Tooltip        "LaTeX code to be inserted before the first item"
72                 PassThru       1
73                 Font
74                         Family typewriter
75                         Color latex
76                 EndFont
77         EndArgument
78         Argument item:1
79                 LabelString   "Custom Numbering|s"
80                 Tooltip       "Customize the numeration"
81         EndArgument
82 End
83
84
85 # multiple numbered examples with covington.sty
86 Style Subexample
87         CopyStyle             Numbered_Examples_(consecutive)
88         LatexName             covsubexamples
89         LabelCounter          "subexample"
90         StepMasterCounter     true
91         Requires              covington
92         Argument 1
93                 LabelString   "Subexamples options"
94                 MenuString    "Subexamples options|s"
95                 Tooltip       "Add subexamples options here"
96                 PassThru       1
97         EndArgument
98 End
99
100
101 # glosse (2 lines) with covington.sty
102 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
103         LyXType               custom
104         LabelString           Gloss
105         LatexType             command
106         LatexName             digloss
107         Decoration            minimalistic
108         LabelFont
109           Size                Small
110         EndFont
111         MultiPar              true
112         CustomPars            false
113         ForcePlain            true
114         ParbreakIgnored       true
115         FreeSpacing           true
116         Requires              covington,csquotes
117         InToc                 true
118         ResetsFont            true
119         Argument 1
120                 LabelString   "Gloss options"
121                 MenuString    "Gloss Options|s"
122                 Tooltip       "Add digloss options here"
123         EndArgument
124         Argument post:1
125                 Decoration    conglomerate
126                 LabelString   "Interlinear Gloss"
127                 MenuString    "Interlinear Gloss"
128                 Tooltip       "Add the inter-linear gloss here"
129                 AutoInsert    true
130                 Mandatory     true
131                 FreeSpacing   true
132                 InsertOnNewline true
133         EndArgument
134         Argument post:2
135                 Decoration    conglomerate
136                 LabelString   "Translation"
137                 MenuString    "Gloss Translation"
138                 Tooltip       "Add a free translation for the gloss"
139                 AutoInsert    true
140                 Mandatory     true
141                 FreeSpacing   true
142                 InsertOnNewline true
143         EndArgument
144 End
145
146
147 # glosse (3 lines) with covington.sty
148 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
149         LyXType               custom
150         LabelString           Tri-Gloss
151         LatexType             command
152         LatexName             trigloss
153         Decoration            minimalistic
154         LabelFont
155           Size                Small
156         EndFont
157         MultiPar              true
158         CustomPars            false
159         ForcePlain            true
160         ParbreakIgnored       true
161         FreeSpacing           true
162         InToc                 true
163         Requires              covington,csquotes
164         ResetsFont            true
165         Argument 1
166                 LabelString   "Gloss options"
167                 MenuString    "Gloss Options|s"
168                 Tooltip       "Add trigloss options here"
169         EndArgument
170         Argument post:1
171                 Decoration    conglomerate
172                 LabelString   "Interlinear Gloss (1)"
173                 MenuString    "Interlinear Gloss (Line 1)|1"
174                 Tooltip       "Add the first inter-linear gloss line here"
175                 Mandatory     true
176                 AutoInsert    true
177                 FreeSpacing   true
178                 InsertOnNewline true
179         EndArgument
180         Argument post:2
181                 Decoration    conglomerate
182                 LabelString   "Interlinear Gloss (2)"
183                 MenuString    "Interlinear Gloss (Line 2)|2"
184                 Tooltip       "Add the first inter-linear gloss line here"
185                 Mandatory     true
186                 AutoInsert    true
187                 FreeSpacing   true
188                 InsertOnNewline true
189         EndArgument
190         Argument post:3
191                 Decoration    conglomerate
192                 LabelString   "Translation"
193                 MenuString    "Gloss Translation"
194                 Tooltip       "Add a translation for the glosse"
195                 Mandatory     true
196                 AutoInsert    true
197                 InsertOnNewline true
198         EndArgument
199 End
200
201
202 # Structure trees via the forest package
203 InsetLayout Flex:Structure_Tree
204         LyXType               custom
205         LabelString           Tree
206         LatexType             environment
207         LatexName             forest
208         Decoration            classic
209         LabelFont
210           Size                Small
211         EndFont
212         MultiPar              true
213         CustomPars            false
214         ParbreakIsNewline     true
215         FreeSpacing           true
216         Requires              forest
217         ResetsFont            true
218         PassThruChars         []
219         Preamble
220         % Load forest linguistics library, if available
221         \@ifpackagelater{forest}{2016/02/20}{%
222         \useforestlibrary*{linguistics}
223         }{}
224         EndPreamble
225 End
226
227
228 # Some semantik markup for Semantics
229 InsetLayout Flex:Expression
230         LyxType               charstyle
231         LabelString           expr.
232         LatexType             command
233         LatexName             lexp
234         Requires              covington
235         Font
236           Shape               Italic
237         EndFont
238         InToc                 true
239         ResetsFont            true
240 End
241
242
243 InsetLayout Flex:Concepts
244         LyxType               charstyle
245         LabelString           concept
246         LatexType             command
247         LatexName             lcon
248         Requires              covington
249         Font
250           Shape               Smallcaps
251         EndFont
252         InToc                 true
253         ResetsFont            true
254 End
255
256
257 InsetLayout Flex:Meaning
258         LyxType               charstyle
259         LabelString           meaning
260         LatexType             command
261         LatexName             lmean
262         Requires              covington,csquotes
263         InToc                 true
264         ResetsFont            true
265 End
266
267
268 # A helper to group words in Glosses
269 InsetLayout Flex:GroupGlossedWords
270         LyxType               charstyle
271         LabelString           Group
272         LeftDelim             {
273         RightDelim            }
274         ResetsFont            true
275 End
276
277
278 # Tableaux for Optimality Theory
279 OutlinerName tableau        "Tableaux" #no AddToToc
280
281 Float
282         Type                  tableau
283         GuiName               Tableau
284         Placement             tbp
285         Extension             otl
286         NumberWithin          none
287         Style                 plain
288         ListName              "List of Tableaux"
289         IsPredefined          false
290         UsesFloatPkg          true
291 End
292