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