我想知道是否可以修改以下 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))。
是否可以将符号\partial
或改为\vardelta
符号 ∂ (即用\DeclaremathOperator
或\DeclareMathSymbol
),这样很好?
之后,是否也有可能,出于同样的原因,有一个不同的垂直积分符号对于所有类型的积分,总是和mt2pro[lite]
(Times
等式 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}