TeX 문법

TeX Grammar
TeX 주요 문법

1 분수[ | ]

종류 입력 출력
세로 분수 \frac { 7 }{ 22 } [math]\displaystyle{ \frac { 7 }{ 22 } }[/math]
세로 분수 \tfrac { 7 }{ 22 } [math]\displaystyle{ \tfrac { 7 }{ 22 } }[/math]
세로 분수 (크게) ★ \dfrac { 7 }{ 22 } [math]\displaystyle{ \dfrac { 7 }{ 22 } }[/math]
가로 분수 7/22 [math]\displaystyle{ 7/22 }[/math]
가로 분수 7\Big/22 [math]\displaystyle{ 7\Big/22 }[/math]

2 근호[ | ]

종류 입력 출력
제곱근 \sqrt { 2 } [math]\displaystyle{ \sqrt { 2 } }[/math]
차수가 있는 근호 \sqrt [ 3 ]{ 5 } [math]\displaystyle{ \sqrt [ 3 ]{ 5 } }[/math]

3 첨자[ | ]

종류 입력 출력
위 첨자 a^{ 2 } [math]\displaystyle{ a^{ 2 } }[/math]
아래 첨자 a_{ 5 } [math]\displaystyle{ a_{ 5 } }[/math]
위 첨자 + 아래 첨자 a_{ 5 }^{ 2 } [math]\displaystyle{ a_{ 5 }^{ 2 } }[/math]

4 미적분[ | ]

종류 입력 출력
부정적분 \int{ x } [math]\displaystyle{ \int{ x } }[/math]
정적분 \int _{ a }^{ 2 }{ x } [math]\displaystyle{ \int _{ a }^{ 2 }{ x } }[/math]

5 대형연산자[ | ]

종류 입력 출력
\sum { x } [math]\displaystyle{ \sum { x } }[/math]
\prod { x } [math]\displaystyle{ \prod { x } }[/math]
공곱 \coprod { x } [math]\displaystyle{ \coprod { x } }[/math]
합집합 \bigcup { x } [math]\displaystyle{ \bigcup { x } }[/math]
교집합 \bigcap { x } [math]\displaystyle{ \bigcap { x } }[/math]
V \bigvee { x } [math]\displaystyle{ \bigvee { x } }[/math]
쐐기형 \bigwedge { x } [math]\displaystyle{ \bigwedge { x } }[/math]

6 괄호[ | ]

괄호는 그냥 ( ) 로 써도 되지만, 그렇게 하면 괄호 안 내용의 크기에 맞춰지지 않는다. 자동으로 맞춰지게 하려면 \left( \right)와 같은 형식으로 쓰자.

예: [math]\displaystyle{ (\frac{x}{y}) }[/math], [math]\displaystyle{ \left(\frac{x}{y}\right) }[/math]
종류 입력 출력
소괄호 \left( x \right) [math]\displaystyle{ \left( x \right) }[/math]
중괄호 \left\{ x \right\} [math]\displaystyle{ \left\{ x \right\} }[/math]
대괄호 \left[ x \right] [math]\displaystyle{ \left[ x \right] }[/math]
꺾인 괄호(꺾쇠) \left< x \right> [math]\displaystyle{ \left\lt x \right\gt }[/math]
절대값 \left| x \right| [math]\displaystyle{ \left| x \right| }[/math]

7 함수[ | ]

종류 입력 출력
함수 f f\left( x \right) [math]\displaystyle{ f\left( x \right) }[/math]
사인 \sin { \theta } [math]\displaystyle{ \sin { \theta } }[/math]

8 장식기호[ | ]

종류 입력 출력
\dot { x } [math]\displaystyle{ \dot { x } }[/math]
이중점 \ddot { x } [math]\displaystyle{ \ddot { x } }[/math]
삼중점 \dddot { x } [math]\displaystyle{ \dddot { x } }[/math]
사중점 \ddddot { x } [math]\displaystyle{ \ddddot { x } }[/math]
모자(hat) \hat { x } [math]\displaystyle{ \hat { x } }[/math]
체크(check) \check { x } [math]\displaystyle{ \check { x } }[/math]
원문자 \textcircled { x } [math]\displaystyle{ \textcircled { x } }[/math]

9 공백[ | ]

