Home > Other > Main text

LATEX常见用法


Tag: latex


LATEX常见用法

这里也总结了一些常见的写法,可以参考一下:

Greek letters

Symbol Script
\(\alpha\) \alpha
\(\beta\) \beta
\(\theta\) \theta
\(\pi\) \pi

Power and indices

Symbol Script
\(k_{n+1}\) k_{n+1}
\(n^2\) n^2
\(k_n^2\) k_n^2
\(k_{n^2}\) k_{n^2}

Fractions and Binomials

Symbol Script
\(\frac{n!}{k!(n-k)!}\) \frac{n!}{k!(n-k)!}
\(\binom{n}{k}\) \binom{n}{k}
\(\frac{\frac{x}{1}}{x - y}\) \frac{\frac{x}{1}}{x - y}
\(^3/_7\) ^3/_7

Roots

Symbol Script
\(\sqrt{k}\) \sqrt{k}
\(\sum_{\substack{0<i<m,0<j<n}} P(i, j)\) \sum_{\substack{0<i<m,0<j<n}} P(i, j)

Sums and Integrals

Symbol Script
\(\sum_{i=1}^{10} t_i\) \sum_{i=1}^{10} t_i
\(\sqrt[n]{k}\) \sqrt[n]{k}
\(\sum_{i=1}^{m}\sum_{j=1}^{m}\) \sum_{i=1}^{m}\sum_{j=1}^{m}

Some other constructions

Symbol Script
\(\overline{abc}\) \overline{abc}
\(\overline{abc} \\ a_i\) \overline{abc} \\\ a_i,两个斜杠\\表示分行
\(\cdot\),\(\cdot\cdot\cdot\) \cdot\cdot\cdot\cdot,位于中心的点
\(\bigoplus\) \bigoplus
\(\leftarrow\), \(\rightarrow\) \leftarrow, \rightarrow
\(\longleftarrow\), \(\longrightarrow\) \longleftarrow, \longrightarrow,长的版本
\(\wedge\) \wedge,可表示并且,逻辑字符
\(w^{[l]}=\begin{bmatrix}1.5 & 0 \\0 & 1.5\end{bmatrix}\) w^{[l]}=\begin{bmatrix}1.5 & 0\\0 & 1.5\end{bmatrix},矩阵表示
\(w^{[l]}=\begin{matrix}1.5 & 0 \\0 & 1.5\end{matrix}\) w^{[l]}=\begin{matrix}1.5 & 0\\0 & 1.5\end{matrix},矩阵表示
\(w^{[l]}=\begin{pmatrix}1.5 & 0 \\0 & 1.5\end{pmatrix}\) w^{[l]}=\begin{pmatrix}1.5 & 0\\0 & 1.5\end{pmatrix},矩阵表示
\(\mid x \mid\) \mid x \mid
\(\int_{-\infty}^{\infty}\) \int_{-\infty}^{\infty}

参考



If you link this blog, please refer to this page, thanks!
Post link:https://tsinghua-gongjing.github.io/posts/LATEX.html

Previous: Venn plot