unicode-math
unicode-math copied to clipboard
Incorrect spacing of \sqrt[n]{x} with different text font sizes (XeTeX only)
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
:
Output with unicode-math
:
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
where the issue is instead that the n
touches the square root