现代工具链中的 Euler

现代工具链中的 Euler
% What to do here 

\begin{document} 

This is good integration. 

$$\displaystyle \int x dx = \frac{x^2}{2}$$

\end{document} 

我不太了解 LaTeX,所以我需要一些帮助。

我希望文本以普通字体显示。但数学以AMSEuler字体显示。

我不想对文档内部进行任何更改。

答案1

只需将\usepackage{euler}或添加\usepackage{eulervm}到文档的序言中即可:

\documentclass{article}
\usepackage{euler}
\begin{document} 
This is good integration. 
\[
\int x \,dx = \frac{x^2}{2}+c
\]
\end{document} 

在此处输入图片描述

eulervm软件包包含 Zapf 对原始 Euler 字体的许多修订。如果您使用该eulervm软件包,您可能希望使用选项euler-digits和加载它euler-hat-accent,即

\usepackage[euler-digits,euler-hat-accent]{eulervm}

顺便说一句,使用$$ ... $$来生成显示数学方程式已被严重弃用;最好使用\[\],就像我在上面的例子中所做的那样。有关此主题的更多信息,请参阅帖子为什么\[ ... \]最好$$$$、、\[align、equation 和 displaymath之间有什么区别?


附录:没有文本字体这与 完美匹配。如果您在序言中AMS Euler提供指令,您将获得文本字体系列。和在教科书中一起使用(我认为非常成功)\usepackage{concrete}Concrete RomanConcrete RomanAMS Euler具体数学,第一版 1988 年,第二版 1994 年,作者:Ronald Graham、Donald Knuth 和 Oren Patashnik。但是,请注意,这Concrete Roman是一种“光栅字体”,因此在屏幕上看起来不太好。如果以 600 dpi 生成字体,则打印时看起来会很好;只是屏幕上的外观可能会令人失望。已知可以很好地与 配合使用的其他文本字体AMS EulerPalatinoAldusMelior;也许并非巧合,这三种字体都是由赫尔曼·察普夫,字体设计者AMS Euler。要将其设置Palatino为文档的文本字体,您可以例如发出命令\usepackage{newpxtext}

答案2

现代工具链中的 Euler

欧拉数学

自 2024 年起,CTAN 上提供了 Euler 的 OpenType 版本,即 Euler Math。它是 Khaled Hosny 和 Hermann Zapf 的 Neo Euler 的一个分支。这是在现代 TeX 引擎上使用 Euler 的最简单方法,但我在下面保留了我的原始答案。

使用 Euler Math 的 MWE 以 Zapf 的 TeX Gyre Pagella 克隆版作为文本字体:

\documentclass{article}
\pagestyle{empty}

\usepackage{amsmath}
\DeclareMathOperator\Res{Res}
\newcommand*\diff{\mathop{}\!\mathrm{d}}
\newcommand\upi{\symup{i}}

\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

%%%
% Set up you text and math fonts
%%%

\usepackage[math-style=upright]{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{Euler Math}[Scale=MatchLowercase]

\begin{document}

\begin{theorem}[Residue theorem]
  Let $f$ be analytic in the region $G$ except for the isolated
  singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
  rectifiable curve in $G$ which does not pass through any of the
  points $a_k$ and if $\gamma\approx 0$ in $G$, then
  \[
    \frac{1}{2 \uppi \upi} \int\limits_\gamma f\Bigl(x^{\mathbf{N}\in\mathbb{C}^{N\times 10}}\Bigr)
    = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.
  \]
\end{theorem}

\begin{theorem}[Maximum modulus]
  Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a
  continuous function on $G^-$ which is analytic in $G$. Then
  \[
    \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.
  \]
\end{theorem}

First some large operators both in text:
$\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$
and
$\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\
and also on display
\[
  \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z
  \leq
  \oint_{\partial Q} f'\Biggl(\max\Biggl\{
  \frac{\Vert w\Vert}{\vert w^2+x^2\vert};
  \frac{\Vert z\Vert}{\vert y^2+z^2\vert};
  \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}
  \Biggr\}\Biggr)\,.
