]> git.lyx.org Git - features.git/blob - lib/layouts/scrclass.inc
DocBook: implement other letter classes (frletter, standard letter, KOMA-Script).
[features.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 85
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         DocBookTag            para
39 End
40
41 Input stdinsets.inc
42 Input stdlists.inc
43 Input stdcounters.inc
44 Input stdfloats.inc
45
46
47 # Adapt enumii counter display to KOMA default
48 Counter enumii
49         GuiName "Numbered List (Level 2)"
50         Within               enumi
51         LabelString          "\alph{enumii})"
52 End
53
54
55 Style Description
56         LabelFont
57           Family              Sans
58         EndFont
59 End
60
61 Style Labeling
62         Category              List
63         LatexName             labeling
64         # overwrite the preamble code definition
65         Preamble
66         EndPreamble     
67         DocBookTag            variablelist
68         DocBookItemWrapperTag varlistentry
69         DocBookItemTag        listitem
70         DocBookItemInnerTag   para
71         DocBookItemLabelTag   term
72         DocBookItemLabelTagType   paragraph
73 End
74
75 Input stdsections.inc
76
77 Style Part
78         Font
79           Family              Sans
80         EndFont
81 End
82
83
84 Style Chapter
85         LabelType             Static
86         LabelSep              xxx
87         Margin                Dynamic
88         Align                 Left
89         Font
90           Family              Sans
91           Size                Largest
92         EndFont
93 End
94
95
96 Style Section
97         Align                 Left
98         Font
99           Family              Sans
100         EndFont
101 End
102
103
104 Style Subsection
105         Align                 Left
106         Font
107           Family              Sans
108         EndFont
109 End
110
111
112 Style Subsubsection
113         Align                 Left
114         Font
115           Family              Sans
116         EndFont
117 End
118
119
120 Style Paragraph
121         Align                 Left
122         Font
123           Family              Sans
124         EndFont
125 End
126
127
128 Style Subparagraph
129         Align                 Left
130         LeftMargin            ""
131         Font
132           Family              Sans
133         EndFont
134 End
135
136 Input stdstarsections.inc
137
138 Style Addpart
139         CopyStyle             Part*
140         LatexName             addpart
141         Argument 1
142                 LabelString   "Short Title|S"
143                 Tooltip       "The part as it appears in the table of contents/running headers"
144                 InsertCotext  1
145         EndArgument
146 End
147
148
149 Style Addchap
150         CopyStyle             Chapter*
151         LatexName             addchap
152         Argument 1
153                 LabelString   "Short Title|S"
154                 Tooltip       "The chapter as it appears in the table of contents/running headers"
155                 InsertCotext  1
156         EndArgument
157 End
158
159
160 Style Addsec
161         CopyStyle             Section*
162         LatexName             addsec
163         Argument 1
164                 LabelString   "Short Title|S"
165                 Tooltip       "The section as it appears in the table of contents/running headers"
166                 InsertCotext  1
167         EndArgument
168 End
169
170
171 Style Addchap*
172         CopyStyle             Chapter*
173         LatexName             addchap*
174 End
175
176
177 Style Addsec*
178         CopyStyle             Section*
179         LatexName             addsec*
180 End
181
182
183 Style Minisec
184         Category              Sectioning
185         LatexType             Command
186         LatexName             minisec
187         NeedProtect           1
188         NextNoIndent          1
189         LabelSep              xxx
190         ParSkip               0.4
191         TopSep                0.4
192         ParSep                0.4
193         AlignPossible         Block, Left
194         Font
195           Family              Sans
196           Series              Bold
197         EndFont
198 End
199
200 Input stdtitle.inc
201
202 Style Title
203         Font
204           Family              Sans
205           Series              Bold
206         EndFont
207         DocBookTag            title
208 End
209
210 Style Subtitle
211         CopyStyle             Title
212         LatexName             subtitle
213         Font
214           Size                Large
215         EndFont
216         DocBookTag            subtitle
217 End
218
219
220 Style Author
221         Font
222           Size                Larger
223         EndFont
224         DocBookTag            personname
225         DocBookTagType        paragraph
226         DocBookWrapperTag     author
227         DocBookWrapperTagType inline
228         DocBookInInfo         always
229 End
230
231
232 Style Date
233         Font
234           Size                Larger
235         EndFont
236         DocBookTag            date
237         DocBookTagType        paragraph
238         DocBookInInfo         always
239 End
240
241
242 Style Subject
243         CopyStyle             Author
244         LatexName             subject
245 End
246
247
248 Style Publishers
249         CopyStyle             Author
250         LatexName             publishers
251 End
252
253
254 Style Dedication
255         CopyStyle             Author
256         LatexName             dedication
257 End
258
259
260 Style Titlehead
261         CopyStyle             Author
262         LatexName             titlehead
263         Align                 Left
264         Font
265           Size                Normal
266         EndFont
267 End
268
269
270 Style Uppertitleback
271         CopyStyle             Titlehead
272         LatexName             uppertitleback
273 End
274
275
276 Style Lowertitleback
277         CopyStyle             Titlehead
278         LatexName             lowertitleback
279 End
280
281
282 Style Extratitle
283         CopyStyle             Titlehead
284         LatexName             extratitle
285 End
286
287 Input stdstruct.inc
288
289 Style Abstract
290         LabelType             No_Label
291 End
292
293
294 Style Bibliography
295         LabelFont
296           Family              Sans
297         EndFont
298 End
299
300 Input stdlayouts.inc
301
302
303 InsetLayout Caption:Above
304         LabelString          above
305         LaTeXType            command
306         LatexName            captionabove
307         NeedProtect          1
308         MultiPar             false
309         Argument 1
310                 LabelString   "Short Title|S"
311                 Tooltip       "The caption as it appears in the list of figures/tables"
312                 InsertCotext  1
313         EndArgument
314         HTMLStyle
315                 div.float-caption {
316                         text-align: center;
317                         border: 2px solid black;
318                         padding: 1ex;
319                         margin: 1ex;
320                 }
321         EndHTMLStyle
322         HTMLAttr "class='float-caption float-caption-above'"
323 End
324
325
326 InsetLayout Caption:Below
327         LabelString          below
328         LaTeXType            command
329         LatexName            captionbelow
330         NeedProtect          1
331         MultiPar             false
332         Argument 1
333                 LabelString   "Short Title|S"
334                 Tooltip       "The caption as it appears in the list of figures/tables"
335                 InsertCotext  1
336         EndArgument
337         HTMLStyle
338                 div.float-caption {
339                         text-align: center;
340                         border: 2px solid black;
341                         padding: 1ex;
342                         margin: 1ex;
343                 }
344         EndHTMLStyle
345         HTMLAttr "class='float-caption float-caption-below'"
346 End
347
348
349 Style Dictum
350         Category             MainText
351         Margin               Right_Address_Box
352         LatexType            Command
353         LatexName            dictum
354         ParSkip              0.4
355         BottomSep            1.5
356         ParSep               1.5
357         Align                Left
358         Argument 1
359                 LabelString   "Dictum Author"
360                 Tooltip       "The author of this dictum"
361         EndArgument
362         Font
363           Size               Normal
364         EndFont
365 End
366
367 Input lyxmacros.inc
368