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>
15 LabelString "(\arabic{example})"
20 LabelString "(\arabic{examplei})"
25 LabelString "\theexamplei (\alph{subexample})"
30 LabelString "\theexamplei (\alph{subexamplei})"
33 OutlinerName tableau "Tableaux" #no AddToToc (built-in)
35 # single numbered example with covington.sty
36 Style Numbered_Example_(multiline)
49 AlignPossible Block, Left
51 LabelCounter "examplei"
60 # multiple numbered examples with covington.sty
61 Style Numbered_Examples_(consecutive)
62 CopyStyle Numbered_Example_(multiline)
63 LatexType Item_Environment
66 LabelCounter "example"
68 Argument listpreamble:1
69 LabelString "List preamble"
70 MenuString "List Preamble"
71 Tooltip "LaTeX code to be inserted before the first item"
79 LabelString "Custom Numbering|s"
80 Tooltip "Customize the numeration"
85 # multiple numbered examples with covington.sty
87 CopyStyle Numbered_Examples_(consecutive)
88 LatexName covsubexamples
89 LabelCounter "subexample"
90 StepMasterCounter true
95 # glosse (2 lines) with covington.sty
96 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
101 Decoration minimalistic
110 Requires covington,csquotes
114 LabelString "Gloss options"
115 MenuString "Gloss Options|s"
116 Tooltip "Add digloss options here"
119 Decoration conglomerate
120 LabelString "Interlinear Gloss"
121 MenuString "Interlinear Gloss"
122 Tooltip "Add the inter-linear gloss here"
129 Decoration conglomerate
130 LabelString "Translation"
131 MenuString "Gloss Translation"
132 Tooltip "Add a free translation for the gloss"
141 # glosse (3 lines) with covington.sty
142 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
144 LabelString Tri-Gloss
147 Decoration minimalistic
157 Requires covington,csquotes
160 LabelString "Gloss options"
161 MenuString "Gloss Options|s"
162 Tooltip "Add trigloss options here"
165 Decoration conglomerate
166 LabelString "Interlinear Gloss (1)"
167 MenuString "Interlinear Gloss (Line 1)|1"
168 Tooltip "Add the first inter-linear gloss line here"
175 Decoration conglomerate
176 LabelString "Interlinear Gloss (2)"
177 MenuString "Interlinear Gloss (Line 2)|2"
178 Tooltip "Add the first inter-linear gloss line here"
185 Decoration conglomerate
186 LabelString "Translation"
187 MenuString "Gloss Translation"
188 Tooltip "Add a translation for the glosse"
196 # Structure trees via the forest package
197 InsetLayout Flex:Structure_Tree
200 LatexType environment
208 ParbreakIsNewline true
214 % Load forest linguistics library, if available
215 \@ifpackagelater{forest}{2016/02/20}{%
216 \useforestlibrary*{linguistics}
222 # Some semantik markup for Semantics
223 InsetLayout Flex:Expression
232 \newcommand{\lingexpr}[1]{\emph{#1}}
239 InsetLayout Flex:Concepts
243 LatexName lingconcept
248 \newcommand{\lingconcept}[1]{\textsc{#1}}
255 InsetLayout Flex:Meaning
259 LatexName lingmeaning
262 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
269 # A helper to group words in Glosses
270 InsetLayout Flex:GroupGlossedWords
279 # Tableaux for Optimality Theory
280 OutlinerName tableau "Tableaux" #no AddToToc
289 ListName "List of Tableaux"