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