From a006acea29ac51515fe712914c8ffe4114b3fc6a Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Sat, 19 Nov 2022 01:23:32 +0800
Subject: [PATCH] doc: update latex.md #140
---
docs/latex.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 80 insertions(+), 4 deletions(-)
diff --git a/docs/latex.md b/docs/latex.md
index 3623485..8deaad2 100644
--- a/docs/latex.md
+++ b/docs/latex.md
@@ -130,6 +130,54 @@ Supported Functions
`KaTex:\digamma` | `\digamma`
+### 注解
+
+
+:- | :- | :- | :- | :-
+:- | :- | :- | :- | :-
+`KaTex:\cancel{5}` | `\cancel{5}` | `KaTex:\overbrace{a+b+c}^{\text{note}}` | `\overbrace{a+b+c}^{\text{note}}`
+`KaTex:\bcancel{5}` | `\bcancel{5}` | `KaTex:\underbrace{a+b+c}_{\text{note}}` | `\underbrace{a+b+c}_{\text{note}}`
+`KaTex:\xcancel{ABC}` | `\xcancel{ABC}` | `KaTex:\not =` | `\not =`
+`KaTex:\sout{abc}` | `\sout{abc}` | `KaTex:\boxed{\pi=\frac c d}` | `\boxed{\pi=\frac c d}`
+`KaTex:\$a_{\angl n}` _MD语法冲突_ | `$a_{\angl n}` | `KaTex:a_\angln` | `a_\angln`
+`KaTex:\phase{-78^\circ}` | `\phase{-78^\circ}`
+
+\tag{hi} x+y^{2x}
+
+```KaTex
+\tag{hi} x+y^{2x}
+```
+
+\tag*{hi} x+y^{2x}
+
+```KaTex
+\tag*{hi} x+y^{2x}
+```
+
+### 垂直布局
+
+
+:- | :- | :- | :- | :- | :-
+:- | :- | :- | :- | :- | :-
+`KaTex:x_n` | `x_n` | `KaTex:\stackrel{!}{=}` | `\stackrel{!}{=}` | `KaTex:a \atop b` | `a \atop b`
+`KaTex:e^x` | `e^x` | `KaTex:\overset{!}{=}` | `\overset{!}{=}` | `KaTex:a\raisebox{0.25em}{$b$}c` | `a\raisebox{0.25em}{$b$}c`
+`KaTex:_u^o` | `_u^o` | `KaTex:\underset{!}{=}` | `\underset{!}{=}` | `KaTex:a+\left(\vcenter{\hbox{$\frac{\frac a b}c$}}\right)` | `a+\left(\vcenter{\hbox{$\frac{\frac a b}c$}}\right)`
+`KaTex:\sum_{\substack{0`\sum_{\substack{0
+
+### 重叠和间距
+
+
+ :- | :- | :- | :-
+ :- | :- | :- | :-
+`KaTex:{=}\mathllap{/\,}` {=}\mathllap{/\,} | `KaTex:\left(x^{\smash{2}}\right)` | \left(x^{\smash{2}}\right)
+`KaTex:\mathrlap{\,/}{=}` \mathrlap{\,/}{=} | `KaTex:\sqrt{\smash[b]{y}}` | \sqrt{\smash[b]{y}}
+
+`\sum_{\mathclap{1\le i\le j\le n}} x_{ij}`
+
+```KaTex
+\sum_{\mathclap{1\le i\le j\le n}} x_{ij}
+```
+
### `KaTex:\LaTeX` math constructs
@@ -532,11 +580,39 @@ x = \begin{cases}
\end{CD}
```
-### xxx
+样式、颜色、大小和字体
+---
-```KaTeX
-{\KaTeX}
-```
+### Color 颜色
+
+:- | :-
+:- | :-
+`KaTex:\color{blue} F=ma` | `\color{blue} F=ma`
+`KaTex:\textcolor{blue}{F=ma}` | `\textcolor{blue}{F=ma}`
+`KaTex:\textcolor{#228B22}{F=ma}` | `\textcolor{#228B22}{F=ma}`
+`KaTex:\colorbox{aqua}{$F=ma$}` | `\colorbox{aqua}{$F=ma$}`
+`KaTex:\fcolorbox{red}{aqua}{$F=ma$}` | `\fcolorbox{red}{aqua}{$F=ma$}`
+
+### Font 字体
+
+
+:- | :- | :- | :- | :- | :-
+:- | :- | :- | :- | :- | :-
+`KaTex:\Huge AB` | `\Huge AB` | `KaTex:\normalsize AB` | `\normalsize AB` | `KaTex:\normalsize AB` | \normalsize AB
+`KaTex:\huge AB` | `\huge AB` | `KaTex:\huge AB` | `\huge AB` | `KaTex:\small AB` | \small AB
+`KaTex:\LARGE AB` | `\LARGE AB` | `KaTex:\LARGE AB` | `\LARGE AB` | `KaTex:\footnotesize AB` | \footnotesize AB
+`KaTex:\Large AB` | `\Large AB` | `KaTex:\Large AB` | `\Large AB` | `KaTex:\scriptsize AB` | \scriptsize AB
+`KaTex:\large AB` | `\large AB` | `KaTex:\large AB` | `\large AB` | `KaTex:\tiny AB` | \tiny AB
+
+### Style 样式
+
+
+:- | :- | :- | :-
+:- | :- | :- | :-
+`KaTex:\displaystyle\sum_{i=1}^n` | \displaystyle\sum_{i=1}^n | `KaTex:\textstyle\sum_{i=1}^n` | \textstyle\sum_{i=1}^n
+`KaTex:\scriptstyle x` | \scriptstyle x | `KaTex:\scriptscriptstyle x` | \scriptscriptstyle x
+`KaTex:\lim\limits_x` | \lim\limits_x | `KaTex:\lim\nolimits_x` | \lim\nolimits_x
+`KaTex:\verb!x^2!` | \verb!x^2!
另见
----