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