breqn
breqn copied to clipboard
flexisym problem
flexisym tries to patch the \@begindocumenthook by using some commands as marker:
\@ifpackageloaded{amsmath}{%
\begingroup\show\@begindocumenthook
\long\def\next#1\mathchardef\std@minus\mathcode`\-\relax
\mathchardef\std@equal\mathcode`\=\relax#2\flexi@stop{%
\toks@{#1#2}%
\xdef\@begindocumenthook{\the\toks@}%
}%
\expandafter\next\@begindocumenthook\flexi@stop
\endgroup
}{}
This breaks now if a user uses it together with unicode-math:
https://tex.stackexchange.com/questions/514086/error-in-breqn-flexisym-sty-when-using-breqn-with-libertinus-font
Ah. I should have caught that, sorry. I wonder if the patching needed here and elsewhere for amsmath could instead by taken up by amsmath itself... (for some reason I thought David tried to do that at some stage, but I guess not).
I'm certainly keen to incorporate amsmath patches from unicode-math and lualatextex-math.sty into amsmath, not so sure about breqn/flexisym which seem rather more experimental...
What should I do if I encounter this error?