1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Node Support Initialization}
15
16\unprotect
17
18\newinteger\filterstate \filterstate\plusone
19
20\registerctxluafile{nodecmp}{autosuffix}
21\registerctxluafile{nodeini}{autosuffix}
22\registerctxluafile{nodemet}{autosuffix}
23\registerctxluafile{nodenut}{autosuffix}
24\registerctxluafile{noderes}{autosuffix}
25
26\registerctxluafile{nodeaux}{autosuffix}
27\registerctxluafile{nodegcm}{autosuffix}
28\registerctxluafile{nodetst}{autosuffix}
29\registerctxluafile{nodetra}{autosuffix}
30\registerctxluafile{nodesnp}{autosuffix}
31\registerctxluafile{nodetsk}{autosuffix}
32\registerctxluafile{nodetex}{autosuffix}
33\registerctxluafile{nodedir}{autosuffix}
34\registerctxluafile{nodepro}{autosuffix}
35\registerctxluafile{nodeser}{autosuffix}
36
37
38\registerctxluafile{nodescn}{autosuffix}
39\registerctxluafile{nodescn}{autosuffix}
40\registerctxluafile{nodepar}{autosuffix}
41
42
43
44
45\newinteger\c_node_tracers_show_box
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 |