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

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

Open Socob opened this issue 7 years ago • 1 comments

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

  • [x] Relevant for XeTeX
  • [ ] Relevant for LuaTeX
  • [x] Issue tracker has been searched for similar issues?
  • [ ] Links to <tex.stackexchange.com> discussion if appropriate

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

Socob avatar Jan 22 '18 22:01 Socob

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

mennucc avatar Jun 27 '22 18:06 mennucc