]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
Intro.lyx: change a sentence to avoid misunderstandings
[lyx.git] / lib / layouts / linguistics.module
1 #\DeclareLyXModule[covington.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 49
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 End
44
45
46 # multiple numbered example with covington.sty
47 Style Subexample
48         CopyStyle             Numbered_Example_(multiline)
49         LatexType             Item_Environment
50         LatexName             subexample
51         LabelString           "Subexample:"
52         Requires              covington,enumitem
53         Preamble
54                 \newenvironment{subexample}{%
55                         \begin{example}\begin{enumerate}[leftmargin=1.7em]
56                         \renewcommand\theenumi{\alph{enumi}}
57                         \renewcommand\labelenumi{(\theenumi)}
58                         \renewcommand\p@enumi{\theequation\,}}%
59                         {\end{enumerate}\end{example}}
60         EndPreamble
61 End
62
63
64 # glosse (2 lines) with covington.sty
65 # mandatory translation must be entered verbatim!
66 InsetLayout Flex:Glosse
67         LyXType               custom
68         LabelString           Glosse
69         LatexType             environment
70         LatexName             linggloss
71         Decoration            minimalistic
72         LabelFont
73           Size                Small
74         EndFont
75         MultiPar              true
76         CustomPars            false
77         ForcePlain            true
78         PassThru              true
79         ParbreakIsNewline     true
80         FreeSpacing           true
81         ForceLTR              true
82         Requires              covington
83         Preamble
84                 \@ifundefined{linggloss}{%
85                 \newenvironment{linggloss}[1]{%
86                         \gll #1}
87                 {\glend}}{}
88         EndPreamble
89         InToc                 true
90         ResetsFont true
91 End
92
93
94 # glosse (3 lines) with covington.sty
95 # mandatory translation must be entered verbatim!
96 InsetLayout Flex:Tri-Glosse
97         LyXType               custom
98         LabelString           Tri-Glosse
99         LatexType             environment
100         LatexName             lingglosss
101         Decoration            minimalistic
102         LabelFont
103           Size                Small
104         EndFont
105         MultiPar              true
106         CustomPars            false
107         ForcePlain            true
108         PassThru              true
109         ParbreakIsNewline     true
110         FreeSpacing           true
111         ForceLTR              true
112         InToc                 true
113         Requires              covington
114         Preamble
115                 \@ifundefined{lingglosss}{%
116                 \newenvironment{lingglosss}[1]{%
117                         \glll #1}
118                 {\glend}}{}
119         EndPreamble
120         ResetsFont true
121 End
122
123
124 # Some semantik markup for Semantics
125 InsetLayout Flex:Expression
126         LyxType               charstyle
127         LabelString           expr.
128         LatexType             command
129         LatexName             lingexpr
130         Font
131           Shape               Italic
132         EndFont
133         Preamble
134                 \newcommand{\lingexpr}[1]{\emph{#1}}
135         EndPreamble
136         InToc                 true
137         ResetsFont true
138 End
139
140
141 InsetLayout Flex:Concepts
142         LyxType               charstyle
143         LabelString           concept
144         LatexType             command
145         LatexName             lingconcept
146         Font
147           Shape               Smallcaps
148         EndFont
149         Preamble
150                 \newcommand{\lingconcept}[1]{\textsc{#1}}
151         EndPreamble
152         InToc                 true
153         ResetsFont true
154 End
155
156
157 InsetLayout Flex:Meaning
158         LyxType               charstyle
159         LabelString           meaning
160         LatexType             command
161         LatexName             lingmeaning
162         Requires              csquotes
163         Preamble
164                 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
165         EndPreamble
166         InToc                 true
167         ResetsFont true
168 End
169
170
171 # Tableaux for Optimality Theory
172 Float
173         Type                  tableau
174         GuiName               Tableau
175         Placement             tbp
176         Extension             otl
177         NumberWithin          none
178         Style                 plain
179         ListName              "List of Tableaux"
180         IsPredefined          false
181         UsesFloatPkg          true
182 End
183