s-maps.mkiv /size: 19 Kb    last modification: 2021-10-28 13:51
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
\enforced
\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
]
%
423
\enforced
\let
\\
\crlf
424
\noindent
\switchtobodyfont
[
ss
,
9
pt
]
%
425
\MapsAuthor
426
\doifsomething
{
\MapsAddress
}
{
\\
\MapsAddress
}
%
427
\doifsomething
{
\MapsEmail
}
{
\\
\MapsEmail
}
}
%
428
\switchtobodyfont
[
1
0
pt
]
%
429
\def
\signArticle
{
}
}
430 431
% endnotes aka footnotes
432 433
\def
\footnum
#
1
{
#
1
.
}
434 435
\setupnotation
436
[
endnote
]
437
[
alternative
=
serried
,
438
style
=
{
\switchtobodyfont
[
9
pt
]
}
,
439
margin
=
0
cm
,
440
width
=
1
2
pt
,
441
before
=
,
442
after
=
,
443
margin
=
0
cm
,
444
numbercommand
=
\footnum
]
445 446
\setupnote
447
[
endnote
]
448
[
location
=
none
]
449 450
\def
\endnotessubjectname
{
Footnotes
}
451
\def
\endnotesubjectname
{
Footnote
}
452 453
\def
\stopArticle
454
{
\ifcase
\rawcountervalue
[
endnote
]
\relax
455
\or
456
\startsubject
[
title
=
\endnotesubjectname
]
% single
457
\placenotes
[
endnote
]
458
\stopsubject
459
\else
460
\startsubject
[
title
=
\endnotessubjectname
]
461
\placenotes
[
endnote
]
462
\stopsubject
463
\fi
464
\par
\signArticle
465
\ifMapsInColumns
\stopcolumns
\fi
466
\page
}
467 468
\installpagebreakmethod
{
last
}
{
}
469 470
%%% `logos' %%%%%%%%%%%%%%%%%%%%%%%%%%
471 472
\unexpanded
\def
\XeTeX
473
{
X
\lower
.
5
ex
\hbox
{
\kern
-
.
1
em
\mirror
{
E
}
}
\kern
-
.
1
6
6
7
em
\TeX
}
474 475
\unexpanded
\def
\LaTeX
% requested by erik frambach
476
{
{
\setbox
\scratchbox
\hbox
{
L
}
%
477
\scratchdimen
\ht
\scratchbox
478
\setbox
\scratchbox
\hbox
{
\switchtobodyfont
[
script
]
A
}
%
479
L
\kern
-
.
5
5
\wd
\scratchbox
480
\raise
\scratchdimen
\hbox
{
\lower
\ht
\scratchbox
\copy
\scratchbox
}
%
481
\kern
-
.
2
\wd
\scratchbox
\TeX
}
}
482 483
\unexpanded
\def
\CONTEXT
{
Con
{
\TeX
}
t
}
484
\unexpanded
\def
\ConTeXt
{
Con
{
\TeX
}
t
}
485
\unexpanded
\def
\METAFONT
{
Metafont
}
486
\unexpanded
\def
\METAPOST
{
MetaPost
}
487
\unexpanded
\def
\POSTSCRIPT
{
PostScript
}
488 489
\unexpanded
\def
\acro
#
1
{
{
\switchtobodyfont
[
9
pt
]
#
1
}
}
490 491
\definefontfeature
[
smallcapitals
]
[
smcp
=
yes
]
492
\def
\sc
{
\addff
{
smallcapitals
}
}
493 494
\def
\NTG
{
{
\sc
ntg
}
}
495
\def
\TUG
{
{
\sc
tug
}
}
496 497
%%%%%%%%%%%
498
% headers and footers and other mode-related things
499
\setuplayout
500
[
width
=
4
5
7
pt
]
501 502
\setupcolumns
503
[
n
=
2
,
tolerance
=
verytolerant
,
distance
=
1
1
pt
]
504 505
\setuplayout
506
[
backspace
=
7
0
.
3
pt
,
grid
=
yes
]
507 508
\setuppagenumbering
509
[
alternative
=
doublesided
]
510 511
\setuptyping
512
[
blank
=
halfline
]
513 514
\setupheadertexts
515
[
\TiHead
]
516
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
3
0
pt
\hbox
{
}
}
]
517
[
{
\hbox
{
}
\hskip
-
3
0
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}
}
]
518
[
\AuHead
]
519 520
\setupfootertexts
% empty
521 522
\startmode
[
onecolumn
]
523 524
\setuplayout
[
width
=
3
4
0
pt
]
525 526
\startmode
[
asym
]
% one col, asymmetric
527
\setuppagenumbering
528
[
alternative
=
{
singlesided
,
doublesided
}
]
529
\doifmodeelse
530
{
single
}
531
{
\setupheadertexts
532
[
\TiHead
]
533
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
1
4
7
pt
\hbox
{
}
}
]
534
[
{
\hbox
{
}
\hskip
-
3
0
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}
}
]
535
[
\AuHead
\hskip
-
1
1
0
pt
]
}
536
{
\setuptyping
537
[
widetyping
]
538
[
oddmargin
=
-
1
1
7
pt
]
539
\setuplayout
[
backspace
=
1
8
7
.
3
pt
]
540
\setupheadertexts
541
[
{
\hbox
{
}
\hskip
-
1
1
7
pt
\TiHead
}
]
542
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
3
0
pt
\hbox
{
}
}
]
543
[
{
\hbox
{
}
\hskip
-
1
4
7
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}
}
]
544
[
\AuHead
]
}
545
\stopmode
546 547
\startnotmode
[
asym
]
548
\setupheadertexts
549
[
\TiHead
]
550
[
{
\cap
{
\MapsPeriod
\
\MapsYear
}
\quad
\bf
\pagenumber
\hskip
-
1
4
7
pt
\hbox
{
}
}
]
551
[
{
\hbox
{
}
\hskip
-
1
4
7
pt
{
\bf
\pagenumber
}
\quad
\cap
{
maps
\
\MapsNumber
}
}
]
552
[
\AuHead
]
553
\stopnotmode
554 555
\stopmode
% onecolumn
556 557 558
\def
\fulltextwidth
{
4
5
7
pt
}
559 560
\def
\startfullwidth
561
{
\par
\begingroup
562
\doifmode
563
{
onecolumn
}
564
{
\hsize
=
\fulltextwidth
565
\doifmodeelse
566
{
asym
}
567
{
\doifmodeelse
{
single
}
{
\textwidth
=
\fulltextwidth
}
{
\leftskip
-
1
1
7
pt
}
}
568
{
\ifodd
\pageno
\else
\leftskip
-
1
1
7
pt
\hsize
=
3
4
0
pt
\fi
}
}
}
569 570
\def
\stopfullwidth
571
{
\par
\endgroup
}
572 573
% Taco: \setupalign[tolerant,fixed} where fixed is french spacing
574 575
\setupalign
576
[
tolerant
,
fixed
]
577 578
\continueifinputfile
{
s
-
maps
.
mkiv
}
579 580
% \enablemode[nosubsub] % if you need at most two levels of sectioning
581
% \enablemode[onecolumn] % for symmetric single-column layout
582
% \enablemode[asym] % for asymmetric single-column layout, left aligned
583
% \enablemode[single] % for asymmetric single-column layout, right aligned
584 585
% \usemodule[map-20]
586 587
\usebtxdataset
[
samplmaps
.
bib
]
588
\usebtxdefinitions
[
apa
]
589 590
\starttext
591
\startArticle
[
% Use {} if argument contains comma's!
592
% titel
593
Title
=
{
An
example
document
for
the
Maps
module
,
demonstrating
its
594
various
features
\thanks
{
Thanks
should
be
short
}
595
}
,
596
RunningTitle
=
An
example
document
,
597
SubTitle
=
with
an
optional
subtitle
,
598
% auteur
599
Author
=
Anton
Ulrich
Thor
,
600
Email
=
a
.
u
.
thor
@
uu
.
am
.
dw
,
601
Address
=
Institute
of
Indefinite
Studies
\\
602
Unseen
University
\\
603
Ankh
Morpork
,
604
% tijdstip
605
Period
=
voorjaar
,
606
Number
=
3
6
,
607
Year
=
2
0
0
8
,
608
Page
=
1
,
609
% Taal
610
Language
=
english
,
611
% Intro
612
Abstract
=
{
%
613
This
is
a
sample
input
file
for
the
Maps
module
version
2
.
0
,
614
which
mimics
the
associated
\LaTeX
\
class
file
.
615
It
demonstrates
various
standard
and
non
-
standard
features
.
616
\crlf
617
Use
of
the
abstract
-
and
keywords
environments
is
highly
appreciated
.
}
,
618
Keywords
=
{
Maps
,
\ConTeXt
\
module
,
sample
}
]
619 620
\startsection
[
title
=
Ordinary
Text
]
621 622
The
ends
of
words
and
sentences
are
marked
623
by
spaces
.
It
doesn
'
t
matter
how
many
624
spaces
you
type
;
one
is
as
good
as
1
0
0
.
The
625
end
of
a
line
counts
as
a
space
.
626 627
One
or
more
blank
lines
denote
the
end
628
of
a
paragraph
.
629 630
Footnotes
\footnote
{
This
is
an
example
of
an
endnote
.
}
are
converted
to
631
endnotes
\endnote
{
This
is
another
one
,
with
more
text
to
it
,
to
see
how
632
it
will
wrap
to
the
next
line
.
}
.
These
will
automatically
be
typeset
at
633
the
end
of
the
article
.
The
title
of
the
notes
section
is
defined
by
the
634
command
\type
{
\endnotessubjectname
}
(
for
multiple
notes
)
or
635
\type
{
\endnotesubjectname
}
(
in
case
of
a
single
note
)
.
636 637
\stopsection
638 639
\startsection
[
title
=
Fonts
]
640
The
Maps
uses
Linux
Libertine
for
main
text
,
641
with
Latin
Modern
Sans
and
Mono
,
and
Euler
for
math
.
The
Linux
Libertine
642
OpenType
fonts
are
part
of
\TeX
\
Live
.
If
they
are
not
found
,
643
Latin
Modern
Serif
fallbacks
will
be
used
.
644 645
\stopsection
646 647
\startsection
[
title
=
Sectioning
]
648 649
The
maps
module
defaults
to
unnumbered
sections
.
If
you
really
must
,
650
you
can
restore
section
numbering
with
\emph
{
e
.
g
.
}
651
\type
{
\setupheads
[
number
=
yes
]
}
652 653
\startsubsection
[
title
=
Subsection
]
654
This
is
a
second
-
level
section
header
.
You
can
go
down
one
more
655
level
:
656 657
% \penalty0
658 659
\startsubsubsection
[
title
=
A
subsubsection
]
660
This
is
supposed
to
be
a
run
-
in
header
,
so
make
sure
you
start
the
661
text
right
after
\type
{
\startsubsubsection
}
.
662 663
\stopsubsubsection
664 665
\startsubsubsection
[
title
=
Tip
]
666
If
you
only
need
one
or
two
levels
of
header
,
then
you
can
get
a
667
better
layout
with
the
\type
{
nosubsub
}
document
option
.
668
The
Maps
editors
may
decide
to
turn
on
this
option
for
you
.
669
\stopsubsubsection
670 671
\stopsubsection
672 673
\stopsection
674 675
\startsection
[
title
=
Lists
]
676 677
Another
frequently
-
displayed
structure
is
a
list
.
678
The
following
is
an
example
of
an
\emph
{
itemized
}
679
list
.
680
\startitemize
681
\item
This
is
the
first
item
of
an
itemized
list
.
682
Each
item
in
the
list
is
marked
with
a
\quote
{
tick
}
.
683
\item
This
is
the
second
item
of
the
list
.
It
684
contains
another
list
nested
inside
it
.
The
inner
685
list
is
an
\emph
{
enumerated
}
list
.
686 687
\startitemize
[
n
]
688
\startitem
This
is
the
first
item
of
an
enumerated
689
list
that
is
nested
within
the
itemized
list
.
690
\stopitem
691
\item
This
is
the
second
item
of
the
inner
list
.
692
\ConTeXt
\
allows
you
to
nest
lists
deeper
than
693
you
really
should
.
694
\stopitem
695
\stopitemize
696 697
\noindent
698
This
is
the
rest
of
the
second
item
of
the
outer
699
list
.
It
is
no
more
interesting
than
any
other
700
part
of
the
item
.
701
\startitem
This
is
the
third
item
of
the
list
.
\stopitem
702
\stopitemize
703 704
In
a
two
-
column
layout
,
protracted
indenting
doesn
'
t
look
very
705
good
.
Therefore
,
the
Maps
module
provides
an
\type
{
outeritemize
}
706
environment
:
707 708
\startouteritemize
709
\item
This
is
the
first
item
of
a
non
-
indented
itemized
list
,
710
produced
with
the
\mono
{
outeritemize
}
environment
.
711
\item
This
is
the
second
item
.
712
\stopouteritemize
713 714
Now
an
enumerated
version
:
715 716
\startouteritemize
[
n
]
717
\item
This
is
the
first
item
of
a
non
-
indented
enumerated
list
,
718
produced
with
the
\mono
{
outeritemize
}
environment
.
719
\item
This
is
the
second
item
.
720
\stopouteritemize
721 722
There
is
also
a
definition
for
description
lists
:
723 724
\startdescription
{
cow
}
725
A
milk
-
producing
animal
that
grazes
grass
and
has
multiple
stomachs
726
\stopdescription
727
\startdescription
{
kangoroo
}
728
An
Australian
hopping
animal
729
\stopdescription
730 731
\stopsection
732 733
\startsection
[
title
=
Wide
typesetting
in
single
-
column
layout
]
734 735
For
both
single
-
column
layouts
,
there
are
environments
\type
{
fullwidth
}
and
736
\type
{
widetyping
}
which
typeset
their
content
across
the
full
page
,
737
including
most
of
the
wide
margin
.
738 739
\startfullwidth
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
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
744
\stopfullwidth
745 746
\startwidetyping
747
{
}
\/
$
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
748
\stopwidetyping
749
The
implementation
of
\type
{
fullwidth
}
is
rather
simplistic
and
750
may
easily
break
,
in
which
case
more
sophisticated
hackery
will
be
751
needed
.
752 753
\stopsection
754 755
\startsection
[
title
=
Assembling
your
submission
]
756 757
Please
check
whether
all
non
-
standard
modules
and
all
758
non
-
standard
fonts
are
included
.
We
do
have
a
current
\TeX
{
}
Live
but
,
759
although
we
do
have
access
to
CTAN
,
finding
the
right
stuff
by
760
name
can
occasionally
be
a
challenge
.
761 762
Avoid
jpeg
compression
for
screenshots
.
Conversion
to
pdf
may
763
sometimes
result
in
jpeg
compression
as
well
.
Use
\emph
{
e
.
g
.
}
png
764
format
instead
.
765 766
Finally
,
a
pdf
of
your
article
is
appreciated
.
This
way
,
we
can
767
check
more
reliably
whether
your
article
compiles
768
correctly
on
our
own
systems
.
769 770
\stopsection
771
\startsection
[
title
=
References
]
772 773
If
you
have
references
,
use
whatever
suits
you
.
A
few
sample
references
:
774
see
\cite
[
knuth
]
,
or
\cite
[
lamport
]
.
775 776
\stopsection
777 778
\startsection
[
title
=
References
]
779
\placelistofpublications
780
\stopsection
781
\stopArticle
782
\stoptext
783 784