Closed u-fischer closed 3 years ago
would that work if a new breqn is loaded into an older release? (or one that has been rolled back?)
@FrankMittelbach if it works at all it should work everywhere. It doesn't depend on the hook management. Basically it delays the setting of the new flexisym mathcodes for - and = to a point after amsmath has stored them in \std@minus. The main question is if the flexisym mathcodes are needed somewhere in the preamble, then it would fail (I didn't see anything obvious, and the tests passed).
flexisym packages \@begindocumenthook to remove code from amsmath. This will break with the next latex due to the changes in the hook management.
will error with
The pull request tries to repair this
\newmcodes@
to the current definition in amsopnI hope this is the right plan.
I didn't try to add some rule for the hook order: According to the docu, flexisym has to be loaded after amsmath. I also didn't try to check or ensure compability with unicode-math as imho breqn can't be used with it anyway.