1 #\DeclareLyXModule[covington.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:"
46 # multiple numbered example with covington.sty
48 CopyStyle Numbered_Example_(multiline)
49 LatexType Item_Environment
51 LabelString "Subexample:"
52 Requires covington,enumitem
54 \newenvironment{subexample}{%
55 \begin{example}\begin{enumerate}[leftmargin=1.7em]
56 \renewcommand\theenumi{\alph{enumi}}
57 \renewcommand\labelenumi{(\theenumi)}
58 \renewcommand\p@enumi{\theequation\,}}%
59 {\end{enumerate}\end{example}}
64 # glosse (2 lines) with covington.sty
65 # mandatory translation must be entered verbatim!
66 InsetLayout Flex:Glosse
71 Decoration minimalistic
79 ParbreakIsNewline true
84 \@ifundefined{linggloss}{%
85 \newenvironment{linggloss}[1]{%
94 # glosse (3 lines) with covington.sty
95 # mandatory translation must be entered verbatim!
96 InsetLayout Flex:Tri-Glosse
98 LabelString Tri-Glosse
101 Decoration minimalistic
109 ParbreakIsNewline true
115 \@ifundefined{lingglosss}{%
116 \newenvironment{lingglosss}[1]{%
124 # Some semantik markup for Semantics
125 InsetLayout Flex:Expression
134 \newcommand{\lingexpr}[1]{\emph{#1}}
141 InsetLayout Flex:Concepts
145 LatexName lingconcept
150 \newcommand{\lingconcept}[1]{\textsc{#1}}
157 InsetLayout Flex:Meaning
161 LatexName lingmeaning
164 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
171 # Tableaux for Optimality Theory
179 ListName "List of Tableaux"