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!
17 # TODO: DocBook doesn't support several letters in the same file.
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
26 \newcommand{\areacode}{}
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)
36 LeftMargin "Rucksende-Adresse:"
51 Category "Postal Data"
55 # in dinbrief, this is an environment spanning the whole letter
56 # (see scrlettr2 for an alternative lyx-implementation)
59 LabelString "Address:"
64 DocBookWrapperTag address
65 DocBookWrapperAttr role='send-to-address'
66 DocBookWrapperMergeWithPrevious true
70 # Data Fields, placed according to DIN norm
71 # ---------------------------------------------------------
73 # need to be placed before the Opening in the LyX document!
75 # backaddress in letter head
78 LabelString "Sender Address:"
82 AlignPossible Block, Left, Right, Center
87 # backaddress in address window
88 Style "Return address"
90 LabelString "Backaddress:"
96 DocBookWrapperTag address
97 DocBookWrapperAttr role='return-address'
101 # Printed above the address (e.g., Air Mail, Registered Mail)
102 Style "Postal comment"
104 LabelString "Postal Remark:"
107 DocBookAttr role='postal-comment'
108 DocBookTagType paragraph
109 DocBookWrapperTag address
110 DocBookWrapperAttr role='send-to-address'
111 DocBookWrapperMergeWithPrevious true
115 # Printed right next to Receiver (e.g., Urgent, Confidential)
118 LabelString "Handling:"
121 DocBookAttr role='handling'
122 DocBookTagType paragraph
123 DocBookWrapperTag address
124 DocBookWrapperAttr role='send-to-address'
125 DocBookWrapperMergeWithPrevious true
131 LabelString "Your ref.:"
133 DocBookTag productnumber
134 DocBookAttr role='your-ref'
135 DocBookTagType paragraph
141 LabelString "Our ref.:"
143 DocBookTag productnumber
144 DocBookAttr role='my-ref'
145 DocBookTagType paragraph
151 LabelString "Writer:"
153 DocBookTag personname
154 DocBookTagType paragraph
155 DocBookWrapperTag othercredit
156 DocBookWrapperAttr class='typesetter'
163 LabelString "Signature:"
166 DocBookAttr role='opening'
169 # contact info at the bottom of the first page
172 LabelString "Bottom text:"
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.
177 DocBookAttr role='bottom-text'
180 # dinbrief's \phone has 2 args, area and number,
181 # define both as distinct styles
185 LabelString "Area Code:"
186 LatexName "renewcommand{\areacode}"
187 # TODO: should be in <address>, but too far away from these paragraphs.
189 DocBookAttr role='area-code'
190 DocBookTagType paragraph
196 LabelString "Telephone:"
198 LatexParam {\areacode}
199 # TODO: should be in <address>, but too far away from these paragraphs.
201 DocBookTagType paragraph
207 LabelString "Location:"
209 Margin Right_Address_Box
214 DocBookAttr role='location'
224 DocBookTagType paragraph
226 DocBookNoFontInside true
229 # dinbrief does not emphasize the subject line
232 LabelString "Subject:"
238 AlignPossible Block, Left, Right, Center
240 DocBookTagType paragraph
247 # sets the above data fields
253 LabelString "Opening:"
259 DocBookAttr role='opening'
262 # Backmatter (styles to be used at the end of the letter)
263 # -------------------------------------------------------
265 # placed in order of appearance in the document
270 LabelString "Closing:"
273 LabelString "Signature|S"
274 Tooltip "Here you can insert a signature scan"
278 DocBookAttr role='closing'
296 DocBookAttr role='enclosed'
304 DocBookAttr role='carbon-copy'
309 LabelString "Post Scriptum:"
312 AlignPossible Block, Left
315 DocBookAttr role='post-scriptum'
318 # Obsoleted (or differently named) styles
319 # ---------------------------------------
321 # ease conversion from g-brief, scrletter, or letter
325 ObsoletedBy My_Address
330 ObsoletedBy "Return address"
335 ObsoletedBy "Return address"
338 # dinbrief (gm old), g-brief-en, scrletter, ...
340 ObsoletedBy Send_To_Address
343 # g-brief-de, g-brief2
345 ObsoletedBy Send_To_Address
350 ObsoletedBy "Postal comment"
363 # These are identical in this class
380 ObsoletedBy Signature
385 ObsoletedBy Telephone
390 ObsoletedBy Telephone
418 # g-brief-en, g-brief2
433 # in dinbrief, the letter text is in Standard format
472 # Remove auxiliary styles