spac-def.mkiv /size: 2204 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=spac-def,
3
%D version=2009.10.16, % 1997.03.31, was core-spa.tex
4
%D title=\CONTEXT\ Spacing Macros,
5
%D subtitle=Definitions,
6
%D author=Hans Hagen,
7
%D date=\currentdate,
8
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9
%C
10
%C This module is part of the \CONTEXT\ macro||package and is
11
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12
%C details.
13 14
\writestatus
{
loading
}{
ConTeXt
Spacing
Macros
/
Definitions
}
15 16
% Ideally these definitions should be moved to where they first appear and
17
% this will happen at some point.
18 19
\unprotect
20 21
% maybe \everysynchronizeglobalspacing
22
% maybe \everysynchronizelocalspacing
23 24
\appendtoks
25
\forgetverticalstretch
26
\presetnormallineheight
27
\setnormalbaselines
% check if redundant (\forgetverticalstretch does it too)
28
\setstrut
% check if redundant (\forgetverticalstretch does it too)
29
\settopskip
% factors set in \forgetverticalstretch
30
\setmaxdepth
% factors set in \forgetverticalstretch
31
\synchronizeindenting
32
\synchronizeskipamounts
33
\synchronizeblank
34
\synchronizewhitespace
35
\synchronizespacecodes
% not needed, frozen factors
36
\setrelativeinterlinespace
37
\to
\everybodyfont
38 39
% why exception
40 41
\appendtoks
42
\updateraggedskips
% under test
43
\to
\everyfontswitch
44 45
% maybe more
46 47
\prependtoks
48
\let\par\normalpar
49
\to
\everybeforepagebody
% see \fillinline (was endgraf)
50 51
% needs checking:
52 53
\appendtoks
54
\synchronizespacecodes
55
\to
\everydefinedfont
% not needed, frozen factors
56 57
\setupinterlinespace
58
[
\c!minheight
=
\zeropoint
,
% only special purpose
59
\c!mindepth
=
\zeropoint
,
% only special purpose
60
\c!height
=
.
7
2
,
61
\c!depth
=
.
2
8
,
62
\c!top
=
1
.
0
,
63
\c!bottom
=
0
.
4
,
64
\c!distance
=
\onepoint
,
% \dimexpr\openlineheight/10\relax
65
\c!line
=
2
.
8
\exheight
,
66
\c!stretch
=
\zerocount
,
67
\c!shrink
=
\zerocount
]
68 69
\setupblank
70
[
\v!big
]
71 72
\setuptolerance
73
[
\v!horizontal
,
\v!verystrict
]
74 75
\setuptolerance
76
[
\v!vertical
,
\v!strict
]
77 78
\setupalign
79
[
\v!bottom
,
80
\v!width
]
81 82
\setupspacing
83
[
\v!packed
]
84 85
\indenting
86
[
\v!never
]
87 88
\setupindenting
89
[
\v!none
]
90 91
\protect
\endinput
92