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