使用Times修改mt2pro[lite]的字符

使用Times修改mt2pro[lite]的字符

我想知道是否可以修改以下 MWE,僅添加幾個字元。

\documentclass[12pt,fleqn]{book} 
\usepackage[italian]{babel}
\usepackage{times} % Use the Times font for headings
\usepackage[lite]{mtpro2}% 
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\def\xyz{(x,y,z)}
\begin{document}


\begin{equation}
\frac{\partial \varphi \xyz}{\partial x}\hat{\textbf x}+\frac{\partial \varphi  \xyz}{\partial y}\hat{\textbf y}+\frac{\partial \varphi \xyz}{\partial z}\hat{\textbf z}.
\end{equation}

\begin{equation}\frac{\vardelta \varphi \xyz}{\vardelta x}\hat{\textbf x}+\frac{\vardelta \varphi  \xyz}{\vardelta y}\hat{\textbf y}+\frac{\vardelta \varphi \xyz}{\vardelta z}\hat{\textbf z}.\end{equation}

\begin{equation}
\int_{t_0}^{t_1} v\,dt
\end{equation}
\end{document}

特別是,我不喜歡符號\partial(eq. 1) 或\vardelta(eq. 2),但使用 Times 字體時,正好有我喜歡的部分符號 (∂)(Unicode cod. 2202)(參見公式 (eq. .1)和(eq.2))。

在此輸入影像描述

是否可以使用非常好的符號 ∂(即使用或)來變更符號\partialor ?\vardelta\DeclaremathOperator\DeclareMathSymbol

之後,是否也有可能,出於同樣的原因,有不同的垂直積分符號對於所有類型的積分總是帶有mt2pro[lite]and Times(eq. 3) 並添加張量符號(特殊字元粗體)?您可以看到第二張圖片。

在此輸入影像描述

我希望得到你的幫助。此致。

答案1

您可以使用 NewTX 的直立積分和部分符號:

\documentclass[12pt,fleqn]{book} 
%----------------------------------------------------------------------------------------
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[italian]{babel}
\usepackage{amsmath}

\usepackage{times} % Use the Times font for headings
\usepackage[lite]{mtpro2}
\usepackage{microtype} % Slightly tweak font spacing for aesthetics

\DeclareFontEncoding{LMX}{}{}
\DeclareFontSubstitution{LMX}{ntxexx}{m}{n}
\DeclareSymbolFont{largesymbolsTX}{LMX}{ntxexx}{m}{n}
\SetSymbolFont{largesymbolsTX}{bold}{LMX}{ntxexx}{b}{n}
\DeclareSymbolFont{largesymbolsTXA}{U}{ntxexa}{m}{n}
\SetSymbolFont{largesymbolsTXA}{bold}{U}{ntxexa}{b}{n}
\DeclareFontSubstitution{U}{ntxexa}{m}{n}

\DeclareMathSymbol{\intop}                {\mathop}{largesymbolsTX}{"B4}
\DeclareMathSymbol{\iintop}               {\mathop}{largesymbolsTX}{"B5}
\DeclareMathSymbol{\iiintop}              {\mathop}{largesymbolsTX}{"B6}
\DeclareMathSymbol{\ointop}               {\mathop}{largesymbolsTX}{"B7}
\DeclareMathSymbol{\oiintop}              {\mathop}{largesymbolsTX}{"B8}
\DeclareMathSymbol{\oiiintop}             {\mathop}{largesymbolsTXA}{"08}
\DeclareMathSymbol{\varointclockwiseop}   {\mathop}{largesymbolsTXA}{"0A}
\DeclareMathSymbol{\ointctrclockwiseop}   {\mathop}{largesymbolsTXA}{"0C}
\DeclareMathSymbol{\sumintop}             {\mathop}{largesymbolsTXA}{"0E}
\DeclareMathSymbol{\iiiintop}             {\mathop}{largesymbolsTXA}{"21}
\DeclareMathSymbol{\fintop}               {\mathop}{largesymbolsTXA}{"23}
\DeclareMathSymbol{\sqintop}              {\mathop}{largesymbolsTXA}{"25}

\DeclareFontFamily{U}{nxlmi}{}
\DeclareFontSubstitution{U}{nxlmi}{m}{it}
\DeclareFontShape{U}{nxlmi}{m}{it}{
  <-6.3>    nxlmi05
  <6.3-8.6> nxlmi07
  <8.6->    nxlmi0
}{}

\DeclareFontShape{U}{nxlmi}{b}{it}{
  <-6.3>    nxlbmi05
  <6.3-8.6> nxlbmi07
  <8.6->    nxlbmi0
}{}

\renewcommand{\partial}{{\text{\usefont{U}{nxlmi}{m}{it}\symbol{64}}\mspace{1mu}}}


\newcommand\xyz{(x,y,z)}

\begin{document}

\begin{equation}
\frac{\partial \varphi \xyz}{\partial x}\hat{\textbf{x}}+
\frac{\partial \varphi  \xyz}{\partial y}\hat{\textbf{y}}+
\frac{\partial \varphi \xyz}{\partial z}\hat{\textbf{z}}.
\end{equation}

\begin{equation}
\int_{t_0}^{t_1} v\,dt
\end{equation}

\end{document}

在此輸入影像描述

答案2

你可以像這樣得到 \partial (我假設你想要 cm-fonts 的法線)。我不知道你想要哪個積分。但如果您添加一個顯示它的範例,那麼添加它也應該很容易。

\documentclass[12pt,fleqn]{book}

\DeclareSymbolFont{cmletters}     {OML}{cmm} {m}{it}
\DeclareMathSymbol{\partial}{\mathord}{cmletters}{"40}
%----------------------------------------------------------------------------------------
\usepackage[italian]{babel}
\usepackage{times} % Use the Times font for headings
\usepackage[lite]{mtpro2}%
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\def\xyz{(x,y,z)}
\begin{document}


\begin{equation}
\frac{\partial \varphi \xyz}{\partial x}\hat{\textbf x}+\frac{\partial \varphi  \xyz}{\partial y}\hat{\textbf y}+\frac{\partial \varphi \xyz}{\partial z}\hat{\textbf z}.
\end{equation}

\begin{equation}\frac{\vardelta \varphi \xyz}{\vardelta x}\hat{\textbf x}+\frac{\vardelta \varphi  \xyz}{\vardelta y}\hat{\textbf y}+\frac{\vardelta \varphi \xyz}{\vardelta z}\hat{\textbf z}.\end{equation}

\begin{equation}
\int_{t_0}^{t_1} v\,dt
\end{equation}
\end{document}

在此輸入影像描述

相關內容