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 Flex:Glosse
70 Decoration minimalistic
78 ParbreakIsNewline true
83 \@ifundefined{linggloss}{%
84 \newenvironment{linggloss}[1]{%
92 # glosse (3 lines) with covington.sty
93 # mandatory translation must be entered verbatim!
94 InsetLayout Flex:Tri-Glosse
96 LabelString Tri-Glosse
99 Decoration minimalistic
107 ParbreakIsNewline true
113 \@ifundefined{lingglosss}{%
114 \newenvironment{lingglosss}[1]{%
121 # Some semantik markup for Semantics
122 InsetLayout Flex:Expression
131 \newcommand{\lingexpr}[1]{\emph{#1}}
137 InsetLayout Flex:Concepts
141 LatexName lingconcept
146 \newcommand{\lingconcept}[1]{\textsc{#1}}
152 InsetLayout Flex:Meaning
156 LatexName lingmeaning
159 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
165 # Tableaux for Optimality Theory
173 ListName "List of Tableaux"