Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e14aff0

Browse files
Math Blocks (#59)
1 parent 6a7f56b commit e14aff0

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

‎docs/rules/academic/handbook/latex.md‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,26 @@ $\LaTeX$ 是一种基于 $\TeX$ 的排版系统,能够很方便的生成数学
1111

1212
## 基础知识
1313

14-
### 行内公式与行间公式
14+
### 行内公式与行间公式 {#math}
1515

16-
行内公式(即穿插在文本中的公式)两侧分别使用一个美元 `$ $` 符号定界。
17-
例如 `$x \cdot \sin(y)$` 显示为 $x \cdot \sin(y)$。
16+
行内公式(**Inline Math**,即穿插在文本中的公式)两侧分别使用一个美元 `$ $` 符号定界。
1817

19-
行间公式(即独立成行的公式)两侧分别使用 `$$ $$`(每侧两个美元符号)定界,Markdown 代码可以跨行写,例如:
18+
例如:
19+
20+
```md
21+
文本文本$x \cdot \sin(y)$文本文本
22+
```
23+
24+
显示为:
25+
26+
文本文本$x \cdot \sin(y)$文本文本
27+
28+
行间公式(**Math Blocks**,独立成行居中的公式) 前后两行分别使用 `$$ $$`(每行两个美元符号)定界,Markdown 代码可以跨行写,例如:
2029

2130
```latex
22-
$$ H_n = \sum_{i = 1}^{n} \frac{1}{i} $$
31+
$$
32+
H_n = \sum_{i = 1}^{n} \frac{1}{i}
33+
$$
2334
```
2435

2536
显示为
@@ -62,7 +73,9 @@ $$
6273
对于行间公式,使用 `\textstyle` 的效果:
6374

6475
```latex
65-
$$ \textstyle \int \frac{\mathop{}\!\mathrm{d} x}{x} = \ln(x) + C $$
76+
$$
77+
\textstyle \int \frac{\mathop{}\!\mathrm{d} x}{x} = \ln(x) + C
78+
$$
6679
```
6780

6881
显示为

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /