數學符號水平對齊

數學符號水平對齊

我現在用於TeX Gyre Pagella文字和TeX Gyre Pagella Math數學,帶有unicode-math包。但與附近的字母或數字相比,數學符號的位置似乎不正確。

例如這裡的加號和減號: \pm 符號未對齊

這是一個 MWE

% !TeX program = xelatex
\documentclass[12pt,a4paper,twoside]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{leftidx}
\usepackage[math-style=TeX]{unicode-math}
\setmainfont[BoldFont=TeX Gyre Pagella Bold,ItalicFont=TeX Gyre Pagella Italic, BoldItalicFont=TeX Gyre Pagella Bold Italic]{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}
\begin{document}
\begin{equation}
r=-1\pm i
\end{equation}
\end{document}

還有一個帖子說不要使用unicode-math.但到目前為止我找不到沒有這個包的其他方法。那麼有沒有基於這個MWE的解決方案呢?如果沒有,也請提供一個可能的解決方案,不會改變我的字體。

相關內容