Closed FrankMittelbach closed 1 year ago
I had a quick look at this, but ran into quite a few issues:
dmath
cannot be patched with etoolbox
, which limits any solution to using \AddToHook
, which is only available in relatively new LaTeX releases (since October 2020) and most operating systems are slow to update their LaTeX releases (including my laptop). This means that any fix is going to have a limited user base for some time.\AddToHook
MWE, I couldn't get the simple \par
fix to work, instead I'd get pages of text disappearing for some reason.dmath
display missing a linenumber, but a multi-line dmath
display only added a line number to the last math line. And with dmath*
environments, all line numbers on the preceding paragraph were missing. So the simple \par
fix wouldn't be enough, even if I could get it working.Given all that and my limited time I'm afraid this is a wont-fix for now.
@kwwette understood, and I'm not surprised. I mainly reported it so that it is documented as an issue (and possibly an issue one has to live with it for the forseeable future. breqn is doing so much surgery to the standard processing that it is surprising that it more or less works at all.
Closing this issue as this is unlikely to be fixed. The issue tracker will still document the problem for posterity.
The lineno package, does now automatically supports amsmath environments, but of course there are others. For that there is the
linenomath
environment but in case ofdmath
from breqn that doesn't fully work: the last line in front of the display is not getting a line number. It can be fixed by ading a\par
but I doubt that this is the right solution.MWE: