LaTeX 数学字体比较

Times New Roman 系

TeX Gyre Termes Math

TeX Gyre 是由波兰 GUST(TeX Users Group)发起的字体项目,目标是为 TeX 社区提供高质量的开源字体。

TeX Gyre 家族:

  • TeX Gyre Termes:基于 Times New Roman
  • TeX Gyre Pagella:基于 Garamond
  • TeX Gyre Schola:基于 Schoolbook
  • TeX Gyre Bonum:基于 Bookman
  • TeX Gyre Heros:基于 Helvetica
  • TeX Gyre Cursor:基于 Courier

每个家族都有对应的 Math 版本用于数学排版。

image

参见:

STIX Two Math

STIX(Scientific and Technical Information eXchange)是一个字体开发项目,旨在为科学、技术和数学出版提供高质量的 Unicode 字体。

  • STIX One:第一代,2010-2020 年代早期。采用较为保守的设计风格。
  • STIX Two:第二代,2020 年开始。是更现代、更完善的重设计版本。

image

参见:Scientific and Technical Information Exchange (STIX)

XITS Math(不推荐)

XITS Math(XeTeX/LuaTeX Integrated Typographic System)是 STIX One 的衍生品:STIX One 发布于 2010 年代初,但其数学字体(STIX Math)在当时对 XeTeX/LuaTeX 的支持不够理想。Khaled Hosny 基于 STIX One 的数学字形,针对 XeTeX/LuaTeX 进行了优化和改进,创建了 XITS Math。现在更推荐使用 STIX Two Math 而不是 XITS Math。

image

Computer Modern 系

Latin Modern Math

Latin Modern 是由波兰数学家和排版专家 Bogusław Jackowski 和 Janusz M. Nowacki 开发的字体家族。Latin Modern Math 是其数学版本,它保留了 Computer Modern 的经典审美,但用现代技术实现。

image

Computer Modern

LaTeX 的默认数学字体,经典 TeX 风格,由 Donald Knuth 设计。

image

其他

DejaVu Math

DejaVu 是一个历史悠久的开源字体项目,2003 年由 Štěpán Roh 创建,专注于提供全面的 Unicode 覆盖。

dejaVu-math

代码

\documentclass{article}
\usepackage{amssymb}
\usepackage{unicode-math}
\setmathfont{TeX Gyre Termes Math}

\begin{document}
$$
\begin{aligned}
&\forall x \in \mathbb{R},\quad 
\exists\, y \in \mathbb{N}:\quad 
\alpha + \beta = \gamma \neq \delta \leq \epsilon \approx \zeta \\
&\sum_{i=1}^{n} x_i^2 + \prod_{j=1}^{m} y_j^2 = \int_{a}^{b} f(x)\,dx \\
&\lim_{n\to\infty} \frac{1}{n} = 0, \qquad
\nabla \cdot \vec{E} = \frac{\rho}{\varepsilon_0} \\
&A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}, \qquad
B = \begin{bmatrix} b_1 \\ b_2 \end{bmatrix} \\
&S = \{ x \mid x > 0 \}, \qquad
f: X \to Y, \qquad
x \mapsto f(x) \\
&\bigcup_{i=1}^n A_i \cap \bigcap_{j=1}^m B_j, \qquad
A \subseteq B, \quad A \supset B \\
&\mathcal{L} = \mathcal{F}(\mathbb{R}), \qquad
\mathfrak{g} \cong \mathfrak{h} \\
&\boxed{E = mc^2}
\end{aligned}
$$
\end{document}
posted @ 2024-09-24 13:02  undefined443  阅读(2462)  评论(0)    收藏  举报