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