- \cs_gset:Nn \um_define_math_chars: {
- \group_begin:
- \char_set_catcode_math_superscript:N \^
- \cs_set:Npn \_um_sym:nnn ##1##2##3 {
- \bool_if:nTF { \cs_if_eq_p:NN ##3 \mathaccent ||
- \cs_if_eq_p:NN ##3 \mathopen ||
- \cs_if_eq_p:NN ##3 \mathclose ||
- \cs_if_eq_p:NN ##3 \mathover ||
- \cs_if_eq_p:NN ##3 \mathunder ||
- \cs_if_eq_p:NN ##3 \mathbotaccent } {
- \ltjsetmathletter{ ##1 }
- } {
- \um_cs_set_eq_active_char:Nw ##2 = ##1 \q_nil \ignorespaces
- }
- }
- \char_set_catcode_other:N \#
- \um_input_math_symbol_table:
- \group_end:
- }