1 #\DeclareLyXModule[covington.sty]{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:"
28 \usepackage{covington}
33 # multiple numbered examples with covington.sty
34 Style Numbered_Examples_(consecutive)
35 CopyStyle Numbered_Example_(multiline)
38 LatexType Item_Environment
40 LabelString "Examples:"
44 # multiple numbered example with covington.sty
46 CopyStyle Numbered_Example_(multiline)
48 LatexType Item_Environment
50 LeftMargin XSubexample:
51 LabelString "Subexample:"
53 \usepackage{covington}
55 \newenvironment{subexample}{%
56 \begin{example}\begin{enumerate}[leftmargin=1.7em]
57 \renewcommand\theenumi{\alph{enumi}}
58 \renewcommand\labelenumi{(\theenumi)}
59 \renewcommand\p@enumi{\theequation\,}}%
60 {\end{enumerate}\end{example}}
65 # glosse (2 lines) with covington.sty
66 # mandatory translation must be entered verbatim!
67 InsetLayout Custom:Glosse
72 Decoration minimalistic
80 \usepackage{covington}
81 \@ifundefined{linggloss}{%
82 \newenvironment{linggloss}[1]{%
89 # glosse (3 lines) with covington.sty
90 # mandatory translation must be entered verbatim!
91 InsetLayout Custom:Tri-Glosse
93 LabelString Tri-Glosse
96 Decoration minimalistic
104 \usepackage{covington}
105 \@ifundefined{lingglosss}{%
106 \newenvironment{lingglosss}[1]{%
113 InsetLayout CharStyle:Expression
122 \newcommand{\lingexpr}[1]{\emph{#1}}
127 InsetLayout CharStyle:Concepts
131 LatexName lingconcept
136 \newcommand{\lingconcept}[1]{\textsc{#1}}
141 InsetLayout CharStyle:Meaning
145 LatexName lingmeaning
147 \usepackage{csquotes}
148 \newcommand{\lingmeaning}[1]{\enquote*{#1}}