From 51baba3a55d427053dbb409808b3e895351085fb Mon Sep 17 00:00:00 2001 From: hxf0223 Date: Tue, 2 Jul 2024 20:32:21 +0800 Subject: [PATCH] add note for usage math formular in markdown --- ...4-07-02-using-math-formular-in-markdown.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 _posts/2024-07-02-using-math-formular-in-markdown.md diff --git a/_posts/2024-07-02-using-math-formular-in-markdown.md b/_posts/2024-07-02-using-math-formular-in-markdown.md new file mode 100644 index 0000000..7b0ae1e --- /dev/null +++ b/_posts/2024-07-02-using-math-formular-in-markdown.md @@ -0,0 +1,41 @@ +--- +title: 在Markdown中使用数学公式 +date: 2024-07-02 +0800 # 2022-01-01 13:14:15 +0800 只写日期也行;不写秒也行;这样也行 2022-03-09T00:55:42+08:00 +categories: [markdown] +tags: [misc, markdown] # TAG names should always be lowercase + +# 以下默认false +math: true +mermaid: true +# pin: true +--- + +## 1. 在字符中添加空格 + +有四种宽度的空格可以使用,如下表格: + +| 语法 | 显示 | +| --- | ------ | +| \, | a b | +| \; | a b | +| \quad | a b | +| \qquad | a b | + +一个示例如下: + +$$ +\begin{cases} +(H_{y1} < y_i < H_{y2}) \;and\; (H_{y1} < y_o < H_{y2}) \\ +(50^\circ < |K_i| < 90^\circ) \;and\; (50^\circ < |K_o| < 90^\circ) \\ +\sqrt{(x_i - x_o)^2 + (y_i - y_o)^2} \leq L_{smin} \\ +k_i \times k_o > 0 \\ +\Delta x > \Delta y \\ +x_i > x_o & \text{后向探头数据} \\ +x_i < x_o & \text{前向探头数据} +\end{cases} +$$ + +更多数学公式的使用: + +- [[markdown语法]公式篇--整理总结了常用的公式语法全](https://blog.csdn.net/m0_37769093/article/details/107732606) +- [Markdown 数学公式指导手册](https://freeopen.github.io/mathjax/) \ No newline at end of file