1 #\DeclareLyXModule[covington.sty,forest.sty]{Linguistics}
2 #\DeclareCategory{Academic Field Specifics}
4 #Defines some special environments useful for linguistics (numbered examples,
5 #glosses, semantic markup, tableau floats).
6 #See linguistics.lyx file in examples.
9 # Author: Jürgen Spitzmüller <spitz@lyx.org>
19 LabelString "(\arabic{example})"
24 LabelString "(\arabic{examplei})"
29 LabelString "\theexamplei (\alph{subexample})"
34 LabelString "\theexamplei (\alph{subexamplei})"
42 # Single numbered example with covington.sty
43 Style Numbered_Example_(multiline)
56 AlignPossible Block, Left
58 LabelCounter "examplei"
67 # Multiple numbered examples with covington.sty
68 Style Numbered_Examples_(consecutive)
69 CopyStyle Numbered_Example_(multiline)
70 LatexType Item_Environment
73 LabelCounter "example"
75 Argument listpreamble:1
76 LabelString "List preamble"
77 MenuString "List Preamble"
78 Tooltip "LaTeX code to be inserted before the first item"
86 LabelString "Custom Numbering|s"
87 Tooltip "Customize the numeration"
92 # Sub-examples with covington.sty
94 CopyStyle Numbered_Examples_(consecutive)
95 LatexName covsubexamples
96 LabelCounter "subexample"
97 StepMasterCounter true
100 LabelString "Subexamples options"
101 MenuString "Subexamples options|s"
102 Tooltip "Add subexamples options here"
109 # Interlinear Glosses
112 # Two-Line gloss with covington.sty
113 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
118 Decoration minimalistic
127 Requires covington,csquotes
131 LabelString "Gloss options"
132 MenuString "Gloss Options|s"
133 Tooltip "Add digloss options here"
136 Decoration conglomerate
137 LabelString "Interlinear Gloss"
138 MenuString "Interlinear Gloss"
139 Tooltip "Add the inter-linear gloss here"
146 Decoration conglomerate
147 LabelString "Translation"
148 MenuString "Gloss Translation"
149 Tooltip "Add a free translation for the gloss"
158 # Three-Line gloss with covington.sty
159 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
161 LabelString Tri-Gloss
164 Decoration minimalistic
174 Requires covington,csquotes
177 LabelString "Gloss options"
178 MenuString "Gloss Options|s"
179 Tooltip "Add trigloss options here"
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"
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"
202 Decoration conglomerate
203 LabelString "Translation"
204 MenuString "Gloss Translation"
205 Tooltip "Add a translation for the glosse"
213 # A helper to group words in glosses
214 InsetLayout Flex:GroupGlossedWords
227 # Structure trees via the forest package
228 InsetLayout Flex:Structure_Tree
231 LatexType environment
239 ParbreakIsNewline true
245 % Load forest linguistics library, if available
246 \@ifpackagelater{forest}{2016/02/20}{%
247 \useforestlibrary*{linguistics}
257 InsetLayout Flex:Expression
271 InsetLayout Flex:Concepts
285 InsetLayout Flex:Meaning
290 Requires covington,csquotes
300 OutlinerName tableau "Tableaux" #no AddToToc
309 ListName "List of Tableaux"