forked from mac-and-i/Normbrief-mit-Markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Muster-Normbrief.html
482 lines (369 loc) · 7.96 KB
/
Muster-Normbrief.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Muster-Normbrief</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
/*
Normbrief DIN 5008 mit Markdown
---------------------------------------------------------------
by Wolfgang Reszel for Mac & i (www.mac-and-i.de)
https://github.com/mac-and-i/Normbrief-mit-Markdown/
v1.0.2 from 2014-03-13
*/
/* @group Basis
---------------------------------------------------------------
*/
html {
width: 198mm; /* Üblichen Druckrand abziehen (2*6mm) */
padding: 0;
margin: 0;
}
body, p, td, div {
font: normal 10.5pt/1.4em Avenir,Helvetica,Arial,sans-serif !important;
}
body {
/* 45-6mm 25mm-6mm */
margin: 39mm 14mm 9mm 19mm;
padding: 0;
width: 165mm;
color: #000;
border: none;
background: none;
}
div#wrapper {
height: 100%;
display: inline;
}
#wrapper #contentdiv {
width: 198mm;
padding: 39mm 14mm 9mm 19mm;
}
a {
color:#000;
}
p {
margin: 0 0 1em 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 1.5em 0 0.5em 0;
line-height: 1.2em;
border: none;
}
h4 {
font-size: 115%;
}
h5, h6 {
font-size: 100%;
}
hr {
border: none;
}
body hr:first-child, #wrapper hr:first-child {
display: none;
}
blockquote {
border: 0;
margin: 0;
padding: 0;
color: #000;
}
blockquote+hr+blockquote+hr {
clear: both;
}
figure, img {
margin: 0 1em 1em 1em;
display: block;
}
img {
max-width: 100%;
border: none;
}
figure img {
margin: 0;
display: inline;
}
figcaption {
font-size: 90%;
margin-bottom: 0.5em;
}
.poetry pre {
display:block;
font-family:Georgia, Garamond, serif!important;
font-size:110%!important;
font-style:italic;
line-height:1.6em;
margin-left:1em
}
.poetry pre code {
font-family:Georgia, Garamond, serif!important
}
/* @end */
/* @group Kontaktdaten/Briefkopf
---------------------------------------------------------------
*/
blockquote {
width:65mm;
float:right;
margin:0 0 2em 0;
}
blockquote a {
text-decoration: none;
}
blockquote h1 {
font-size: 120%;
margin: 0;
}
blockquote+hr {
display: none;
}
/* @end Kontaktdaten/Briefkopf */
/* @group Adressfeld
---------------------------------------------------------------
*/
blockquote+hr+blockquote {
width:80mm;
float:left;
margin:0;
}
blockquote+hr+blockquote h2 {
height: 10mm;
width: 80mm;
font-weight: normal;
font-size: 80%;
margin:0;
}
/* @end Adressfeld */
/* @group Fließtext
---------------------------------------------------------------
*/
/* 1. Zeile: Datum rechtsbündig */
blockquote+hr+blockquote+hr+blockquote {
float: right;
clear: both;
width: 65mm;
}
blockquote+hr+blockquote+hr+blockquote+* {
clear:both;
}
/* Betreffzeile */
blockquote+h3 {
font-size: 100%;
margin-bottom: 2em;
}
/* @end Fließtext */
/* @group Unterschrift */
p+blockquote, p+hr+blockquote, img+blockquote, figure+blockquote, ol+blockqoute, ul+blockquote {
float: none;
margin-top: 2em;
line-height: 2em;
}
p+blockquote p+p:last-child, p+hr+blockquote p+p:last-child, img+blockquote p+p:last-child, figure+blockquote p+p:last-child, ol+blockqoute p+p:last-child, ul+blockquote p+p:last-child {
margin-top: 3em;
}
/* @end */
/* @group Fußnoten
---------------------------------------------------------------
*/
.reversefootnote, #footnotes a, a.footnote {
text-decoration: none;
}
.footnotes, #footnotes {
margin-top: 2em;
border-top: 1px solid #888;
padding-top: 1em;
font-size: 80%;
}
.footnotes ol {
margin: 0;
}
.footnotes hr {
display: none;
}
sup, sub, p>a.footnote {
height:0;
line-height:0.8;
vertical-align:super;
font-size:.8em;
}
sub {
vertical-align: sub;
top: -1px;
}
/* @end */
/* @group Listen
---------------------------------------------------------------
*/
dd {
margin-bottom:1em
}
ul {
list-style-type: square;
}
li > p:first-child {
margin:0
}
ul, ol {
padding-left: 1.5em;
}
ul ul,ul ol {
margin-bottom:.4em
}
/* @end Listen */
/* @group Tabellen
---------------------------------------------------------------
*/
caption,col,colgroup,table,tbody,td,tfoot,th,thead,tr {
border-spacing:0
}
table {
border: none;
border-collapse:collapse;
margin: 2em 0;
padding:0;
width: 100%;
}
h1+table, h2+table, h3+table, h4+table {
margin-top: 0;
}
table th:first-child {
width: 50%;
}
table th,table td {
line-height:1.8em;
padding:0 1em;
border: none;
border-bottom:1px solid #888;
border-right:1px solid #888;
}
table th:first-child,table td:first-child,
table th:last-child,table td:last-child {
padding: 0;
}
table th:last-child,table td:last-child {
border-right: none;
}
table tr:last-child td {
border-bottom: 0;
}
table thead {
border-bottom:2px solid #000
}
table tbody {
border-top:1px solid #888
}
table tbody:last-child {
border-top: 2px solid #000;
}
/* @end Tabellen */
/* --------------------------------------------------------------- */
@media print {
img, pre, blockquote, table, figure {
page-break-inside: avoid
}
#wrapper #contentdiv { /* Fix for nvALT */
margin: -23mm -19mm;
padding: 0;
}
#wrapper #contentdiv * { /* Fix for nvALT */
zoom: 1.22;
}
#wrapper #contentdiv * * { /* Fix for nvALT */
zoom: 1;
}
.reversefootnote,
#wrapper>header { display: none; }
}
@media print{
#generated-toc-clone,#generated-toc{display:none!important}
}
</style>
</head>
<body class="normal">
<div id="wrapper">
<blockquote>
<h1 id="macandi">Mac Andi</h1>
<p>Markdown-Profi </p>
<p>Musterstraße 2<br/>
12345 Musterdorf </p>
<p>Telefon: 01234 56789<br/>
Mobil: 0123 123456789<br/>
E-Mail: <a href="mailto:[email protected]">[email protected]</a><br/>
Website: <a href="http://www.mac-and-i.de">www.mac-and-i.de</a> </p>
<p>IBAN: DE00 1234 5678 1234 5678 90<br/>
BIC: MARKDOW0000 </p>
</blockquote>
<hr />
<blockquote>
<h2 id="macandimusterstrae212345musterdorf">Mac Andi · Musterstraße 2 · 12345 Musterdorf</h2>
<p>Karl Empfänger<br/>
Musterweg 3<br/>
67890 Musterstadt </p>
</blockquote>
<hr />
<blockquote>
<p>Musterdorf, 24. Dezember 2013 </p>
</blockquote>
<h3 id="normbriefemitmarkdown">Normbriefe mit Markdown</h3>
<p>Sehr geehrter Herr Empfänger, </p>
<p>wussten Sie, dass Sie mit Markdown auch Briefe schreiben können? Dank dieses Stylesheets können Sie ihre Textverarbeitung einmotten. </p>
<p>Beim Einsatz von MultiMarkdown, werden auch Tabellen und Fußnoten<a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a> unterstützt. </p>
<h4 id="mitmultimarkdownsindauchrechnungenmglich">Mit MultiMarkdown sind auch Rechnungen möglich</h4>
<table>
<colgroup>
<col style="text-align:left;"/>
<col style="text-align:center;"/>
<col style="text-align:right;"/>
</colgroup>
<thead>
<tr>
<th style="text-align:left;">Posten</th>
<th style="text-align:center;">Menge</th>
<th style="text-align:right;">Preis (€)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">Überschriften</td>
<td style="text-align:center;">3</td>
<td style="text-align:right;">60,00</td>
</tr>
<tr>
<td style="text-align:left;">Listen</td>
<td style="text-align:center;">4</td>
<td style="text-align:right;">40,00 </td>
</tr>
</tbody>
<tbody>
<tr>
<td style="text-align:left;" colspan="2">Gesamt:</td>
<td style="text-align:right;">100,00 </td>
</tr>
</tbody>
</table>
<h5 id="zwischenberschriftmitgleicherschriftgre">Zwischenüberschrift mit gleicher Schriftgröße</h5>
<p>Natürlich funktionieren auch Bilder. Bei MultiMarkdown sogar mit Bildunterschriften. </p>
<figure>
<img src="http://lorempixel.com/g/420/260" alt="Bildunterschrift" id="bild" />
<figcaption>Bildunterschrift</figcaption>
</figure>
<blockquote>
<p>Mit freundlichen Grüßen </p>
<p>Max Absender </p>
</blockquote>
<p>PS: Weiterer Text folgt hier </p>
<hr />
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">
<p>Fußnoten findet man allerdings selten im Briefverkehr <a href="#fnref:1" title="return to article" class="reversefootnote"> ↩</a></p>
</li>
</ol>
</div>
<!-- ##END MARKED WRAPPER## -->
</div>
</body>
</html>