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]{%
93 # glosse (3 lines) with covington.sty
94 # mandatory translation must be entered verbatim!
95 InsetLayout Flex:Tri-Glosse
97 LabelString Tri-Glosse
100 Decoration minimalistic
108 ParbreakIsNewline true
114 \@ifundefined{lingglosss}{%
115 \newenvironment{lingglosss}[1]{%
122 # Some semantik markup for Semantics
123 InsetLayout Flex:Expression
132 \newcommand{\lingexpr}[1]{\emph{#1}}
138 InsetLayout Flex:Concepts
142 LatexName lingconcept
147 \newcommand{\lingconcept}[1]{\textsc{#1}}
153 InsetLayout Flex:Meaning
157 LatexName lingmeaning
160 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
166 # Tableaux for Optimality Theory
174 ListName "List of Tableaux"