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