目录

翻译-LaTeX-数学表达式-Mathematical-expressions

[翻译] [LaTeX] 数学表达式 Mathematical expressions

原  文:

译  者:

翻译时间:2020年6月17日

Mathematical expressions

让 LaTeX 成为科学论文写作的首选工具的原因在于,LaTeX 可以非常简单地处理复杂数学公式。本篇文章介绍基础的书写数学表达式的命令。

文章目录

介绍

在 LaTeX 中,基础的表达式是非常简单直观的,例如:

The well known Pythagorean theorem \(x^2 + y^2 = z^2\) was 
proved to be invalid for other exponents. 
Meaning the next equation has no integer solutions:

\[ x^n + y^n = z^n \]

https://i-blog.csdnimg.cn/blog_migrate/83118a4ae8d05a26d020d7ef6d8a0750.png#pic_center

如上图所示,公式书写在分隔符 \[ \]\( \) 之内。

数学模式

LaTeX 支持两种书写数学公式的模式:行内模式(inline mode)和展示模式(display mode)。行内模式中的公式出现在文本之间,而展示模式中的公式独自成行。

下面的例子展示了一个行内模式公式:

In physics, the mass-energy equivalence is stated 
by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.

https://i-blog.csdnimg.cn/blog_migrate/abd79aeba723a0fadab9062307cc2a09.png#pic_center

如果你要使用 行内 模式,将公式放在下面一种分隔符之内:

  • \( \)
  • $ $
  • \begin{math} \end{math}

上面的分隔符都是正确的,使用哪一种在于你的个人偏好。

展示 模式有两个版本:编号的、未编号的。

The mass-energy equivalence is described by the famous equation

\[E=mc^2\]

discovered in 1905 by Albert Einstein. 
In natural units ($c$ = 1), the formula expresses the identity

\begin{equation}
E=m
\end{equation}

https://i-blog.csdnimg.cn/blog_migrate/0c2830c44ce31242c39347a6da26e23b.png#pic_center

如果你要使用展示模式,将公式输入在以下一种分隔符之内:

  • \[ \]
  • \begin{displaymath} \end{displaymath}
  • \begin{equation} \end{equation}

重要提示equation* 环境是由一个外部包提供:请参考 。

参考指南

下面的表格介绍了一些基础的数学符号。更详细的数学符号列表你可以参考 。

描述代码示例
希腊字符\alpha \beta \gamma \rho \sigma \delta \epsilonα β γ ρ σ δ ϵ \alpha \beta \gamma \rho \sigma \delta \epsilon α β γ ρ σ δ ϵ
二元操作符\times \otimes \oplus \cup \cap× ⊗ ⊕ ∪ ∩ \times \otimes \oplus \cup \cap × ⊗ ⊕ ∪ ∩
关系操作符< > \subset \supset \subseteq \supseteq< > ⊂ ⊃ ⊆ ⊇ < > \subset \supset \subseteq \supseteq < > ⊂ ⊃ ⊆ ⊇
其他\int \oint \sum \prod∫ ∮ ∑ ∏ \int \oint \sum \prod ∫ ∮ ∑ ∏

不同类的数学符号有着不同的格式(例如,变量是斜体,但是 不是)以及不同的 。

扩展阅读

LaTeX 中的数学模式是非常灵活和强大的,你可以用它做到非常多的事情: