]> git.lyx.org Git - lyx.git/blob - lib/layouts/dinbrief.layout
Updates to the sv* series of layouts form Marcus Kriele.
[lyx.git] / lib / layouts / dinbrief.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{letter (DIN-Brief, German)}
3 # German DIN-Brief textclass definition file.
4 # Author : Juergen Vigna <jug@sad.it>
5 # Modified by: Carsten Kaemmerer <kammerer@ips.cs.tu-bs.de>
6 # Modified by: Guenter Milde <g.milde@users.berlios.de>
7 #    Dummy Style DinBrief for common layout features (removed at eof)
8 #    Generic style names (there are german translations for most names)
9 #    Additional Styles and twiddeled layout
10 #    Many "ObsoletedBy" to ease conversion from g-brief, scrletter,
11 #    or letter (see also the update of the dinbrief.lyx template)
12 # Modified by: Juergen Spitzmueller <spitz@lyx.org>
13 #    use English strings, localization is done by gettext!
14
15 Format 35
16
17 Input letter.layout
18
19 # dinbrief's \phone has 2 args, area and number. We define an empty
20 # command that can be set by the Area_Code style
21 Preamble
22         \newcommand{\areacode}{}
23 EndPreamble
24
25 # auxiliary style copied by other dinbrief styles
26 # the LeftMargin is set to the probably longest string
27 # (no typo! the umlaut is delibarately omitted)
28 Style DinBrief
29         LatexType       Command
30         Margin          Static
31         LeftMargin      "Rucksende-Adresse:"
32         Align           Left
33         AlignPossible   Left
34         LabelType       Static
35         LabelSep        x
36         LabelFont
37           Series        Medium
38           Shape         Italic
39           Size          Small
40           Color         blue
41         EndFont
42 End
43
44 # Open a new letter
45 # in dinbrief, this is an environment spanning the whole letter
46 # (see scrlettr2 for an alternative lyx-implementation)
47 Style Send_To_Address
48         CopyStyle       DinBrief
49         LabelString     "Address:"
50         KeepEmpty       1
51         BottomSep       0.1
52         LatexName       letter
53 End
54
55 # Data Fields, placed according to DIN norm
56 # ---------------------------------------------------------
57
58 # need to be placed before the Opening in the LyX document!
59
60 # backaddress in letter head
61 Style My_Address
62         CopyStyle       DinBrief
63         LabelString     "Sender Address:"
64         LatexName       address
65         KeepEmpty       1
66         BottomSep       0.5
67         AlignPossible   Block, Left, Right, Center
68 End
69
70 # backaddress in address window
71 Style "Return address"
72         CopyStyle       DinBrief
73         LabelString     "Backaddress:"
74         LatexName       backaddress
75         TextFont
76             Size        Small
77         EndFont
78 End
79
80 # Printed above the address (e.g., Air Mail, Registered Mail)
81 Style "Postal comment"
82         CopyStyle       DinBrief
83         LabelString     "Postal Remark:"
84         LatexName       postremark
85 End
86
87 # Printed right next to Receiver (e.g., Urgent, Confidential)
88 Style Handling
89         CopyStyle       DinBrief
90         LabelString     "Handling:"
91         LatexName       handling
92 End
93
94 Style YourRef
95         CopyStyle       DinBrief
96         LabelString     "Your ref.:"
97         LatexName       yourmail
98 End
99
100 Style MyRef
101         CopyStyle       DinBrief
102         LabelString     "Our ref.:"
103         LatexName       sign
104 End
105
106 Style Writer
107         CopyStyle       DinBrief
108         LabelString     "Writer:"
109         LatexName       writer
110 End
111
112 Style Signature
113         CopyStyle       DinBrief
114         LabelString     "Signature:"
115         LatexName       signature
116 End
117
118 # contact info at the bottom of the first page
119 Style Bottomtext
120         CopyStyle       DinBrief
121         LabelString     "Bottom text:"
122         LatexName       bottomtext
123         AlignPossible   Block, Left, Right, Center
124 End
125
126 # dinbrief's \phone has 2 args, area and number,
127 # define both as distinct styles
128
129 Style "Area code"
130         CopyStyle       DinBrief
131         LabelString     "Area Code:"
132         LatexName       "renewcommand{\areacode}"
133 End
134
135 Style Telephone
136         CopyStyle       DinBrief
137         LabelString     "Telephone:"
138         LatexName       phone
139         LatexParam      {\areacode}
140 End
141
142 Style Location
143         CopyStyle       DinBrief
144         LabelString     "Location:"
145         LatexName       place
146         Margin          Right_Address_Box
147         TopSep          0.1
148         BottomSep       0.1
149         ParSep          0.1
150 End
151
152 Style Date
153         CopyStyle       Location
154         LabelString     "Date:"
155         LatexName       date
156 End
157
158 # dinbrief does not emphasize the subject line
159 Style Subject
160         CopyStyle       DinBrief
161         LabelString     "Subject:"
162         LatexName       subject
163         TopSep          0.4
164         BottomSep       0.4
165         ParSep          0.4
166         Align           Block
167         AlignPossible   Block, Left, Right, Center
168 End
169
170 # Opening (Anrede)
171 # ----------------
172
173 # sets the above data fields
174
175 Style Opening
176         CopyStyle       DinBrief
177         LabelType       Top_Environment
178         LeftMargin      ""
179         LabelString     "Opening:"
180         LatexName       opening
181         KeepEmpty       1
182         TopSep          1.5
183         BottomSep       1
184 End
185
186 # Backmatter (styles to be used at the end of the letter)
187 # -------------------------------------------------------
188
189 # placed in order of appearance in the document
190
191 Style Closing
192         CopyStyle       Opening
193         LabelString     "Closing:"
194         LatexName       closing
195         OptionalArgs    1
196         KeepEmpty       1
197 End
198
199 Style encl
200         CopyStyle       Opening
201         LabelString     "encl:"
202         LatexName       encl
203         TopSep          0.4
204         BottomSep       0.4
205         KeepEmpty       0
206         LabelFont
207           Series        Medium
208           Shape         Up
209           Size          Normal
210           Color         black
211         EndFont
212 End
213
214 Style cc
215         CopyStyle       encl
216         LabelString     "cc:"
217         LatexName       cc
218 End
219
220 Style PS
221         CopyStyle       encl
222         LabelString     "Post Scriptum:"
223         LatexName       ps
224         Align           Block
225         AlignPossible   Block, Left
226         ParSep          0.4
227 End
228
229 # Obsoleted (or differently named) styles
230 # ---------------------------------------
231
232 # ease conversion from g-brief, scrletter, or letter
233
234 # scrletter
235 Style SenderAddress
236         ObsoletedBy     My_Address
237 End
238
239 # scrletter
240 Style Backaddress
241         ObsoletedBy     "Return address"
242 End
243
244 # g-brief-de
245 Style RetourAdresse
246         ObsoletedBy     "Return address"
247 End
248
249 # dinbrief (gm old), g-brief-en, scrletter, ...
250 Style Address
251         ObsoletedBy     Send_To_Address
252 End
253
254 # g-brief-de, g-brief2
255 Style Adresse
256         ObsoletedBy     Send_To_Address
257 End
258
259 # g-brief-de
260 Style Postvermerk
261         ObsoletedBy     "Postal comment"
262 End
263
264 # g-brief-de
265 Style Zusatz
266         ObsoletedBy     Handling
267 End
268
269 # g-brief-de
270 Style IhrZeichen
271         ObsoletedBy     YourRef
272 End
273
274 # These are identical in this class
275 Style YourMail
276         ObsoletedBy     YourRef
277 End
278
279 # g-brief-de
280 Style IhrSchreiben
281         ObsoletedBy     YourRef
282 End
283
284 # g-brief-de
285 Style MeinZeichen
286         ObsoletedBy     MyRef
287 End
288
289 # g-brief-de
290 Style Unterschrift
291         ObsoletedBy     Signature
292 End
293
294 # dinbrief (gm old)
295 Style Phone
296         ObsoletedBy     Telephone
297 End
298
299 # g-brief-de
300 Style Telefon
301         ObsoletedBy     Telephone
302 End
303
304 # dinbrief (gm old)
305 Style Place
306         ObsoletedBy     Location
307 End
308
309 # dinbrief v2
310 Style Stadt
311         ObsoletedBy     Location
312 End
313
314 # g-brief-en
315 Style Town
316         ObsoletedBy     Location
317 End
318
319 # g-brief-de
320 Style Ort
321         ObsoletedBy     Location
322 End
323
324 # g-brief-de
325 Style Datum
326         ObsoletedBy     Date
327 End
328
329 # g-brief-en, g-brief2
330 Style Reference
331         ObsoletedBy     Subject
332 End
333
334 # g-brief-de
335 Style Betreff
336         ObsoletedBy     Subject
337 End
338
339 # g-brief-de
340 Style Anrede
341         ObsoletedBy     Opening
342 End
343
344 # in dinbrief, the letter text is in Standard format
345 Style Letter
346         ObsoletedBy     Standard
347 End
348
349 # g-brief-de
350 Style Brieftext
351         ObsoletedBy     Standard
352 End
353
354 # g-brief-de
355 Style Gruss
356         ObsoletedBy     Closing
357 End
358
359 Style ps
360         ObsoletedBy     PS
361 End
362
363 # g-brief-de
364 Style Encl.
365         ObsoletedBy     encl
366 End
367
368 # g-brief-de
369 Style Anlagen
370         ObsoletedBy     encl
371 End
372
373 # scrletter
374 Style CC
375         ObsoletedBy     cc
376 End
377
378 # g-brief-de
379 Style Verteiler
380         ObsoletedBy     cc
381 End
382
383 # Remove auxiliary style
384 NoStyle                 DinBrief
385