From 579e5d528ba0da1687dfa6e2aaf0d288d9a281d8 Mon Sep 17 00:00:00 2001 From: Luigi Scarso Date: Mon, 19 Apr 2021 14:58:13 +0000 Subject: Sync with upstream luatex. Accept par in math after halign and eqn when in supress mode; a patch for linkarea in rtl context. git-svn-id: svn://tug.org/texlive/trunk@58916 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/tex/texmath.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Build/source/texk/web2c/luatexdir/tex/texmath.c') diff --git a/Build/source/texk/web2c/luatexdir/tex/texmath.c b/Build/source/texk/web2c/luatexdir/tex/texmath.c index 4d2bf80ecd6..461a51578fb 100644 --- a/Build/source/texk/web2c/luatexdir/tex/texmath.c +++ b/Build/source/texk/web2c/luatexdir/tex/texmath.c @@ -2554,8 +2554,12 @@ void after_math(void) } if (mode == -m) { /*tex end of equation number */ + RECHECK: if (cur_cmd == math_shift_cmd) { check_second_math_shift(); + } else if (suppress_mathpar_error_par && cur_cmd == par_end_cmd) { + get_x_token(); + goto RECHECK; } else { check_display_math_end(); } @@ -2690,8 +2694,12 @@ void after_math(void) void finish_display_alignment(pointer p, pointer q, halfword saved_prevdepth) { do_assignments(); + RECHECK: if (cur_cmd == math_shift_cmd) { check_second_math_shift(); + } else if (suppress_mathpar_error_par && cur_cmd == par_end_cmd) { + get_x_token(); + goto RECHECK; } else { check_display_math_end(); } -- cgit v1.2.3