
答案1
假設您想堅持使用newtxtext
和newtxmath
字體包,我將使用\uproot
和\leftroot
巨集(最初由包提供amsmath
,但也包含在其中newtxmath
)來微調第 n 個根符號的位置。
\uproot
和的參數沒有單一的「最佳」值\leftroot
,因為「良好」定位將取決於第 n 個根的值。以下螢幕截圖和程式碼考慮了情況3
和n
。
\documentclass[12pt]{article}
\usepackage{newtxtext,newtxmath}
\begin{document}
$\sqrt[3]{2} \quad \sqrt[\uproot{2}3]{2} \quad \sqrt[\leftroot{1}\uproot{2}3]{2}$
$\sqrt[n]{2} \quad \sqrt[\uproot{3}n]{2} \quad \sqrt[\leftroot{1}\uproot{3}n]{2}$
\end{document}
答案2
您可以繼續使用newtxtext
和newtxmath
,但修改\sqrt
命令以稍微移動根的度數。
\documentclass[11pt]{article}
\usepackage{newtxtext}
\usepackage{newtxmath}
\let\oldsqrt\sqrt
\renewcommand{\sqrt}[2][]{%
\oldsqrt[\raisebox{1pt}{$\scriptscriptstyle #1$}]{#2}%
}
\begin{document}
\begin{tabular}{ll}
Regular root: & \( \oldsqrt[3]{2}, \oldsqrt[k]{2}, \oldsqrt[n]{2} \) \\
With \verb|\raisebox{1pt}|: & \( \sqrt[3]{2}, \sqrt[k]{2}, \sqrt[n]{2} \)
\end{tabular}
\end{document}
我認為它已經看起來更好了,尤其是對於k-th 和n-th 根。