]> git.lyx.org Git - lyx.git/blob - lib/layouts/dinbrief.layout
multicol.module: use the layout argument mechanism
[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 43
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         Category        Letter
31         LatexType       Command
32         Margin          Static
33         LeftMargin      "Rucksende-Adresse:"
34         Align           Left
35         AlignPossible   Left
36         LabelType       Static
37         LabelSep        x
38         LabelFont
39           Series        Medium
40           Shape         Italic
41           Size          Small
42           Color         blue
43         EndFont
44 End
45
46 # Open a new letter
47 # in dinbrief, this is an environment spanning the whole letter
48 # (see scrlettr2 for an alternative lyx-implementation)
49 Style Send_To_Address
50         CopyStyle       DinBrief
51         LabelString     "Address:"
52         KeepEmpty       1
53         BottomSep       0.1
54         LatexName       letter
55 End
56
57 # Data Fields, placed according to DIN norm
58 # ---------------------------------------------------------
59
60 # need to be placed before the Opening in the LyX document!
61
62 # backaddress in letter head
63 Style My_Address
64         CopyStyle       DinBrief
65         LabelString     "Sender Address:"
66         LatexName       address
67         KeepEmpty       1
68         BottomSep       0.5
69         AlignPossible   Block, Left, Right, Center
70 End
71
72 # backaddress in address window
73 Style "Return address"
74         CopyStyle       DinBrief
75         LabelString     "Backaddress:"
76         LatexName       backaddress
77         TextFont
78             Size        Small
79         EndFont
80 End
81
82 # Printed above the address (e.g., Air Mail, Registered Mail)
83 Style "Postal comment"
84         CopyStyle       DinBrief
85         LabelString     "Postal Remark:"
86         LatexName       postremark
87 End
88
89 # Printed right next to Receiver (e.g., Urgent, Confidential)
90 Style Handling
91         CopyStyle       DinBrief
92         LabelString     "Handling:"
93         LatexName       handling
94 End
95
96 Style YourRef
97         CopyStyle       DinBrief
98         LabelString     "Your ref.:"
99         LatexName       yourmail
100 End
101
102 Style MyRef
103         CopyStyle       DinBrief
104         LabelString     "Our ref.:"
105         LatexName       sign
106 End
107
108 Style Writer
109         CopyStyle       DinBrief
110         LabelString     "Writer:"
111         LatexName       writer
112 End
113
114 Style Signature
115         CopyStyle       DinBrief
116         LabelString     "Signature:"
117         LatexName       signature
118 End
119
120 # contact info at the bottom of the first page
121 Style Bottomtext
122         CopyStyle       DinBrief
123         LabelString     "Bottom text:"
124         LatexName       bottomtext
125         AlignPossible   Block, Left, Right, Center
126 End
127
128 # dinbrief's \phone has 2 args, area and number,
129 # define both as distinct styles
130
131 Style "Area code"
132         CopyStyle       DinBrief
133         LabelString     "Area Code:"
134         LatexName       "renewcommand{\areacode}"
135 End
136
137 Style Telephone
138         CopyStyle       DinBrief
139         LabelString     "Telephone:"
140         LatexName       phone
141         LatexParam      {\areacode}
142 End
143
144 Style Location
145         CopyStyle       DinBrief
146         LabelString     "Location:"
147         LatexName       place
148         Margin          Right_Address_Box
149         TopSep          0.1
150         BottomSep       0.1
151         ParSep          0.1
152 End
153
154 Style Date
155         CopyStyle       Location
156         LabelString     "Date:"
157         LatexName       date
158 End
159
160 # dinbrief does not emphasize the subject line
161 Style Subject
162         CopyStyle       DinBrief
163         LabelString     "Subject:"
164         LatexName       subject
165         TopSep          0.4
166         BottomSep       0.4
167         ParSep          0.4
168         Align           Block
169         AlignPossible   Block, Left, Right, Center
170 End
171
172 # Opening (Anrede)
173 # ----------------
174
175 # sets the above data fields
176
177 Style Opening
178         CopyStyle       DinBrief
179         LabelType       Top_Environment
180         LeftMargin      ""
181         LabelString     "Opening:"
182         LatexName       opening
183         KeepEmpty       1
184         TopSep          1.5
185         BottomSep       1
186 End
187
188 # Backmatter (styles to be used at the end of the letter)
189 # -------------------------------------------------------
190
191 # placed in order of appearance in the document
192
193 Style Closing
194         CopyStyle       Opening
195         LabelString     "Closing:"
196         LatexName       closing
197         Argument 1
198                 LabelString   "Signature|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