1 #\DeclareLyXModule[covington.sty]{Linguistics}
3 #Defines some special environments useful for linguistics (numbered examples,
4 #glosses, semantic markup, tableau floats).
7 # Author: Jürgen Spitzmüller <spitz@lyx.org>
11 # single numbered example with covington.sty
12 Style Numbered_Example_(multiline)
24 AlignPossible Block, Left
26 LabelString "Example:"
35 # multiple numbered examples with covington.sty
36 Style Numbered_Examples_(consecutive)
37 CopyStyle Numbered_Example_(multiline)
40 LatexType Item_Environment
42 LabelString "Examples:"
46 # multiple numbered example with covington.sty
48 CopyStyle Numbered_Example_(multiline)
50 LatexType Item_Environment
52 LeftMargin XSubexample:
53 LabelString "Subexample:"
54 Requires covington,enumitem
56 \newenvironment{subexample}{%
57 \begin{example}\begin{enumerate}[leftmargin=1.7em]
58 \renewcommand\theenumi{\alph{enumi}}
59 \renewcommand\labelenumi{(\theenumi)}
60 \renewcommand\p@enumi{\theequation\,}}%
61 {\end{enumerate}\end{example}}
66 # glosse (2 lines) with covington.sty
67 # mandatory translation must be entered verbatim!
68 InsetLayout Custom:Glosse
73 Decoration minimalistic
82 \@ifundefined{linggloss}{%
83 \newenvironment{linggloss}[1]{%
90 # glosse (3 lines) with covington.sty
91 # mandatory translation must be entered verbatim!
92 InsetLayout Custom:Tri-Glosse
94 LabelString Tri-Glosse
97 Decoration minimalistic
106 \@ifundefined{lingglosss}{%
107 \newenvironment{lingglosss}[1]{%
114 # Some semantik markup for Semantics
115 InsetLayout CharStyle:Expression
124 \newcommand{\lingexpr}[1]{\emph{#1}}
129 InsetLayout CharStyle:Concepts
133 LatexName lingconcept
138 \newcommand{\lingconcept}[1]{\textsc{#1}}
143 InsetLayout CharStyle:Meaning
147 LatexName lingmeaning
150 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
155 # Tableaux for Optimality Theory
163 ListName "List of Tableaux"