]> git.lyx.org Git - lyx.git/blob - lib/layouts/scrlttr2.layout
da7ab97b7e5267bcca459cb2da4806a6074c9f9f
[lyx.git] / lib / layouts / scrlttr2.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{KOMA-Script Letter (V. 2)}
3 #  \DeclareCategory{Letters}
4 # KOMA scrlettr2 textclass definition file.
5 # Juergen Spitzmueller <spitz@lyx.org>, 2003/2/17.
6 # Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
7
8 Format 63
9 Provides subscript 1
10
11 Style Standard
12         Category              MainText
13         LatexName             dummy
14         ParSep                0.4
15         AlignPossible         Block, Left, Right, Center
16 End
17
18 Input stdlists.inc
19 Input stdlayouts.inc
20 Input stdcounters.inc
21 Input stdinsets.inc
22
23 Style Description
24         LabelFont
25           Family              Sans
26         EndFont
27 End
28
29
30 Style Labeling
31         CopyStyle             List
32         LatexName             labeling
33         # overwrite the preamble code definition
34         Preamble
35         EndPreamble
36 End
37
38
39 Style List
40         Obsoletedby           Labeling
41 End
42
43
44 Preamble
45         \newif\ifletterclosed
46 EndPreamble
47
48
49 Style Address
50         LatexType             Command
51         LatexName             begin
52         LatexParam            {letter}
53         Preamble
54                 \AtEndDocument{\ifletterclosed\else\end{letter}\fi}
55         EndPreamble
56         KeepEmpty             1
57         LeftMargin            xxxxxxxxxxxx::xx
58         LabelSep              xx
59         TopSep                1.5
60         BottomSep             1.5
61         ParSep                1.5
62         Align                 Left
63         LabelType             Static
64         LabelString           "Address:"
65         LabelFont
66           Series              Bold
67           Shape               Italic
68           Size                Small
69           Color               Blue
70         EndFont
71 End
72
73
74 # Start new letter
75 Style NextAddress
76         LatexType             Command
77         LatexName             end{letter}\begin{letter}
78         KeepEmpty             1
79         LeftMargin            xxxxxxxxxxxx::xx
80         LabelSep              xx
81         TopSep                1.5
82         BottomSep             1.5
83         ParSep                1.5
84         Align                 Left
85         LabelType             Static
86         LabelString           "Next Address:"
87         LabelFont
88           Series              Bold
89           Shape               Italic
90           Size                Small
91           Color               Blue
92         EndFont
93 End
94
95
96 Style Opening
97         Category              Letter
98         LatexType             Command
99         LatexName             opening
100         KeepEmpty             0
101         LeftMargin            xxxxxxxxxxxx::xx
102         LabelSep              xx
103         TopSep                0.4
104         BottomSep             0.4
105         ParSep                0.4
106         Align                 Left
107         LabelType             Static
108         LabelString           "Opening:"
109         LabelFont
110           Series              Bold
111           Shape               Italic
112           Color               Magenta
113         EndFont
114 End
115
116
117 Style Closing
118         CopyStyle             Opening
119         LatexType             Command
120         LatexName             closing
121         LabelString           "Closing:"
122 End
123
124
125 Style PS
126         CopyStyle             Opening
127         LatexType             Command
128         LatexName             ps
129         LabelString           "Post Scriptum:"
130 End
131
132
133 Style CC
134         CopyStyle             Opening
135         LatexType             Command
136         LatexName             cc
137         LabelString           "cc:"
138 End
139
140
141 Style Encl
142         CopyStyle             Opening
143         LatexName             encl
144         LabelString           "encl:"
145 End
146
147
148 Style Name
149         Category              Letter
150         LatexType             Command
151         LatexName             setkomavar
152         LatexParam            {fromname}
153         KeepEmpty             1
154         LeftMargin            xxxxxxxxxxxxxxxxx::xx
155         LabelSep              xx
156         TopSep                0.4
157         BottomSep             0.4
158         ParSep                0.4
159         Align                 Left
160         LabelType             Static
161         LabelString           "Sender Name:"
162
163         LabelFont
164           Series              Bold
165           Shape               Italic
166           Color               Blue
167         EndFont
168 End
169
170
171 Style Signature
172         CopyStyle             Name
173         LatexName             setkomavar
174         LatexParam            {signature}
175         LabelString           "Signature:"
176 End
177
178
179 Style SenderAddress
180         CopyStyle             Name
181         LatexName             setkomavar
182         LatexParam            {fromaddress}
183         LabelString           "Sender Address:"
184 End
185
186
187 Style Telephone
188         CopyStyle             Name
189         LatexName             setkomavar
190         LatexParam            {fromphone}
191         LabelString           "Sender Phone:"
192 End
193
194
195 Style Fax
196         CopyStyle             Name
197         LatexName             setkomavar
198         LatexParam            {fromfax}
199         LabelString           "Sender Fax:"
200 End
201
202
203 Style E-Mail
204         CopyStyle             Name
205         LatexName             setkomavar
206         LatexParam            {fromemail}
207         LabelString           "Sender E-Mail:"
208 End
209
210
211 Style URL
212         CopyStyle             Name
213         LatexName             setkomavar
214         LatexParam            {fromurl}
215         LabelString           "Sender URL:"
216 End
217
218
219 Style Bank
220         CopyStyle             Name
221         LatexName             setkomavar
222         LatexParam            {frombank}
223         LabelString           "Bank:"
224 End
225
226
227 Style Logo
228         CopyStyle             Name
229         LatexName             setkomavar
230         LatexParam            {fromlogo}
231         LabelString           "Logo:"
232 End
233
234
235 Style Place
236         CopyStyle             Name
237         LatexName             setkomavar
238         LatexParam            {place}
239         LabelString           "Place:"
240 End
241
242
243 Style Date
244         CopyStyle             Name
245         LatexName             setkomavar
246         LatexParam            {date}
247         LabelString           "Date:"
248 End
249
250
251 Style Backaddress
252         CopyStyle             Name
253         LatexName             setkomavar
254         LatexParam            {backaddress}
255         LabelString           "Backaddress:"
256 End
257
258
259 Style Specialmail
260         CopyStyle             Name
261         LatexName             setkomavar
262         LatexParam            {specialmail}
263         LabelString           "Specialmail:"
264 End
265
266
267 Style Location
268         CopyStyle             Name
269         LatexName             setkomavar
270         LatexParam            {location}
271         LabelString           "Location:"
272 End
273
274
275 Style Title
276         CopyStyle             Name
277         LatexName             setkomavar
278         LatexParam            {title}
279         LabelString           "Title:"
280         HTMLTitle             true
281 End
282
283
284 Style Subject
285         CopyStyle             Name
286         LatexName             setkomavar
287         LatexParam            {subject}
288         LabelString           "Subject:"
289 End
290
291
292 Style Yourref
293         CopyStyle             Name
294         LatexName             setkomavar
295         LatexParam            {yourref}
296         LabelString           "Your ref.:"
297
298         LabelFont
299           Family              Sans
300           Series              Medium
301           Shape               Up
302           Size                Small
303           Color               None
304         EndFont
305 End
306
307
308 Style Yourmail
309         CopyStyle             Yourref
310         LatexName             setkomavar
311         LatexParam            {yourmail}
312         LabelString           "Your letter of:"
313 End
314
315
316 Style Myref
317         CopyStyle             Yourref
318         LatexName             setkomavar
319         LatexParam            {myref}
320         LabelString           "Our ref.:"
321 End
322
323
324 Style Customer
325         CopyStyle             Yourref
326         LatexName             setkomavar
327         LatexParam            {customer}
328         LabelString           "Customer no.:"
329 End
330
331
332 Style Invoice
333         CopyStyle             Yourref
334         LatexName             setkomavar
335         LatexParam            {invoice}
336         LabelString           "Invoice no.:"
337 End
338
339
340 Style EndLetter
341         Margin                Dynamic
342         LatexType             Command
343         LatexName             end{letter}
344         Preamble
345                 \letterclosedtrue
346         EndPreamble
347         KeepEmpty             1
348         TopSep                1
349         ParSkip               0.4
350         Align                 Block
351         LabelSep              xx
352         LabelType             Static
353         LabelString           "End of letter"
354         LabelFont
355           Series              Bold
356           Color               Green
357         EndFont
358 End