도움말:TeX 문법: 두 판 사이의 차이

(중복되는 목차 생략)
편집 요약 없음
1번째 줄: 1번째 줄:
리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, {{TeX}} 문법을 지원합니다.  
리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, {{TeX}}문법을 지원합니다. 이 기능을 사용하려면 <code><nowiki><math> ... </math></nowiki></code> 사이에 {{TeX}}문법을 쓰면 됩니다. 이 태그 내에서의 줄바꿈은 처리되지 않습니다.
__NOTOC__
이 기능을 사용하려면 <code><nowiki><math> ... </math></nowiki></code> 사이에 {{TeX}} 문법을 쓰면 됩니다. 이 태그 내에서의 줄바꿈은 처리되지 않습니다.


{{TeX}} 문법 수식을 편집할 때는 [http://ko.numberempire.com/texequationeditor/equationeditor.php 이곳] 혹은 [http://www.codecogs.com/latex/eqneditor.php 이곳]이 도움이 될 수 있습니다.
{{TeX}}문법 수식을 편집할 때는 [http://ko.numberempire.com/texequationeditor/equationeditor.php 이곳] 혹은 [http://www.codecogs.com/latex/eqneditor.php 이곳]이 도움이 될 수 있습니다.





2015년 12월 4일 (금) 23:26 판

리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, [math]\displaystyle{ {\mathrm{T\!_{\displaystyle E} \! X}} }[/math] 문법을 지원합니다. 이 기능을 사용하려면 <math> ... </math> 사이에 [math]\displaystyle{ {\mathrm{T\!_{\displaystyle E} \! X}} }[/math] 문법을 쓰면 됩니다. 이 태그 내에서의 줄바꿈은 처리되지 않습니다.

[math]\displaystyle{ {\mathrm{T\!_{\displaystyle E} \! X}} }[/math] 문법 수식을 편집할 때는 이곳 혹은 이곳이 도움이 될 수 있습니다.


TeX 문법 도움말 항목
특수 문자 글꼴 위, 아래 첨자
분수, 행렬, 여러행 괄호 쓰기 빈칸조정
수식꾸미기

특수 문자

특수 문자에는

  • 구별부호 ([math]\displaystyle{ \hat{a} }[/math])
  • 산술 함수 (지수, 로그, 삼각 함수)
  • 상한/하한 (min, max)
  • 투영 ([math]\displaystyle{ \Pr j, \hom l }[/math])
  • 미분
  • 유사 문자기호
  • 모듈러 연산
  • 근호 (제곱근, n제곱근)
  • 연산자 / 집합 / 관계 / 기하 / 논리 / 화살표 / 특수문자 등등이 있습니다.

글꼴

글꼴에는 그리스어/로마자/볼드체 등등이 있습니다.

위, 아래 첨자

기능 문법 문서에 나타나는 식
첨자 a^2 [math]\displaystyle{ a^2 }[/math]
아래 첨자 a_2 [math]\displaystyle{ a_2 }[/math]
x_s-x_D [math]\displaystyle{ x_s-x_D }[/math]
다문자 첨자 a^{2+2} [math]\displaystyle{ a^{2+2} }[/math]
a_{i,j} [math]\displaystyle{ a_{i,j} }[/math]
위 아래 첨자 동시에 x_2^3 [math]\displaystyle{ x_2^3 }[/math]
미분 (옳음) x' [math]\displaystyle{ x' }[/math]
미분 (HTML의 경우 틀림) x^\prime [math]\displaystyle{ x^\prime }[/math]
미분 (PNG의 경우 틀림) x\prime [math]\displaystyle{ x\prime }[/math]
시그마 \sum_{k=1}^N k^2 [math]\displaystyle{ \sum_{k=1}^N k^2 }[/math]
곱기호 \prod_{i=1}^N x_i [math]\displaystyle{ \prod_{i=1}^N x_i }[/math]
극한 \lim_{n \to \infty}x_n [math]\displaystyle{ \lim_{n \to \infty}x_n }[/math]
적분 \int_{-N}^{N} e^x\, dx [math]\displaystyle{ \int_{-N}^{N} e^x\, dx }[/math]
선적분 \oint_{C} x^3\, dx + 4y^2\, dy [math]\displaystyle{ \oint_{C} x^3\, dx + 4y^2\, dy }[/math]
이중 선적분 틀:oiint를 사용합니다. [1] 3\oiintC(x+y)dx

분수, 행렬, 여러행

기능 문법 문서에서 보이는 식
분수 \frac{2}{4} or {2 \over 4} [math]\displaystyle{ \frac{2}{4} }[/math]
이항
계수
{n \choose k} [math]\displaystyle{ {n \choose k} }[/math]
행렬 \begin{pmatrix} x & y \\ z & v \end{pmatrix} [math]\displaystyle{ \begin{pmatrix} x & y \\ z & v \end{pmatrix} }[/math]
\begin{bmatrix}
0 & \cdots & 0 \\
\vdots & \ddots & \vdots \\
0 & \cdots & 0
\end{bmatrix}
[math]\displaystyle{ \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix} }[/math]
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix} [math]\displaystyle{ \begin{Bmatrix} x & y \\ z & v \end{Bmatrix} }[/math]
\begin{vmatrix} x & y \\ z & v \end{vmatrix} [math]\displaystyle{ \begin{vmatrix} x & y \\ z & v \end{vmatrix} }[/math]
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix} [math]\displaystyle{ \begin{Vmatrix} x & y \\ z & v \end{Vmatrix} }[/math]
\begin{matrix} x & y \\ z & v \end{matrix} [math]\displaystyle{ \begin{matrix} x & y \\ z & v \end{matrix} }[/math]
경우
나누기
f(n)=
\begin{cases}
n/2, & \mbox{if }n\mbox{ is even} \\
3n+1, & \mbox{if }n\mbox{ is odd}
\end{cases}
[math]\displaystyle{ f(n)=\begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} }[/math]
두줄
이상의
방정식
\begin{align}
f(n+1) &= (n+1)^2 \\
       &= n^2 + 2n + 1
