1 #\DeclareLyXModule{Defines some special environments useful for linguistics (numbered examples, glosses, semantic markup).}{Linguistics}
3 # Author: Jürgen Spitzmüller <spitz@lyx.org>
7 # single numbered example with covington.sty
8 Style Numbered_Example_(multiline)
20 AlignPossible Block, Left
22 LabelString "Example:"
31 # multiple numbered examples with covington.sty
32 Style Numbered_Examples_(consecutive)
33 CopyStyle Numbered_Example_(multiline)
36 LatexType Item_Environment
38 LabelString "Examples:"
42 # multiple numbered example with covington.sty
44 CopyStyle Numbered_Example_(multiline)
46 LatexType Item_Environment
48 LeftMargin XSubexample:
49 LabelString "Subexample:"
50 Requires covington,enumitem
52 \newenvironment{subexample}{%
53 \begin{example}\begin{enumerate}[leftmargin=1.7em]
54 \renewcommand\theenumi{\alph{enumi}}
55 \renewcommand\labelenumi{(\theenumi)}
56 \renewcommand\p@enumi{\theequation\,}}%
57 {\end{enumerate}\end{example}}
62 # glosse (2 lines) with covington.sty
63 # mandatory translation must be entered verbatim!
64 InsetLayout Custom:Glosse
69 Decoration minimalistic
78 \@ifundefined{linggloss}{%
79 \newenvironment{linggloss}[1]{%
86 # glosse (3 lines) with covington.sty
87 # mandatory translation must be entered verbatim!
88 InsetLayout Custom:Tri-Glosse
90 LabelString Tri-Glosse
93 Decoration minimalistic
102 \@ifundefined{lingglosss}{%
103 \newenvironment{lingglosss}[1]{%
110 InsetLayout CharStyle:Expression
119 \newcommand{\lingexpr}[1]{\emph{#1}}
124 InsetLayout CharStyle:Concepts
128 LatexName lingconcept
133 \newcommand{\lingconcept}[1]{\textsc{#1}}
138 InsetLayout CharStyle:Meaning
142 LatexName lingmeaning
145 \newcommand{\lingmeaning}[1]{\enquote*{#1}}