1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Boundary Macros Initialization}
15
16\unprotect
17
18\registerctxluafile{bndrini}{autosuffix}
19
20
21
22
23\immutable\def\??boundaryprefix{cbndr}
24
25\permanent\tolerant\protected\def\defineboundary[#1]#*[#2]
26 {\ifinset\s!public{#2}
27 \ifcsname#1\endcsname\else
28 \global\permanent\expandafter\integerdef\csname#1\endcsname\clf_defineboundary{#1}\relax
29 \fi
30 \else
31 \ifcsname\??boundaryprefix#1\endcsname\else
32 \global\permanent\expandafter\integerdef\csname\??boundaryprefix#1\endcsname\clf_defineboundary{#1}\relax
33 \fi
34 \fi}
35
36\permanent\protected\def\newboundary#1
37 {\ifdefined#1\else
38 \global\immutable\integerdef#1\clf_defineboundary{\csstring#1}\relax
39 \fi}
40
41\protect
42 |