Scrapboxで使えるTeX記法 (更新版)

#はじめに
[Scrapboxで使えるTeX記法(目次)](https://qiita.com/yuki_shipcat/items/10648019edaddc7a5b3c)
これは、私が1年前に作成した記事なのですが、そろそろドキュメントとして古くなりつつあることと、
ScrapboxのTeX記法がKaTeXベースらしい？ので、参考元を変更して、再作成することにしました。
随時カテゴリごとに追加していきますのでよろしくお願いします。
**更新はしばらくお待ちください。**
また、大きなドキュメントとしてページが長くなることをご了承ください。
#更新履歴
2019/05/28 23:00 一部項目を追加、公開
2019/05/29 12:00 色とかフォントを追加

#目次
アクセント
括弧
括弧の大きさ
行列
空欄
単位
色とかフォントとか

HTML
Letters and Unicode
Unicode Mathematical Alphanumeric Symbols
Layout
 Annotation
 Line Breaks
 Vertical Layout
 Overlap and Spacing
Logic and Set Theory
Macros
Operators
 Big Operators
 Binary Operators
 Fractions and Binomials
 Math Operators
 sqrt
Relations
 Negated Relations
 Arrows
Symbols and Punctuation

#アクセント
|書き方|見た目|
|:---:|:---:|
|`[$ a']`|$ a' $|
|`[$ a'']`|$ a''$|
|`[$ a^\prime]`|$ a^\prime$|
|`[$ \mathring{f}]`|$\mathring{f}$|
|`[$ \acute{a}]`|$\acute{a}$|
|`[$ \grave{a}]`|$\grave{a}$|
|`[$ \vec{F}]`|$\vec{F}$|
|`[$ \bar{a}]`|$\bar{a}$|
|`[$ \breve{a}]`|$\breve{a}$|
|`[$ \tilde{abc}]`|$\tilde{abc}$|
|`[$ \widetilde{abc}]`|$ \widetilde{abc}$|
|`[$ \utilde{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/375e1ab4-2cb3-ae84-908e-cc59eeb506ad.png)|
|`[$ \check{a}]`|$\check{a}$|
|`[$ \widecheck{abc}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/ffe381a6-430e-156c-507c-651889862722.png)|
|`[$ \dot{a}]`|$\dot{a}$|
|`[$ \ddot{a}]`|$\ddot{a}$|
|`[$ \hat{a}]`|$\hat{a}$|
|`[$ \widehat{abc}]`|$\widehat{abc}$|
|`[$ \overgroup{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4f58ab7e-b319-b7a5-d304-bc69e73f2836.png)|
|`[$ \undergroup{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/50b6e6d2-d2c9-102e-af9b-d2fdb0feb74e.png)|
|`[$ \Overrightarrow{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/86046011-59d3-0f77-2e96-160ff0219640.png)|
|`[$ \overleftarrow{AB}]`|$\overleftarrow{AB}$|
|`[$ \overrightarrow{AB}]`|$\overrightarrow{AB}$|
|`[$ \underleftarrow{AB}]`|$\underleftarrow{AB}$|
|`[$ \underrightarrow{AB}]`|$\underrightarrow{AB}$|
|`[$ \overleftharpoon{ab}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4a9a643a-496e-a8fc-b18d-e04149363feb.png)|
|`[$ \overrightharpoon{ab}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/66bd4435-dc86-7083-5476-72c98a23c159.png)|
|`[$ \overleftrightarrow{AB}]`|$\overleftrightarrow{AB}$|
|`[$ \underleftrightarrow{AB}]`|$\underleftrightarrow{AB}$|
|`[$ \overbrace{AB}]`|$\overbrace{AB}$|
|`[$ \underbrace{AB}]`|$\underbrace{AB}$|
|`[$ \overline{AB}]`|$\overline{AB}$|
|`[$ \underline{AB}]`|$\underline{AB}$|
|`[$ \overlinesegment{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4276e383-d05b-157b-c0ce-d64e5502221f.png)|
|`[$ \underlinesegment{AB}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/e049b6fe-9695-9374-065f-23e2037065c2.png)|
|`[$ \cancel{5}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/0277c0f6-e794-7811-bf96-c996babab754.png)|
|`[$ \bcancel{5}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/7b4c4698-a679-38da-56fd-512c24ba19ff.png)|
|`[$\overbrace{a+b+c}^{>>1},\;\underbrace{d+e+f}_{>>1}]`|$\overbrace{a+b+c}^{>>1},\;\underbrace{d+e+f}_{>>1}$|
|`[$ \xcancel{5}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/fd2e3c60-4880-4dc9-f145-71a150a6c510.png)|
|`[$ \not=]`|$\not=$ `:色々応用が利く`|
|`[$ \sout{abc}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/69a46979-9a8d-ecf6-60b0-3c81ebade36c.png)|
|`[$ \boxed{t=\frac a b}]`|$ \boxed{t=\frac a b}$|


#括弧
|書き方|見た目|
|:---:|:---:|
|`[$ ()]`|$ ()$|
|`[$ \lparen \rparen]`|$ ()$|
|`[$ ⌈⌉]`|$ ⌈⌉$|
|`[$ \lceil \rceil]`|$ \lceil \rceil$|
|`[$ [] ]`|$ []$ `:]の前に半角スペースが必要`|
|`[$ \lbrack \rbrack]`|$ \lbrack \rbrack$|
|`[$ ⌊⌋]`|$ ⌊⌋$|
|`[$ \lfloor \rfloor]`|$ \lfloor\rfloor$|
|`[$ \lbrace \rbrace]`|$ \lbrace \rbrace$|
|`[$ ⎰⎱]`|$ ⎰⎱$|
|`[$ \lmoustache \rmoustache]`|$ \lmoustache \rmoustache$|
|`[$ ⟨ ⟩]`|$ ⟨ ⟩$|
|`[$ \langle \rangle]`|$ \langle \rangle$|
|`[$ ⟮ ⟯]`|$ ⟮ ⟯$|
|`[$ \lgroup \rgroup]`|$ \lgroup \rgroup$|
|`[$ \vert]`|$ \vert$|
|`[$ ┌┐]`|$ ┌┐$|
|`[$ \ulcorner \urcorner]`|$ \ulcorner \urcorner$|
|`[$ \Vert]`|$ \Vert$|
|`[$ └┘]`|$ └┘$|
|`[$ \llcorner \lrcorner]`|$ \llcorner \lrcorner$|
|`[$ \lvert \rvert]`|$ \lvert \rvert$|
|`[$ \lVert \rVert]`|$ \lVert \rVert$|
|`[$ \backslash]`|$ \backslash$|
|`[$ \lang \rang]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4fc4d409-f953-e20d-950e-f72bef268bca.png)|

##括弧の大きさ
|書き方|見た目|
|:---:|:---:|
|`[$ \left(\LARGE{AB}\right)]`|$ \left(\LARGE{AB}\right)$|
|`[$ ( \big(\Big(\bigg(\Bigg(]`|$ ( \big(\Big(\bigg(\Bigg($|
|`[$ \left(\LARGE{AB}\middle)\LARGE{CD}\right)]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/113ed471-4cba-d353-4549-f7d03de738d8.png)|

#行列
|書き方|見た目|
|:---:|:---:|
|`[$ \begin{matrix} a&b \\ c&d \end{matrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/6a5134fe-7c4a-1767-086d-aafce0ccce0c.png)|
|`[$ \begin{pmatrix} a&b \\ c&d \end{pmatrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/1422ba21-ba57-f3ed-2319-f75de4c5b38b.png)|
|`[$ \begin{bmatrix} a&b \\ c&d \end{bmatrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/ff2db8e1-eaa9-6cae-45bc-022b1433fc4d.png)|
|`[$ \begin{vmatrix} a&b \\ c&d \end{vmatrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/e1c25e27-0226-a199-ca89-c2d845c83ab9.png)|
|`[$ \begin{Vmatrix} a&b \\ c&d \end{Vmatrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/466f492c-ad16-485f-5ee8-275854166827.png)|
|`[$ \begin{Bmatrix} a&b \\ c&d \end{Bmatrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/41740a76-1941-1643-d9f4-feca949bf0b8.png)|
|`[$ \begin{array}{c:c:c} a & b & c \\ \hline d & e & f \\ \hdashline g & h & i \end{array}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/1318126c-617f-2ab9-1505-e54719ab3484.png)|
|`[$ \binom{n}{k}]`|$ \binom{n}{k}$|
|`[$ \dbinom{n}{k}]`|$ \dbinom{n}{k}$|
|`[$ n\brace k]`|$ n\brace k$|
|`[$ n \choose k]`|$ n \choose k$|
|`[$ \tbinom{n}{k}]`|$ \tbinom{n}{k}$|
|`[$ n \brack k]`|$ n \brack k$|
|`[$ \begin{aligned} a&=b+c \\ d+e&=f \end{aligned}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/9c25c5ff-c32a-baeb-1dc4-46a8962f103d.png)`：イコールに揃えてる`|
|`[$ \begin{alignedat}{2} 10&x+ &3&y = 2 \\ 3&x+&13&y = 4 \end{alignedat}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/bb3d42cb-93a3-0f0f-e148-db5d3879556b.png)`：上手く応用すればこんな感じに`|
|`[$ \begin{gathered} a=b \\ e=b+c \end{gathered}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/ac2c58f5-11c0-7604-8a46-19da8d8c5a81.png)|
|`[$ x = \begin{cases} a&(x=0)\\ b&(x\neq 0) \end{cases}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/5e48dcc2-2af6-748c-04ad-1919a66ae372.png)|

#空欄
|書き方|見た目|
|:---:|:---:|
|`[$ a\,b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/3ebaf249-4d08-ad7a-44b2-27f3a28dcdf1.png)|
|`[$ a\thinspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4bf0b288-b9f2-b821-2538-cee0ebe75905.png)|
|`[$ a\>b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/b9cd5445-f470-b268-fceb-ca4b5280f08c.png)|
|`[$ a\:b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/419c251d-1194-97e4-a8f6-991c0716c05d.png)|
|`[$ a\medspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/9d4709cc-be2c-bdc4-cf6f-c61dac5e983a.png)|
|`[$ a\;b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/a72893de-8134-3b98-835c-b5049d44787d.png)|
|`[$ a\thickspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4eefe1eb-9156-d200-b8e1-d21fbdbc24c9.png)|
|`[$ a\enspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/a067dcfe-fa76-0c20-b330-256f3ff6a8ac.png)|
|`[$ a\quad b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/6c2f4dce-f826-e980-4090-1516282be3e2.png)|
|`[$ a\qquad b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/84ab0f8b-e48a-ce1d-1da0-cdfc81702b07.png)|
|`[$ a~b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/b25e4bcc-4dda-1238-e10e-adefe42008dd.png)|
|`[$ a\ b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/8a83ec20-345b-c418-cd82-3d1a3d640672.png)|
|`[$ a\nobreakspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/80b9144b-b4e7-2d62-bd14-9d4054726462.png)|
|`[$ a\space b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/84aec299-31af-03b3-4f7b-82574027037f.png)|
|`[$ a\kern{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/8756bc5c-9066-bcf2-fadc-757e6465c21b.png)|
|`[$ a\mkern{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/f18327df-c474-98e8-99d4-bcd565d52d06.png)|
|`[$ a\mskip{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/f09b4c5e-b37f-7aec-792c-d8e8aa9d0682.png)|
|`[$ a\hskip{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/4fc5e611-55cb-3e37-22e9-4f46fc865fce.png)|
|`[$ a\hskip{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/fce35b02-52bb-66ca-d64b-750be0c24086.png)|
|`[$ a\hspace{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/6144b128-6cc4-1532-43a5-ced82a7a41ae.png)|
|`[$ a\hspace*{1em}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/a77e7d1f-dabf-cd66-480b-bebd062532de.png)|
|`[$ \begin{matrix}x+2y=1\\\phantom{x+}3y=4\end{matrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/d5afc9ed-637a-06ae-db64-a539ea77542f.png)|
|`[$ \begin{matrix}x+2y=1\\ \hphantom{x+}3y=4\end{matrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/68520383-4be6-591e-88da-51cce72857de.png)|
|`[$ \begin{matrix}x+2y=1\\\vphantom{x+}3y=4\end{matrix}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/fa2fd73f-b314-6881-7642-ed8869881d00.png)|
|`[$ a\!b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/288f4ebf-10cc-db7d-9c0b-b13bb70dfdeb.png)|
|`[$ a\negthinspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/3b4ce7a8-75e3-9574-258c-5122a74605ce.png)|
|`[$ a\negmedspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/7ca2e924-86cd-99eb-d309-2fba998eedcb.png)|
|`[$ a\negthickspace b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/3c964238-d442-8d8f-3789-8a7f30efe485.png)|

##単位
|書き方|見た目|
|:---:|:---:|
|`[$ a\kern{1em}b]`|$ a\kern{1em}b$|
|`[$ a\kern{1ex}b]`|$ a\kern{1ex}b$|
|`[$ a\kern{1mu}b]`|$ a\kern{1mu}b$|
|`[$ a\kern{1pt}b]`|$ a\kern{1pt}b$|
|`[$ a\kern{1mm}b]`|$ a\kern{1mm}b$|
|`[$ a\kern{1cm}b]`|$ a\kern{1cm}b$|
|`[$ a\kern{1in}b]`|$ a\kern{1in}b$|
|`[$ a\kern{1bp}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/8af1348a-e737-56de-3c33-16b5e865ae44.png)|
|`[$ a\kern{1pc}b]`|$ a\kern{1pc}b$|
|`[$ a\kern{1dd}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/880f7e2b-32a3-0ffd-9b9b-bf0c0480c36e.png)|
|`[$ a\kern{1cc}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/9d3d011d-7a0a-877a-2a3e-ba4848595c04.png)|
|`[$ a\kern{1nd}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/5589d45e-191e-6bba-87e3-641b6fdd9e91.png)|
|`[$ a\kern{1nc}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/04c58f28-4d6f-848d-9618-df05a83e5d6a.png)|
|`[$ a\kern{1sp}b]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/9d9a0882-4c08-7d37-7e29-571bdb719677.png)|

#色とかフォントとか
|書き方|見た目|
|:---:|:---:|
|`[$ \color{blue}{F=ma}]`|$ \color{blue}{F=ma}$|
|`[$ \textcolor{blue}{F=ma}]`|$ \color{blue}{F=ma}$|
|`[$ \textcolor{#0000FF}{F=ma}]`|$ \color{blue}{F=ma}$|
|`[$ \colorbox{aqua}{A}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/f42475d1-0fe3-07bc-060d-959c02195769.png)|
|`[$ \fcolorbox{red}{aqua}{A}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/0e37b848-8b63-652a-f438-6da81fb4d762.png)|
|`[$ \mathrm{Ab0}]`|$ \mathrm{Ab0}$|
|`[$ \mathbf{Ab0}]`|$ \mathbf{Ab0}$|
|`[$ \mathit{Ab0}]`|$ \mathit{Ab0}$|
|`[$ \mathnormal{Ab0}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/a107366b-a57a-0568-e620-60da0fd41944.png)|
|`[$ \textbf{Ab0}]`|$ \textbf{Ab0}$|
|`[$ \textit{Ab0}]`|$ \textit{Ab0}$|
|`[$ \textrm{Ab0}]`|$ \textrm{Ab0}$|
|`[$ \bf{Ab0}]`|$ \bf{Ab0}$|
|`[$ \it{Ab0}]`|$ \it{Ab0}$|
|`[$ \rm{Ab0}]`|$ \rm{Ab0}$|
|`[$ \bold{Ab0}]`|$ \bf{Ab0}$|
|`[$ \textnormal{Ab0}]`|![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/256240/9931e521-59e3-85ba-f1e0-60e88fda4ae6.png)|
|`[$ \boldsymbol{Ab0}]`|$ \boldsymbol{Ab0}$|
|`[$ \Bbb{Ab0}]`|$ \Bbb{Ab0}$|
|`[$ \text{Ab0}]`|$ \text{Ab0}$|
|`[$ \bm{Ab0}]`|$ \boldsymbol{Ab0}$|
|`[$ \mathbb{Ab0}]`|$ \mathbb{Ab0}$|
|`[$ \mathsf{Ab0}]`|$ \mathsf{Ab0}$|
|`[$ \frak{Ab0}]`|$ \frak{Ab0}$|
|`[$ \textsf{Ab0}]`|$ \textsf{Ab0}$|
|`[$ \mathtt{Ab0}]`|$ \mathtt{Ab0}$|
|`[$ \mathfrak{Ab0}]`|$ \mathfrak{Ab0}$|
|`[$ \sf{Ab0}]`|$ \sf{Ab0}$|
|`[$ \texttt{Ab0}]`|$ \texttt{Ab0}$|
|`[$ \mathcal{Ab0}]`|$ \mathcal{Ab0}$|
|`[$ \tt{Ab0}]`|$ \tt{Ab0}$|
|`[$ \mathscr{Ab0}]`|$ \mathscr{Ab0}$|
|`[$ \Huge{AB}]`|$ \Huge{AB}$|
|`[$ \huge{AB}]`|$ \huge{AB}$|
|`[$ \LARGE{AB}]`|$ \LARGE{AB}$|
|`[$ \Large{AB}]`|$ \Large{AB}$|
|`[$ \large{AB}]`|$ \large{AB}$|
|`[$ \normalsize{AB}]`|$ \normalsize{AB}$|
|`[$ \small{AB}]`|$ \small{AB}$|
|`[$ \scriptsize{AB}]`|$ \scriptsize{AB}$|
|`[$ \tiny{AB}]`|$ \tiny{AB}$|
|`[$ \displaystyle{\sum_{n=1}^k}]`|$ \displaystyle{\sum_{n=1}^k}$|
|`[$ \textstyle{\sum_{n=1}^k}]`|$ \textstyle{\sum_{n=1}^k}$|
|`[$ \scriptsize{x}]`|$ \scriptsize{x}$|
|`[$ \scriptscriptstyle{x}]`|$ \scriptscriptstyle{x}$|
|`[$ \lim\limits_x]`|$ \lim\limits_x$|
|`[$ \lim\nolimits_x]`|$ \lim\nolimits_x$|
|`[$ \verb!x^2!]`|$ \verb!x^2!$|

#分数
|書き方|見た目|
|:---:|:---:|
|`[$ \frac{a}{b}]`|$ \displaystyle{\frac{a}{b}}$|
|`[$ \tfrac{a}{b}]`|$ \tfrac{a}{b}$|
|`[$ \genfrac(]{2pt}{1}a{a+1} ]`|$ \genfrac(]{2pt}{1}a{a+1} $|
|`[$ a \over b]`|$ a \over b$|
|`[$ \dfrac{a}{b}]`|$ \dfrac{a}{b}$|
|`[$ a \above{2pt} b+1]`|$ \displaystyle{a \above{2pt} b+1}$|
|`[$ a/b]`|$ a/b$|
|`[$ \cfrac{a}{1+\cfrac{1}{b}}]`|$ \cfrac{a}{1+\cfrac{1}{b}}$|

#おまけ
一応同一`[]`内であれば定義関数は使えるらしい。

|書き方|見た目|
|:---:|:---:|
|`[$ \def\foo{x^2} \foo+\foo]`|$\def\foo{x^2} \foo+\foo$|
|`[$ \gdef\bar#1{#1^2} \bar{y} + \bar{y}]`|$y^2+y^2$|


#？？？
まだ未完の状態なので、更新までしばらくお待ちください

#参考元
Supported Functions・KaTeX
https://katex.org/docs/supported.html