]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
22da764099d682a88fc48c80f44172cb650874f4
[lyx.git] / lib / layouts / linguistics.module
1 #\DeclareLyXModule[covington.sty,enumitem.sty,forest.sty]{Linguistics}
2 #DescriptionBegin
3 #Defines some special environments useful for linguistics (numbered examples,
4 #glosses, semantic markup, tableau floats).
5 #See linguistics.lyx file in examples.
6 #DescriptionEnd
7
8 # Author: Jürgen Spitzmüller <spitz@lyx.org>
9
10 Format 54
11
12 # single numbered example with covington.sty
13 Style Numbered_Example_(multiline)
14         LatexType             Environment
15         LatexName             example
16         NextNoIndent          1
17         Margin                Dynamic
18         LabelSep              xx
19         ParSkip               0.0
20         ItemSep               0.2
21         TopSep                0.7
22         BottomSep             0.7
23         ParSep                0.3
24         Align                 Block
25         AlignPossible         Block, Left
26         LabelType             Static
27         LabelString           "Example:"
28         LabelFont
29                 Shape         Italic
30                 Color         Blue
31         EndFont
32         Requires              covington
33         Category              Linguistics
34 End
35
36
37 # multiple numbered examples with covington.sty
38 Style Numbered_Examples_(consecutive)
39         CopyStyle             Numbered_Example_(multiline)
40         LatexType             Item_Environment
41         LatexName             examples
42         LabelString           "Examples:"
43         Argument item:1
44                 LabelString   "Custom Numbering|s"
45                 Tooltip       "Customize the numeration"
46         EndArgument
47 End
48
49
50 # multiple numbered example with covington.sty
51 Style Subexample
52         CopyStyle             Numbered_Examples_(consecutive)
53         LatexName             subexample
54         LabelString           "Subexample:"
55         Requires              covington,enumitem
56         Preamble
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}}
63         EndPreamble
64 End
65
66
67 # glosse (2 lines) with covington.sty
68 # mandatory translation must be entered verbatim!
69 InsetLayout Flex:Glosse
70         LyXType               custom
71         LabelString           Glosse
72         LatexType             environment
73         LatexName             linggloss
74         Decoration            minimalistic
75         LabelFont
76           Size                Small
77         EndFont
78         MultiPar              true
79         CustomPars            false
80         ForcePlain            true
81         PassThru              true
82         ParbreakIsNewline     true
83         FreeSpacing           true
84         ForceLTR              true
85         Requires              covington
86         Preamble
87                 \@ifundefined{linggloss}{%
88                 \newenvironment{linggloss}[1]{%
89                         \gll #1}
90                 {\glend}}{}
91         EndPreamble
92         InToc                 true
93         ResetsFont true
94 End
95
96
97 # glosse (3 lines) with covington.sty
98 # mandatory translation must be entered verbatim!
99 InsetLayout Flex:Tri-Glosse
100         LyXType               custom
101         LabelString           Tri-Glosse
102         LatexType             environment
103         LatexName             lingglosss
104         Decoration            minimalistic
105         LabelFont
106           Size                Small
107         EndFont
108         MultiPar              true
109         CustomPars            false
110         ForcePlain            true
111         PassThru              true
112         ParbreakIsNewline     true
113         FreeSpacing           true
114         ForceLTR              true
115         InToc                 true
116         Requires              covington
117         Preamble
118                 \@ifundefined{lingglosss}{%
119                 \newenvironment{lingglosss}[1]{%
120                         \glll #1}
121                 {\glend}}{}
122         EndPreamble
123         ResetsFont true
124 End
125
126 # Structure trees via the forest package
127 InsetLayout Flex:Structure_Tree
128         LyXType               custom
129         LabelString           Tree
130         LatexType             environment
131         LatexName             forest
132         Decoration            classic
133         LabelFont
134           Size                Small
135         EndFont
136         MultiPar              true
137         CustomPars            false
138         ParbreakIsNewline     true
139         FreeSpacing           true
140         Requires              forest
141         ResetsFont            true
142         PassThruChars         []
143 End
144
145
146 # Some semantik markup for Semantics
147 InsetLayout Flex:Expression
148         LyxType               charstyle
149         LabelString           expr.
150         LatexType             command
151         LatexName             lingexpr
152         Font
153           Shape               Italic
154         EndFont
155         Preamble
156                 \newcommand{\lingexpr}[1]{\emph{#1}}
157         EndPreamble
158         InToc                 true
159         ResetsFont true
160 End
161
162
163 InsetLayout Flex:Concepts
164         LyxType               charstyle
165         LabelString           concept
166         LatexType             command
167         LatexName             lingconcept
168         Font
169           Shape               Smallcaps
170         EndFont
171         Preamble
172                 \newcommand{\lingconcept}[1]{\textsc{#1}}
173         EndPreamble
174         InToc                 true
175         ResetsFont true
176 End
177
178
179 InsetLayout Flex:Meaning
180         LyxType               charstyle
181         LabelString           meaning
182         LatexType             command
183         LatexName             lingmeaning
184         Requires              csquotes
185         Preamble
186                 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
187         EndPreamble
188         InToc                 true
189         ResetsFont true
190 End
191
192
193 # Tableaux for Optimality Theory
194 Float
195         Type                  tableau
196         GuiName               Tableau
197         Placement             tbp
198         Extension             otl
199         NumberWithin          none
200         Style                 plain
201         ListName              "List of Tableaux"
202         IsPredefined          false
203         UsesFloatPkg          true
204 End
205