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)
39 LatexType Item_Environment
41 LabelString "Examples:"
45 # multiple numbered example with covington.sty
47 CopyStyle Numbered_Example_(multiline)
48 LatexType Item_Environment
50 LabelString "Subexample:"
51 Requires covington,enumitem
53 \newenvironment{subexample}{%
54 \begin{example}\begin{enumerate}[leftmargin=1.7em]
55 \renewcommand\theenumi{\alph{enumi}}
56 \renewcommand\labelenumi{(\theenumi)}
57 \renewcommand\p@enumi{\theequation\,}}%
58 {\end{enumerate}\end{example}}
63 # glosse (2 lines) with covington.sty
64 # mandatory translation must be entered verbatim!
65 InsetLayout Custom:Glosse
70 Decoration minimalistic
82 \@ifundefined{linggloss}{%
83 \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
111 \@ifundefined{lingglosss}{%
112 \newenvironment{lingglosss}[1]{%
119 # Some semantik markup for Semantics
120 InsetLayout CharStyle:Expression
129 \newcommand{\lingexpr}[1]{\emph{#1}}
135 InsetLayout CharStyle:Concepts
139 LatexName lingconcept
144 \newcommand{\lingconcept}[1]{\textsc{#1}}
150 InsetLayout CharStyle:Meaning
154 LatexName lingmeaning
157 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
163 # Tableaux for Optimality Theory
171 ListName "List of Tableaux"