latex3 / unicode-math

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

Incorrect spacing of \sqrt[n]{x} with different text font sizes (XeTeX only) #439

Open Socob opened 6 years ago

Socob commented 6 years ago

Description

When unicode-math v0.8k is loaded, the spacing of the superscript in the root \sqrt[n]{x} changes dramatically when a larger font size is chosen, resulting in very unpleasant output. This does not occur when unicode-math is not loaded. Only XeTeX seems to be affected.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
    \Huge
    \[
        \sqrt[n]{x} \sqrt{x}
    \]
\end{document}

Further details

Output without unicode-math: test-without-um

Output with unicode-math: test-with-um

mennucc commented 2 years ago

hi

I am using texlive version 2021.20220204-1 as packaged in Ubuntu, and XeTeX , and the following

\documentclass{article}
\usepackage[paperwidth=1in,paperheight=1in,top=1pt]{geometry}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\begin{document}
\Huge
\noindent
\(\sqrt[n]{x}\)
\end{document}

produces

immagine

where the issue is instead that the n touches the square root