Translate sample pages

- exampleSite\content\samples\rich-content\index.zh-cn.md
- exampleSite\content\samples\placeholder-text\index.zh-cn.md
- exampleSite\content\samples\multiple-authors\index.zh-cn.md
- exampleSite\content\samples\mathematical-notation\index.zh-cn.md
- exampleSite\content\samples\markdown\index.zh-cn.md
- exampleSite\content\samples\_index.zh-cn.md
This commit is contained in:
Aphcity
2024-03-21 15:35:36 +08:00
parent 32b8aa5876
commit 0f48b1a16d
6 changed files with 53 additions and 53 deletions

View File

@@ -1,29 +1,29 @@
---
title: Mathematical notation
title: 数学表达式
date: 2019-03-08
description: A brief sample of mathematical notation in Blowfish.
tags: ["sample", "katex", "maths", "shortcodes"]
description: Blowfish 中数学表达式的简短示例。
tags: ["示例", "katex", "数学", "简码"]
type: 'sample'
---
KaTeX can be used to render mathematical notation within articles.
KaTeX 可用于在文章中呈现数学表达式。
<!--more-->
{{< katex >}}
Blowfish will only bundle the KaTeX assets into your project if you make use of mathematical notation. In order for this to work, simply include the [`katex` shortcode]({{< ref "docs/shortcodes#katex" >}}) within the article. Example below:
如果您想要使用数学符号Blowfish 会将 KaTeX 自动加入到您的项目中。只需在文章中包含 [`katex` 短代码]({{< ref "docs/shortcodes#katex" >}}) 即可。参考下面的例子:
```md
{{</* katex */>}}
```
Any KaTeX syntax on that page will then be automatically rendered. Use the online reference of [supported TeX functions](https://katex.org/docs/supported.html) for the available syntax.
该页面上的任何 KaTeX 语法都会自动渲染。使用[支持的 TeX 函数](https://katex.org/docs/supported.html) 的在线参考来获取可用语法。
## Inline notation
## 内联表示法
Inline notation can be generated by wrapping the expression in `\\(` and `\\)` delimiters.
可以通过将表达式包装在 `\\(` `\\)` 分隔符中来生成内联表示法。
**Example:**
**例如:**
```tex
% KaTeX inline notation
@@ -32,11 +32,11 @@ Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
## Block notation
## 表达式块
Alternatively, block notation can be generated using `$$` delimiters. This will output the expression in its own HTML block.
可以使用 `$$` 分隔符生成表达式块。这将在其 HTML 块中输出表达式。
**Example:**
**例如:**
```tex
% KaTeX block notation