使用 newtxmath 的醜陋根源:替代方案

使用 newtxmath 的醜陋根源:替代方案

這段時間我正在為學生們寫幾篇關於疫情期間數學分析和物理的筆記,並附上視訊課遠距教學或者遠距教學。我注意到使用立方根或索引n資料包,它們非常接近且醜陋。

您建議在數學模式下將哪些不同的軟體包(包含在發行版中)或某些替代方案與 Times New Roman: .....andMikTeX的克隆關聯起來?我想打包。newtxtextnewtxmathmathastext

\documentclass[12pt]{article}
\usepackage{newtxtext,newtxmath}
\begin{document}
$\sqrt[3]{2}$
\end{document}

在此輸入影像描述

答案1

假設您想堅持使用newtxtextnewtxmath字體包,我將使用\uproot\leftroot巨集(最初由包提供amsmath,但也包含在其中newtxmath)來微調第 n 個根符號的位置。

\uproot和的參數沒有單一的「最佳」值\leftroot,因為「良好」定位將取決於第 n 個根的值。以下螢幕截圖和程式碼考慮了情況3n

在此輸入影像描述

\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

您可以繼續使用newtxtextnewtxmath,但修改\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 根。

相關內容