latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
241 stars 28 forks source link

unicode-math-table overwrites everything without warning #134

Open phst opened 13 years ago

phst commented 13 years ago

At the moment the math table is processed \AtBeginDocument and uses the primitives \let and \def to create/overwrite mathchardef tokens. As it contains lots of generic names, perhaps you can think about a method to make it play more nicely with others. I think that all mathchardefs/macros from fontmath.ltx/amsmath/amssymb/mathtools can safely be overwritten (after all, that's one of the puropses of unicode-math), but other "unexpected" names should at least cause warnings when overwritten.

wspr commented 13 years ago

That's probably a sensible idea (with perhaps an option not to override pre-existing names). However, it requires a big list of "allowed" redefinitions. If I had that lying around then I would implement this immediately; as it stands I'll plan to do it some time in the future.

Thanks for the suggestion.

phst commented 13 years ago

I've created a small script to auto-generate such a list (see http://github.com/phst/unimath-extras), maybe you find this helpful as a first approach.