diff --git a/README.md b/README.md index ab80924..b1d5aab 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ - [x] 语法高亮 - [x] 图片懒加载 - [x] 图片灯箱 +- [x] LaTex数学公式 - [x] Twikoo 评论 - [x] 本地搜索 - [x] 标签 diff --git a/src/content/blog/Astro主题优雅的vhAstro-Theme.md b/src/content/blog/Astro主题优雅的vhAstro-Theme.md index 5099530..1fe5e55 100644 --- a/src/content/blog/Astro主题优雅的vhAstro-Theme.md +++ b/src/content/blog/Astro主题优雅的vhAstro-Theme.md @@ -322,6 +322,48 @@ console.log(Object.keys(obj)); ##### H5 + +### 数学公式 + +```latex +% 函数式 +${f(x)=a_nx^n+a_{n-1}x^{n-1}+a_{n-2}x^{n-2}}+\cdots$ +% 四则运算 +$2x - 5y = 8$ +$3x + 9y = -12$ +$7x \times 2y \neq 3z$ +% 希腊字母 +$\Gamma$、$\iota$、$\sigma$、$\phi$、$\upsilon$、$\Pi$、$\Bbbk$、$\heartsuit$、$\int$、$\oint$ +% 三角函数、对数、指数 +$\tan$、$\sin$、$\cos$、$\lg$、$\arcsin$、$\arctan$、$\min$、$\max$、$\exp$、$\log$ +% 运算符 +$+$、$-$、$=$、$>$、$<$、$\times$、$\div$、$\equiv$、$\leq$、$\geq$、$\neq$ +% 集合符号 +$\cup$、$\cap$、$\in$、$\notin$、$\ni$、$\subset$、$\subseteq$、$\supset$、$\supseteq$、$\N$、$\Z$、$\R$、$\R$、$\infty$ +``` +> 函数式 + +${f(x)=a_nx^n+a_{n-1}x^{n-1}+a_{n-2}x^{n-2}}+\cdots$ +> 四则运算 + +$2x - 5y = 8$ +$3x + 9y = -12$ +$7x \times 2y \neq 3z$ + +> 希腊字母 + +$\Gamma$、$\iota$、$\sigma$、$\phi$、$\upsilon$、$\Pi$、$\Bbbk$、$\heartsuit$、$\int$、$\oint$ +> 三角函数、对数、指数 + +$\tan$、$\sin$、$\cos$、$\lg$、$\arcsin$、$\arctan$、$\min$、$\max$、$\exp$、$\log$ +> 运算符 + +$+$、$-$、$=$、$>$、$<$、$\times$、$\div$、$\equiv$、$\leq$、$\geq$、$\neq$ +> 集合符号 + +$\cup$、$\cap$、$\in$、$\notin$、$\ni$、$\subset$、$\subseteq$、$\supset$、$\supseteq$、$\N$、$\Z$、$\R$、$\R$、$\infty$ + + ### 按钮组件 ```md