s-math-definitions.mkxl /size: 1571 b    last modification: 2024-01-16 10:22
1%D \module
2%D   [      file=s-math-definitions.mkxl,
3%D        version=2022.01.27,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Math Definition Checking,
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%D I use this file for checking the classes as set in \type {char-def.lua}. It
15%D could work with \MKIV\ but because we have more clases in \LMTX\ we only use
16%D (and need) it there.
17
18\startmodule[math-definitions]
19
20\registerctxluafile{s-math-definitions}{autosuffix}
21
22\permanent\tolerant\protected\def\showmathcharacterdefinitions[#1]%
23  {\ctxlua{moduledata.math.definitions.showlist()}}
24
25\permanent\tolerant\protected\def\showmathatomspacing[#1]%
26  {\ctxlua{moduledata.math.definitions.showatoms()}}
27
28\def\ShowMathAtomSpacingPage#1#2#3#4%
29  {\startTEXpage[offset=10pt]
30     \raggedcenter
31     \dontleavehmode\framed
32       [height=60pt,width=150pt]
33       {$\showglyphs\showmakeup[math]#3 #4$}
34     \blank
35     \strut\infofont\detokenize{#1 #2 : $#3 #4$}
36   \stopTEXpage}
37
38\permanent\tolerant\protected\def\showmathatomspacingpage[#1]%
39  {\ctxlua{moduledata.math.definitions.showatomspage()}}
40
41\stopmodule
42
43\continueifinputfile{s-math-definitions.mkxl}
44
45\setuplayout[tight]
46
47\setupbodyfont[cambria,10pt]
48
49\starttext
50    \showmathatomspacing
51%     \page
52%     \showmathatomspacingpage
53%     \page
54%     \showmathcharacterdefinitions
55\stoptext
56
57