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