summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/letter/style/dinb.nls
blob: 463e896d8fc7b1c30995cbdebc869ff84f7861fe (plain)
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
%D \module
%D   [       file=dinb,
%D        version=2008.12.23,
%D          title=\CONTEXT\ Letter Style,
%D       subtitle=DIN 676 B,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster,
%D          email=schuster.wolfgang@googlemail.com,
%D        license=Public Domain]

\unprotect

\useletterstyle[default] % default values

\setupletterstyle
  [\v!firstpage,\v!secondpage]
  [\c!topspace=114.3mm,
   \c!bottomspace=30mm, % unknown value!
   \c!backspace=24.1mm,
   \c!header=0mm,
   \c!footer=0mm,       % unknown value!
   \c!width=\v!middle,
   \c!height=\v!middle]

\setupletterstyle
  [\v!secondpage]
  [\c!topspace=20mm,
   \c!bottomspace=20mm,
   \c!header=10mm,
   \c!footer=10mm]

\setupletterstyle
  [\v!title,\v!subject,\v!opening,\v!appendices]
  [\c!before=,
   \c!after={\blank[\v!line]}]

\setupletterstyle
  [\v!title]
  [\c!align=\v!middle,
   \c!style=\v!bold]

\setupletterstyle
  [\v!subject]
  [\c!after={\blank[2*line]},
   \c!style=\v!bold]

\setupletterstyle
  [\v!content]
  [\c!after={\blank[nobreak,line]}]

\setupletterstyle
  [\v!closing]
  [\c!after={\blank[3*line]}]

\setupletterstyle
  [\v!topmark,\v!botmark,\v!cutmark]
  [\c!state=\v!repeat,
   \c!hoffset=5mm,
   \c!strut=\v!no,
   \c!symbol={\blackrule[\c!width=\plusfour\c!mm,\c!height=.4\points]}]

\setupletterstyle
  [\v!topmark]
  [\c!voffset=105mm]

\setupletterstyle
  [\v!botmark]
  [\c!voffset=210mm]

\setupletterstyle
  [\v!cutmark]
  [\c!voffset=.5\paperheight,
   \c!symbol={\blackrule[\c!width=\plusfour\c!mm,\c!height=.4\points]}]

\setupletterstyle
  [\v!head,\v!nexthead,\v!lefthead,\v!righthead]
  [\c!hoffset=\backspace,
   \c!voffset=16.9mm,
   \c!width=\textwidth,
   \c!height=28.1mm]

\setupletterstyle
  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
  [\v!layer]
  [\c!voffset=20mm] % unknown value!

\setupletterstyle
  [\v!foot,\v!nextfoot,\v!leftfoot,\v!rightfoot]
  [\v!frame]
  [\c!height=10mm] % unknown value!

\setupletterstyle
  [\v!address]
  [\c!hoffset=\backspace,
   \c!voffset=50mm,
   \c!width=85mm,
   \c!height=40mm]

\setupletterstyle
  [\v!backaddress]
  [\c!hoffset=\backspace,
   \c!height=5mm,
   \c!voffset=\dimexpr\letterstylevalue\v!address\c!voffset-\letterstylevalue\v!backaddress\c!height\relax,
   \c!width=85mm,
   \c!style=\c!tf\c!xx]

\setupletterstyle
  [\v!reference]
  [\c!hoffset=\backspace,
   \c!voffset=93.2mm,     % unknown value!
   \c!width=\textwidth,   % unknown value!
   \c!height=8.4mm]       % unknown value!

\protect \endinput