From a1f748af3e0ef3e6769882ce9f638a428bb63cc6 Mon Sep 17 00:00:00 2001 From: OrangeX4 <34951714+OrangeX4@users.noreply.github.com> Date: Sun, 14 Jul 2024 13:44:40 +0800 Subject: [PATCH] Update chinese.md --- docs/chinese.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/chinese.md b/docs/chinese.md index fb94f1c3cbb3..cd655d93e393 100644 --- a/docs/chinese.md +++ b/docs/chinese.md @@ -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)$] - } -} +#show math.equation.where(block: false): math.display 行内数学公式(展示模式) $integral x dif x$ ```