同一文档或公式内的不同字体/字形

同一文档或公式内的不同字体/字形

库仑定律方程是一个矢量方程,其标量内容如下:

F = qq'/r^2。

更准确地说,我必须将其真正呈现为一个矢量方程,这样字形“r”就呈现出两种变体(“正常”和“粗体”),不同于通常的 CM 字体字形“r”。

我在 (K)Ubuntu 20.4 (Focal Fossa) 中使用 TexLive 的 pdflatex,并且能够使用来自官方专有 mtpro2 包的字形,例如:

\documentclass[12pt]{article}

\usepackage{amsmath}

\usepackage[mtpscr]{mtpro2}
% The call to the variant \altr, in the ``normal'' and ``bold'' versions, 
% is carried out, respectively, by the comands: \mathscr{\altr} and
% mathbscr{\altr}, always in math mode.

\begin{document}
    
\begin{align}
\vec{\mathbold{F}} &= \dfrac{qq'}{\mathscr{\altr}^2}\,\hat{\mathbscr{\altr}} \\
&= \dfrac{qq'}{\mathscr{\altr}^3}\,\vec{\mathbscr{\altr}} \\
&= \dfrac{qq'}{|\mathbold{r} - \mathbold{r}'|^3}\,(\mathbold{r}-\mathbold{r}')\,,
\end{align}
where, of course,
\begin{equation}
\mathbscr{\altr} := \mathbold{r} - \mathbold{r}'\,.
\end{equation}

$\mathbold{q}, q$ as opposed to q

\end{document}

渲染效果很好。我可以接受这一点...

不过,我想对它进行一些调整:如果可能的话,我真正想要的是在对齐环境中使用通常的 Computer Modern 字体中的字形“q”,而不是来自 mtpro2 包中的字形,例如:

\documentclass[12pt]{article}

\usepackage{amsmath}

%\usepackage[mtpscr]{mtpro2}
% The call to the variant \altr, in the ``normal'' and ``bold'' versions, 
% is carried out, respectively, by the comands: \mathscr{\altr} and
% mathbscr{\altr}, always in math mode.

\begin{document}
    

$q$ as opposed to q

\end{document}

也就是说:在同一个公式或等式中,是否可以使用不同字体的字形?

谢谢

附言:我尝试过添加一些输出 PDF 图像的方法,但没有成功。任何与此相关的帮助也欢迎。

相关内容