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\unexpanded\def\installtexexperiment#1#2#3% 27 {\clf_installtexexperiment{#1}{\detokenize{#2}}{\detokenize{#3}}} 28 29\appendtoks 30 \clf_initializetextrackers 31 \clf_initializetexdirectives 32 \clf_initializetexexperiments 33\to \everyjob 34 35\protect \endinput 36 37% this is one option: 38% 39% \newconditional\c_math_virtual_tx 40% \newconditional\c_math_virtual_px 41% \newconditional\c_math_virtual_lm 42% 43% \installtexdirective {fonts.math.virtual.tx} {\settrue \c_math_virtual_tx} {\setfalse\c_math_virtual_tx} 44% \installtexdirective {fonts.math.virtual.px} {\settrue \c_math_virtual_px} {\setfalse\c_math_virtual_px} 45% \installtexdirective {fonts.math.virtual.lm} {\settrue \c_math_virtual_lm} {\setfalse\c_math_virtual_lm} 46% 47% but as it makes the typescript look ugly we wil use: 48% 49% \installtexdirective {fonts.math.virtual.tx} {\enablemode[fonts.math.virtual.tx]} {\disablemode[fonts.math.virtual.tx]} 50% \installtexdirective {fonts.math.virtual.px} {\enablemode[fonts.math.virtual.px]} {\disablemode[fonts.math.virtual.px]} 51% \installtexdirective {fonts.math.virtual.lm} {\enablemode[fonts.math.virtual.lm]} {\disablemode[fonts.math.virtual.lm]} 52% 53% which could be: 54% 55% \def\mode_f_m_v_tx{fonts.math.virtual.tx} 56% \def\mode_f_m_v_px{fonts.math.virtual.px} 57% \def\mode_f_m_v_lm{fonts.math.virtual.lm} 58% 59% \installtexdirective \mode_f_m_v_tx {\enablemode[\mode_f_m_v_tx]} {\disablemode[\mode_f_m_v_tx]} 60% \installtexdirective \mode_f_m_v_px {\enablemode[\mode_f_m_v_px]} {\disablemode[\mode_f_m_v_px]} 61% \installtexdirective \mode_f_m_v_lm {\enablemode[\mode_f_m_v_lm]} {\disablemode[\mode_f_m_v_lm]} 62% 63% alas .. we don't want to define this in the core 64 |