종류 입력 출력
더블쿼드 공백 a \qquad b [math]\displaystyle{ a \qquad b }[/math]
쿼드 공백 a \quad b [math]\displaystyle{ a \quad b }[/math]
공백 a\ b [math]\displaystyle{ a\ b }[/math]
공백 a\;b [math]\displaystyle{ a\;b }[/math]
공백 a\>b [math]\displaystyle{ a\;b }[/math]
작은 공백 a\,b [math]\displaystyle{ a\,b }[/math]
작은 공백 a\ b [math]\displaystyle{ a\ b }[/math]
공백 없음 ab [math]\displaystyle{ ab }[/math]
음의 공백 a\!b [math]\displaystyle{ a\!b }[/math]

10 컬러[ | ]

Colors supported (black ones not supported)
[math]\displaystyle{ \color{Blue}{\text{Blue}} }[/math] [math]\displaystyle{ \color{BlueGreen}{\text{BlueGreen}} }[/math] [math]\displaystyle{ \color{BlueViolet}{\text{BlueViolet}} }[/math] [math]\displaystyle{ \color{BrickRed}{\text{BrickRed}} }[/math]
[math]\displaystyle{ \color{Brown}{\text{Brown}} }[/math] [math]\displaystyle{ \color{BurntOrange}{\text{BurntOrange}} }[/math] [math]\displaystyle{ \color{CadetBlue}{\text{CadetBlue}} }[/math] [math]\displaystyle{ \color{CarnationPink}{\text{CarnationPink}} }[/math]
[math]\displaystyle{ \color{DarkOrchid}{\text{DarkOrchid}} }[/math] [math]\displaystyle{ \color{Emerald}{\text{Emerald}} }[/math] [math]\displaystyle{ \color{ForestGreen}{\text{ForestGreen}} }[/math] [math]\displaystyle{ \color{Fuchsia}{\text{Fuchsia}} }[/math]
[math]\displaystyle{ \color{Mahogany}{\text{Mahogany}} }[/math] [math]\displaystyle{ \color{Maroon}{\text{Maroon}} }[/math] [math]\displaystyle{ \color{Melon}{\text{Melon}} }[/math] [math]\displaystyle{ \color{MidnightBlue}{\text{MidnightBlue}} }[/math]
[math]\displaystyle{ \color{Mulberry}{\text{Mulberry}} }[/math] [math]\displaystyle{ \color{NavyBlue}{\text{NavyBlue}} }[/math] [math]\displaystyle{ \color{OliveGreen}{\text{OliveGreen}} }[/math] [math]\displaystyle{ \color{Orange}{\text{Orange}} }[/math]
[math]\displaystyle{ \color{OrangeRed}{\text{OrangeRed}} }[/math] [math]\displaystyle{ \color{Orchid}{\text{Orchid}} }[/math] [math]\displaystyle{ \color{Peach}{\text{Peach}} }[/math] [math]\displaystyle{ \color{Periwinkle}{\text{Periwinkle}} }[/math]
[math]\displaystyle{ \color{PineGreen}{\text{PineGreen}} }[/math] [math]\displaystyle{ \color{Plum}{\text{Plum}} }[/math] [math]\displaystyle{ \color{ProcessBlue}{\text{ProcessBlue}} }[/math] [math]\displaystyle{ \color{Purple}{\text{Purple}} }[/math]
[math]\displaystyle{ \color{RawSienna}{\text{RawSienna}} }[/math] [math]\displaystyle{ \color{Red}{\text{Red}} }[/math] [math]\displaystyle{ \color{RedOrange}{\text{RedOrange}} }[/math] [math]\displaystyle{ \color{RedViolet}{\text{RedViolet}} }[/math]
[math]\displaystyle{ \color{Rhodamine}{\text{Rhodamine}} }[/math] [math]\displaystyle{ \color{RoyalBlue}{\text{RoyalBlue}} }[/math] [math]\displaystyle{ \color{RoyalPurple}{\text{RoyalPurple}} }[/math] [math]\displaystyle{ \color{RubineRed}{\text{RubineRed}} }[/math]
[math]\displaystyle{ \color{Salmon}{\text{Salmon}} }[/math] [math]\displaystyle{ \color{SeaGreen}{\text{SeaGreen}} }[/math] [math]\displaystyle{ \color{Sepia}{\text{Sepia}} }[/math] [math]\displaystyle{ \color{SkyBlue}{\text{SkyBlue}} }[/math]

11 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}