s-maps.mkiv /size: 19 Kb    last modification: 2020-07-01 14:35
1
%D \module
2
%D [file=s-map-10.mkiv,
3
%D version=2012.06.06,
4
%D title=\CONTEXT\ Style File,
5
%D subtitle=\MAPS\ journal style,
6
%D author={Hans Hagen, Taco Hoekwater and Siep Kroonenberg},
7
%D date=\currentdate,
8
%D copyright=NTG/MAPS]
9 10
%D This module implements the MAPS style for use with the Context macro package. The
11
%D original MAPS layout was designed and implemented in LaTeX by Taco Hoekwater and
12
%D Siep Kroonenberg.
13
%D
14
%D \startitemize
15
%D \startitem
16
%D four layouts:
17
%D \startitemize
18
%D \startitem two columns \stopitem
19
%D \startitem one column, with wide outer margins (option onecolumn) \stopitem
20
%D \startitem one column, with wide left margin (option asym) \stopitem
21
%D \startitem one column, with wide right margin (option single) \stopitem
22
%D \stopitemize
23
%D \stopitem
24
%D \startitem
25
%D font sizes deviate from TeX's usual geometric progression
26
%D \stopitem
27
%D \startitem
28
%D use of sans-serif for headers and various details
29
%D \stopitem
30
%D \stopitemize
31
%D
32
%D A mode nosubsub defines only two levels of sectioning. If you don't need more and
33
%D use the two-column layout, then this option will probably improve the looks of
34
%D your paper.
35 36
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37 38
\newif
\ifMapsInColumns
39 40
\doifmode
{
asym
}
{
\enablemode
[
onecolumn
]
}
% implies onecolumn
41
\doifmode
{
single
}
{
\enablemode
[
asym
,
onecolumn
]
}
% implies onecolumn
42
\doifnotmode
{
onecolumn
}{
\MapsInColumnstrue
}
43 44
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45
%%% fonts
46 47
%%%%%%%%% first, font sizes
48
\definebodyfontenvironment
[
7
pt
][
% LaTeX: scriptsize
49
interlinespace
=
8
pt
,
50
big
=
8
pt
,
51
small
=
6
pt
%
52
]
53 54
\definebodyfontenvironment
[
8
pt
][
% LaTeX: footnotesize
55
interlinespace
=
9
pt
,
56
big
=
9
pt
,
57
small
=
7
pt
,
58
x
=
6
pt
%
59
]
60 61
\definebodyfontenvironment
[
9
pt
][
% LaTeX: small
62
interlinespace
=
1
0
pt
,
63
big
=
1
0
pt
,
64
small
=
8
pt
,
%
65
x
=
7
pt
,
%
66
script
=
6
pt
%
67
]
68 69
\definebodyfontenvironment
[
1
0
pt
][
% LaTeX: normalsize
70
interlinespace
=
1
1
pt
,
71
big
=
1
1
pt
,
72
a
=
1
1
pt
,
73
small
=
9
pt
,
%
74
x
=
8
pt
,
%
75
script
=
7
pt
%
76
]
77 78
\definebodyfontenvironment
[
1
1
pt
][
% LaTeX: large
79
interlinespace
=
1
1
pt
,
80
big
=
1
1
pt
,
81
small
=
1
0
pt
,
%
82
x
=
9
pt
,
%
83
script
=
8
pt
%
84
]
85 86
\definebodyfontenvironment
[
1
4
pt
][
%
87
interlinespace
=
1
4
pt
,
88
big
=
1
8
pt
,
89
small
=
1
1
pt
,
90
x
=
1
0
pt
%
91
]
92 93
\definebodyfontenvironment
[
1
8
pt
][
%
94
interlinespace
=
1
8
pt
,
95
big
=
2
4
pt
,
96
small
=
1
4
pt
,
97
x
=
1
0
pt
%
98
]
99 100
\definebodyfontenvironment
[
2
4
pt
][
%
101
interlinespace
=
2
4
pt
,
102
big
=
2
4
pt
,
103
small
=
1
8
pt
,
104
x
=
1
1
pt
%
105
]
106 107
%%% font families
108 109
\definefontfeature
[
mapsdef
][
default
][
mode
=
node
,
onum
=
yes
,
lnum
=
no
]
110 111
\starttypescript
[
serif
]
[
libertine
]
[
name
]
112
\setups
[
font
:
fallback
:
serif
]
113
\definefontsynonym
[
Serif
]
[
file
:
LinLibertine
_
R
.
otf
]
[
features
=
mapsdef
]
114
\definefontsynonym
[
SerifItalic
]
[
file
:
LinLibertine
_
RI
.
otf
]
[
features
=
mapsdef
]
115
\definefontsynonym
[
SerifSlanted
]
[
file
:
LinLibertine
_
RI
.
otf
]
[
features
=
mapsdef
]
116
\definefontsynonym
[
SerifBold
]
[
file
:
LinLibertine
_
RB
.
otf
]
[
features
=
mapsdef
]
117
\definefontsynonym
[
SerifBoldItalic
]
[
file
:
LinLibertine
_
RBI
.
otf
]
[
features
=
mapsdef
]
118
\definefontsynonym
[
SerifBoldSlanted
]
[
file
:
LinLibertine
_
RBI
.
otf
]
[
features
=
mapsdef
]
119
\definefontsynonym
[
SerifCaps
]
[
file
:
LinLibertine
_
R
.
otf
]
[
features
=
smallcaps
]
120
\stoptypescript
121 122
\starttypescript
[
maps
]
123
\definetypeface
[
maps
]
[
rm
]
[
serif
]
[
libertine
]
[
default
]
124
\definetypeface
[
maps
]
[
mm
]
[
math
]
[
euler
]
[
default
]
[
rscale
=
0
.
9
]
125
\definetypeface
[
maps
]
[
tt
]
[
mono
]
[
modern
]
[
default
]
126
\definetypeface
[
maps
]
[
ss
]
[
sans
]
[
modern
]
[
default
]
[
rscale
=
0
.
9
5
]
127
\stoptypescript
128 129
\setupbodyfont
[
maps
,
1
0
pt
,
rm
]
130 131
\setupinterlinespace
[
line
=
1
1
pt
]
132 133
% activate protruding
134
\setupfontsynonym
[
handling
=
pure
]
135 136
\setupalign
[
hanging
]
137 138
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
139
%%% additional general typographic details
140 141
\setupindenting
[
yes
,
next
,
1
1
pt
]
% indenting after enumerations etc.
142 143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
144
%%% 3 versions of layout with matching headers
145 146
\definepapersize
147
[
maps
]
148
[
width
=
2
1
cm
,
height
=
2
6
.
5
cm
]
149 150
\setuppapersize
151
[
maps
][
maps
]
152 153
\setuplayout
154
[
topspace
=
4
0
pt
,
155
height
=
6
8
8
pt
,
156
header
=
3
3
pt
,
157
margin
=
1
0
6
pt
,
158
leftmargindistance
=
1
1
pt
,
159
rightmargindistance
=
1
1
pt
]
160 161
\setupblank
[
5
.
5
pt
]
162 163
\setuppagenumbering
[
location
=]
164 165
\definetyping
[
widetyping
]
166 167
\setupheader
[
style
=
\ss
]
168
\setupfooter
[
style
=
\ss
]
169 170
\def
\AuHead
{
\MapsRunningAuthor
}
171
\def
\TiHead
{
\ifnum
\pageno
=
\MapsPage
\relax
\MapsRunningAuthor
\else
\MapsRunningTitle
\fi
}
172 173 174
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
175
%%% sectioning
176 177
\setupheads
178
[
number
=
no
,
179
align
=
flushleft
]
180 181
\unexpanded
\def
\hfonti
{
\ssbfa
}
182
\unexpanded
\def
\hfontii
{
\ssbf
}
183
\unexpanded
\def
\hfontiii
{
\rm
\bi
}
184
\unexpanded
\def
\runin
#
1
{
#
1
.
}
185 186
\setuphead
[
section
,
subject
]
187
[
style
=
\hfonti
,
188
before
=
{
\blank
[
line
]
}
,
189
after
=
{
\blank
[
halfline
]
}
]
190
\setuphead
[
subsection
,
subsubject
]
191
[
style
=
\hfontii
,
192
before
=
{
\blank
[
halfline
]
}
,
193
after
=
{}
]
194
\setuphead
[
subsubsection
,
subsubsubject
]
195
[
style
=
\hfontiii
,
196
deeptextcommand
=
\runin
,
197
distance
=
6
pt
,
198
alternative
=
text
,
199
before
=
{
\blank
[
halfline
]
}
]
200 201
\startmode
[
nosubsub
]
202
\setuphead
[
section
,
subject
]
203
[
style
=
\hfontii
,
204
before
=
{
\blank
[
line
]
}
,
205
after
=
{}
]
206
\setuphead
[
subsection
,
subsubject
]
207
[
style
=
\hfontiii
,
208
deeptextcommand
=
\runin
,
209
alternative
=
text
,
210
distance
=
6
pt
,
211
before
=
{
\blank
[
halfline
]
}
]
212
\stopmode
213 214 215
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
216
%%% floats
217 218
\setupfloats
219
[
location
=
left
,
220
before
=
{
\ss
}
]
221 222
\setupcaptions
223
[
align
=
flushleft
,
224
headstyle
=
{
\ssbf
}
,
225
style
=
{
\ssx
}
,
226
suffix
=
.
,
227
distance
=
6
pt
,
228
inbetween
=
{
\blank
[
halfline
]
}
]
229 230
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
231
%%% various document elements
232 233
\setupitemize
234
[
1
]
235
[
symbol
=
8
]
236 237
\setupitemize
238
[
each
]
239
[
before
=
{
\blank
[
line
]
}
,
240
after
=
{
\blank
[
line
]
}
,
241
inbetween
=
,
242
indentnext
=
no
,
243
width
=
1
2
pt
,
244
distance
=
0
pt
]
245 246
% an outer form of itemize that does not indent
247
% the paragraph.
248 249
\definecomplexorsimpleempty
\startouteritemize
250 251
\def
\complexstartouteritemize
[#
1
]
%
252
{
\begingroup
253
\setupitemize
[
width
=
0
pt
,
inbetween
=
{
\blank
}
,
before
=
{
\blank
}
,
after
=
{
\blank
}
]
254
\startitemize
[#
1
]
255
\let
\doitem
\item
256
\def
\item
{
\doitem
[]
\hbox
{}
\kern
1
2
pt
\rightskip
=
0
pt
}}
257 258
\def
\stopouteritemize
259
{
\stopitemize
\endgroup
}
260 261
\definedescription
262
[
description
]
263
[
alternative
=
hanging
,
width
=
fit
]
264 265
% typing:
266
% - prettyverbatim is NOT the default
267 268
\setuptyping
269
[
style
=
{
\switchtobodyfont
[
small
,
tt
]
}
,
270
option
=
none
,
271
indentnext
=
no
]
272 273
% normally we have endnotes, but in the title there
274
% could be a \thanks command. Since the new column mode
275
% does not deal with footnotes all that well, we more
276
% or less have to roll our own.
277 278
\setupnotation
279
[
footnote
]
280
[
margin
=
0
cm
,
281
before
=
{}
,
282
after
=
{}
,
283
way
=
bypage
,
284
number
=
no
]
285 286
\setupnote
287
[
footnote
]
288
[
location
=
page
,
289
spacebefore
=
,
290
before
=
,
291
after
=]
292 293
\unexpanded
\def
\thanks
#
1
{
\xdef
\MapsThanks
{
#
1
}
*
}
294 295
\setuptabulate
296
[
before
=
\blank
,
297
inner
=
\ss
,
298
after
=
\blank
]
299 300
\def
\startIntroEntry
#
1
%
301
{
\bgroup
302
\setupalign
[
right
]
303
\setuptolerance
[
verytolerant
]
304
\setupindenting
[
no
]
305
\noindent
306
\switchtobodyfont
[
9
pt
]
%
307
\setuplocalinterlinespace
[
line
=
1
0
pt
]
%
308
\parfillskip
0
pt
plus
1
fill
309
\rightskip
6
pt
plus
1
fill
310
\ss
311
\bgroup
\bf
#
1
\par
\egroup
312
\ignorespaces
}
313 314
\def
\stopIntroEntry
315
{
\par
\egroup
316
\blank
[
line
]
}
317 318
\def
\defineIntroEntry
[#
1
][#
2
]
319
{
\setvalue
{
start
#
1
}{
\startIntroEntry
{
#
2
}}
%
320
\setvalue
{
stop
#
1
}{
\stopIntroEntry
}}
321 322
\defineIntroEntry
[
Keywords
][
Keywords
]
323
\defineIntroEntry
[
Abstract
][
Abstract
]
324 325
% article parameters (other fields and defaults)
326
\def
\MapsBibData
[#
1
]
%
327
{
\getparameters
[
Maps
]
328
[
SubTitle
=
,
329
RunningAuthor
=
,
330
RunningTitle
=
,
331
Email
=
,
332
Address
=
,
333
Page
=
1
,
334
Title
=
,
335
Author
=
,
336
Period
=
,
337
Number
=
,
338
Year
=
,
339
SkipHeader
=
,
340
SkipFooter
=
,
341
Abstract
=
,
342
Keywords
=
,
343
Thanks
=
,
344
#
1
]
%
345
\doifnothing
{
\MapsPeriod
}
%
346
{
\ifnum
\normalmonth
<
6
\gdef
\MapsPeriod
{
VOORJAAR
}
\else
\gdef
\MapsPeriod
{
NAJAAR
}
\fi
}
347
\doifinstringelse
{
oorjaar
}{
\MapsPeriod
}{
\gdef
\MapsPeriod
{
VOORJAAR
}}{}
%
348
\doifinstringelse
{
pring
}{
\MapsPeriod
}{
\gdef
\MapsPeriod
{
VOORJAAR
}}{}
%
349
\doifinstringelse
{
ajaar
}{
\MapsPeriod
}{
\gdef
\MapsPeriod
{
NAJAAR
}}{}
%
350
\doifinstringelse
{
utumn
}{
\MapsPeriod
}{
\gdef
\MapsPeriod
{
NAJAAR
}}{}
%
351
\doifnothing
{
\MapsYear
}{
\gdef
\MapsYear
{
\the\year
}}
%
352
\doifnothing
{
\MapsNumber
}
%
353
{
\ifnum
\normalmonth
<
6
354
\xdef
\MapsNumber
{
\the\numexpr
(
\the\year
-
1
9
9
0
)
*
2
\relax
}
%
355
\else
356
\xdef
\MapsNumber
{
\the\numexpr
(
\the\year
-
1
9
9
0
)
*
2
+
1
\relax
}
%
357
\fi
}
%
358
\doifnothing
\MapsRunningAuthor
359
{
\global\let
\MapsRunningAuthor
\MapsAuthor
}
%
360
\doifnothing
\MapsRunningTitle
361
{
\global\let
\MapsRunningTitle
\MapsTitle
}}
%
362 363
\def
\doarticleheader
364
{
\startbaselinecorrection
365
\bgroup
366
\hsize
=
4
5
7
pt
367
\let
\\
\crlf
368
\blank
[
3
5
pt
,
force
]
369
\switchtobodyfont
[
2
4
pt
]
370
\startalign
[
flushleft
,
verytolerant
,
extremestretch
]
371
{
\noindent
\bf
\language
=
-
1
\MapsTitle
\par
}
372
\ifx
\MapsSubTitle
\empty
373
\blank
[
line
]
374
\else
375
\bgroup
376
\blank
[
1
2
pt
]
377
\switchtobodyfont
[
1
4
pt
]
\noindent
\it
378
\advance
\rightskip
0
pt
plus
2
em
379
\MapsSubTitle
\par
380
\egroup
381
\blank
[
line
]
382
\fi
383
\stopalign
384
\egroup
385
\setupalign
[
width
]
386
\switchtobodyfont
[
rm
,
1
0
pt
]
387
\stopbaselinecorrection
}
388 389
\newif
\ifintroentries
390 391
\def
\dostartArticle
[#
1
]
%
392
{
\MapsBibData
[#
1
]
393
\pageno
=
\MapsPage
394
\setnumber
[
realpage
][
\MapsPage
]
395
\setnumber
[
userpage
][
\MapsPage
]
396
\doifnothing
{
\MapsSkipHeader
}{
\doarticleheader
}
%
397
\ifMapsInColumns
398
\startcolumns
\hyphenpenalty
1
0
0
0
399
\else
400
\clubpenalty
1
0
0
0
0
401
\widowpenalty
1
0
0
0
0
402
\fi
403
\introentriesfalse
404
\startbaselinecorrection
405
\doifsomething
{
\MapsAbstract
}{
\startAbstract
\MapsAbstract
\stopAbstract
\introentriestrue
}
406
\doifsomething
{
\MapsKeywords
}{
\startKeywords
\MapsKeywords
\stopKeywords
\introentriestrue
}
407
\stopbaselinecorrection
408
\ifintroentries
409
\blank
[
2
*
line
]
410
\fi
411
\doifsomething
\MapsThanks
412
{
\expanded
{
\footnote
[
thanks
]
{
*
\quad\strut
\MapsThanks
}}
%
413
\kern
-
2
2
pt
}
% need to unskip because of the silent \footnote
414
\let
\footnote\endnote
}
415 416
\def
\startArticle
417
{
\dosingleempty
\dostartArticle
}
418 419
\def
\signArticle
420
{
\doifnothing
421
{
\MapsSkipFooter
}
422
{
\blank
[
line
]
\let
\\
\crlf
423
\noindent
\switchtobodyfont
[
ss
,
9
pt
]
%
424
\MapsAuthor
425
\doifsomething
{
\MapsAddress
}{
\\
\MapsAddress
}
%
426
\doifsomething
{
\MapsEmail
}{
\\
\MapsEmail
}}
%
427
\switchtobodyfont
[
1
0
pt
]
%
428
\def
\signArticle
{}}
429 430
% endnotes aka footnotes
431 432
\def
\footnum
#
1
{
#
1
.
}
433 434
\setupnotation
435
[
endnote
]
436
[
alternative
=
serried
,
437
style
=
{
\switchtobodyfont
[
9
pt
]
}
,
438
margin
=
0
cm
,
439
width
=
1
2
pt
,
440
before
=
,
441
after
=
,
442
margin
=
0
cm
,
443
numbercommand
=
\footnum
]
444 445
\setupnote
446
[
endnote
]
447
[
location
=
none
]
448 449
\def
\endnotessubjectname
{
Footnotes
}
450
\def
\endnotesubjectname
{
Footnote
}
451 452
\def
\stopArticle
453
{
\ifcase
\rawcountervalue
[
endnote
]
\relax
454
\or
455
\startsubject
[
title
=
\endnotesubjectname
]
% single
456
\placenotes
[
endnote
]
457
\stopsubject
458
\else
459
\startsubject
[
title
=
\endnotessubjectname
]
460
\placenotes
[
endnote
]
461
\stopsubject
462
\fi
463
\par
\signArticle
464
\ifMapsInColumns
\stopcolumns
\fi
465
\page
}
466 467
\installpagebreakmethod
{
last
}{}
468 469
%%% `logos' %%%%%%%%%%%%%%%%%%%%%%%%%%
470 471
\unexpanded
\def
\XeTeX
472
{
X
\lower
.
5
ex
\hbox
{
\kern
-
.
1
em
\mirror
{
E
}}
\kern
-
.
1
6
6
7
em
\TeX
}
473 474
\unexpanded
\def
\LaTeX
% requested by erik frambach
475
{{
\setbox
\scratchbox
\hbox
{
L
}
%
476
\scratchdimen
\ht
\scratchbox
477
\setbox
\scratchbox
\hbox
{
\switchtobodyfont
[
script
]
A
}
%
478
L
\kern
-
.
5
5
\wd
\scratchbox
479
\raise
\scratchdimen
\hbox
{
\lower\ht
\scratchbox
\copy
\scratchbox
}
%
480
\kern
-
.
2
\wd
\scratchbox
\TeX
}}
481 482
\unexpanded
\def
\CONTEXT
{
Con
{
\TeX
}
t
}
483
\unexpanded
\def
\ConTeXt
{
Con
{
\TeX
}
t
}
484
\unexpanded
\def
\METAFONT
{
Metafont
}
485
\unexpanded
\def
\METAPOST
{
MetaPost
}
486
\unexpanded
\def
\POSTSCRIPT
{
PostScript
}
487 488
\unexpanded
\def
\acro
#
1
{{
\switchtobodyfont
[
9
pt
]#
1
}}
489 490
\definefontfeature
[
smallcapitals
]
[
smcp
=
yes
]
491
\def
\sc
{
\addff
{
smallcapitals
}}
492 493
\def
\NTG
{{
\sc
ntg
}}
494
\def
\TUG
{{
\sc
tug
}}
495 496
%%%%%%%%%%%
497
% headers and footers and other mode-related things
498
\setuplayout
499
[
width
=
4
5
7
pt
]
500 501
\setupcolumns
502
[
n
=
2
,
tolerance
=
verytolerant
,
distance
=
1
1
pt
]
503 504
\setuplayout
505
[
backspace
=
7
0
.
3
pt
,
grid
=
yes
]
506 507
\setuppagenumbering
508
[
alternative
=
doublesided
]
509 510
\setuptyping
511
[
blank
=
halfline
]
512 513
\setupheadertexts
514
[
\TiHead
]
515
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
3
0
pt
\hbox
{}}
]
516
[
{
\hbox
{}
\hskip
-
3
0
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}}
]
517
[
\AuHead
]
518 519
\setupfootertexts
% empty
520 521
\startmode
[
onecolumn
]
522 523
\setuplayout
[
width
=
3
4
0
pt
]
524 525
\startmode
[
asym
]
% one col, asymmetric
526
\setuppagenumbering
527
[
alternative
=
{
singlesided
,
doublesided
}
]
528
\doifmodeelse
529
{
single
}
530
{
\setupheadertexts
531
[
\TiHead
]
532
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
1
4
7
pt
\hbox
{}}
]
533
[
{
\hbox
{}
\hskip
-
3
0
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}}
]
534
[
\AuHead
\hskip
-
1
1
0
pt
]
}
535
{
\setuptyping
536
[
widetyping
]
537
[
oddmargin
=
-
1
1
7
pt
]
538
\setuplayout
[
backspace
=
1
8
7
.
3
pt
]
539
\setupheadertexts
540
[
{
\hbox
{}
\hskip
-
1
1
7
pt
\TiHead
}
]
541
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
3
0
pt
\hbox
{}}
]
542
[
{
\hbox
{}
\hskip
-
1
4
7
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}}
]
543
[
\AuHead
]
}
544
\stopmode
545 546
\startnotmode
[
asym
]
547
\setupheadertexts
548
[
\TiHead
]
549
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
1
4
7
pt
\hbox
{}}
]
550
[
{
\hbox
{}
\hskip
-
1
4
7
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}}
]
551
[
\AuHead
]
552
\stopnotmode
553 554
\stopmode
% onecolumn
555 556 557
\def
\fulltextwidth
{
4
5
7
pt
}
558 559
\def
\startfullwidth
560
{
\par\begingroup
561
\doifmode
562
{
onecolumn
}
563
{
\hsize
=
\fulltextwidth
564
\doifmodeelse
565
{
asym
}
566
{
\doifmodeelse
{
single
}{
\textwidth
=
\fulltextwidth
}{
\leftskip
-
1
1
7
pt
}}
567
{
\ifodd
\pageno
\else
\leftskip
-
1
1
7
pt
\hsize
=
3
4
0
pt
\fi
}}}
568 569
\def
\stopfullwidth
570
{
\par\endgroup
}
571 572
% Taco: \setupalign[tolerant,fixed} where fixed is french spacing
573 574
\setupalign
575
[
tolerant
,
fixed
]
576 577
\continueifinputfile
{
s
-
maps
.
mkiv
}
578 579
% \enablemode[nosubsub] % if you need at most two levels of sectioning
580
% \enablemode[onecolumn] % for symmetric single-column layout
581
% \enablemode[asym] % for asymmetric single-column layout, left aligned
582
% \enablemode[single] % for asymmetric single-column layout, right aligned
583 584
% \usemodule[map-20]
585 586
\usebtxdataset
[
samplmaps
.
bib
]
587
\usebtxdefinitions
[
apa
]
588 589
\starttext
590
\startArticle
[
% Use {} if argument contains comma's!
591
% titel
592
Title
=
{
An
example
document
for
the
Maps
module
,
demonstrating
its
593
various
features
\thanks
{
Thanks
should
be
short
}
594
}
,
595
RunningTitle
=
An
example
document
,
596
SubTitle
=
with
an
optional
subtitle
,
597
% auteur
598
Author
=
Anton
Ulrich
Thor
,
599
Email
=
a
.
u
.
thor
@
uu
.
am
.
dw
,
600
Address
=
Institute
of
Indefinite
Studies
\\
601
Unseen
University
\\
602
Ankh
Morpork
,
603
% tijdstip
604
Period
=
voorjaar
,
605
Number
=
3
6
,
606
Year
=
2
0
0
8
,
607
Page
=
1
,
608
% Taal
609
Language
=
english
,
610
% Intro
611
Abstract
=
{
%
612
This
is
a
sample
input
file
for
the
Maps
module
version
2
.
0
,
613
which
mimics
the
associated
\LaTeX
\
class
file
.
614
It
demonstrates
various
standard
and
non
-
standard
features
.
615
\crlf
616
Use
of
the
abstract
-
and
keywords
environments
is
highly
appreciated
.
}
,
617
Keywords
=
{
Maps
,
\ConTeXt
\
module
,
sample
}
]
618 619
\startsection
[
title
=
Ordinary
Text
]
620 621
The
ends
of
words
and
sentences
are
marked
622
by
spaces
.
It
doesn
'
t
matter
how
many
623
spaces
you
type
;
one
is
as
good
as
1
0
0
.
The
624
end
of
a
line
counts
as
a
space
.
625 626
One
or
more
blank
lines
denote
the
end
627
of
a
paragraph
.
628 629
Footnotes
\footnote
{
This
is
an
example
of
an
endnote
.
}
are
converted
to
630
endnotes
\endnote
{
This
is
another
one
,
with
more
text
to
it
,
to
see
how
631
it
will
wrap
to
the
next
line
.
}
.
These
will
automatically
be
typeset
at
632
the
end
of
the
article
.
The
title
of
the
notes
section
is
defined
by
the
633
command
\type
{
\endnotessubjectname
}
(
for
multiple
notes
)
or
634
\type
{
\endnotesubjectname
}
(
in
case
of
a
single
note
)
.
635 636
\stopsection
637 638
\startsection
[
title
=
Fonts
]
639
The
Maps
uses
Linux
Libertine
for
main
text
,
640
with
Latin
Modern
Sans
and
Mono
,
and
Euler
for
math
.
The
Linux
Libertine
641
OpenType
fonts
are
part
of
\TeX
\
Live
.
If
they
are
not
found
,
642
Latin
Modern
Serif
fallbacks
will
be
used
.
643 644
\stopsection
645 646
\startsection
[
title
=
Sectioning
]
647 648
The
maps
module
defaults
to
unnumbered
sections
.
If
you
really
must
,
649
you
can
restore
section
numbering
with
\emph
{
e
.
g
.
}
650
\type
{
\setupheads
[
number
=
yes
]
}
651 652
\startsubsection
[
title
=
Subsection
]
653
This
is
a
second
-
level
section
header
.
You
can
go
down
one
more
654
level
:
655 656
% \penalty0
657 658
\startsubsubsection
[
title
=
A
subsubsection
]
659
This
is
supposed
to
be
a
run
-
in
header
,
so
make
sure
you
start
the
660
text
right
after
\type
{
\startsubsubsection
}
.
661 662
\stopsubsubsection
663 664
\startsubsubsection
[
title
=
Tip
]
665
If
you
only
need
one
or
two
levels
of
header
,
then
you
can
get
a
666
better
layout
with
the
\type
{
nosubsub
}
document
option
.
667
The
Maps
editors
may
decide
to
turn
on
this
option
for
you
.
668
\stopsubsubsection
669 670
\stopsubsection
671 672
\stopsection
673 674
\startsection
[
title
=
Lists
]
675 676
Another
frequently
-
displayed
structure
is
a
list
.
677
The
following
is
an
example
of
an
\emph
{
itemized
}
678
list
.
679
\startitemize
680
\item
This
is
the
first
item
of
an
itemized
list
.
681
Each
item
in
the
list
is
marked
with
a
\quote
{
tick
}
.
682
\item
This
is
the
second
item
of
the
list
.
It
683
contains
another
list
nested
inside
it
.
The
inner
684
list
is
an
\emph
{
enumerated
}
list
.
685 686
\startitemize
[
n
]
687
\startitem
This
is
the
first
item
of
an
enumerated
688
list
that
is
nested
within
the
itemized
list
.
689
\stopitem
690
\item
This
is
the
second
item
of
the
inner
list
.
691
\ConTeXt
\
allows
you
to
nest
lists
deeper
than
692
you
really
should
.
693
\stopitem
694
\stopitemize
695 696
\noindent
697
This
is
the
rest
of
the
second
item
of
the
outer
698
list
.
It
is
no
more
interesting
than
any
other
699
part
of
the
item
.
700
\startitem
This
is
the
third
item
of
the
list
.
\stopitem
701
\stopitemize
702 703
In
a
two
-
column
layout
,
protracted
indenting
doesn
'
t
look
very
704
good
.
Therefore
,
the
Maps
module
provides
an
\type
{
outeritemize
}
705
environment
:
706 707
\startouteritemize
708
\item
This
is
the
first
item
of
a
non
-
indented
itemized
list
,
709
produced
with
the
\mono
{
outeritemize
}
environment
.
710
\item
This
is
the
second
item
.
711
\stopouteritemize
712 713
Now
an
enumerated
version
:
714 715
\startouteritemize
[
n
]
716
\item
This
is
the
first
item
of
a
non
-
indented
enumerated
list
,
717
produced
with
the
\mono
{
outeritemize
}
environment
.
718
\item
This
is
the
second
item
.
719
\stopouteritemize
720 721
There
is
also
a
definition
for
description
lists
:
722 723
\startdescription
{
cow
}
724
A
milk
-
producing
animal
that
grazes
grass
and
has
multiple
stomachs
725
\stopdescription
726
\startdescription
{
kangoroo
}
727
An
Australian
hopping
animal
728
\stopdescription
729 730
\stopsection
731 732
\startsection
[
title
=
Wide
typesetting
in
single
-
column
layout
]
733 734
For
both
single
-
column
layouts
,
there
are
environments
\type
{
fullwidth
}
and
735
\type
{
widetyping
}
which
typeset
their
content
across
the
full
page
,
736
including
most
of
the
wide
margin
.
737 738
\startfullwidth
739
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
740
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
741
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
742
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
743
\stopfullwidth
744 745
\startwidetyping
746
{}
\/
$
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
747
\stopwidetyping
748
The
implementation
of
\type
{
fullwidth
}
is
rather
simplistic
and
749
may
easily
break
,
in
which
case
more
sophisticated
hackery
will
be
750
needed
.
751 752
\stopsection
753 754
\startsection
[
title
=
Assembling
your
submission
]
755 756
Please
check
whether
all
non
-
standard
modules
and
all
757
non
-
standard
fonts
are
included
.
We
do
have
a
current
\TeX
{}
Live
but
,
758
although
we
do
have
access
to
CTAN
,
finding
the
right
stuff
by
759
name
can
occasionally
be
a
challenge
.
760 761
Avoid
jpeg
compression
for
screenshots
.
Conversion
to
pdf
may
762
sometimes
result
in
jpeg
compression
as
well
.
Use
\emph
{
e
.
g
.
}
png
763
format
instead
.
764 765
Finally
,
a
pdf
of
your
article
is
appreciated
.
This
way
,
we
can
766
check
more
reliably
whether
your
article
compiles
767
correctly
on
our
own
systems
.
768 769
\stopsection
770
\startsection
[
title
=
References
]
771 772
If
you
have
references
,
use
whatever
suits
you
.
A
few
sample
references
:
773
see
\cite
[
knuth
]
,
or
\cite
[
lamport
]
.
774 775
\stopsection
776 777
\startsection
[
title
=
References
]
778
\placelistofpublications
779
\stopsection
780
\stopArticle
781
\stoptext
782 783