latex3 / unicode-math

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

problems with commands let to a char #498

Open u-fischer opened 5 years ago

u-fischer commented 5 years ago

Description

hyperref can't handle in bookmarks commands which have been \let to a char: https://github.com/ho-tex/hyperref/issues/63. After looking quite some time in the hyperref code I don't see a way out which works also with xetex as one would need an expandable test for such commands.

unicode-math creates quite a lot of such commands. Is this necessary or could the definitions be changed to the equivalent of \edef\euro{\string€} instead?

wspr commented 5 years ago

Thanks for looking into it. I suspect a redefinition in UM would be fine. (Might have some minor knock-on effects in other code in the package.)

I’ll try to make this happen over the Christmas break.