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