\end{align}
[math]\displaystyle{ \begin{align}f(n+1)&= (n+1)^2 \\ \ & = n^2 + 2n + 1\end{align} }[/math]

괄호 쓰기

기능 문법 나타나는 모양
좋지 않음. ( \frac{1}{2} ) [math]\displaystyle{ ( \frac{1}{2} ) }[/math]
좋음. \left( \frac{1}{2} \right) [math]\displaystyle{ \left ( \frac{1}{2} \right ) }[/math]

\left\right를 사용하여, 여러 가지 괄호를 사용할 수 있습니다.

기능 문법 나타나는 모양
괄호 \left( A \right) [math]\displaystyle{ \left( A \right) }[/math]
사각 괄호 \left[ A \right] [math]\displaystyle{ \left[ A \right] }[/math]
집합괄호 \left\{ A \right\}
(주의: \ 필요)
[math]\displaystyle{ \left\{ A \right\} }[/math]
부등호 괄호 \left\langle A \right\rangle [math]\displaystyle{ \left\langle A \right\rangle }[/math]
\left| A \right| [math]\displaystyle{ \left| A \right| }[/math]
\left. 혹은 \right. 라고 쓰면, 그 쪽 괄호는 나타나지 않습니다. \left. {A \over B} \right\} \to X [math]\displaystyle{ \left. {A \over B} \right\} \to X }[/math]

빈칸조정

[math]\displaystyle{ {\mathrm{T\!_{\displaystyle E} \! X}} }[/math] 은 빈칸의 크기를 자동으로 조정합니다. 특별히 조정이 필요한 경우는 다음을 사용하면 됩니다.

기능 문법 나타나는 모양
double quad space a \qquad b [math]\displaystyle{ a \qquad b }[/math]
quad space a \quad b [math]\displaystyle{ a \quad b }[/math]
text space a\ b [math]\displaystyle{ a\ b }[/math]
large space a\;b [math]\displaystyle{ a\;b }[/math]
medium space a\>b [not supported]
small space a\,b [math]\displaystyle{ a\,b }[/math]
no space ab [math]\displaystyle{ ab\, }[/math]
negative space a\!b [math]\displaystyle{ a\!b }[/math]

수식 꾸미기

수식에 색 넣기

<math>\color{#색의 RGB코드}{수식}</math>
색의 RGB코드에는 특정색의 #RGB 코드를 입력하면 됩니다.간단한것 가령 red나 blue 등은 그냥 입력하시면 됩니다.

입력 결과
<math>\color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math> [math]\displaystyle{ \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1} }[/math]

수식에 슬래시 넣기

<math>\require{cancel},cancel{수식}</math>.
<math>...</math>의 ...에 먼저 \require{cancel}
을 넣고 슬래시를 넣고자 하는 수식에 cancel{수식} 혹은 bcancel{수식} 혹은 xcancel{수식}을 넣습니다.
또는 cancelto{화살표 취소가 향하고자 하는 곳}{화살표 취소를 할 수식}이렇게
입력합니다.

입력 결과
<math>\require{cancel},yes\cancel{{x}^{2}}</math> [math]\displaystyle{ \require{cancel},yes\cancel{{x}^{2}} }[/math]
<math>\require{cancel} rr \bcancel{2x}</math> [math]\displaystyle{ \require{cancel} rr \bcancel{2x} }[/math]
<math>\require{cancel} rr \xcancel{{x}^{x}}</math> [math]\displaystyle{ \require{cancel} rr \xcancel{{x}^{x}} }[/math]
<math>\require{cancel},\cancelto{a}{{x}^{2}}</math> [math]\displaystyle{ \require{cancel},\cancelto{a}{{x}^{2}} }[/math]

수식 줄바꿈

<math>줄바꿈하고자 하는 수식\\</math>

입력 결과
<math>a\\b\\c\\d</math> [math]\displaystyle{ a\\b\\c\\d }[/math].


같이 보기

바깥 고리

각주

  1. {{oiint|앞=적분기호 앞에 쓸 내용|첨자= 적분기호에 적용할 밑첨자|뒤= 적분할 수식}}
    로 사용합니다.