混合一些数学字体

混合一些数学字体

我想要Latin Modern Math 字体中的符号\int或以及 Latin Modern Math 中的所有希腊字母 等,但想要 EB Garamond 中的所有数字和字母。我该怎么做?\sum\nabla\alpha \beta \psi

\documentclass{article}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{unicode-math}

\setmathfont[range=\mathup]  {EB Garamond}
\setmathfont[range=\mathbfup]{EB Garamond} 
\setmathfont[range=\mathbfit]{EB Garamond}
\setmathfont[range=\mathit]  {EB Garamond}

\usepackage{mathptmx}

\setmainfont{EB Garamond}

\begin{document}
\[ \int f(\alpha+x)=\sum\beta \]
Some text\dots
\begin{equation}
\begin{split}
\frac{\partial^2 \nabla}{\partial \nabla^2}&=x^2 + yimc^2=z^2 \\
                                           &=\mathrm{x^2 + y^2 = z^2} \\
                                           &=\mathbf{x^2 + y^2 = z^2}
\end{split}
\end{equation}

\begin{equation}
i\hbar \frac{\partial \psi }{\partial t}=\frac{\hbar c}{i}\left(\alpha _1\frac{\partial \psi }{\partial x^1}+\alpha _2\frac{\partial \Psi }{\partial x^2}+\alpha _3\frac{\partial \psi }{\partial x^3}\right)+\alpha _4mc^2\psi
\end{equation}

\end{document}

\partial这个例子的形状

\documentclass{article}

\usepackage[T1]{fontenc}

\usepackage{txfonts}

\begin{document}

\begin{equation}
\frac{\partial}{\partial}
\end{equation}

\end{document}

答案1

您必须仔细选择所需的范围和符号。以下是示例:

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}

\setmathfont[range=\mathup]  {EB Garamond}
\setmathfont[range=\mathbfup]{EB Garamond} 
\setmathfont[range=\mathbfit]{EB Garamond}
\setmathfont[range=\mathit]  {EB Garamond}
\setmathfont[range={\partial,\nabla,\hslash}]{TG Termes Math}
\setmathfont[range=\mathit/{greek,Greek}]{Latin Modern Math}

\setmainfont{EB Garamond}

\begin{document}
\[ \int f(\alpha+x)=\sum\beta \]
Some text\dots
\begin{equation}
\begin{split}
\frac{\partial^2 \nabla}{\partial \nabla^2}&=x^2 + yimc^2=z^2 \\
                                           &=\mathrm{x^2 + y^2 = z^2} \\
                                           &=\mathbf{x^2 + y^2 = z^2}
\end{split}
\end{equation}

\begin{equation}
i\hbar \frac{\partial \psi }{\partial t}=\frac{\hbar c}{i}\left(\alpha _1\frac{\partial \psi }{\partial x^1}+\alpha _2\frac{\partial \Psi }{\partial x^2}+\alpha _3\frac{\partial \psi }{\partial x^3}\right)+\alpha _4mc^2\psi
\end{equation}

\end{document}

在此处输入图片描述

相关内容