trac-ctx.mkiv /size: 2226 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=trac-ctx,
3
%D version=2012.07.13,
4
%D title=\CONTEXT\ Tracing Macros,
5
%D subtitle=TeX Trackers,
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
Tracing
Macros
/
TeX
Trackers
}
15 16
\registerctxluafile
{
trac
-
ctx
}{}
17 18
\unprotect
19 20
\unexpanded
\def
\installtextracker
#
1
#
2
#
3
%
21
{
\clf_installtextracker
{
#
1
}{
\detokenize
{
#
2
}}{
\detokenize
{
#
3
}}}
22 23
\unexpanded
\def
\installtexdirective
#
1
#
2
#
3
%
24
{
\clf_installtexdirective
{
#
1
}{
\detokenize
{
#
2
}}{
\detokenize
{
#
3
}}}
25 26
\appendtoks
27
\clf_initializetextrackers
28
\clf_initializetexdirectives
29
\to
\everyjob
30 31
\protect
\endinput
32 33
% this is one option:
34
%
35
% \newconditional\c_math_virtual_tx
36
% \newconditional\c_math_virtual_px
37
% \newconditional\c_math_virtual_lm
38
%
39
% \installtexdirective {fonts.math.virtual.tx} {\settrue \c_math_virtual_tx} {\setfalse\c_math_virtual_tx}
40
% \installtexdirective {fonts.math.virtual.px} {\settrue \c_math_virtual_px} {\setfalse\c_math_virtual_px}
41
% \installtexdirective {fonts.math.virtual.lm} {\settrue \c_math_virtual_lm} {\setfalse\c_math_virtual_lm}
42
%
43
% but as it makes the typescript look ugly we wil use:
44
%
45
% \installtexdirective {fonts.math.virtual.tx} {\enablemode[fonts.math.virtual.tx]} {\disablemode[fonts.math.virtual.tx]}
46
% \installtexdirective {fonts.math.virtual.px} {\enablemode[fonts.math.virtual.px]} {\disablemode[fonts.math.virtual.px]}
47
% \installtexdirective {fonts.math.virtual.lm} {\enablemode[fonts.math.virtual.lm]} {\disablemode[fonts.math.virtual.lm]}
48
%
49
% which could be:
50
%
51
% \def\mode_f_m_v_tx{fonts.math.virtual.tx}
52
% \def\mode_f_m_v_px{fonts.math.virtual.px}
53
% \def\mode_f_m_v_lm{fonts.math.virtual.lm}
54
%
55
% \installtexdirective \mode_f_m_v_tx {\enablemode[\mode_f_m_v_tx]} {\disablemode[\mode_f_m_v_tx]}
56
% \installtexdirective \mode_f_m_v_px {\enablemode[\mode_f_m_v_px]} {\disablemode[\mode_f_m_v_px]}
57
% \installtexdirective \mode_f_m_v_lm {\enablemode[\mode_f_m_v_lm]} {\disablemode[\mode_f_m_v_lm]}
58
%
59
% alas .. we don't want to define this in the core
60