latex的数学符号整理

求和的公式表达

内嵌公式,使用$...$. 单独展示的一行使用 $$...$$.
渲染的差别,比如
\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}
会显示\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} (内嵌模式) ,而下面这样
\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}
为独立的一块渲染区域,它是居中展示的,字体也要更大一些

符号

希腊字母,
\alpha, \beta, …, \omega: \alpha, \beta, … \omega.

大写,
\Gamma, \Delta, …, \Omega: \Gamma, \Delta, …, \Omega.

上标和下标,
use ^ and _. For example, x_i^2: x_i^2, \log_2 x: \log_2 x.

分组
Superscripts, subscripts, and other operations apply only to the next “group”. A “group” is either a single symbol, or any formula surrounded by curly braces {…}.
If you do 10^10, you will get a surprise: 10^10.
But 10^{10} gives what you probably wanted: 10^{10}.
Use curly braces to delimit a formula to which a superscript or subscript applies: x56 is an error;
{xy}z is {x^y}^z, and x{yz} is x^{y^z}. Observe the difference between x_i^2 x_i^2 and x_{i^2} x_{i^2}.

Parentheses(圆括号)
一般的()[], (2+3)[4+4]. Use \{ and \} for curly braces \{\}.

These do not scale with the formula in between, so if you write (\frac{\sqrt x}{y^3}) the parentheses will be too small: (x√y3)

. Using \left(…\right) will make the sizes adjust automatically to the formula they enclose: \left(\frac{\sqrt x}{y^3}\right) .

\left and \right apply to all the following sorts of parentheses:

synbol means
( and ) \left( x \right)
[ and ] \left[ x \right]
\{ and \} \left\{ x \right\}
| \left| x \right|
\vert , \Vert |x| 有问题,可能需要在其他的语境下才生效
\langle and \rangle \langle x \rangle
\lceil and \rceil \lceil x \rceil
\lfloor and \rfloor \lfloor x \rfloor

. \middle can be used to add additional dividers. There are also invisible parentheses, denoted by . :
\left. \frac12\right\rbrace is \left.\frac12\right\rbrace .

If manual size adjustments are required: \Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr) gives \Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr) .
Sums and integrals \sum and \int; the subscript is the lower limit and the superscript is the upper limit, so for example \sum_1^n \sum_1^n. Don't forget {…} if the limits are more than a single symbol.
For example, \sum_{i=0}^\infty i^2 is
\sum_{i=0}^\infty i^2.
Similarly,

symbol redered as
\prod \prod
\int \int
\bigcup \bigcup
\bigcap \bigcap
\iint \iint
\iiint \iiint
\idotsint \idotsint

.

Fractions There are three ways to make these. \frac ab applies to the next two groups, and produces \frac ab ;
for more complicated numerators and denominators use {…}: \frac{a+1}{b+1} is \frac{a+1}{b+1}.
If the numerator and denominator are complicated, you may prefer \over, which splits up the group that it is in: {a+1\over b+1} is {a+1\over b+1} .
Using \cfrac{a}{b} command is useful for continued fractions \cfrac{a}{b} , more details for which are given in this sub-article.

Fonts
Use \mathbb or \Bbb for "blackboard bold": ℂℍℕℚℝℤ

symbols for redered as
\mathbb or \Bbb blackboard bold \Bbb AB \Bbb CD
\mathbf boldface \mathbf A BCDE
\mathit italics \mathit ABCDEFGHIJ , \mathit abcdefgh
\pmb boldfaced italics \pmb ABCDEFG \pmb abcdefghijk
\mathtt typewriter \mathtt ABCDEFGHIJK
\mathrm roman \mathrm abcvwxyz
\mathsf sans-serif \mathsf ABCDEFGHIJKLTUVWXYZ
\mathcal calligraphic letters \mathcal ABCDEFGHIJKLMWXYZ
\mathscr script letters \mathscr ABCDEFOPQR
\mathfrak Fraktur (old German style) letters \mathfrak ABCDVWXYZ


  • Radical signs Use sqrt,
    which adjusts to the size of its argument:\sqrt{x^3} x3 means: \sqrt{x^3} x3;
    \sqrt[3]{\frac xy} means: \sqrt[3]{\frac xy} .
    For complicated expressions, consider using {...}^{1/2} instead.

  • Some special functions such as "lim", "sin", "max", "ln", and so on are normally set in roman font instead of italic font.
    Use \lim, \sin, etc. to make these: \sin x:\sin x , not sin x : sin x.
    Use subscripts to attach a notation to \lim: \lim_{x\to 0}: \lim_{x\to 0}

There are a very large number of special symbols and notations, too many to list here; see this shorter listing, or this exhaustive listing. Some of the most common include:

symbols redered as
\lt \gt \le \leq \leqq \leqslant \ge \geq \geqq \geqslant \neq \lt \gt \le \leq \leqq \leqslant \ge \geq \geqq \geqslant \neq
You can use \not to put a slash through almost anything: \not\lt \not\lt but it often looks bad
\times \div \pm \mp \times \div \pm \mp.
\cdot is a centered dot x \cdot y
\cup \cap \setminus \subset \subseteq \subsetneq \supset \in \notin \emptyset \varnothing \cup \cap \setminus \subset \subseteq \subsetneq \supset \in \notin \emptyset \varnothing
{n+1 \choose 2k} or \binom{n+1}{2k} (n+12k) {n+1 \choose 2k} or \binom{n+1}{2k} (n+12k)
\to \rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto \to \rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto
\land \lor \lnot \forall \exists \top \bot \vdash \vDash \land \lor \lnot \forall \exists \top \bot \vdash \vDash
\star \ast \oplus \circ \bullet \star \ast \oplus \circ \bullet
\approx \sim \simeq \cong \equiv \prec \lhd \therefore \approx \sim \simeq \cong \equiv \prec \lhd \therefore
\infty \aleph_0 \infty \aleph_0
\nabla \partial \nabla \partial
  • For modular equivalence, use \pmod like this: a\equiv b\pmod n a\equiv b\pmod n.

  • \ldots is the dots in a1,a2,…,an

  • \cdots is the dots in a1+a2+⋯+an

  • Some Greek letters have variant forms:
    \epsilon \varepsilon: \epsilon \varepsilon,
    \phi \varphi: \phi \varphi,
    and others.
    Script lowercase l is \ell \ell .

Detexify lets you draw a symbol on a web page and then lists the TEX symbols that seem to resemble it.

These are not guaranteed to work in MathJax but are a good place to start. To check that a command is supported, note that MathJax.org maintains a list of currently supported LATEX commands, and one can also check Dr. Carol JVF Burns's page of TEX Commands Available in MathJax.

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,189评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,577评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,857评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,703评论 1 276
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,705评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,620评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,995评论 3 396
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,656评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,898评论 1 298
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,639评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,720评论 1 330
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,395评论 4 319
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,982评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,953评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,195评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,907评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,472评论 2 342

推荐阅读更多精彩内容