diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-10-14 10:56:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-10-14 10:56:48 +0200 |
commit | 0aa93a6d31a45d8df2d8516567b98967ce04f183 (patch) | |
tree | 7e1942650512f1994ca56c1eba245973240d4b71 /source/luametatex/source/tex/texmathcodes.c | |
parent | c161b7d6fe142231346cc1844e6e27c0ab7718c1 (diff) | |
download | context-0aa93a6d31a45d8df2d8516567b98967ce04f183.tar.gz |
2022-10-14 10:15:00
Diffstat (limited to 'source/luametatex/source/tex/texmathcodes.c')
-rw-r--r-- | source/luametatex/source/tex/texmathcodes.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/luametatex/source/tex/texmathcodes.c b/source/luametatex/source/tex/texmathcodes.c index 7d80eac19..545013264 100644 --- a/source/luametatex/source/tex/texmathcodes.c +++ b/source/luametatex/source/tex/texmathcodes.c @@ -91,7 +91,7 @@ mathcodeval tex_mathchar_from_spec(int value) return mval; } -void tex_show_mathcode_value(mathcodeval mval, int extcode) +void tex_show_mathcode_value(mathcodeval mval, int extcode) /* todo: format option */ { tex_print_char('"'); if (extcode == tex_mathcode) { @@ -110,9 +110,7 @@ void tex_show_mathcode_value(mathcodeval mval, int extcode) static void tex_aux_show_mathcode(int n) { mathcodeval mval = tex_get_math_code(n); - tex_print_str_esc("Umathcode"); - tex_print_int(n); - tex_print_char('='); + tex_print_format("%eUmathcode%i=", n); tex_show_mathcode_value(mval, umath_mathcode); } @@ -207,9 +205,7 @@ static void tex_aux_undump_mathcode(dumpstream f) static void tex_aux_show_delcode(int n) { delcodeval dval = tex_get_del_code(n); - tex_print_str_esc("Udelcode"); - tex_print_int(n); - tex_print_char('='); + tex_print_format("%eUdelcode=", n); if (tex_has_del_code(dval)) { tex_print_char('"'); print_hex_digit_two(dval.small.family_value); |