

修改字体
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| 改变字体大小:<font size=1>字体大小size=1</font> // size:规定文本的尺寸大小,取值范围为1~7 ,浏览器默认值是 3。注意,size=50也是可以显示的,但与7的字体大小一样
改变字体颜色:<font color=red>红色</font>、<font color=#ff0000>红色</font>
改变字体类型:<font face="楷书">楷书</font> //注意,字体类型的设置只能在电脑上才能显示字体效果,在手机上无法显示字体类型
上下标: html形式:下标:a<sub>2</sub> ;上标:a<sup>2</sup> 首先使用$$形成公式框进行公式编写 $$ a_2 $$
$$ a^2 $$
双下标(多个字符用{}括起来):不会换行 $$ D_{KB_A} $x^p_ {ij}$ $$
|

md公式
使用数学公式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| https://blog.csdn.net/jyfu2_12/article/details/79207643 https://zhuanlan.zhihu.com/p/261750408 矩阵: $$ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1} $$
方程组、条件表达式: $$ f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd} \end{cases} $$
$$ \begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases} $$
多行等式对齐: $$ \begin{aligned} a &= b + c \\ &= d + e + f \end{aligned} $$
真值表: $$ \begin{array}{cc|c} A&B&F\\ \hline 0&0&0\\ 0&1&1\\ 1&0&1\\ 1&1&1\\ \end{array} $$
行列式: $$ \begin{vmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{vmatrix} \tag{7} $$
|
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix} \tag{1}
a2
a2
DKBAxijp
f(n)={n/2,3n+1,if n is evenif n is odd
⎩⎪⎨⎪⎧3x+5y+z7x−2y+4z−6x+3y+2z
a=b+c=d+e+f
\begin{array}{cc|c}
A&B&F\\
\hline 0&0&0\\
0&1&1\\
1&0&1\\
1&1&1\\
\end{array}
\begin{vmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{vmatrix}
\tag{7}
公式对齐方式
需要对齐的内容以\begin{align}
和\end{aligned}
包围,在需要对齐的符号(如等号)前加&
来标记,用\\
来换行。
1 2 3 4 5 6 7 8 9 10 11
| \begin{aligned} KPI&=(N+S)W \\ &=NW+SW \end{aligned}
\begin{aligned} KPI&=(N+S)W \\ PI&=N+S \\ I&=W \end{aligned}
|
KPI=(N+S)W=NW+SW
KPIPII=(N+S)W=N+S=W
公式间加空格
1 2 3 4 5 6 7 8 9
| 输入字符 ab a\, b a\; b a\ b a~b a\space b a\quad b a\qquad b
|
ab\\
a\, b \\
a\; b \\
a\ b\\
a~b \\
a\space b \\
a\quad b\\
a\qquad b \\
注:
Typora中的数学公式需要用两个“”括起来(行间公式),或者用两个“”括起来(块间公式)
使用数学符号
关于如何在markdown文本中书写数学符号和公式(Latex)_june_francis的博客-CSDN博客_markdown如何打出数学符号
