]> git.lyx.org Git - features.git/blob - lib/layouts/dinbrief.layout
Merge remote-tracking branch 'origin/master' into features/latexargs
[features.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         Argument 1
197                 LabelString   "Signature"
198                 Shortcut      S
199                 Tooltip       "Here you can insert a signature scan"
200         EndArgument
201         KeepEmpty       1
202 End
203
204 Style encl
205         CopyStyle       Opening
206         LabelString     "encl:"
207         LatexName       encl
208         TopSep          0.4
209         BottomSep       0.4
210         KeepEmpty       0
211         LabelFont
212           Series        Medium
213           Shape         Up
214           Size          Normal
215           Color         black
216         EndFont
217 End
218
219 Style cc
220         CopyStyle       encl
221         LabelString     "cc:"
222         LatexName       cc
223 End
224
225 Style PS
226         CopyStyle       encl
227         LabelString     "Post Scriptum:"
228         LatexName       ps
229         Align           Block
230         AlignPossible   Block, Left
231         ParSep          0.4
232 End
233
234 # Obsoleted (or differently named) styles
235 # ---------------------------------------
236
237 # ease conversion from g-brief, scrletter, or letter
238
239 # scrletter
240 Style SenderAddress
241         ObsoletedBy     My_Address
242 End
243
244 # scrletter
245 Style Backaddress
246         ObsoletedBy     "Return address"
247 End
248
249 # g-brief-de
250 Style RetourAdresse
251         ObsoletedBy     "Return address"
252 End
253
254 # dinbrief (gm old), g-brief-en, scrletter, ...
255 Style Address
256         ObsoletedBy     Send_To_Address
257 End
258
259 # g-brief-de, g-brief2
260 Style Adresse
261         ObsoletedBy     Send_To_Address
262 End
263
264 # g-brief-de
265 Style Postvermerk
266         ObsoletedBy     "Postal comment"
267 End
268
269 # g-brief-de
270 Style Zusatz
271         ObsoletedBy     Handling
272 End
273
274 # g-brief-de
275 Style IhrZeichen
276         ObsoletedBy     YourRef
277 End
278
279 # These are identical in this class
280 Style YourMail
281         ObsoletedBy     YourRef
282 End
283
284 # g-brief-de
285 Style IhrSchreiben
286         ObsoletedBy     YourRef
287 End
288
289 # g-brief-de
290 Style MeinZeichen
291         ObsoletedBy     MyRef
292 End
293
294 # g-brief-de
295 Style Unterschrift
296         ObsoletedBy     Signature
297 End
298
299 # dinbrief (gm old)
300 Style Phone
301         ObsoletedBy     Telephone
302 End
303
304 # g-brief-de
305 Style Telefon
306         ObsoletedBy     Telephone
307 End
308
309 # dinbrief (gm old)
310 Style Place
311         ObsoletedBy     Location
312 End
313
314 # dinbrief v2
315 Style Stadt
316         ObsoletedBy     Location
317 End
318
319 # g-brief-en
320 Style Town
321         ObsoletedBy     Location
322 End
323
324 # g-brief-de
325 Style Ort
326         ObsoletedBy     Location
327 End
328
329 # g-brief-de
330 Style Datum
331         ObsoletedBy     Date
332 End
333
334 # g-brief-en, g-brief2
335 Style Reference
336         ObsoletedBy     Subject
337 End
338
339 # g-brief-de
340 Style Betreff
341         ObsoletedBy     Subject
342 End
343
344 # g-brief-de
345 Style Anrede
346         ObsoletedBy     Opening
347 End
348
349 # in dinbrief, the letter text is in Standard format
350 Style Letter
351         ObsoletedBy     Standard
352 End
353
354 # g-brief-de
355 Style Brieftext
356         ObsoletedBy     Standard
357 End
358
359 # g-brief-de
360 Style Gruss
361         ObsoletedBy     Closing
362 End
363
364 Style ps
365         ObsoletedBy     PS
366 End
367
368 # g-brief-de
369 Style Encl.
370         ObsoletedBy     encl
371 End
372
373 # g-brief-de
374 Style Anlagen
375         ObsoletedBy     encl
376 End
377
378 # scrletter
379 Style CC
380         ObsoletedBy     cc
381 End
382
383 # g-brief-de
384 Style Verteiler
385         ObsoletedBy     cc
386 End
387
388 # Remove auxiliary style
389 NoStyle                 DinBrief
390