特殊符号字体格式速查表
LaTeX 符号 | 字体名称 | 常用含义 | LaTeX 源码 | 备注 |
---|---|---|---|---|
$\mathcal L$ | 花体字(Calligraphic letter) | 损失函数 | \mathcal L | |
$\mathcal O$ | 花体字(Calligraphic letter) | 时间复杂度 | \mathcal O | |
$\mathcal D$ | 花体字(Calligraphic letter) | 样本集 | \mathcal D | |
$\mathcal N$ | 花体字(Calligraphic letter) | 高斯分布 | \mathcal N | |
$\mathbb R$ | 板粗体(Blackboard bold font) | 实数集 | \mathbb R | 亦可作正体粗体 $\mathbf{R}$ |
$\ell$ | 将小写 L/l、大写 I/i 和数字 1 区分 | \ell | ||
$\nabla$ | nabla 算子 | \nabla | ||
$\mathrm{d}$ | 正体字 | 微分 | \mathrm{d} | |
$\sin$ | 正弦函数 | \sin | 最好不写\mathrm{sin} | |
$\mathbf{A}$ | 正体加粗 | 矩阵 | \mathbf{x} | 国标是斜体加粗 |
$\boldsymbol{\theta}$ | 斜体加粗 | 矢量或向量 | \boldsymbol{theta} |
使用某些数学字体样式需要在文档序言中添加 \usepackage{amssymb}
:有关更多信息,请参阅 amsfonts
包。
其他示例
行内公式: $E = mc^2$
自定义宏: $\R$ 表示实数集,$\N$ 表示自然数集
块级公式: $$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$
带编号的公式: \begin{equation} F = ma \end{equation}
化学方程式: $\ce{H2O + CO2 -> H2CO3}$
物理公式: $\vec{F} = m\vec{a}$
参考资料
主要参考
国家标准|GB/T 3102.11-1993
Mathematical fonts - Overleaf, Online LaTeX Editor
数学符号表 - OI Wiki
Ian Goodfellow and Yoshua Bengio and Aaron Courville, Deep Learning, MIT Press
其他
https://blog.csdn.net/qq_18846849/article/details/130631476
https://quicy.notion.site/0910aaa654f14cab9443cc5a8366d712
https://toddzhoufeng.github.io/document/2019/07/20/latex-tutorial/
https://www.latexstudio.net/archives/51494.html