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