node-ini.mkxl /size: 2357 b    last modification: 2024-01-16 09:02
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\newinteger\filterstate \filterstate\plusone % hm, public
19
20\registerctxluafile{node-cmp}{autosuffix}
21\registerctxluafile{node-ini}{autosuffix}
22\registerctxluafile{node-met}{autosuffix}
23\registerctxluafile{node-nut}{autosuffix}
24\registerctxluafile{node-res}{autosuffix}
25%registerctxluafile{node-ppt}{} % experimental, not used so probably useless
26\registerctxluafile{node-aux}{autosuffix}
27\registerctxluafile{node-gcm}{autosuffix}
28\registerctxluafile{node-tst}{autosuffix}
29\registerctxluafile{node-tra}{autosuffix}
30\registerctxluafile{node-snp}{autosuffix}
31\registerctxluafile{node-tsk}{autosuffix}
32\registerctxluafile{node-tex}{autosuffix}
33\registerctxluafile{node-dir}{autosuffix}
34\registerctxluafile{node-pro}{autosuffix}
35\registerctxluafile{node-ser}{autosuffix}
36%registerctxluafile{node-acc}{autosuffix} % now a backend task
37%registerctxluafile{node-prp}{} % makes no sense (yet)
38\registerctxluafile{node-scn}{autosuffix}
39\registerctxluafile{node-scn}{autosuffix}
40\registerctxluafile{node-par}{autosuffix}
41%registerctxluafile{node-bwc}{autosuffix} % no longer used
42
43%D This might go away (needs checking anyway, very old code):
44
45\newinteger\c_node_tracers_show_box % box number
46
47\permanent\protected\def\shownextnodes{\afterassignment\node_tracers_show_next\c_node_tracers_show_box}
48\permanent\protected\def\showflatnodes{\afterassignment\node_tracers_show_flat\c_node_tracers_show_box}
49
50\def\node_tracers_show_next{\ctxlua{texio.write_nl('log',nodes.serializebox(\the\c_node_tracers_show_box,false,true))}}
51\def\node_tracers_show_flat{\ctxlua{texio.write_nl('log',nodes.serializebox(\the\c_node_tracers_show_box,true, true))}}
52
53\permanent\protected\def\visualizenextnodes{\dowithnextbox{\ctxlua{nodes.visualizebox(\the\nextbox,false,true)}}}
54\permanent\protected\def\visualizeflatnodes{\dowithnextbox{\ctxlua{nodes.visualizebox(\the\nextbox,true,true)}}}
55
56\protect \endinput
57