summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texmath.c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-04-15 01:06:07 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-04-15 01:06:07 +0200
commit657457ef4a08c1f000f272e00f654f4064cc37bd (patch)
tree2f1f9a6a68aa8bc0679ff1c912e9b2476960e667 /source/luametatex/source/tex/texmath.c
parent3b909ab613140e7a9c824c434b642f0578473a6d (diff)
downloadcontext-657457ef4a08c1f000f272e00f654f4064cc37bd.tar.gz
2023-04-15 00:22:00
Diffstat (limited to 'source/luametatex/source/tex/texmath.c')
-rw-r--r--source/luametatex/source/tex/texmath.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/source/luametatex/source/tex/texmath.c b/source/luametatex/source/tex/texmath.c
index dff87b5cc..f4d962d68 100644
--- a/source/luametatex/source/tex/texmath.c
+++ b/source/luametatex/source/tex/texmath.c
@@ -2952,8 +2952,25 @@ void tex_run_math_accent(void)
}
break;
case 's': case 'S':
- if (tex_scan_mandate_keyword("source", 1)) {
- noad_source(accent) = tex_scan_int(0, NULL);
+ switch (tex_scan_character("othOTH", 0, 0, 0)) {
+ case 'o': case 'O':
+ if (tex_scan_mandate_keyword("source", 2)) {
+ noad_source(accent) = tex_scan_int(0, NULL);
+ }
+ break;
+ case 't': case 'T':
+ if (tex_scan_mandate_keyword("stretch", 2)) {
+ noad_options(accent) |= noad_option_stretch;
+ }
+ break;
+ case 'h': case 'H':
+ if (tex_scan_mandate_keyword("shrink", 2)) {
+ noad_options(accent) |= noad_option_shrink;
+ }
+ break;
+ default:
+ tex_aux_show_keyword_error("source|stretch|shrink");
+ goto DONE;
}
break;
case 'f': case 'F':