\]

\end{document}

欧拉数学与 Pagella 示例

与这些相匹配的其他字体是 Hermann Zapf 的 Optima(无衬线字体)和 Raph Levien 的 Inconsolata(等宽字体)。

DEK 最初委托 AMS Euler 和 Concrete 共同撰写他的书具体数学:计算机科学的基础。为了复制这种经典外观,您可以使用 CMU Concrete 作为匹配的文本字体。

\documentclass{article}
\pagestyle{empty}

\usepackage{amsmath}
\DeclareMathOperator\Res{Res}
\newcommand*\diff{\mathop{}\!\mathrm{d}}
\newcommand\upi{\symup{i}}

\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

%%%
% Set up you text and math fonts
%%%

\usepackage[math-style=upright]{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{Euler Math}[Scale=MatchLowercase]

\begin{document}

\begin{theorem}[Residue theorem]
  Let $f$ be analytic in the region $G$ except for the isolated
  singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
  rectifiable curve in $G$ which does not pass through any of the
  points $a_k$ and if $\gamma\approx 0$ in $G$, then
  \[
    \frac{1}{2 \uppi \upi} \int\limits_\gamma f\Bigl(x^{\mathbf{N}\in\mathbb{C}^{N\times 10}}\Bigr)
    = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.
  \]
\end{theorem}

\begin{theorem}[Maximum modulus]
  Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a
  continuous function on $G^-$ which is analytic in $G$. Then
  \[
    \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.
  \]
\end{theorem}

First some large operators both in text:
$\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$
and
$\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\
and also on display
\[
  \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z
  \leq
  \oint_{\partial Q} f'\Biggl(\max\Biggl\{
  \frac{\Vert w\Vert}{\vert w^2+x^2\vert};
  \frac{\Vert z\Vert}{\vert y^2+z^2\vert};
  \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}
  \Biggr\}\Biggr)\,.
\]

\end{document}

欧拉数学与 CMU Concrete 示例

需要指出的是,Concrete 最初没有粗体字重,因此 DEK 最初使用 Computer Modern Sans Semibold Condensed 作为标题。

新欧拉

Euler 还有一个 OpenType 版本,新欧拉,作者 Khaled Hosny。然而,它在 2011 年被废弃了。如果你从 GitHub 页面下载 Neo Euler,它可以与 LuaLaTeX 或 XeLaTeX 一起使用,但也有一些问题。

这篇文章很长,因为我给出了许多复杂的例子,你可以把它们剪切粘贴到你的序言中。它们应该几乎涵盖了我听过任何人推荐的所有用例。

经典外观

Neo Euler 与 AMS Euler 一样,只包含表示直立数学的符号。为了获得经典的外观eulereulervm包的经典外观,或书籍具体数学,您需要设置unicode-math选项math-style=upright

然后,您只需加载 Neo Euler 提供的字形,其余部分则使用后备数学字体。在这里,我使用 Khaled Hosny 较新的数学字体 Libertinus Math。它显示出一些来自欧拉的影响,尤其是在其积分方面。最后,确保将希腊字母加载为直立数学字母表,因为unicode-math希望小写希腊字母倾斜。它将euler软件包中的其他字母表(包括 Euler Script)设置为\mathcal\mathscr,但并非所有字母表都unicode-math支持。旧文档仍应使用此序言进行编译。

对于文本字体,这将设置 Concrete 的 Computer Modern Unicode 版本。(请注意,CMU Concrete Bold 字体是最近添加的。DEK 没有为 Concrete Roman 创建粗体,而是在具体数学而是。beton文档传统上推荐使用 Computer Modern Sans Serif Demibold Condensed。今天,您可以尝试使用 Gill Sans/Gillius ADF,看看是否喜欢它。)

\documentclass{article}
\pagestyle{empty}

