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:"
36 # multiple numbered examples with covington.sty
37 Style Numbered_Examples_(consecutive)
38 CopyStyle Numbered_Example_(multiline)
41 LatexType Item_Environment
43 LabelString "Examples:"
47 # multiple numbered example with covington.sty
49 CopyStyle Numbered_Example_(multiline)
51 LatexType Item_Environment
53 LeftMargin XSubexample:
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 # mandatory translation must be entered verbatim!
69 InsetLayout Custom:Glosse
74 Decoration minimalistic
85 \@ifundefined{linggloss}{%
86 \newenvironment{linggloss}[1]{%
94 # glosse (3 lines) with covington.sty
95 # mandatory translation must be entered verbatim!
96 InsetLayout Custom:Tri-Glosse
98 LabelString Tri-Glosse
101 Decoration minimalistic
113 \@ifundefined{lingglosss}{%
114 \newenvironment{lingglosss}[1]{%
121 # Some semantik markup for Semantics
122 InsetLayout CharStyle:Expression
131 \newcommand{\lingexpr}[1]{\emph{#1}}
137 InsetLayout CharStyle:Concepts
141 LatexName lingconcept
146 \newcommand{\lingconcept}[1]{\textsc{#1}}
152 InsetLayout CharStyle:Meaning
156 LatexName lingmeaning
159 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
165 # Tableaux for Optimality Theory
173 ListName "List of Tableaux"