On 2/2/2025 10:56 AM, Udicoudco wrote:
Currently LuaTeX ignores "null paragraphs" (see the manual at the end
of section 3.3.2 "How it works"), but it is actually doing so only for
paragraphs created with end_graf. enter_display_math ignores
paragraphs if they only contain local_par nodes, but not if they also
contain dir nodes. This is somewhat inconsistent, so it would be nice
if enter_display_math would discard paragraphs like end_graf.
I attached a patch. It is almost identical to the change in
https://gitlab.lisn.upsaclay.fr/texlive/luatex/-/commit/908e51adaad4b4048fed17d33aeb3cc7342e6fef?page=24#9b95deb9f9de4a293c6aecb24414a21f25c8a9e3_1883_1961
but it is even smaller, since enter_display_math already discard
paragraphs containing only local_par nodes.
Even though this change is less disruptive, there might be more
concerns about backwards compatibility today than three years ago, if
this is the case a new value to \matheqdirmode can be added.
This kind of behavior is not going to change .. adding / changing things
wrt luatex waS frozen for a reason so only real bugs get fixed. One can
use callbacks to handle whatever comes in the way (in addition to
wrapping solutions in macros which in the case of mixed direction
typesetting makes a lot of sense). Keep in mind that there a lot of
macro code around thta depends on the engine not changing.
(Of course one can have a local version of luatex that has whatever
patches one wants.)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-luatex mailing list -- dev-luatex@ntg.nl
To unsubscribe send an email to dev-luatex-le...@ntg.nl