\usepackage{amsmath}
\DeclareMathOperator\Res{Res}
\newcommand*\diff{\mathop{}\!\mathup{d}}

\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

\usepackage{unicode-math}

%%%
% Set up you text and math fonts
%%%

\unimathsetup{math-style=upright}
\setmainfont{CMU Concrete}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Libertinus Math}
\setmathfont[range={"0000-"0001,"0020-"007E,
                    "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7,
                    "00D7,"00F7,
                    "0131,
                    "0237,"02C6-"02C7,"02D8-"02DA,"02DC,
                    "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338,
                    "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB,
                    "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5,
                    "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044,
                    "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF,
                    "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128,
                    "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199,
                    "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5,
                    "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E,
                    "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D,
                    "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E,
                    "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5,
                    "22DC-"22DD,"22EF,"22F0-"22F1,
                    "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE,
                    "23DC-"23DF,
                    "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A,
                    "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6,
                    "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505,
                    "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537,
                    "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD,
                    "1D6DF,"1D6E1,"1D7CE-"1D7D7
                   }]{Neo Euler}
\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range=up/{latin,Latin,num}, script-features={}, sscript-features={}
            ]{Neo Euler}

\begin{document}

\begin{theorem}[Residue theorem]
  Let $f$ be analytic in the region $G$ except for the isolated
  singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
  rectifiable curve in $G$ which does not pass through any of the
  points $a_k$ and if $\gamma\approx 0$ in $G$, then
  \[
    \frac{1}{2\symup{\pi i}} \int\limits_\gamma f\Bigl(x^{\mathbf{N}\in\mathbb{C}^{N\times 10}}\Bigr)
    = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.
  \]
\end{theorem}

\begin{theorem}[Maximum modulus]
  Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a
  continuous function on $G^-$ which is analytic in $G$. Then
  \[
    \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.
  \]
\end{theorem}

First some large operators both in text:
$\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$
and
$\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\
and also on display
\[
  \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z
  \leq
  \oint_{\partial Q} f'\Biggl(\max\Biggl\{
  \frac{\Vert w\Vert}{\vert w^2+x^2\vert};
  \frac{\Vert z\Vert}{\vert y^2+z^2\vert};
  \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}
  \Biggr\}\Biggr)\,.
\]
\end{document}

Neo Euler 与 CMU Concrete,经典风格

这是经典的“TeX 和 LaTeX 免费数学字体调查。”

使用混凝土扩展至 ISO 样式

如果您想获得全系列的数学字母,您需要将 Euler 数学字体与其他字体组合起来以提供缺失的字形。这是一个选择 ISO 样式的版本(直立的和和乘积符号、常数 π 和 i 以及数字;斜体Γ函数和变量),保留了 Neo Euler 中的直立 ∂,保留了 Neo Euler 中存在的所有数学字母(数字除外,数字应该与文本字体匹配,并且作为上标的间距不好),并提供了 CMU Concrete 系列中缺失的itbfbfup部分bfit

\unimathsetup{math-style=ISO, partial=upright, nabla=upright}
\setmainfont{CMU Concrete}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Libertinus Math}
\setmathfont[range={"0000-"0001,"0020-"007E,
                    "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7,
                    "00D7,"00F7,
                    "0131,
                    "0237,"02C6-"02C7,"02D8-"02DA,"02DC,
                    "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338,
                    "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB,
                    "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5,
                    "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044,
                    "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF,
                    "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128,
                    "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199,
                    "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5,
                    "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E,
                    "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D,
                    "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E,
                    "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5,
                    "22DC-"22DD,"22EF,"22F0-"22F1,
                    "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE,
                    "23DC-"23DF,
                    "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A,
                    "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6,
                    "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505,
                    "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537,
                    "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD,
                    "1D6DF,"1D6E1,"1D7CE-"1D7D7
                   }]{Neo Euler}
