summaryrefslogtreecommitdiff
path: root/tex/context/base/s-dtk-01.tex
blob: 6f4a80c985cc46941088fa1fddf288d18568e696 (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
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
%D \module
%D   [      file=s-dtk-01,
%D        version=1999.08.15,
%D          title=\CONTEXT\ Style File,
%D       subtitle=\DTK\ basis stijl,
%D         author=Hans Hagen \& Taco Hoekwater,  
%D           date=\currentdate,
%D      copyright=PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

%D Preliminary. Still dutch and english intermixed. 

\unprotect

%D Temp hack. 

\let\doverbatimgoodbreak\donothing

%D Fonts. 

\definebodyfontenvironment 
  [8pt]  
  [\c!interlinie=9pt, 
   \c!groot=9pt,  
   \c!klein=7pt]

\definebodyfontenvironment 
  [9pt]  
  [\c!interlinie=11pt,
   \c!groot=10pt, 
   \c!klein=8pt]

\definebodyfontenvironment 
  [10pt]   
  [\c!interlinie=12pt,
   \c!groot=12pt, 
   \c!klein=8pt]

\definebodyfontenvironment
  [12pt]   
  [\c!interlinie=14pt,
   \c!groot=14.4pt,
   \c!klein=10pt]

\definebodyfontenvironment
  [14.4pt] 
  [\c!interlinie=18pt,
   \c!groot=14.4pt,
   \c!klein=12pt]

\setupbodyfont
  [10pt,cmx,ams]

%D Color.

\setupcolors
  [\c!conversie=\v!altijd] 

%D Default language.

\mainlanguage[en] \language[en]

%D Paper size and layout. The Dante style depends on the 
%D driver to sort out the margins. Therefore we are not 
%D really typesetting in A5, but on something larger. 

\definepapersize
  [DanteA5]
  [breedte=486.54pt]  

\setuppapersize
  [DanteA5][A4] 

\setuplayout % w=342pt h=484pt 
  [\c!rugwit=1in,
   \c!kopwit=1in,
   \c!plaats=\v!enkelzijdig,
   \c!breedte=342pt,  
   \c!hoogte=548pt, 
   \c!hoofd=17pt,   
   \c!hoofdafstand=17pt,
   \c!voetafstand=17pt,
   \c!voet=17pt]  

%D Headers and footers.
 
\setupheader [\c!voor=\vfill,\c!na=]
\setupfooter [\c!voor=\vfill,\c!na=]

%D Numbering. 

\setuppagenumbering
  [\c!plaats=,
   \c!variant=\v!dubbelzijdig]

%D Spacing. 

\setupwhitespace [\v!halveregel]
\setupblank      [\v!halveregel]

%D Itemize. 

\stelopsommingin [\v!elk] [\c!afstand=0pt,\c!marge=.5em]
\stelopsommingin [1] [\c!breedte=1.0em,\c!symbool=circle]
\stelopsommingin [2] [\c!breedte=0.9em,\c!symbool=triangle]
\stelopsommingin [3] [\c!breedte=0.8em,\c!symbool=diamond]
\stelopsommingin [4] [\c!breedte=0.7em,\c!symbool=dash]

\stelopsommingin [1] [\v!opelkaar]

%D Verbatim. 

\setuptyping [\c!optie=,\c!blanko=halveregel]

%D Footnotes. 

\def\VoetNootLijn%
  {\hrule width 5pc height .4pt} 

\setupfootnotes
  [\c!korps=8pt,
   \c!lijn=\VoetNootLijn,
   \c!voor=\vskip24pt,
   \c!nummercommando=]

\setupfootnotedefinition
  [\c!plaats=\v!aansluitend,
   \c!breedte=\v!passend,
   \c!kopletter=\v!normaal,
   \c!afstand=.5em]

% Abbreviations and logos. 

\usemodule[abr-03]


%D Some real macros: 

\def\startAbstract%
  {\dostartbuffer[abstract][startAbstract][stopAbstract]}

%D And some dummies (for \MAPS\ style compatibility): 

\def\startKeywords#1\stopKeywords
  {}

\def\Keywords#1%
  {}

%D We will pick up some user settings. 

\def\DTKTypering[#1]%
  {\getparameters
     [DTK]
     [Jaar=1998,
      Volume=19,
      Nummer=3,
      Pagina=99,
      Titel=Publish or Perish,
      Subtitel=,
      Auteur=D.T.K. Auteur,
      Adres=PRAGMA Advanced Document Engineering \\
            Ridderstraat 27 \\ 8061GH Hasselt NL,
      Email=pragma@wxs.nl,
      #1]}

\DTKTypering[]

%D Some of those are shown in headers and footers.

\def\DTKFooter%
  {Die \TeX nische Kom\"odie \DTKVolume/\DTKJaar
   \space---\space
   Proceedings of the \DTKJaar\ Euro\TeX\ Meeting}

\setupheader[\c!linkerletter=\ss\sl,\c!rechterletter=\ss]
\setupfooter[\c!letter={\switchtobodyfont[9pt]\ss\sl}]

\setupheadertexts [\DTKTitel]  [\pagenumber]
\setupfootertexts [\DTKFooter] []

%D It all starts here: 

\def\dostartBijdrage[#1]%
  {\pagina
   \DTKTypering[#1]
   \setupheader[\c!status=\v!leeg]
   \stelpaginanummerin[\c!nummer=\DTKPagina]
   \bgroup
     \setupwhitespace[\v!geen]
     \bgroup
       \switchtobodyfont[14.4pt,ss]
       \setupalign[\v!rechts]
       \let\\=\par 
       \DTKTitel\par
       \doifsomething{\DTKSubtitel}
         {\bgroup
          \vskip3pt
          \switchtobodyfont[12pt,ss]
          \DTKSubtitel\par
          \egroup}
     \egroup
     \vskip12pt
     \bgroup
       \switchtobodyfont[12pt,ss]
       \def\\{\unskip\space\ignorespaces} 
       \DTKAuteur 
       \par
     \egroup
     \vskip12pt
     \bgroup
       \switchtobodyfont[9pt]
       \setupnarrower[\c!voor=,\c!na=]
       \startsmaller[.05\hsize]
         \setupwhitespace[\v!halveregel]
         \haalbuffer[abstract]
       \stopsmaller
     \egroup
     \vskip20pt
    \egroup}

\def\startBijdrage
  {\starttekst
   \dosingleempty\dostartBijdrage}

\def\stopBijdrage
  {\stoptekst}

%D Sectioning.

\stelkopin
  [\v!paragraaf]
  [\c!letter={\ss\bfa},
   \c!uitlijnen=\v!rechts,
   \c!voor={\blanko[\v!regel,\v!halveregel]},
   \c!na={\blanko[\v!halveregel]}]

\stelkopin
  [\v!sub\v!paragraaf]
  [\c!letter=\ss,
   \c!uitlijnen=\v!rechts,
   \c!voor={\blanko[\v!halveregel]},
   \c!na={\blanko[\v!halveregel]}]

\stelkopin
  [\v!sub\v!sub\v!paragraaf]
  [\c!letter=\ss,
   \c!variant=\v!tekst,
   \c!voor=,
   \c!na=]

%D Done. 

\protect \endinput