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

Long arrows with hooks #573

Open kauesena opened 2 years ago

kauesena commented 2 years ago

As far as I checked, Unicode does not define long variants of ↪ ↩, but it would be nice to have versions of seach glyphs to match \longrightarrow' and\long maps to'. Are there non unicode characters defined by unicode-math? image

stone-zeng commented 2 years ago

This can be done as long as the math font has defined the substitution rules for long (hook/mapsto/etc) arrows. See https://tex.stackexchange.com/a/423895. If the font contains pre-designed glyphs, you may directly use them as in https://tex.stackexchange.com/q/420167.

kauesena commented 2 years ago

@stone-zeng Do you know of a way to use this feature of extending arrows for commuative diagrams? The tikz-cd option to use the math font style usually does not produce good results for on screen reading.