Skip to content

Commit

Permalink
add note for usage math formular in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
hxf0223 committed Jul 2, 2024
1 parent 5765a5d commit 51baba3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions _posts/2024-07-02-using-math-formular-in-markdown.md
Original file line number Diff line number Diff line change
@@ -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/)

0 comments on commit 51baba3

Please sign in to comment.