Download User's guide Implementation
Transcript
\def\mg@acc{0}% accents
\def\mg@cop{3}% cumulative operators (sum, int)
26 \def\mg@latin{1}% (Latin) letters
27 \def\mg@greek{1}% (lowercase) Greek
28 \def\mg@Greek{0}% (capital) Greek
29 %%\def\mg@bflatin{4}% bold upright Latin letters ?
30 %%\def\mg@Bbb{B}% blackboard bold
31 \def\mg@cal{2}% script/calligraphic
32 %%\def\mg@frak{5}% Fraktur letters
33 \def\mg@digit{0}% decimal digits % 1 = oldstyle, 0 = capital
24
25
This is how we insert mathchars. The command has three arguments: class, fam
and slot postion and so it is always given as hexadecimal. This way of separating
things should make it easier to get this to work with XeTeX et al. which have
many more slot positions
\cs_set_protected:Nn \math_char:NNn {
\tex_mathchar:D \__int_eval:w " #1#2#3 \__int_eval_end:
36 }
34
35
Delimiters and radicals are similar except here we have both small and large
variant. Radicals have no class.
\cs_set_protected:Nn \math_delimiter:NNnNn {
\tex_delimiter:D \__int_eval:w " #1#2#3#4#5 \__int_eval_end:
39 }
40 \cs_set_protected:Nn \math_radical:NnNn {
41
\tex_radical:D \__int_eval:w " #1#2#3#4 \__int_eval_end:
42 }
43 \cs_set_protected:Nn \math_accent:NNnn {
44
\tex_mathaccent:D \__int_eval:w " #1 #2 #3 \__int_eval_end: {#4}
45 }
37
38
46
\let\sumlimits\displaylimits
\let\intlimits\nolimits
49 \let\namelimits\displaylimits
47
48
TEX defines eight types of atoms.
0. Ordinary
1. Operators
2. Binary
3. Relation
4. Open
5. Close
6. Punctuation
7. Inner
TEX defines eight math classes.
2