Compare commits

...

2 Commits

Author SHA1 Message Date
63d5b3a429 更新 2022-08-16 17:23:51 +08:00
7a73486c97 更新 2022-08-16 17:23:30 +08:00
2 changed files with 33 additions and 13 deletions

View File

@ -3,8 +3,3 @@
> 数学,是研究数量、结构以及空间等概念及其变化的一门学科,从某种角度看属于形式科学的一种。数学利用抽象化和逻辑推理,从计数、计算、量度、对物体形状及运动的观察发展而成。数学家们拓展这些概念,以公式化新的猜想,以及从选定的公理及定义出发,严谨地推导出一些定理。
![](图片/数学.jpg)
## 在线资料
- [KaTeX语法支持表](https://katex.org/docs/support_table.html)
- [ChinaTeX数学排版常见问题集](http://static.latexstudio.net/wp-content/uploads/2018/02/ChinaTeXMathFAQ_V1.1.pdf)

View File

@ -9,11 +9,16 @@
- $ 55^2+56^2+57^2+58^2+59^2+60^2=61^2+62^2+63^2+64^2+65^2 $
| 名称 | LaTeX语法 | 显示效果 | 用途 |
| -------- | ----------------------- | ---------------- | -------- |
| ------------ | ----------------------- | ---------------- | ------------ |
| 普通字体 | `\mathnormal{N}` | $\mathnormal{N}$ | |
| 手写字体 | `\mathcal{N}` | $\mathcal{N}$ | |
| 空心粗体 | `\mathbb{N}`或`\Bbb{N}` | $\mathbb{N}$ | 表示数集 |
| | | | |
| 紧贴 | `a\!b` | $a\!b$ | 缩进1/6m宽度 |
| 无空格 | `ab` | $ab$ | 无间距 |
| 小空格 | `a\,b` | $a\,b$ | 间距1/6m宽度 |
| 大空格 | `a\ b` | $a\ b$ | 间距1/3m宽度 |
| quad空格 | `a \quad b` | $a \quad b$ | 间距1m宽度 |
| 两个quad空格 | `a \qquad b` | $a \qquad b$ | 间距2m宽度 |
| | | | |
方程组
@ -24,5 +29,25 @@ $\begin{cases}
\end{cases}$
$\begin{equation}
E = mc^2
E = mc^2
\end{equation}$
## 在线资料
- [MathJax官方网站](https://www.mathjax.org/)
- [KaTeX语法支持表](https://katex.org/docs/support_table.html)
- [ChinaTeX数学排版常见问题集](http://static.latexstudio.net/wp-content/uploads/2018/02/ChinaTeXMathFAQ_V1.1.pdf)
应用到Gitea中添加以下内容到`templates/custom/header.tmpl`
```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
```