Skip to content

Commit

Permalink
Update chinese.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 authored Jul 14, 2024
1 parent 958c87d commit a1f748a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,10 @@ PS: 例子来源于 [Myriad-Dreamin](https://github.com/Myriad-Dreamin)

注意,由于 `display` 也是一个函数,所以在其内部的逗号 `,` 要进行转义 `\,`

每次都要手动打 `display` 感觉很麻烦,能不能默认自动加上呢?如下所示,借助 `label``show` 即可实现。
每次都要手动打 `display` 感觉很麻烦,我们可以默认自动加上:

```example
#show math.equation.where(block: false): it => {
if it.has("label") and it.label == label("displayed-inline-math-equation") {
it
} else {
[$display(it)$<displayed-inline-math-equation>]
}
}
#show math.equation.where(block: false): math.display
行内数学公式(展示模式) $integral x dif x$
```
Expand Down

0 comments on commit a1f748a

Please sign in to comment.