文本格式参考 (Markdown & LaTex)

2024-07-31T16:00:00Z

这是 H1 (Heading level 1)

这是 H2 (Heading level 2)

这是 H3 (Heading level 3)

这是 H4 (Heading level 4)

这是 H5 (Heading level 5)
这是 H6 (Heading level 6)

普通文本
0123456789
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

格式化文本
0123456789
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

加粗 (bold)
0123456789
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

斜体 (italic)
0123456789
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

Strikethrough
Underline

Ctrl+C

所有 TL0 用户的帖子会被发往第三方服务器进行智能审核,
审核的内容包括:色情广告违禁暴恐涉政谩骂

网站管理员账户密码

账户:admin
密码:12345678

脚注 (Footnotes)

A sentence that needs a footnote. [1]
Another sentence that needs a footnote. [2]

块引用 (Blockquotes)

这是第一段
一二三四五

这是第二段

嵌套块引用

有序列表 (Ordered Lists)

  1. 第一项
  2. 第二项
  3. 第三项
    1. 缩进项
    2. 缩进项
  4. 第四项

无序列表 (Unordered Lists)

  • 第一项
  • 第二项
  • 第三项
    • 缩进项
    • 缩进项
  • 第四项

清单 (Checklists)

unchecked box
checked box (no fill)
checked box (with fill)

表格 (Tables)

列标题 列标题 列标题
单元格 单元格 单元格
单元格 单元格 单元格

图片 (Images)

数学 (MathJax / LaTeX)

1. Rendering mode

  • Inline mode:

    $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$
    

    This formula: \sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} is rendered inline.

  • Display mode:

    $$
    \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}

2. Superscripts and subscripts

  • Superscripts:

    $a^2 + b^2 = c^2$
    

    a^2 + b^2 = c^2

    ${x^y}^z$
    

    {x^y}^z

  • Subscripts:

    $log_2(xy) = log_2(x) + log_2(y)$
    

    log_2(xy) = log_2(x) + log_2(y)

    $x_i^2$ ${x_i}^2$
    

    x_i^2 {x_i}^2

  • Prime symbol:

    $(\sin x)^\prime = \cos x$
    

    (\sin x)^\prime = \cos x

    $x^\prime$ $x^{\prime\prime}$ $x^{\prime\prime\prime}$
    

    x^\prime x^{\prime\prime} x^{\prime\prime\prime}

3. Parentheses

  • $A = \{1, 2, 3, 4, 5\}$
    

    A = \{1, 2, 3, 4, 5\}

  • $(\frac{\sqrt x}{y^3})$ $\left(\frac{\sqrt x}{y^3}\right)$
    

    (\frac{\sqrt x}{y^3}) \left(\frac{\sqrt x}{y^3}\right)

  • $\left.x^2\right\rvert_3^5 = 5^2-3^2$
    

    \left.x^2\right\rvert_3^5 = 5^2-3^2

4. Fractions

  • $\frac ab$ $\frac{a+1}{b+1}$ ${a+1\over b+1}$
    

    \frac ab \frac{a+1}{b+1} {a+1\over b+1}

  • $x=a_0+\frac{1^2}{a_1+\frac{2^2}{a_2+\frac{3^2}{a_3+\frac{4^2}{a_4+...}}}}$
    

    x=a_0+\frac{1^2}{a_1+\frac{2^2}{a_2+\frac{3^2}{a_3+\frac{4^2}{a_4+...}}}}

  • $x=a_0+\cfrac{1^2}{a_1+\cfrac{2^2}{a_2+\cfrac{3^2}{a_3+\cfrac{4^2}{a_4+...}}}}$
    

    x=a_0+\cfrac{1^2}{a_1+\cfrac{2^2}{a_2+\cfrac{3^2}{a_3+\cfrac{4^2}{a_4+...}}}}

5. Radical signs / roots

  • $\sqrt{x^3}$
    

    \sqrt{x^3}

  • $\sqrt[3]{\frac xy}$
    

    \sqrt[3]{\frac xy}

6. Special functions

  • $\operatorname{foo}(x)$
    

    \operatorname{foo}(x)

  • $$
    \lim_{x\to 0}
    $$
    
    \lim_{x\to 0}

7. Sums and integrals

  • $$
    \sum_{i=0}^\infty i^2
    $$
    
    \sum_{i=0}^\infty i^2
  • \prod \prod, \int \int, \bigcup \bigcup, \bigcap \bigcap, \iint \iint, \iiint \iiint, \idotsint \idotsint

8. Spaces

  • $a b$, $a\ b$, $a\quad b$, $a\qquad b$
    

    a b, a\ b, a\quad b, a\qquad b

