local_par nodes created for paragraphs before a display
has the wrong subtype (penalty_par_code instead of math_par_code).
This regression was introduced in b70a9504 
(https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/commit/b70a9504000e702bb29a3c383f8773f2c0077b47)
where tail_append(make_local_par_node(4)); was accidentally replaced by
tail_append(make_local_par_node(penalty_par_code));

I attached a fix.

thanks,
Udi
diff --git a/source/texk/web2c/luatexdir/tex/texmath.c b/source/texk/web2c/luatexdir/tex/texmath.c
index 4d164138e..ad241dbac 100644
--- a/source/texk/web2c/luatexdir/tex/texmath.c
+++ b/source/texk/web2c/luatexdir/tex/texmath.c
@@ -2353,7 +2353,7 @@ static void resume_after_display(void)
     mode = hmode;
     space_factor_par = 1000;
     /*tex This needs to be intercepted in the display math start! */
-    tail_append(make_local_par_node(penalty_par_code));
+    tail_append(make_local_par_node(math_par_code));
     get_x_token();
     if (cur_cmd != spacer_cmd)
         back_input();
_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to