1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Tracking Macros TeX}
15
16\registerctxluafile{tractex}{autosuffix}
17
18
19
20
21
22\unprotect
23
24
25
26
27\mutable\lettonothing\alltextracers
28
29\permanent\protected\def\installtextracer#1
30 {\addtocommalist{#1}\alltextracers}
31
32\permanent\protected\def\enabletextracers [#1]{\processcommalist[#1]\syst_textracers_enable }
33\permanent\protected\def\disabletextracers[#1]{\processcommalist[#1]\syst_textracers_disable}
34
35\def\syst_textracers_enable #1{\begincsname enabletracer#1\endcsname}
36\def\syst_textracers_disable#1{\begincsname disabletracer#1\endcsname}
37
38
39
40
41\permanent\protected\def\nomkivstatistics{\enabledirectives[system.nostatistics]}
42
43
44
45\installcorenamespace{profilemacro}
46
47\permanent\protected\def\profilemacro#1
48 {\edef\p_name{\csstring#1}
49 \ifcsname\??profilemacro\p_name\endcsname \else
50 \aliased\letcsname\??profilemacro\p_name\endcsname#1
51
52 \untraced\enforced\ifflags#1\protected\protected\fi\xdef#1
53 {\noexpand\clf_profilemacro\noexpand#1
54 \expandafter\noexpand\csname\??profilemacro\p_name\endcsname}
55 \fi}
56
57
58
59
60
61\appendtoks
62 \showprofiledmacros
63\to \everystoptext
64
65\protect \endinput
66 |