Open eg9 opened 6 years ago
Thanks Enrico — that's a good suggestion. In my "original design" of the package I didn't anticipate new symbols in PUA, etc., but that was clearly short-sighted.
As suggested in tex.sx chat, I think the most viable approach first up is to extend 2e — I’ll write something and suggest it to Frank. (In fact, I may already have something in umath2e that never got finished…)
Description
There is no public interface for defining new math symbols, maybe taken from the PUA of some font.
Check/indicate
Minimal example demonstrating the issue
Further details
unicode-math
has\__um_set_mathchar:NNnn
that could fill the bill, weren't it private. I guess that redefining\DeclareSymbolFont
likeshould also work for standard fonts. Indeed, this appears to work:
Well, there is a small problem: the legacy
\DeclareMathSymbol
command also accepts a number in the second argument, so possibly\__um_set_mathchar:NNnn
should be\__um_set_mathchar:Nnnn
, with a test for the first argument to be a single control sequence.