blob: 04f837f1cf95350368cbcb672ee748c3412d2706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
%D \module
%D [ file=toks-tra, % was toks-ini
%D version=2007.03.03,
%D title=\CONTEXT\ Token Support,
%D subtitle=Initialization,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%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 Token Support / Tracing}
\registerctxluafile{toks-tra}{}
\unprotect
%D Handy for manuals \unknown\ but not really used in practice, so it might
%D become a runtime loaded module instead.
\unexpanded\def\starttokens [#1]{\ctxcommand{collecttokens("#1","stoptokens")}}
\let\stoptokens \relax
\unexpanded\def\flushtokens [#1]{\ctxcommand{flushtokens("#1")}}
\unexpanded\def\showtokens [#1]{\ctxcommand{showtokens("#1")}}
\unexpanded\def\testtokens [#1]{\ctxcommand{testtokens("#1")}}
\unexpanded\def\registertoken #1{\ctxcommand{registertoken("#1")}}
\let\toks_show\showtokens % we also support the primitive
\unexpanded\def\showtokens{\doifelsenextoptional\toks_show\normalshowtokens}
\protect \endinput
|