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