When using unicode-math and arrow captions (most prominently with extarrows), the vertical spacing between the arrows and the text increases a lot:




   \[ \xLongrightarrow{\text{This is a test}} \]

Without unicode-math the result is

small spacing;

however, with unicode-math, the result becomes

enter image description here.

This holds true for all the extensible arrows; however, the spacing in \xlongequals remains fine.

By default, these examples all use Latin Modern, so the extension character fits to the arrow head unlike in some other fonts. Is this perhaps a unicode-math bug or is the position information in the OTF fonts wrong, which causes such a misalign? (Basically, the problem is also there for \xrightarrow, so it does not seem to be a problem of extarrows in particular.)

The result is the same both in LuaLaTex and XeLaTeX.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.