]> git.lyx.org Git - lyx.git/blob - lib/layouts/scrclass.inc
Add GuiNames to counter declarations.
[lyx.git] / lib / layouts / scrclass.inc
1 # KOMA script textclass definition file.
2 # Base definitions for the KOMA script layouts.
3 # Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/23.
4 # Update for Koma Script Release >=2.8q
5 # Juergen Spitzmueller <spitz@lyx.org>, 2003/2/08.
6 # Mapped List to Labeling
7 # Guenter Milde <milde@lyx.org>, 2009-02-02
8 # Labeling is now used also in non-KOMA classes
9
10
11 Format 80
12 SecNumDepth             2
13 TocDepth                2
14 DefaultStyle            Standard
15 PageSize                a4
16 Provides                subscript 1
17
18 ClassOptions
19         FontSize             9|10|11|12|13|14|15|16|17|18|19|20
20         FontSizeFormat       fontsize=$$s
21         PageSize             a0|a1|a2|a3|a4|a5|a6|b0|b1|b2|b3|b4|b5|b6|c0|c1|c2|c3|c4|c5|c6|executive|legal|letter
22         PageSizeFormat       paper=$$s
23 End
24
25 Style Standard
26         Category              MainText
27         LatexName             dummy
28         ParIndent             MM
29         ParSkip               0.4
30         AlignPossible         Block, Left, Right, Center
31         # FIXME This ought to be set dynamically.
32         HTMLStyle
33                 div.standard {
34                         text-indent: 2em;
35                         margin-bottom: 2ex;
36                 }
37         EndHTMLStyle
38 End
39
40 Input stdinsets.inc
41 Input stdlists.inc
42 Input stdcounters.inc
43 Input stdfloats.inc
44
45
46 # Adapt enumii counter display to KOMA default
47 Counter enumii
48         GuiName "Numbered List (Level 2)"
49         Within               enumi
50         LabelString          "\alph{enumii})"
51 End
52
53
54 Style Description
55         LabelFont
56           Family              Sans
57         EndFont
58 End
59
60 Style Labeling
61         Category              List
62         LatexName             labeling
63         # overwrite the preamble code definition
64         Preamble
65         EndPreamble
66 End
67
68 Input stdsections.inc
69
70 Style Part
71         Font
72           Family              Sans
73         EndFont
74 End
75
76
77 Style Chapter
78         LabelType             Static
79         LabelSep              xxx
80         Margin                Dynamic
81         Align                 Left
82         Font
83           Family              Sans
84           Size                Largest
85         EndFont
86 End
87
88
89 Style Section
90         Align                 Left
91         Font
92           Family              Sans
93         EndFont
94 End
95
96
97 Style Subsection
98         Align                 Left
99         Font
100           Family              Sans
101         EndFont
102 End
103
104
105 Style Subsubsection
106         Align                 Left
107         Font
108           Family              Sans
109         EndFont
110 End
111
112
113 Style Paragraph
114         Align                 Left
115         Font
116           Family              Sans
117         EndFont
118 End
119
120
121 Style Subparagraph
122         Align                 Left
123         LeftMargin            ""
124         Font
125           Family              Sans
126         EndFont
127 End
128
129 Input stdstarsections.inc
130
131 Style Addpart
132         CopyStyle             Part*
133         LatexName             addpart
134         Argument 1
135                 LabelString   "Short Title|S"
136                 Tooltip       "The part as it appears in the table of contents/running headers"
137                 InsertCotext  1
138         EndArgument
139 End
140
141
142 Style Addchap
143         CopyStyle             Chapter*
144         LatexName             addchap
145         Argument 1
146                 LabelString   "Short Title|S"
147                 Tooltip       "The chapter as it appears in the table of contents/running headers"
148                 InsertCotext  1
149         EndArgument
150 End
151
152
153 Style Addsec
154         CopyStyle             Section*
155         LatexName             addsec
156         Argument 1
157                 LabelString   "Short Title|S"
158                 Tooltip       "The section as it appears in the table of contents/running headers"
159                 InsertCotext  1
160         EndArgument
161 End
162
163
164 Style Addchap*
165         CopyStyle             Chapter*
166         LatexName             addchap*
167 End
168
169
170 Style Addsec*
171         CopyStyle             Section*
172         LatexName             addsec*
173 End
174
175
176 Style Minisec
177         Category              Sectioning
178         LatexType             Command
179         LatexName             minisec
180         NeedProtect           1
181         NextNoIndent          1
182         LabelSep              xxx
183         ParSkip               0.4
184         TopSep                0.4
185         ParSep                0.4
186         AlignPossible         Block, Left
187         Font
188           Family              Sans
189           Series              Bold
190         EndFont
191 End
192
193 Input stdtitle.inc
194
195 Style Title
196         Font
197           Family              Sans
198           Series              Bold
199         EndFont
200 End
201
202 Style Subtitle
203         CopyStyle             Title
204         LatexName             subtitle
205         Font
206           Size                Large
207         EndFont
208 End
209
210
211 Style Author
212         Font
213           Size                Larger
214         EndFont
215 End
216
217
218 Style Date
219         Font
220           Size                Larger
221         EndFont
222 End
223
224
225 Style Subject
226         CopyStyle             Author
227         LatexName             subject
228 End
229
230
231 Style Publishers
232         CopyStyle             Author
233         LatexName             publishers
234 End
235
236
237 Style Dedication
238         CopyStyle             Author
239         LatexName             dedication
240 End
241
242
243 Style Titlehead
244         CopyStyle             Author
245         LatexName             titlehead
246         Align                 Left
247         Font
248           Size                Normal
249         EndFont
250 End
251
252
253 Style Uppertitleback
254         CopyStyle             Titlehead
255         LatexName             uppertitleback
256 End
257
258
259 Style Lowertitleback
260         CopyStyle             Titlehead
261         LatexName             lowertitleback
262 End
263
264
265 Style Extratitle
266         CopyStyle             Titlehead
267         LatexName             extratitle
268 End
269
270 Input stdstruct.inc
271
272 Style Abstract
273         LabelType             No_Label
274 End
275
276
277 Style Bibliography
278         LabelFont
279           Family              Sans
280         EndFont
281 End
282
283 Input stdlayouts.inc
284
285
286 InsetLayout Caption:Above
287         LabelString          above
288         LaTeXType            command
289         LatexName            captionabove
290         NeedProtect          1
291         MultiPar             false
292         Argument 1
293                 LabelString   "Short Title|S"
294                 Tooltip       "The caption as it appears in the list of figures/tables"
295                 InsertCotext  1
296         EndArgument
297         HTMLStyle
298                 div.float-caption {
299                         text-align: center;
300                         border: 2px solid black;
301                         padding: 1ex;
302                         margin: 1ex;
303                 }
304         EndHTMLStyle
305         HTMLAttr "class='float-caption float-caption-above'"
306 End
307
308
309 InsetLayout Caption:Below
310         LabelString          below
311         LaTeXType            command
312         LatexName            captionbelow
313         NeedProtect          1
314         MultiPar             false
315         Argument 1
316                 LabelString   "Short Title|S"
317                 Tooltip       "The caption as it appears in the list of figures/tables"
318                 InsertCotext  1
319         EndArgument
320         HTMLStyle
321                 div.float-caption {
322                         text-align: center;
323                         border: 2px solid black;
324                         padding: 1ex;
325                         margin: 1ex;
326                 }
327         EndHTMLStyle
328         HTMLAttr "class='float-caption float-caption-below'"
329 End
330
331
332 Style Dictum
333         Category             MainText
334         Margin               Right_Address_Box
335         LatexType            Command
336         LatexName            dictum
337         ParSkip              0.4
338         BottomSep            1.5
339         ParSep               1.5
340         Align                Left
341         Argument 1
342                 LabelString   "Dictum Author"
343                 Tooltip       "The author of this dictum"
344         EndArgument
345         Font
346           Size               Normal
347         EndFont
348 End
349
350 Input lyxmacros.inc
351