unicode-math icon indicating copy to clipboard operation
unicode-math copied to clipboard

Bad size of \overrightarrow when using LuaLaTeX

Open Joern-W opened this issue 10 months ago • 1 comments

Description

The size of \overrightarrow when using LuaLaTeX is wrong for some letters. In XeLaTeX it appears to be fine.

Add info or delete as appropriate:

  • Relevant for LuaTeX
  • Issue tracker has been searched for similar issues? Yes

Minimal example demonstrating the issue

\documentclass{scrartcl}
\usepackage{unicode-math}
\begin{document}
	\[\overrightarrow{PQ}=\overrightarrow{Q}-\overrightarrow{P}\]
\end{document}

Result in LuaLatex: Image

Result in XeLatex: Image

Joern-W avatar Mar 24 '25 15:03 Joern-W

This is a LuaTeX issue related to how LuaTeX applies italic correction differently. LuaTeX calculates the accent size using the glyph bounds without adding the italic correction, while XeTeX adds it.

khaledhosny avatar Jun 25 '25 16:06 khaledhosny