\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range=up/{latin,Latin,num}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range=up/num]{CMU Concrete}
\setmathfont[range=it/{latin,Latin,greek,Greek}]{CMU Concrete Italic}
\setmathfont[range=bfup/{Greek}]{CMU Concrete Bold}
\setmathfont[range=bfit/{latin,Latin,greek,Greek}]{CMU Concrete Bold Italic}

Neo Euler 与 CMU Concrete,ISO 风格

欧拉加帕拉蒂诺

这是经过多次反复尝试后我最喜欢的版本。

另一个常见的建议(包括在之前的回答中)是将欧拉数学符号与 Palatino 文本结合起来。它将文本字体设置为 Palatino,或者它的众多克隆之一,在本例中为 Pagella(尽管您可能拥有原始的 Palatino 或 Palatino Linotype)。然后,它用另一个 Palatino 克隆 Asana Math 填充 Neo Euler 的所有缺失部分。它设置\mathcal为欧拉脚本,\mathbfcal来自 Asana 的替代样式,\mathbb来自拉丁现代数学(更清晰,更类似于经典amsfonts),来自 Asana 的数字(因为这些需要与正文匹配)和来自 Asana 的欧拉中未定义的所有其他符号。

现在,我们已完全覆盖所有 Unicode 数学符号,这使我们能够以 ISO 样式设置此示例。这将使用斜体数学字母作为默认值,包括大写希腊字母(例如 Gamma 函数),但保留 ∑ 和 ∏ 等符号,并将分母中的常数(例如 2πi)设置为直立。(请注意,它unicode-math足够智能,可以在文本字体中设置\symup{\pi i}为欧拉和\mathrm运算符名称。)它保留了直立的偏导数和 nabla,因为欧拉没有定义草书形式。

您可以改回以math-style=upright获得更经典的外观,同时仍然允许您使用所有的数学字母。

\unimathsetup{math-style=ISO, partial=upright, nabla=upright}
\setmainfont{TeX Gyre Pagella}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Asana Math}
\setmathfont[range={"0000-"0001,"0020-"007E,
                    "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7,
                    "00D7,"00F7,
                    "0131,
                    "0237,"02C6-"02C7,"02D8-"02DA,"02DC,
                    "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338,
                    "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB,
                    "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5,
                    "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044,
                    "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF,
                    "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128,
                    "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199,
                    "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5,
                    "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E,
                    "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D,
                    "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E,
                    "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5,
                    "22DC-"22DD,"22EF,"22F0-"22F1,
                    "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE,
                    "23DC-"23DF,
                    "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A,
                    "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6,
                    "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505,
                    "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537,
                    "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD,
                    "1D6DF,"1D6E1,"1D7CE-"1D7D7
                   }]{Neo Euler}
\setmathfont[range=up/{greek,Greek}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range=up/{latin,Latin}, script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range={bfup/{latin, Latin, greek, Greek}, frak, bffrak, cal},
             script-features={}, sscript-features={}
            ]{Neo Euler}
\setmathfont[range={up/num, bfup/num, it, bfit, scr, bfscr,
                    sfup, sfit, bfsfup, bfsfit, tt}
            ]{Asana Math}
\setmathfont[range=bfcal, Scale=MatchUppercase, Alternate]{Asana Math}
\setmathfont[range=bb, Scale=MatchUppercase]{Latin Modern Math}

Neo Euler 加上 Asana 加上 Latin Modern 与 Pagella

欧拉符号、帕拉蒂诺字母

此替代方案仅使用 Neo Euler 中的数学符号并覆盖其所有数学字母,以在文本和数学模式之间实现最大的一致性。

