]> git.lyx.org Git - lyx.git/blob - lib/layouts/linguistics.module
1527f8f8eb2cdaeda568852f4307eeda748ad6d2
[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 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
127 # Some semantik markup for Semantics
128 InsetLayout Flex:Expression
129         LyxType               charstyle
130         LabelString           expr.
131         LatexType             command
132         LatexName             lingexpr
133         Font
134           Shape               Italic
135         EndFont
136         Preamble
137                 \newcommand{\lingexpr}[1]{\emph{#1}}
138         EndPreamble
139         InToc                 true
140         ResetsFont true
141 End
142
143
144 InsetLayout Flex:Concepts
145         LyxType               charstyle
146         LabelString           concept
147         LatexType             command
148         LatexName             lingconcept
149         Font
150           Shape               Smallcaps
151         EndFont
152         Preamble
153                 \newcommand{\lingconcept}[1]{\textsc{#1}}
154         EndPreamble
155         InToc                 true
156         ResetsFont true
157 End
158
159
160 InsetLayout Flex:Meaning
161         LyxType               charstyle
162         LabelString           meaning
163         LatexType             command
164         LatexName             lingmeaning
165         Requires              csquotes
166         Preamble
167                 \newcommand{\lingmeaning}[1]{\enquote*{#1}}
168         EndPreamble
169         InToc                 true
170         ResetsFont true
171 End
172
173
174 # Tableaux for Optimality Theory
175 Float
176         Type                  tableau
177         GuiName               Tableau
178         Placement             tbp
179         Extension             otl
180         NumberWithin          none
181         Style                 plain
182         ListName              "List of Tableaux"
183         IsPredefined          false
184         UsesFloatPkg          true
185 End
186