1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Lua Typesetting Initialization}
15
16
17
18
19
20
21\registerctxluafile{nodetyp}{}
22\registerctxluafile{blobini}{}
23
24
25
26\unprotect
27
28
29
30\def\wdofstring#1{\dimexpr\clf_strwd{#1}\scaledpoint\relax}
31\def\htofstring#1{\dimexpr\clf_strht{#1}\scaledpoint\relax}
32\def\dpofstring#1{\dimexpr\clf_strdp{#1}\scaledpoint\relax}
33\def\hdofstring#1{\dimexpr\clf_strhd{#1}\scaledpoint\relax}
34
35\def\widthofstring {\the\wdofstring}
36\def\heightofstring {\the\htofstring}
37\def\depthofstring {\the\dpofstring}
38\def\totalofstring {\the\hdofstring}
39
40\let\heightanddepthofstring\totalofstring
41\let\htdpofstring \hdofstring
42
43\let\hd\htdp
44
45
46
47\unexpanded\def\setwidthof#1\to#2
48 {\bgroup
49 \setbox\scratchbox\hbox{#1}
50 \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}
51
52\protect \endinput
53
54
55
56
57
58
59
60
61
62
63
64 |