\unimathsetup{math-style=ISO, partial=upright, nabla=upright}
\setmainfont{TeX Gyre Pagella}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Asana Math}
\setmathfont[range={"0000-"0001,"0020-"007E,
                    "00A0,"00A7-"00A8,"00AC,"00AF,"00B1,"00B4-"00B5,"00B7,
                    "00D7,"00F7,
                    "0131,
                    "0237,"02C6-"02C7,"02D8-"02DA,"02DC,
                    "0300-"030C,"030F,"0311,"0323-"0325,"032E-"0332,"0338,
                    "0391-"0393,"0395-"03A1,"03A3-"03A8,"03B1-"03BB,
                    "03BD-"03C1,"03C3-"03C9,"03D1,"03D5-"03D6,"03F5,
                    "2016,"2018-"2019,"2021,"2026-"202C,"2032-"2037,"2044,
                    "2057,"20D6-"20D7,"20DB-"20DD,"20E1,"20EE-"20EF,
                    "210B-"210C,"210E-"2113,"2118,"211B-"211C,"2126-"2128,
                    "212C-"212D,"2130-"2131,"2133,"2135,"2190-"2199,
                    "21A4,"21A6,"21A9-"21AA,"21BC-"21CC,"21D0-"21D5,
                    "2200,"2202-"2209,"220B-"220C,"220F-"2213,"2215-"221E,
                    "2223,"2225,"2227-"222E,"2234-"2235,"2237-"223D,
                    "2240-"224C,"2260-"2269,"226E-"2279,"2282-"228B,"228E,
                    "2291-"2292,"2295-"2299,"22A2-"22A5,"22C0-"22C5,
                    "22DC-"22DD,"22EF,"22F0-"22F1,
                    "2308-"230B,"2320-"2321,"2329-"232A,"239B-"23AE,
                    "23DC-"23DF,
                    "27E8-"27E9,"27F5-"27FE,"2A0C,"2B1A,
                    "1D400-"1D433,"1D49C,"1D49E-"1D49F,"1D4A2,"1D4A5-"1D4A6,
                    "1D4A9-"1D4AC,"1D4AE-"1D4B5,"1D4D0-"1D4E9,"1D504-"1D505,
                    "1D507-"1D50A,"1D50D-"1D514,"1D516-"1D51C,"1D51E-"1D537,
                    "1D56C-"1D59F,"1D6A8-"1D6B8,"1D6BA-"1D6D2,"1D6D4-"1D6DD,
                    "1D6DF,"1D6E1,"1D7CE-"1D7D7
            }]{Neo Euler}
\setmathfont[range={up/{latin, Latin, greek, Greek, num},
                    it, bfup, bfit, bb, bbit, scr, bfscr, frak, bffrak,
                    sfup, sfit, bfsfup, bfsfit, tt }
            ]{Asana Math}
\setmathfont[Alternate, range={cal, bfcal}]{Asana Math}

Neo Euler/Asana Math Kitbash 与 Pagella

与 PDFTeX 的向后兼容性

如果您无法使用unicode-math,仍然可以获取 Type 1 字体、粗体数学符号、直立希腊字母等。以下是示例:

\documentclass{article}
\pagestyle{empty}
\tracinglostchars=2

\usepackage{amsmath}
\DeclareMathOperator\Res{Res}
\newcommand*\diff{\mathop{}\!\mathrm{d}}

\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

%%%
% Set up you text and math fonts
%%%

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts, amssymb}
\usepackage[boldsans]{ccfonts}
\usepackage{eucal}
\usepackage{eulervm}

\newcommand\BbbC{\ensuremath{\mathbb{C}}}
\DeclareSymbolFont{eulerup}{U}{zeur}{m}{n}
\DeclareMathSymbol{\uppi}{\mathord}{eulerup}{"19}
\DeclareMathSymbol{\upi}{\mathord}{eulerup}{"69}

\begin{document}

\begin{theorem}[Residue theorem]
  Let $f$ be analytic in the region $G$ except for the isolated
  singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
  rectifiable curve in $G$ which does not pass through any of the
  points $a_k$ and if $\gamma\approx 0$ in $G$, then
  \[
    \frac{1}{2 \uppi \upi} \int\limits_\gamma f\Bigl(x^{\mathbold{N}\in\mathbb{C}^{N\times 10}}\Bigr)
    = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.
  \]
\end{theorem}

\begin{theorem}[Maximum modulus]
  Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a
  continuous function on $G^-$ which is analytic in $G$. Then
  \[
    \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.
  \]
\end{theorem}

First some large operators both in text:
$\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$
and
$\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\
and also on display
\[
  \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z
  \leq
  \oint_{\partial Q} f'\Biggl(\max\Biggl\{
  \frac{\Vert w\Vert}{\vert w^2+x^2\vert};
  \frac{\Vert z\Vert}{\vert y^2+z^2\vert};
  \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}
  \Biggr\}\Biggr)\,.
