]> git.lyx.org Git - lyx.git/blob - lib/layouts/dinbrief.layout
DocBook: mark dates to disallow fonts inside.
[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 93
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         textlabel1
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     DocBookNoFontInside   true
227 End
228
229 # dinbrief does not emphasize the subject line
230 Style Subject
231         CopyStyle       DinBrief
232         LabelString     "Subject:"
233         LatexName       subject
234         TopSep          0.4
235         BottomSep       0.4
236         ParSep          0.4
237         Align           Block
238         AlignPossible   Block, Left, Right, Center
239         DocBookTag     title
240         DocBookTagType paragraph
241         DocBookInInfo  always
242 End
243
244 # Opening (Anrede)
245 # ----------------
246
247 # sets the above data fields
248
249 Style Opening
250         CopyStyle       DinBrief
251         LabelType       Above
252         LeftMargin      ""
253         LabelString     "Opening:"
254         LatexName       opening
255         KeepEmpty       1
256         TopSep          1.5
257         BottomSep       1
258         DocBookTag  para
259         DocBookAttr role='opening'
260 End
261
262 # Backmatter (styles to be used at the end of the letter)
263 # -------------------------------------------------------
264
265 # placed in order of appearance in the document
266
267 Style Closing
268         CopyStyle       Opening
269         Category        Closings
270         LabelString     "Closing:"
271         LatexName       closing
272         Argument 1
273                 LabelString   "Signature|S"
274                 Tooltip       "Here you can insert a signature scan"
275         EndArgument
276         KeepEmpty       1
277         DocBookTag  para
278         DocBookAttr role='closing'
279 End
280
281 Style encl
282         CopyStyle       Opening
283         Category        Closings
284         LabelString     "encl:"
285         LatexName       encl
286         TopSep          0.4
287         BottomSep       0.4
288         KeepEmpty       0
289         LabelFont
290           Series        Medium
291           Shape         Up
292           Size          Normal
293           Color         foreground
294         EndFont
295         DocBookTag  para
296         DocBookAttr role='enclosed'
297 End
298
299 Style cc
300         CopyStyle       encl
301         LabelString     "cc:"
302         LatexName       cc
303         DocBookTag  para
304         DocBookAttr role='carbon-copy'
305 End
306
307 Style PS
308         CopyStyle       encl
309         LabelString     "Post Scriptum:"
310         LatexName       ps
311         Align           Block
312         AlignPossible   Block, Left
313         ParSep          0.4
314         DocBookTag  para
315         DocBookAttr role='post-scriptum'
316 End
317
318 # Obsoleted (or differently named) styles
319 # ---------------------------------------
320
321 # ease conversion from g-brief, scrletter, or letter
322
323 # scrletter
324 Style SenderAddress
325         ObsoletedBy     My_Address
326 End
327
328 # scrletter
329 Style Backaddress
330         ObsoletedBy     "Return address"
331 End
332
333 # g-brief-de
334 Style RetourAdresse
335         ObsoletedBy     "Return address"
336 End
337
338 # dinbrief (gm old), g-brief-en, scrletter, ...
339 Style Address
340         ObsoletedBy     Send_To_Address
341 End
342
343 # g-brief-de, g-brief2
344 Style Adresse
345         ObsoletedBy     Send_To_Address
346 End
347
348 # g-brief-de
349 Style Postvermerk
350         ObsoletedBy     "Postal comment"
351 End
352
353 # g-brief-de
354 Style Zusatz
355         ObsoletedBy     Handling
356 End
357
358 # g-brief-de
359 Style IhrZeichen
360         ObsoletedBy     YourRef
361 End
362
363 # These are identical in this class
364 Style YourMail
365         ObsoletedBy     YourRef
366 End
367
368 # g-brief-de
369 Style IhrSchreiben
370         ObsoletedBy     YourRef
371 End
372
373 # g-brief-de
374 Style MeinZeichen
375         ObsoletedBy     MyRef
376 End
377
378 # g-brief-de
379 Style Unterschrift
380         ObsoletedBy     Signature
381 End
382
383 # dinbrief (gm old)
384 Style Phone
385         ObsoletedBy     Telephone
386 End
387
388 # g-brief-de
389 Style Telefon
390         ObsoletedBy     Telephone
391 End
392
393 # dinbrief (gm old)
394 Style Place
395         ObsoletedBy     Location
396 End
397
398 # dinbrief v2
399 Style Stadt
400         ObsoletedBy     Location
401 End
402
403 # g-brief-en
404 Style Town
405         ObsoletedBy     Location
406 End
407
408 # g-brief-de
409 Style Ort
410         ObsoletedBy     Location
411 End
412
413 # g-brief-de
414 Style Datum
415         ObsoletedBy     Date
416 End
417
418 # g-brief-en, g-brief2
419 Style Reference
420         ObsoletedBy     Subject
421 End
422
423 # g-brief-de
424 Style Betreff
425         ObsoletedBy     Subject
426 End
427
428 # g-brief-de
429 Style Anrede
430         ObsoletedBy     Opening
431 End
432
433 # in dinbrief, the letter text is in Standard format
434 Style Letter
435         ObsoletedBy     Standard
436 End
437
438 # g-brief-de
439 Style Brieftext
440         ObsoletedBy     Standard
441 End
442
443 # g-brief-de
444 Style Gruss
445         ObsoletedBy     Closing
446 End
447
448 Style ps
449         ObsoletedBy     PS
450 End
451
452 # g-brief-de
453 Style Encl.
454         ObsoletedBy     encl
455 End
456
457 # g-brief-de
458 Style Anlagen
459         ObsoletedBy     encl
460 End
461
462 # scrletter
463 Style CC
464         ObsoletedBy     cc
465 End
466
467 # g-brief-de
468 Style Verteiler
469         ObsoletedBy     cc
470 End
471
472 # Remove auxiliary styles
473 NoStyle                 DinBrief
474 NoStyle                 Addresses
475