From 9951c2e059614f7df27b0d31727ba217bc094747 Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Wed, 19 Mar 2025 09:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20LaTex=E6=95=B0=E5=AD=A6?= =?UTF-8?q?=E5=85=AC=E5=BC=8F=20=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + .../blog/Astro主题优雅的vhAstro-Theme.md | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) 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