\]

\end{document}

请注意,\mathrm选择文本字体并且\mathbf不起作用,因此我改为定义\uppi\upi\mathnormal直到您将数学字体更改为 Euler 以外的字体时才会起作用,而这些在任何文档中从 Euler 选择直立希腊字母)并使用\mathbold来自的命令eulervm

Euler 与 ccfonts 示例

带有 NFSS 的 Euler Plus Palatino

流行的 AMS Euler 与 Palatino(或其克隆之一)组合也可用作 NFSS 包,向后兼容 PDFLaTeX。它最后一次更新是在 2017 年,比我展示的任何其他包都要新几年。它使用 Euler 的数学字母,但使用符号(Asana Math 字体也基于此),并使用文本字体中的数字,我将其设置为 Pagella。如果您将选项传递给newpx,它类似于上面的 Pagella/Neo Euler/Asana Math 示例。math-style=uprightunicode-math

该软件包不加载欧拉书法或 Fraktur 数学字母表,因此我稍后设置它们。如果您想添加匹配的无衬线和等宽字体,Optima (URW Classico) 和 Inconsolata 可能是 NFSS 的不错选择。

\documentclass{article}
\pagestyle{empty}

\usepackage{amsmath}
\DeclareMathOperator\Res{Res}
\newcommand*\diff{\mathop{}\!\mathrm{d}}

\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

%%%
% Set up you text and math fonts
%%%

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % The default since 2018.
\usepackage{tgpagella}
\usepackage{eulerpx} % Loads Euler Fraktur and Script since 2021.
\usepackage{eucal}

\newcommand\BbbC{\ensuremath{\mathbb{C}}}
\DeclareSymbolFont{eulerup}{U}{zeur}{m}{n}
\DeclareMathSymbol{\uppi}{\mathalpha}{eulerup}{"19}
\DeclareMathSymbol{\upi}{\mathalpha}{eulerup}{"69}

\begin{document}

\begin{theorem}[Residue theorem]
  Let $f$ be analytic in the region $G$ except for the isolated
  singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed
  rectifiable curve in $G$ which does not pass through any of the
  points $a_k$ and if $\gamma\approx 0$ in $G$, then
  \[
    \frac{1}{2 \uppi \upi} \int\limits_\gamma f\Bigl(x^{\mathbf{N}\in\mathbb{C}^{N\times 10}}\Bigr)
    = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.
  \]
\end{theorem}

\begin{theorem}[Maximum modulus]
  Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a
  continuous function on $G^-$ which is analytic in $G$. Then
  \[
    \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.
  \]
\end{theorem}

First some large operators both in text:
$\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$
and
$\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\
and also on display
\[
  \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z
  \leq
  \oint_{\partial Q} f'\Biggl(\max\Biggl\{
  \frac{\Vert w\Vert}{\vert w^2+x^2\vert};
  \frac{\Vert z\Vert}{\vert y^2+z^2\vert};
  \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}
  \Biggr\}\Biggr)\,.
\]

\end{document}

Eulerpx 示例

这里有一些奇怪的地方,例如 ∊ 和 ℂ 的间距,但这是一个简单而有吸引力的设置。

笔记:的最新版本eulerpx现在加载 Euler Fraktur 和 Euler Script 本身,破坏了我原来的模板(已加载eufrak)。

相关内容