TeX 문법

Jmnote (토론 | 기여)님의 2014년 11월 9일 (일) 21:34 판 (→‎같이 보기)
TeX Grammar
TeX 주요 문법

1 분수

종류 입력 출력
세로 분수 \frac { 7 }{ 22 } [math]\displaystyle{ \frac { 7 }{ 22 } }[/math]
가로 분수 { 7 }/{ 22 } [math]\displaystyle{ { 7 }/{ 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 같이 보기

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