9. Matrices

  • Plain:

    $$
    \begin{matrix}
    1 & 2 & 3\\
    a & b & c
    \end{matrix}
    $$
    
    \begin{matrix} 1 & 2 & 3\\ a & b & c \end{matrix}
  • Parentheses:

    $$
    \begin{pmatrix}
    1 & 2 & 3\\
    a & b & c
    \end{pmatrix}
    $$
    
    \begin{pmatrix} 1 & 2 & 3\\ a & b & c \end{pmatrix}
  • Brackets:

    $$
    \begin{bmatrix}
    1 & 2 & 3\\
    a & b & c
    \end{bmatrix}
    $$
    
    \begin{bmatrix} 1 & 2 & 3\\ a & b & c \end{bmatrix}
  • Braces:

    $$
    \begin{Bmatrix}
    1 & 2 & 3\\
    a & b & c
    \end{Bmatrix}
    $$
    
    \begin{Bmatrix} 1 & 2 & 3\\ a & b & c \end{Bmatrix}
  • Pipes:

    $$
    \begin{vmatrix}
    1 & 2 & 3\\
    a & b & c
    \end{vmatrix}
    $$
    
    \begin{vmatrix} 1 & 2 & 3\\ a & b & c \end{vmatrix}
  • Double pipes:

    $$
    \begin{Vmatrix}
    1 & 2 & 3\\
    a & b & c
    \end{Vmatrix}
    $$
    
    \begin{Vmatrix} 1 & 2 & 3\\ a & b & c \end{Vmatrix}

10. Fonts

  • Use \mathbb or \Bbb for “blackboard bold”: \mathbb {CHNQRZ}.

  • Use \mathbf for boldface: \mathbf {CHNQRZ\ chnqrz}.

    • For expression based characters, use \boldsymbol instead: \mathbf α
  • Use \mathit for italics: \mathit {CHNQRZ\ chnqrz}.

  • Use \pmb for boldfaced italics: \pmb {CHNQRZ\ chnqrz}.

  • Use \mathtt for “typewriter” font: \mathtt {CHNQRZ\ chnqrz}.

  • Use \mathrm for roman font: \mathrm {CHNQRZ\ chnqrz}.

  • Use \mathsf for sans-serif font: \mathsf {CHNQRZ\ chnqrz}.

  • Use \mathcal for “calligraphic” letters: \mathcal {CHNQRZ\ chnqrz}.

  • Use \mathscr for script letters: \mathscr {CHNQRZ\ chnqrz}.

  • Use \mathfrak for “Fraktur” (old German style) letters: \mathfrak {CHNQRZ\ chnqrz}.

11. Greek letters and math symbols

  • Greek letters

    \alpha A \alpha A \nu N \nu N
    \beta B \beta B \xi \Xi \xi \Xi
    \gamma \Gamma \gamma \Gamma o O o O
    \delta \Delta \delta \Delta \pi \Pi \pi \Pi
    \epsilon \varepsilon E \epsilon \varepsilon E \rho \varrho P \rho \varrho P
    \zeta Z \zeta Z \sigma \Sigma \sigma \Sigma
    \eta H \eta H \tau T \tau T
    \theta \vartheta \Theta \theta \vartheta \Theta \upsilon \Upsilon \upsilon \Upsilon
    \iota I \iota I \phi \varphi \Phi \phi \varphi \Phi
    \kappa K \kappa K \chi X \chi X
    \lambda \Lambda \lambda \Lambda \psi \Psi \psi \Psi
    \mu M \mu M \omega \Omega \omega \Omega
  • Arrows

    \leftarrow \leftarrow \Leftarrow \Leftarrow
    \rightarrow \rightarrow \Rightarrow \Rightarrow
    \leftrightarrow \leftrightarrow \rightleftharpoons \rightleftharpoons
    \uparrow \uparrow \downarrow \downarrow
    \Uparrow \Uparrow \Downarrow \Downarrow
    \Leftrightarrow \Leftrightarrow \Updownarrow \Updownarrow
    \mapsto \mapsto \longmapsto \longmapsto
    \nearrow \nearrow \searrow \searrow
    \swarrow \swarrow \nwarrow \nwarrow
    \leftharpoonup \leftharpoonup \rightharpoonup \rightharpoonup
    \leftharpoondown \leftharpoondown \rightharpoondown \rightharpoondown
  • Miscellaneous symbols

    \infty \infty \forall \forall
    \Re \Re \Im \Im
    \nabla \nabla \exists \exists
    \partial \partial \nexists \nexists
    \emptyset \emptyset \varnothing \varnothing
    \wp \wp \complement \complement
    \neg \neg \cdots \cdots
    \square \square \surd \surd
    \blacksquare \blacksquare \triangle \triangle
  • Binary Operation/Relation Symbols

    \times \times \cdot \cdot
    \div \div \cap \cap
    \cup \cup \neq \neq
    \leq \leq \geq \geq
    \in \in \perp \perp
    \notin \notin \subset \subset
    \simeq \simeq \approx \approx
    \wedge \wedge \vee \vee
    \oplus \oplus \otimes \otimes
    \Box \Box \boxtimes \boxtimes
    \equiv \equiv \cong \cong

代码块 (Code Blocks)

#include <stdio.h>
int main()
{
	printf("hello");
	return 0;
}

  1. The footnote ↩︎

  2. The second footnote ↩︎