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