1 #\DeclareLyXModule[covington.sty,elocalloc.sty,enumitem.sty,forest.sty,pgfopts.sty,trimspaces.sty]{Linguistics}
3 #Defines some special environments useful for linguistics (numbered examples,
4 #glosses, semantic markup, tableau floats).
5 #See linguistics.lyx file in examples.
8 # Author: Jürgen Spitzmüller <spitz@lyx.org>
12 # single numbered example with covington.sty
13 Style Numbered_Example_(multiline)
25 AlignPossible Block, Left
27 LabelString "Example:"
37 # multiple numbered examples with covington.sty
38 Style Numbered_Examples_(consecutive)
39 CopyStyle Numbered_Example_(multiline)
40 LatexType Item_Environment
42 LabelString "Examples:"
44 LabelString "Custom Numbering|s"
45 Tooltip "Customize the numeration"
50 # multiple numbered example with covington.sty
52 CopyStyle Numbered_Examples_(consecutive)
54 LabelString "Subexample:"
55 Requires covington,enumitem
57 \newenvironment{subexample}{%
58 \begin{example}\begin{enumerate}[leftmargin=1.7em]
59 \renewcommand\theenumi{\alph{enumi}}
60 \renewcommand\labelenumi{(\theenumi)}
61 \renewcommand\p@enumi{\theequation\,}}%
62 {\end{enumerate}\end{example}}
67 # glosse (2 lines) with covington.sty
68 InsetLayout Flex:Glosse
73 Decoration minimalistic
80 ParbreakIsNewline true
85 \@ifundefined{linggloss}{%
86 \newenvironment{linggloss}[2][]{
87 \def\glosstr{\glt #1}%
94 Decoration conglomerate
95 LabelString "Translation"
96 MenuString "Glosse Translation|s"
97 Tooltip "Add a translation for the glosse"
102 # glosse (3 lines) with covington.sty
103 InsetLayout Flex:Tri-Glosse
105 LabelString Tri-Glosse
106 LatexType environment
108 Decoration minimalistic
115 ParbreakIsNewline true
121 \@ifundefined{lingglosss}{%
122 \newenvironment{lingglosss}[2][]{
123 \def\glosstr{\glt #1}%
129 Decoration conglomerate
130 LabelString "Translation"
131 MenuString "Glosse Translation|s"
132 Tooltip "Add a translation for the glosse"
137 # Structure trees via the forest package
138 InsetLayout Flex:Structure_Tree
141 LatexType environment
149 ParbreakIsNewline true
157 # Some semantik markup for Semantics
158 InsetLayout Flex:Expression
167 \newcommand{\lingexpr}[1]{\emph{#1}}
174 InsetLayout Flex:Concepts
178 LatexName lingconcept
183 \newcommand{\lingconcept}[1]{\textsc{#1}}
190 InsetLayout Flex:Meaning
194 LatexName lingmeaning
197 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
204 # A helper to group words in Glosses
205 InsetLayout Flex:GroupGlossedWords
214 # Tableaux for Optimality Theory
222 ListName "List of Tableaux"