1 #\DeclareLyXModule[covington.sty,enumitem.sty,forest.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:"
37 # multiple numbered examples with covington.sty
38 Style Numbered_Examples_(consecutive)
39 CopyStyle Numbered_Example_(multiline)
40 LatexType Item_Environment
42 LabelString "Examples:"
44 LabelString "Custom Numbering|s"
45 Tooltip "Customize the numeration"
50 # multiple numbered example with covington.sty
52 CopyStyle Numbered_Examples_(consecutive)
54 LabelString "Subexample:"
55 Requires covington,enumitem
57 \newenvironment{subexample}{%
58 \begin{example}\begin{enumerate}[leftmargin=1.7em]
59 \renewcommand\theenumi{\alph{enumi}}
60 \renewcommand\labelenumi{(\theenumi)}
61 \renewcommand\p@enumi{\theequation\,}}%
62 {\end{enumerate}\end{example}}
67 # glosse (2 lines) with covington.sty
68 # mandatory translation must be entered verbatim!
69 InsetLayout Flex:Glosse
74 Decoration minimalistic
82 ParbreakIsNewline true
87 \@ifundefined{linggloss}{%
88 \newenvironment{linggloss}[1]{%
97 # glosse (3 lines) with covington.sty
98 # mandatory translation must be entered verbatim!
99 InsetLayout Flex:Tri-Glosse
101 LabelString Tri-Glosse
102 LatexType environment
104 Decoration minimalistic
112 ParbreakIsNewline true
118 \@ifundefined{lingglosss}{%
119 \newenvironment{lingglosss}[1]{%
126 # Structure trees via the forest package
127 InsetLayout Flex:Structure_Tree
130 LatexType environment
138 ParbreakIsNewline true
146 # Some semantik markup for Semantics
147 InsetLayout Flex:Expression
156 \newcommand{\lingexpr}[1]{\emph{#1}}
163 InsetLayout Flex:Concepts
167 LatexName lingconcept
172 \newcommand{\lingconcept}[1]{\textsc{#1}}
179 InsetLayout Flex:Meaning
183 LatexName lingmeaning
186 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
193 # Tableaux for Optimality Theory
201 ListName "List of Tableaux"