Liebesfreud (토론 | 기여) |
|||
(사용자 7명의 중간 판 21개는 보이지 않습니다) | |||
3번째 줄: | 3번째 줄: | ||
{{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 이곳]이 도움이 될 수 있습니다. | ||
== 특수 문자 == | == 특수 문자 == | ||
{{ | {{참고|도움말:TeX 문법/특수문자}} | ||
특수 문자에는 | 특수 문자에는 | ||
* 구별부호 (<math>\hat{a}</math>) | * 구별부호 (<math>\hat{a}</math>) | ||
33번째 줄: | 17번째 줄: | ||
== 글꼴 == | == 글꼴 == | ||
{{ | {{참고|도움말:TeX 문법/글꼴}} | ||
글꼴에는 그리스어/로마자/볼드체 등등이 있습니다. | 글꼴에는 그리스어/로마자/볼드체 등등이 있습니다. | ||
== 위, 아래 첨자 == | == 위, 아래 첨자<ref>여기에 \displaystyle을 넣는다면 좀 더 깔끔하게 표시됩니다.</ref> == | ||
{| class="wikitable" style="background-color:white" | {| class="wikitable" style="background-color:white" | ||
|----- | |----- | ||
43번째 줄: | 27번째 줄: | ||
! 문서에 나타나는 식 | ! 문서에 나타나는 식 | ||
|----- | |----- | ||
| 위 [[첨자]] | | rowspan="4" |위 [[첨자]] | ||
| <code>a^2</code> | | <code>a^2</code> | ||
| <math>a^2</math> | | <math>a^2</math> | ||
|- | |||
|<code>{10}^{{10}^{10}}</code> | |||
|<math>{10}^{{10}^{10}}</math> | |||
|- | |||
|<code>\displaystyle {10}^{{10}^{{10}^{10}}}</code> | |||
|<math>\displaystyle {10}^{{10}^{{10}^{10}}}</math> | |||
|- | |||
|<code>\Huge {10}^{{10}^{{10}^{{10}^{10}}}}</code><ref>수식의 크기를 키우는 것을 원한다면 \Huge를 사용할 수 있습니다.</ref> | |||
|<math>\Huge {10}^{{10}^{{10}^{{10}^{10}}}}</math> | |||
|----- | |----- | ||
| rowspan="2" |아래 첨자 | | rowspan="2" |아래 첨자 | ||
107번째 줄: | 100번째 줄: | ||
== 분수, 행렬, 여러행 == | == 분수, 행렬, 여러행 == | ||
{| class="wikitable" | {| class="wikitable" | ||
|----- | |----- | ||
! 기능 | ! 기능 | ||
117번째 줄: | 110번째 줄: | ||
| <math>\frac{2}{4}</math> | | <math>\frac{2}{4}</math> | ||
|----- | |----- | ||
| 이항<br/>계수 | | 이항<br />계수 | ||
| <code>{n \choose k}</code> | | <code>{n \choose k}</code> | ||
| <math>{n \choose k}</math> | | <math>{n \choose k}</math> | ||
146번째 줄: | 139번째 줄: | ||
| <math>\begin{matrix} x & y \\ z & v \end{matrix}</math> | | <math>\begin{matrix} x & y \\ z & v \end{matrix}</math> | ||
|----- | |----- | ||
| 경우<br/>나누기 | | 경우<br />나누기 | ||
| <syntaxhighlight lang="latex"> | | <syntaxhighlight lang="latex"> | ||
f(n)= | f(n)= | ||
156번째 줄: | 149번째 줄: | ||
| <math>f(n)=\begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}</math> | | <math>f(n)=\begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}</math> | ||
|----- | |----- | ||
| 두줄<br/>이상의<br/>방정식 | | 두줄<br />이상의<br />방정식 | ||
| <syntaxhighlight lang="latex"> | | <syntaxhighlight lang="latex"> | ||
\begin{align} | \begin{align} | ||
198번째 줄: | 191번째 줄: | ||
|----- | |----- | ||
| [[집합]]괄호 | | [[집합]]괄호 | ||
| <code>\left<font color="red">'''\'''</font>{ A \right<font color="red">'''\'''</font>}</code><br/>(주의: '''\''' 필요) | | <code>\left<font color="red">'''\'''</font>{ A \right<font color="red">'''\'''</font>}</code><br />(주의: '''\''' 필요) | ||
| <math>\left\{ A \right\}</math> | | <math>\left\{ A \right\}</math> | ||
|----- | |----- | ||
256번째 줄: | 249번째 줄: | ||
== 수식 꾸미기 == | == 수식 꾸미기 == | ||
=== 수식 띄우기 === | |||
\;을 붙이시면 됩니다. | |||
=== 수식에 색 넣기 === | === 수식에 색 넣기 === | ||
<code><nowiki><math>\color{#색의 RGB코드}{수식}</math></nowiki></code><br/> | <code><nowiki><math>\color{#색의 RGB코드}{수식}</math></nowiki></code><br /> | ||
색의 RGB코드에는 특정색의 #RGB 코드를 입력하면 됩니다.간단한것 가령 red나 blue 등은 그냥 입력하시면 됩니다.<br/> | 색의 RGB코드에는 특정색의 #RGB 코드를 입력하면 됩니다.간단한것 가령 red나 blue 등은 그냥 입력하시면 됩니다.<br /> | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="text-align: center;" | 입력 | ! style="text-align: center;" | 입력 | ||
265번째 줄: | 260번째 줄: | ||
| ! style="text-align: center;" | <code><nowiki><math>\displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math> | | ! style="text-align: center;" |<math>\displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math> | ||
|} | |||
==== 다른 방법 ==== | |||
색을 정의하는 방법도 있습니다. | |||
우선 <code><nowiki><math>와 </math>사이에 \require{color}가 있어야 합니다.\definecolor{이름}{모형}{정의}로 색을 정의한 다음 \textcolor{이름}{수식}이렇게 쓰시면 됩니다.</nowiki></code><br /> | |||
모형은 gray,rgb,RGB,HTML,cmyk 다섯 종류가 있습니다. | |||
* gray : 정의에 0이상 1이하의 실수를 하나 쓰시면 됩니다. | |||
* rgb : 정의에 0이상 1이하의 실수 세개를 쓰시면 됩니다.(예:0.1,0.2,0.3) | |||
* RGB : 정의에 0이상 255이하의 정수 세개를 쓰시면 됩니다.(예:111,112,113) | |||
* HTML : 정의에 RGB색상코드 1개를 쓰시면 됩니다.(예:D9E5FF)<ref>네이버에서 RGB색상표라고 검색하시면 RGB색상코드가 나옵니다.</ref> | |||
* cymk : 정의에 0이상 1이하의 실수 4개(예:0.1,0.15,0.2,0.25) 를 쓰시면 됩니다. | |||
{| class="wikitable" | |||
! style="text-align: center;" | 입력 | |||
! 결과 | |||
|- | |||
| ! style="text-align: center;" | <code><nowiki><math>\displaystyle \require{color} \definecolor{A}{RGB}{113,222,210} \textcolor{A}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math></nowiki></code> | |||
| ! style="text-align: center;" |<math>\displaystyle \require{color} \definecolor{A}{RGB}{113,222,210} \textcolor{A}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math> | |||
|} | |} | ||
=== 수식에 특수한 기호 넣기 === | === 수식에 특수한 기호 넣기 === | ||
<code><nowiki><math>\require{enclose} \enclose{값1}[값2]{수식}</math></nowiki></code><br/> | <code><nowiki><math>\require{enclose} \enclose{값1}[값2]{수식}</math></nowiki></code><br /> | ||
==== 결과 ==== | ==== 결과 ==== | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="text-align: center;" | | ! style="text-align: center;" | 입력 | ||
! | ! 결과 | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{longdiv}[mathcolor="red"]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{longdiv}[mathcolor="red"]{a}</math></nowiki></code> | ||
290번째 줄: | 301번째 줄: | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{roundedbox}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{roundedbox}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{roundedbox}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{circle}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{circle}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{circle}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{left}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{left}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{left}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{right}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{right}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{right}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{top}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{top}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{top}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{bottom}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{bottom}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{bottom}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{updiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{updiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{updiagonalstrike}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{madruwb}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{madruwb}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{madruwb}[mathcolor=#4641D9]{a}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{text}[mathcolor=#4641D9]{a}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{enclose} \enclose{text}[mathcolor=#4641D9]{a}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{ | | ! style="text-align: center;" |<math>\require{enclose} \enclose{text}[mathcolor=#4641D9]{a}</math> | ||
|} | |} | ||
=== 수식에 슬래시 넣기 === | === 수식에 슬래시 넣기 === | ||
<code><nowiki><math>\require{cancel},cancel{수식}</math></nowiki></code>.<br/> | <code><nowiki><math>\require{cancel},cancel{수식}</math></nowiki></code>.<br /> | ||
<code><nowiki><math>...</math></nowiki></code>의 ...에 먼저 <code><nowiki>\require{cancel}</nowiki></code><br/>을 넣고 슬래시를 넣고자 하는 수식에 <code><nowiki>cancel{수식}</nowiki></code> 혹은 | <code><nowiki><math>...</math></nowiki></code>의 ...에 먼저 <code><nowiki>\require{cancel}</nowiki></code><br />을 넣고 슬래시를 넣고자 하는 수식에 <code><nowiki>cancel{수식}</nowiki></code> 혹은 | ||
<code><nowiki>bcancel{수식}</nowiki></code> 혹은 <code><nowiki>xcancel{수식}</nowiki></code>을 넣습니다.<br/> | <code><nowiki>bcancel{수식}</nowiki></code> 혹은 <code><nowiki>xcancel{수식}</nowiki></code>을 넣습니다.<br /> | ||
또는 <code><nowiki>cancelto{화살표 취소가 향하고자 하는 곳}{화살표 취소를 할 수식}</nowiki></code>이렇게<br/> | 또는 <code><nowiki>cancelto{화살표 취소가 향하고자 하는 곳}{화살표 취소를 할 수식}</nowiki></code>이렇게<br /> | ||
입력합니다. | 입력합니다. | ||
{| class="wikitable" | {| class="wikitable" | ||
362번째 줄: | 373번째 줄: | ||
|} | |} | ||
=== 수식을 클릭시 임의의 URL로 보내기 === | === 수식을 클릭시 임의의 URL로 보내기 === | ||
<code><nowiki><math>\href{URL주소}{수식}</math></nowiki></code>.<br/> | <code><nowiki><math>\href{URL주소}{수식}</math></nowiki></code>.<br /> | ||
{| class="wikitable" | {| class="wikitable" | ||
! style="text-align: center;" | 입력 | ! style="text-align: center;" | 입력 | ||
! 결과 | ! 결과 | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\href{ | | ! style="text-align: center;" | <code><nowiki><math>\href{https://librewiki.net}{{a}^{2}\;\;\;\;리브레 위키}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\href{ | | ! style="text-align: center;" |<math>\href{https://librewiki.net}{{a}^{2}\;\;\;\;리브레 위키}</math> | ||
|} | |} | ||
=== 수식을 클릭시 | |||
=== 수식을 클릭시 또다른 수식 메세지 또는 수식이 나오게 하기 === | |||
{| class="wikitable" | {| class="wikitable" | ||
! style="text-align: center;" | 입력 | ! style="text-align: center;" | 입력 | ||
376번째 줄: | 388번째 줄: | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{action} \mathtip{a}{{b}^{2}}</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{action} \mathtip{a}{{b}^{2}}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{action} \mathtip{a}{{b}^{2}}</math> | | ! style="text-align: center;" |<math>\require{action} \mathtip{a}{{b}^{2}}</math><ref>수식에 마우스 커서를 갖다대면 또다른 작은 창과 수식이 뜹니다.</ref> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle</math></nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle</math><ref>수식을 클릭할 경우 차례로 수식이 나타나며 맨 마지막으로 설정된 수식을 누르면 다시 처음 수식이 나타납니다.</ref> | | ! style="text-align: center;" |<math>\require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle</math><ref>수식을 클릭할 경우 차례로 수식이 나타나며 맨 마지막으로 설정된 수식을 누르면 다시 처음 수식이 나타납니다.</ref> | ||
|} | |} | ||
=== 수식에 효과 주기 === | === 수식에 효과 주기 === | ||
{| class="wikitable" | {| class="wikitable" | ||
386번째 줄: | 399번째 줄: | ||
! 결과 | ! 결과 | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\bbox[#D941C5]{x+y}</nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\bbox[#D941C5]{x+y}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\bbox[#D941C5]{x+y}</math> | | ! style="text-align: center;" |<math>\bbox[#D941C5]{x+y}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\bbox[10pt]{x+y}</nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\bbox[10pt]{x+y}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\bbox[10pt]{x+y}</math> | | ! style="text-align: center;" |<math>\bbox[10pt]{x+y}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\bbox[10pt,#9FC93C]{x+y}</nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\bbox[10pt,#9FC93C]{x+y}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\bbox[10pt,#9FC93C]{x+y}</math> | | ! style="text-align: center;" |<math>\bbox[10pt,#9FC93C]{x+y}</math> | ||
|- | |- | ||
| ! style="text-align: center;" | <code><nowiki><math>\bbox[10px,border:4px solid #9FC93C]{x+y}</nowiki></code> | | ! style="text-align: center;" | <code><nowiki><math>\bbox[10px,border:4px solid #9FC93C]{x+y}</math></nowiki></code> | ||
| ! style="text-align: center;" |<math>\bbox[10px,border:4px solid #9FC93C]{x+y}</math> | | ! style="text-align: center;" |<math>\bbox[10px,border:4px solid #9FC93C]{x+y}</math> | ||
|} | |} | ||
== 수식 형태 변경 == | |||
간단히 \displaystyle을 삽입해주면 수식이 원래 형태로 나옵니다. | |||
{| class="wikitable" | |||
! style="text-align: center;" | 입력 | |||
! 결과 | |||
|- | |||
| ! style="text-align: center;" | <code><nowiki><math>\displaystyle \int_{0}^{\infty}{e}^{-{x}^{2}}dx=\frac{\sqrt{\pi}}{2}</math> </nowiki></code> | |||
| ! style="text-align: center;" |<math>\displaystyle \int_{0}^{\infty}{e}^{-{x}^{2}}dx=\frac{\sqrt{\pi}}{2}</math> | |||
|} | |||
== 가환 다이어그램 == | == 가환 다이어그램 == | ||
<pre><nowiki><math> | |||
\begin{equation} | |||
\begin{CD} | |||
\ | A @>>> B | ||
\ | @VVV @AAA | ||
C @>>> D | |||
\end{CD} | |||
\end{equation} | |||
</math></nowiki></pre> | |||
\ | |||
\ | |||
<math> | |||
\begin{equation} | |||
\begin{CD} | |||
A @>>> B | |||
@VVV @AAA | |||
C @>>> D | |||
\end{CD} | |||
\end{equation} | |||
</math> | |||
== | == 참고 == | ||
* [http://www.ktug.or.kr/xe/index.php?mid=documents 한글 텍 사용자 그룹(KTUG): 문서와 자료] | * [http://www.ktug.or.kr/xe/index.php?mid=documents 한글 텍 사용자 그룹(KTUG): 문서와 자료] | ||
2024년 4월 18일 (목) 18:41 기준 최신판
리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, [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] 문법 수식을 편집할 때는 이곳 혹은 이곳이 도움이 될 수 있습니다.
특수 문자[원본 편집]
특수 문자에는
- 구별부호 ([math]\displaystyle{ \hat{a} }[/math])
- 산술 함수 (지수, 로그, 삼각 함수)
- 상한/하한 (min, max)
- 투영 ([math]\displaystyle{ \Pr j, \hom l }[/math])
- 미분 ([math]\displaystyle{ \dfrac{ \partial }{\partial x } }[/math])
- 유사 문자기호
- 모듈러 연산
- 근호 (제곱근, n제곱근)
- 연산자 / 집합 / 관계 / 기하 / 논리 / 화살표 / 특수문자 등등이 있습니다.
글꼴[원본 편집]
글꼴에는 그리스어/로마자/볼드체 등등이 있습니다.
위, 아래 첨자[1][원본 편집]
기능 | 문법 | 문서에 나타나는 식 |
---|---|---|
위 첨자 | a^2
|
[math]\displaystyle{ a^2 }[/math] |
{10}^{{10}^{10}}
|
[math]\displaystyle{ {10}^{{10}^{10}} }[/math] | |
\displaystyle {10}^{{10}^{{10}^{10}}}
|
[math]\displaystyle{ \displaystyle {10}^{{10}^{{10}^{10}}} }[/math] | |
\Huge {10}^{{10}^{{10}^{{10}^{10}}}} [2]
|
[math]\displaystyle{ \Huge {10}^{{10}^{{10}^{{10}^{10}}}} }[/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\, \operatorname{d}\!x
|
[math]\displaystyle{ \int_{-N}^{N} e^x\, \operatorname{d}\!x }[/math] |
선적분 | \oint_{C} x^3\, \operatorname{d}\!x + 4y^2\, \operatorname{d}\!y
|
[math]\displaystyle{ \oint_{C} x^3\, \operatorname{d}\!x + 4y^2\, \operatorname{d}\!y }[/math] |
이중 선적분 | 틀:oiint를 사용합니다. [3] | 3C(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>\displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math>
|
[math]\displaystyle{ \displaystyle \color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1} }[/math] |
다른 방법[원본 편집]
색을 정의하는 방법도 있습니다.
우선 <math>와 </math>사이에 \require{color}가 있어야 합니다.\definecolor{이름}{모형}{정의}로 색을 정의한 다음 \textcolor{이름}{수식}이렇게 쓰시면 됩니다.
모형은 gray,rgb,RGB,HTML,cmyk 다섯 종류가 있습니다.
- gray : 정의에 0이상 1이하의 실수를 하나 쓰시면 됩니다.
- rgb : 정의에 0이상 1이하의 실수 세개를 쓰시면 됩니다.(예:0.1,0.2,0.3)
- RGB : 정의에 0이상 255이하의 정수 세개를 쓰시면 됩니다.(예:111,112,113)
- HTML : 정의에 RGB색상코드 1개를 쓰시면 됩니다.(예:D9E5FF)[4]
- cymk : 정의에 0이상 1이하의 실수 4개(예:0.1,0.15,0.2,0.25) 를 쓰시면 됩니다.
입력 | 결과 |
---|---|
<math>\displaystyle \require{color} \definecolor{A}{RGB}{113,222,210} \textcolor{A}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math>
|
[math]\displaystyle{ \displaystyle \require{color} \definecolor{A}{RGB}{113,222,210} \textcolor{A}{\lim_{x\rightarrow 0^{+}} x^{x}=1} }[/math] |
수식에 특수한 기호 넣기[원본 편집]
<math>\require{enclose} \enclose{값1}[값2]{수식}</math>
결과[원본 편집]
입력 | 결과 |
---|---|
<math>\require{enclose} \enclose{longdiv}[mathcolor="red"]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{longdiv}[mathcolor="red"]{a} }[/math] |
<math>\require{enclose} \enclose{phasorangle}[mathcolor="red"]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{phasorangle}[mathcolor="red"]{a} }[/math] |
<math>\require{enclose} \enclose{radical}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{radical}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{radical,longdiv}[mathcolor=#4641D9,mathbackground=#FAF4C0]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{longdiv,phasorangle}[mathcolor=#4641D9,mathbackground=#FAF4C0]{a} }[/math] |
<math>\require{enclose} \enclose{box}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{box}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{roundedbox}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{roundedbox}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{circle}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{circle}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{left}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{left}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{right}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{right}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{top}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{top}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{bottom}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{bottom}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{updiagonalstrike}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{updiagonalstrike}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{downdiagonalstrike}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{madruwb}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{madruwb}[mathcolor=#4641D9]{a} }[/math] |
<math>\require{enclose} \enclose{text}[mathcolor=#4641D9]{a}</math>
|
[math]\displaystyle{ \require{enclose} \enclose{text}[mathcolor=#4641D9]{a} }[/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]. |
수식을 클릭시 임의의 URL로 보내기[원본 편집]
<math>\href{URL주소}{수식}</math>
.
입력 | 결과 |
---|---|
<math>\href{https://librewiki.net}{{a}^{2}\;\;\;\;리브레 위키}</math>
|
[math]\displaystyle{ \href{https://librewiki.net}{{a}^{2}\;\;\;\;리브레 위키} }[/math] |
수식을 클릭시 또다른 수식 메세지 또는 수식이 나오게 하기[원본 편집]
입력 | 결과 |
---|---|
<math>\require{action} \mathtip{a}{{b}^{2}}</math>
|
[math]\displaystyle{ \require{action} \mathtip{a}{{b}^{2}} }[/math][5] |
<math>\require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle</math>
|
[math]\displaystyle{ \require{action} \toggle{a}{{b}^{2}}{{c}^{2}}\endtoggle }[/math][6] |
수식에 효과 주기[원본 편집]
입력 | 결과 |
---|---|
<math>\bbox[#D941C5]{x+y}</math>
|
[math]\displaystyle{ \bbox[#D941C5]{x+y} }[/math] |
<math>\bbox[10pt]{x+y}</math>
|
[math]\displaystyle{ \bbox[10pt]{x+y} }[/math] |
<math>\bbox[10pt,#9FC93C]{x+y}</math>
|
[math]\displaystyle{ \bbox[10pt,#9FC93C]{x+y} }[/math] |
<math>\bbox[10px,border:4px solid #9FC93C]{x+y}</math>
|
[math]\displaystyle{ \bbox[10px,border:4px solid #9FC93C]{x+y} }[/math] |
수식 형태 변경[원본 편집]
간단히 \displaystyle을 삽입해주면 수식이 원래 형태로 나옵니다.
입력 | 결과 |
---|---|
<math>\displaystyle \int_{0}^{\infty}{e}^{-{x}^{2}}dx=\frac{\sqrt{\pi}}{2}</math>
|
[math]\displaystyle{ \displaystyle \int_{0}^{\infty}{e}^{-{x}^{2}}dx=\frac{\sqrt{\pi}}{2} }[/math] |
가환 다이어그램[원본 편집]
<math> \begin{equation} \begin{CD} A @>>> B @VVV @AAA C @>>> D \end{CD} \end{equation} </math>
[math]\displaystyle{ \begin{equation} \begin{CD} A @\gt \gt \gt B @VVV @AAA C @\gt \gt \gt D \end{CD} \end{equation} }[/math]
참고[원본 편집]
각주
기초 사용법 | |
---|---|
위키 문법 | |
특수 기능 |