blob: 8b99ae6029b90da46015f46baa400384cd5083a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
%D \module
%D [ file=s-math-definitions.mkxl,
%D version=2022.01.27,
%D title=\CONTEXT\ Style File,
%D subtitle=Math Definition Checking,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
%D I use this file for checking the classes as set in \type {char-def.lua}. It
%D could work with \MKIV\ but because we have more clases in \LMTX\ we only use
%D (and need) it there.
\startmodule[math-definitions]
\registerctxluafile{s-math-definitions}{autosuffix}
\permanent\tolerant\protected\def\showmathcharacterdefinitions[#1]%
{\ctxlua{moduledata.math.definitions.showlist()}}
\permanent\tolerant\protected\def\showmathatomspacing[#1]%
{\ctxlua{moduledata.math.definitions.showatoms()}}
\def\ShowMathAtomSpacingPage#1#2#3#4%
{\startTEXpage[offset=10pt]
\raggedcenter
\dontleavehmode\framed
[height=60pt,width=150pt]
{$\showglyphs\showmakeup[math]#3 #4$}
\blank
\strut\infofont\detokenize{#1 #2 : $#3 #4$}
\stopTEXpage}
\permanent\tolerant\protected\def\showmathatomspacingpage[#1]%
{\ctxlua{moduledata.math.definitions.showatomspage()}}
\stopmodule
\continueifinputfile{s-math-definitions.mkxl}
\setuplayout[tight]
\setupbodyfont[cambria,10pt]
\starttext
\showmathatomspacing
% \page
% \showmathatomspacingpage
% \page
% \showmathcharacterdefinitions
\stoptext
|