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
83 \@ifundefined{linggloss}{%
84 \newenvironment{linggloss}[1]{%
91 # glosse (3 lines) with covington.sty
92 # mandatory translation must be entered verbatim!
93 InsetLayout Custom:Tri-Glosse
95 LabelString Tri-Glosse
98 Decoration minimalistic
107 \@ifundefined{lingglosss}{%
108 \newenvironment{lingglosss}[1]{%
115 # Some semantik markup for Semantics
116 InsetLayout CharStyle:Expression
125 \newcommand{\lingexpr}[1]{\emph{#1}}
130 InsetLayout CharStyle:Concepts
134 LatexName lingconcept
139 \newcommand{\lingconcept}[1]{\textsc{#1}}
144 InsetLayout CharStyle:Meaning
148 LatexName lingmeaning
151 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
156 # Tableaux for Optimality Theory
164 ListName "List of Tableaux"