trac-tex.mkiv / last modification: 2020-01-30 14:16
%D \module
%D   [       file=trac-tex,
%D        version=2009.07.20,
%D          title=\CONTEXT\ Tracking Macros,
%D       subtitle=\TEX,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Tracking Macros / TeX}


%D All tracing flags at the \TEX\ end will be redone this way so
%D that we have a similar mechanism for \TEX\ and \LUA. Also, the
%D currently used if's might become conditionals.


% \def\enabletextracerwhatever {...}
% \def\disabletextracerwhatever{...}

\let\alltextracers\empty % so that we can report available tracers


\unexpanded\def\enabletextracers [#1]{\processcommalist[#1]\syst_textracers_enable }

\def\syst_textracers_enable #1{\begincsname  enabletracer#1\endcsname}
\def\syst_textracers_disable#1{\begincsname disabletracer#1\endcsname}

% The next one is for Taco, although we can use directives as well:


%D This is not really a tracker but for decades it lived in my \type {cont-loc}
%D file. I moved it here because I wanted someone else to use it. This macro is not
%D really useful for users. I kept the \LUA\ variant in \type {cont-loc.mkiv}.



\to \everystoptext

\unexpanded\def\profilemacro#1% an oldie, but modernized a bit
   \ifcsname\??profilemacrocount\p_name\endcsname \else
          {\string#1: \noexpand\the\csname\??profilemacrocount\p_name\endcsname}}%

\protect \endinput