node-ini.mkiv /size: 2057 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=node-ini,
3%D        version=2006.08.20,
4%D          title=\CONTEXT\ Node Macros,
5%D       subtitle=Initialization,
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 Node Support / Initialization}
15
16\unprotect
17
18\newcount\filterstate \filterstate\plusone % hm, public
19
20\registerctxluafile{node-ini}{}
21\registerctxluafile{node-met}{}
22\registerctxluafile{node-nut}{}
23\registerctxluafile{node-res}{}
24%registerctxluafile{node-ppt}{} % experimental, not used so probably useless
25\registerctxluafile{node-aux}{}
26\registerctxluafile{node-gcm}{}
27\registerctxluafile{node-tst}{}
28\registerctxluafile{node-tra}{} % we might split it off (module)
29\registerctxluafile{node-snp}{}
30\registerctxluafile{node-tsk}{}
31\registerctxluafile{node-tex}{}
32\registerctxluafile{node-pro}{}
33\registerctxluafile{node-ser}{}
34%registerctxluafile{node-ext}{}
35\registerctxluafile{node-acc}{} % experimental
36%registerctxluafile{node-prp}{} % makes no sense (yet)
37\registerctxluafile{node-scn}{}
38\registerctxluafile{node-syn}{}
39\registerctxluafile{node-par}{}
40\registerctxluafile{node-bwc}{} % might stay
41
42\newcount\c_node_tracers_show_box % box number
43
44\unexpanded\def\shownextnodes{\afterassignment\node_tracers_show_next\c_node_tracers_show_box}
45\unexpanded\def\showflatnodes{\afterassignment\node_tracers_show_flat\c_node_tracers_show_box}
46
47\def\node_tracers_show_next{\ctxlua{texio.write_nl('log',nodes.serializebox(\number\c_node_tracers_show_box,false,true))}}
48\def\node_tracers_show_flat{\ctxlua{texio.write_nl('log',nodes.serializebox(\number\c_node_tracers_show_box,true, true))}}
49
50\unexpanded\def\visualizenextnodes{\dowithnextbox{\ctxlua{nodes.visualizebox(\number\nextbox,false,true)}}}
51\unexpanded\def\visualizeflatnodes{\dowithnextbox{\ctxlua{nodes.visualizebox(\number\nextbox,true,true)}}}
52
53\protect \endinput
54