breqn icon indicating copy to clipboard operation
breqn copied to clipboard

flexisym problem

Open u-fischer opened this issue 6 years ago • 3 comments
trafficstars

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

u-fischer avatar Oct 29 '19 13:10 u-fischer

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).

wspr avatar Oct 29 '19 14:10 wspr

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...

davidcarlisle avatar Oct 29 '19 17:10 davidcarlisle

What should I do if I encounter this error?

intractabilis avatar Sep 22 '20 00:09 intractabilis