- Markdown 문서를 VS Code로 작성하는 경우
$\LaTeX$ 의 일부는 사용이 어렵다.
대신,$\KaTeX$ 를 이용하면 어느 정도 표현이 가능하다. -
$\KaTeX$ 문서는$\LaTeX$ 문서에서 대부분 출력이 가능할 것으로 보인다. -
$\LaTeX$ 문서의 일부는$\KaTeX$ 문서에서 일부 출력이 불가할 것으로 보인다. - 웹에 업로드 하는 경우 Markdown 구현에 따라 조금씩 달라 작성 후 확인이 필요하다.
KaTeX.org의 document와 GitHub 구현에 차이점이 존재한다.
-
GitHub 관련 : GitHub는 MathJax (
$\KaTeX$ 와 경쟁 관계) 를 사용한다. 그리지 못하는$\KaTeX$ 문법의 경우 빨간 글씨로 표시된다.- 이 파일은 GitHub에서 읽을 때 최적화를 목표로 한다. 원본 파일은 따로 업로드한다.
항목 | 내용 | 렌더링 |
---|---|---|
Inline block | $F(x)=a+b$ |
|
Code Block | $$F(x)=a+b$$ |
Greeks | |||
---|---|---|---|
\alpha
|
\Alpha
|
\beta
|
\Beta
|
\gamma
|
\Gamma
|
\delta
|
\Delta
|
\epsilon
|
\Epsilon
|
\zeta
|
\Zeta
|
\eta
|
\Eta
|
\theta
|
\Theta
|
\kappa
|
\Kappa
|
\lambda
|
\Lambda
|
\nu
|
\Nu
|
\xi
|
\Xi
|
\pi
|
\Pi
|
\rho
|
\Rho
|
\sigma
|
\Sigma
|
\tau
|
\Tau
|
\phi
|
\Phi
|
\psi
|
\Psi
|
\omega
|
\Omega
|
Accents | |||
---|---|---|---|
a'
|
a''
|
\check{a}
|
\dot{a}
|
\ddot{a}
|
\hat{a}
|
\underbar{a}
|
\tilde{a}
|
\utilde{a}
|
\vec{a}
|
\overleftarrow{a}
|
\overrightarrow{a}
|
\underleftarrow{a}
|
\underrightarrow{a}
|
\overline{ab}
|
\underline{ab}
|
\overlinesegment{ab}
|
\underlinesegment{ab}
|
\overgroup{ab}
|
\undergroup{ab}
|
\overbrace{ab}
|
\underbrace{ab}
|
Delimiters | |||||||
---|---|---|---|---|---|---|---|
() \lparen \rparen
|
\{\} \lbrace \rbrace
|
[] \lbrack \rbrack
|
⟮⟯ \lgroup \rgroup * 키보드 기본 키에 없음 |
||||
⟦⟧ \llbracket \rrbracket * 키보드 기본 키에 없음 |
\lBrace \rBrace
|
\lt \gt
|
⟨⟩ \lang \rang * 키보드 기본 키에 없음 |
||||
| \vert \lvert \rvert * 마크다운 기호와 겹침 주의 |
|| \Vert \lVert \rVert * 마크다운 기호와 겹침 주의 |
Sizing | ||||
---|---|---|---|---|
(
|
\big(
|
\Big(
|
\bigg(
|
\Bigg(
|
Logic | |||
---|---|---|---|
=
|
<
|
>
|
:
|
\approx
|
\approxcolon
|
\colonapprox
|
\approxeq
|
\cong
|
\doteq
|
\Doteq
|
\sim
|
\simeq
|
\eqsim
|
\equiv
|
\fallingdotseq
|
\geqq
|
\gtrapprox
|
\leqq
|
\lessapprox
|
\forall
|
\complement
|
\emptyset
|
\varnothing
|
\exists
|
\nexists
|
\subset
|
\supset
|
\in
|
\notin
|
\ni
|
\not \ni
|
\to
|
\gets
|
\implies
|
\impliedby
|
\leftrightarrow
|
\iff
|
\therefore
|
\because
|
\set{ x \vert x > 10} |
\Set{ x \vert x > 10} |
Spacing | |||
---|---|---|---|
\, 3/18 em |
\enspace 1/2 em |
||
\quad 1 em |
\qquad 2 em |
Vertical | |||
---|---|---|---|
a_b
|
a^b
|
_a^b
|
|
\stackrel{a}{b}
|
\overset{a}{b}
|
\underset{a}{b}
|
Annotation | |||
---|---|---|---|
\not a
|
\bcancel{a}
|
\xcancel{a}
|
\sout{a}
|
\overbrace{abc}^{\text{note}}
|
\underbrace{abc}_{\text{note}}
|
\boxed{a=\frac b c}
|
\phase{60^\circ}
|
\tag{a.b} x=y |
\tag*{a.b} x=y |
\begin{matrix}
a&b\\
c&d
\end{matrix}
\begin{pmatrix}
a&b\\
c&d
\end{pmatrix}
\begin{Bmatrix}
a&b\\
c&d
\end{Bmatrix}
\begin{bmatrix}
a&b\\
c&d
\end{bmatrix}
\begin{vmatrix}
a&b\\
c&d
\end{vmatrix}
\begin{array}{c:c:c}
a&b&c\\
\hline
d&e&f\\
\hdashline
g&h&i
\end{array}
\begin{bmatrix}
a&\cdots&b\\
\vdots&\ddots&\vdots\\
c&\cdots&d
\end{bmatrix}
Operators | |||
---|---|---|---|
+
|
-
|
*
|
/
|
\pm
|
\times
|
\div
|
\And
|
\cdot
|
\circ
|
\cap
|
\cup
|
\oplus
|
\ominus
|
\odot
|
\otimes
|
\bmod
|
x\mod a
|
x\pmod a
|
x\pod a
|
\sin
|
\sinh
|
\arcsin
|
|
\cos
|
\cosh
|
\arccos
|
|
\tan
|
\tanh
|
\arctan
|
|
\sec
|
\csc
|
\cot
|
|
\det
|
\inf
|
\min
|
\max
|
\deg
|
\sec
|
||
\log
|
\ln
|
\exp
|
\sup
|
\lim
|
\varliminf
|
\varinjlim
|
\varprojlim
|
\sqrt[a]{b}
|
\operatorname{f}
|
Big Operators | |||
---|---|---|---|
\sum
|
\prod
|
\coprod
|
|
\int
|
\iint
|
\iiint
|
|
\oint
|
\oiint
|
\oiiint
|
|
\bigotimes
|
\bigoplus
|
\bigodot
|
Fractions | |||
---|---|---|---|
a/b
|
a\over b
|
\frac{a}{b}
|
\dfrac{a}{b}
|
\genfrac(]{1pt}{}{a}{b+c}
|
{a}\above{1pt}{b+c}
|
\cfrac{a}{b+\cfrac{c}{d}}
|
Binomials | |||
---|---|---|---|
\binom{a}{b}
|
\dbinom{a}{b}
|
{a}\brace{b}
|
{a}\brack{b}
|
Symbols | |||
---|---|---|---|
\%
|
\#
|
\&
|
\colon
|
\infty
|
\infin
|
||
\degree
|
\angle
|
\measuredangle
|
\sphericalangle
|
\prime
|
\backprime
|
||
\cdots
|
\vdots
|
\ddots
|
\ldots
|
\Box
|
\triangle
|
\triangledown
|
\diamond
|
\begin{equation}
F(x)=a+b
\end{equation}
\begin{equation}
\begin{split}
F(x)=a+b\\
=c+b
\end{split}
\end{equation}
\begin{align}
F(x)=a+b\\
=c
\end{align}
\begin{aligned}
F(x)=a+b\\
=c
\end{aligned}
\begin{gather}
F(x)=a+b\\
=c
\end{gather}
\begin{gathered}
F(x)=a+b\\
=c
\end{gathered}
\begin{align}
F(x)&=a+b\\
&=c
\end{align}
\begin{align}
\tag{1.1}
a+b=1\\
\tag{1.2}
c+d=2
\end{align}
* 수식에 태그 붙이는 방법
x = \begin{cases}
a &\text{if } b \\
c &\text{if } d
\end{cases}
\begin{rcases}
a &\text{if } b \\
c &\text{if } d
\end{rcases}⇒…
Color | |
---|---|
\textcolor{blue}{a+b=c} |
|
\textcolor{#126A31}{a+b=c} |
|
$$\colorbox{skyblue}{$a+b=c$}$$ | \colorbox{skyblue}{$a+b=c$} |
$$\fcolorbox{crimson}{gold}{$a+b=c$}$$ | \fcolorbox{crimson}{gold}{$a+b=c$} |
Font | |
---|---|
\mathrm{abc} |
|
\mathbf{abc} |
|
\mathit{abc} |
|
Size | ||||
---|---|---|---|---|
\large a
|
\Large a
|
\LARGE a
|
\huge a
|
\Huge a
|