]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
Update all layout files to format 19.
[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 19
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 Custom: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         FreeSpacing           true
79         ForceLTR              true
80         Requires              covington
81         Preamble
82                 \@ifundefined{linggloss}{%
83                 \newenvironment{linggloss}[1]{%
84                         \gll #1}
85                 {\glend}}{}
86         EndPreamble
87         InToc                 true
88 End
89
90
91 # glosse (3 lines) with covington.sty
92 # mandatory translation must be entered verbatim!
93 InsetLayout Custom:Tri-Glosse
94         LyXType               custom
95         LabelString           Tri-Glosse
96         LatexType             environment
97         LatexName             lingglosss
98         Decoration            minimalistic
99         LabelFont
100           Size                Small
101         EndFont
102         MultiPar              true
103         CustomPars            false
104         ForcePlain            true
105         PassThru              true
106         FreeSpacing           true
107         ForceLTR              true
108         InToc                 true
109         Requires              covington
110         Preamble
111                 \@ifundefined{lingglosss}{%
112                 \newenvironment{lingglosss}[1]{%
113                         \glll #1}
114                 {\glend}}{}
115         EndPreamble
116 End
117
118
119 # Some semantik markup for Semantics
120 InsetLayout CharStyle:Expression
121         LyxType               charstyle
122         LabelString           expr.
123         LatexType             command
124         LatexName             lingexpr
125         Font
126           Shape               Italic
127         EndFont
128         Preamble
129                 \newcommand{\lingexpr}[1]{\emph{#1}}
130         EndPreamble
131         InToc                 true
132 End
133
134
135 InsetLayout CharStyle:Concepts
136         LyxType               charstyle
137         LabelString           concept
138         LatexType             command
139         LatexName             lingconcept
140         Font
141           Shape               Smallcaps
142         EndFont
143         Preamble
144                 \newcommand{\lingconcept}[1]{\textsc{#1}}
145         EndPreamble
146         InToc                 true
147 End
148
149
150 InsetLayout CharStyle:Meaning
151         LyxType               charstyle
152         LabelString           meaning
153         LatexType             command
154         LatexName             lingmeaning
155         Requires              csquotes
156         Preamble
157                 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
158         EndPreamble
159         InToc                 true
160 End
161
162
163 # Tableaux for Optimality Theory
164 Float
165         Type                  tableau
166         GuiName               Tableau
167         Placement             tbp
168         Extension             otl
169         NumberWithin          none
170         Style                 plain
171         ListName              "List of Tableaux"
172         LaTeXBuiltin          false
173 End
174