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

잔글 (시그마 역링크 정리)
(사용자 8명의 중간 판 30개는 보이지 않습니다)
1번째 줄: 1번째 줄:
리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, {{TeX}} 문법을 지원합니다.  
리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, {{TeX}}문법을 지원합니다. 이 기능을 사용하려면 <code><nowiki><math> ... </math></nowiki></code> 사이에 {{TeX}}문법을 쓰면 됩니다. 이 태그 내에서의 줄바꿈은 처리되지 않습니다.


이 기능을 사용하려면 <code><nowiki><math> ... </math></nowiki></code> 사이에 {{TeX}} 문법을 쓰면 됩니다. 이 태그 내에서의 줄바꿈은 처리되지 않습니다.
{{TeX}}문법 수식을 편집할 때는 [http://ko.numberempire.com/texequationeditor/equationeditor.php 이곳] 혹은 [http://www.codecogs.com/latex/eqneditor.php 이곳]도움이 될 수 있습니다.


== 특수 문자 ==


{| class="wikitable"
{| class="wikitable"
! colspan="3" | TeX 문법 도움말 항목
|-
|-
!colspan="2"|
| [[도움말:TeX 문법/특수문자|특수 문자]]
 
| [[도움말:TeX 문법/글꼴|글꼴]]
=== 구별 부호 ===
| [[도움말:TeX 문법#위, 아래 첨자|위, 아래 첨자]]
|-
|-
| <source lang="text" enclose="none">\dot{a}, \ddot{a}, \acute{a}, \grave{a} </source>
| [[도움말:TeX 문법#분수, 행렬, 여러행|분수, 행렬, 여러행]]
| <math>\dot{a}, \ddot{a}, \acute{a}, \grave{a} \!</math>
| [[도움말:TeX 문법#괄호 쓰기|괄호 쓰기]]
| [[도움말:TeX 문법#빈칸조정|빈칸조정]]
|-
|-
| <source lang="text" enclose="none">\check{a}, \breve{a}, \tilde{a}, \bar{a} </source>
| [[도움말:TeX 문법#수식 꾸미기|수식꾸미기]]
| <math>\check{a}, \breve{a}, \tilde{a}, \bar{a} \!</math>
|
|-
|
| <source lang="text" enclose="none">\hat{a}, \widehat{a}, \vec{a} </source>
|}
| <math>\hat{a}, \widehat{a}, \vec{a} \!</math>
== 특수 문자 ==
|-
{{참조|도움말:TeX 문법/특수문자}}
!colspan="2"|
특수 문자에는
* 구별부호 (<math>\hat{a}</math>)
* 산술 함수 (지수, 로그, 삼각 함수)
* 상한/하한 (min, max)
* 투영 (<math>\Pr j, \hom l</math>)
* 미분 (<math> \dfrac{ \partial }{\partial x } </math>)
* 유사 문자기호
* 모듈러 연산
* 근호 (제곱근, n제곱근)
* 연산자 / 집합 / 관계 / 기하 / 논리 / 화살표 / 특수문자 등등이 있습니다.


=== 산술함수 ===
== 글꼴 ==
|-
{{참조|도움말:TeX 문법/글꼴}}
| <source lang="latex" enclose="none">\exp_a b = a^b, \exp b = e^b, 10^m </source>
글꼴에는 그리스어/로마자/볼드체 등등이 있습니다.
| <math>\exp_a b = a^b, \exp b = e^b, 10^m \!</math>
|-
| <source lang="latex" enclose="none">\ln c, \lg d = \log e, \log_{10} f </source>
| <math>\ln c, \lg d = \log e, \log_{10} f \!</math>
|-
| <source lang="latex" enclose="none">\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</source>
| <math>\sin a, \cos b, \tan c, \cot d, \sec e, \csc f\!</math>
|-
| <source lang="latex" enclose="none">\arcsin h, \arccos i, \arctan j </source>
| <math>\arcsin h, \arccos i, \arctan j \!</math>
|-
| <source lang="latex" enclose="none">\sinh k, \cosh l, \tanh m, \coth n </source>
| <math>\sinh k, \cosh l, \tanh m, \coth n \!</math>
|-
| <source lang="text" enclose="none">\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n </source>
| <math>\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \!</math>
|-
| <source lang="text" enclose="none">\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q </source>
| <math>\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \!</math>
|-
| <source lang="latex" enclose="none">\operatorname{sgn} r, \left\vert s \right\vert </source>
| <math>\operatorname{sgn} r, \left\vert s \right\vert \!</math>
|-
| <source lang="latex" enclose="none">\min(x,y), \max(x,y) </source>
| <math>\min(x,y), \max(x,y) \!</math>
|-
!colspan="2"|
 
=== 상한과 하한 ===
|-
| <source lang="latex" enclose="none">\min x, \max y, \inf s, \sup t </source>
| <math>\min x, \max y, \inf s, \sup t \!</math>
|-
| <source lang="latex" enclose="none">\lim u, \liminf v, \limsup w </source>
| <math>\lim u, \liminf v, \limsup w \!</math>
|-
| <source lang="latex" enclose="none">\dim p, \deg q, \det m, \ker\phi </source>
| <math>\dim p, \deg q, \det m, \ker\phi \!</math>
|-
!colspan="2"|
 
=== 투영 ===
|-
| <source lang="latex" enclose="none">\Pr j, \hom l, \lVert z \rVert, \arg z </source>
| <math>\Pr j, \hom l, \lVert z \rVert, \arg z \!</math>
|-
!colspan="2"|
 
=== 미분 ===
|-
| <source lang="latex" enclose="none">dt, \operatorname{d}\!t, \partial t, \nabla\psi</source>
| <math>dt, \operatorname{d}\!t, \partial t, \nabla\psi\!</math>
|-
| <source lang="text" enclose="none">dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y </source>
| <math>dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y \!</math>
|-
| <source lang="latex" enclose="none">\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y </source>
| <math>\prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y</math>
|-
!colspan="2"|
 
=== 유사 문자 기호 ===
|-
| <source lang="latex" enclose="none">\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar </source>
| <math>\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar \!</math>
|-
| <source lang="latex" enclose="none">\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS </source>
| <math>\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \!</math>
|-
!colspan="2"|
 
=== 모듈러 연산 ===
|-
| <source lang="latex" enclose="none">s_k \equiv 0 \pmod{m} </source>
| <math>s_k \equiv 0 \pmod{m} \!</math>
|-
| <source lang="latex" enclose="none">a\,\bmod\,b </source>
| <math>a\,\bmod\,b \!</math>
|-
| <source lang="latex" enclose="none">\gcd(m, n), \operatorname{lcm}(m, n)</source>
| <math>\gcd(m, n), \operatorname{lcm}(m, n)</math>
|-
| <source lang="latex" enclose="none">\mid, \nmid, \shortmid, \nshortmid </source>
| <math>\mid, \nmid, \shortmid, \nshortmid \!</math>
|-
!colspan="2"|
 
=== 근호 ===
|-
| <source lang="text" enclose="none">\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} </source>
| <math>\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} \!</math>
|-
!colspan="2"|
 
=== 연산자 ===
|-
| <source lang="latex" enclose="none">+, -, \pm, \mp, \dotplus </source>
| <math>+, -, \pm, \mp, \dotplus \!</math>
|-
| <source lang="latex" enclose="none">\times, \div, \divideontimes, /, \backslash </source>
| <math>\times, \div, \divideontimes, /, \backslash \!</math>
|-
| <source lang="latex" enclose="none">\cdot, * \ast, \star, \circ, \bullet </source>
| <math>\cdot, * \ast, \star, \circ, \bullet \!</math>
|-
| <source lang="latex" enclose="none">\boxplus, \boxminus, \boxtimes, \boxdot </source>
| <math>\boxplus, \boxminus, \boxtimes, \boxdot \!</math>
|-
| <source lang="latex" enclose="none">\oplus, \ominus, \otimes, \oslash, \odot</source>
| <math>\oplus, \ominus, \otimes, \oslash, \odot\!</math>
|-
| <source lang="latex" enclose="none">\circleddash, \circledcirc, \circledast </source>
| <math>\circleddash, \circledcirc, \circledast \!</math>
|-
| <source lang="latex" enclose="none">\bigoplus, \bigotimes, \bigodot </source>
| <math>\bigoplus, \bigotimes, \bigodot \!</math>
|-
!colspan="2"|
 
=== 집합 ===
|-
| <source lang="text" enclose="none">\{ \}, \O \empty \emptyset, \varnothing </source>
| <math>\{ \}, \O \empty \emptyset, \varnothing \!</math>
|-
| <source lang="latex" enclose="none">\in, \notin \not\in, \ni, \not\ni </source>
| <math>\in, \notin \not\in, \ni, \not\ni \!</math>
|-
| <source lang="latex" enclose="none">\cap, \Cap, \sqcap, \bigcap </source>
| <math>\cap, \Cap, \sqcap, \bigcap \!</math>
|-
| <source lang="latex" enclose="none">\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus </source>
| <math>\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \!</math>
|-
| <source lang="latex" enclose="none">\setminus, \smallsetminus, \times </source>
| <math>\setminus, \smallsetminus, \times \!</math>
|-
| <source lang="latex" enclose="none">\subset, \Subset, \sqsubset </source>
| <math>\subset, \Subset, \sqsubset \!</math>
|-
| <source lang="latex" enclose="none">\supset, \Supset, \sqsupset </source>
| <math>\supset, \Supset, \sqsupset \!</math>
|-
| <source lang="latex" enclose="none">\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq </source>
| <math>\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \!</math>
|-
| <source lang="latex" enclose="none">\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq </source>
| <math>\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \!</math>
|-
| <source lang="latex" enclose="none">\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq </source>
| <math>\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \!</math>
|-
| <source lang="latex" enclose="none">\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq </source>
| <math>\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \!</math>
|-
!colspan="2"|
 
=== 관계 ===
|-
| <source lang="latex" enclose="none">=, \ne, \neq, \equiv, \not\equiv </source>
| <math>=, \ne, \neq, \equiv, \not\equiv \!</math>
|-
| <source lang="latex" enclose="none">\doteq, \doteqdot,</source> <source lang="text" enclose="none">\overset{\underset{\mathrm{def}}{}}{=},</source> <source lang="latex" enclose="none">:=</source>
| <math>\doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, := \!</math>
|-
| <source lang="latex" enclose="none">\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong </source>
| <math>\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \!</math>
|-
| <source lang="latex" enclose="none">\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto </source>
| <math>\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \!</math>
|-
| <source lang="latex" enclose="none"><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot </source>
| <math><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot \!</math>
|-
| <source lang="latex" enclose="none">>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot </source>
| <math>>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot \!</math>
|-
| <source lang="latex" enclose="none">\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq </source>
| <math>\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq \!</math>
|-
| <source lang="latex" enclose="none">\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq </source>
| <math>\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq \!</math>
|-
| <source lang="latex" enclose="none">\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless </source>
| <math>\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless \!</math>
|-
| <source lang="latex" enclose="none">\leqslant, \nleqslant, \eqslantless </source>
| <math>\leqslant, \nleqslant, \eqslantless \!</math>
|-
| <source lang="latex" enclose="none">\geqslant, \ngeqslant, \eqslantgtr </source>
| <math>\geqslant, \ngeqslant, \eqslantgtr \!</math>
|-
| <source lang="latex" enclose="none">\lesssim, \lnsim, \lessapprox, \lnapprox </source>
| <math>\lesssim, \lnsim, \lessapprox, \lnapprox \!</math>
|-
| <source lang="latex" enclose="none">\gtrsim, \gnsim, \gtrapprox, \gnapprox </source>
| <math>\gtrsim, \gnsim, \gtrapprox, \gnapprox \,</math>
|-
| <source lang="latex" enclose="none">\prec, \nprec, \preceq, \npreceq, \precneqq </source>
| <math>\prec, \nprec, \preceq, \npreceq, \precneqq \!</math>
|-
| <source lang="latex" enclose="none">\succ, \nsucc, \succeq, \nsucceq, \succneqq </source>
| <math>\succ, \nsucc, \succeq, \nsucceq, \succneqq \!</math>
|-
| <source lang="latex" enclose="none">\preccurlyeq, \curlyeqprec </source>
| <math>\preccurlyeq, \curlyeqprec \,</math>
|-
| <source lang="latex" enclose="none">\succcurlyeq, \curlyeqsucc </source>
| <math>\succcurlyeq, \curlyeqsucc \,</math>
|-
| <source lang="latex" enclose="none">\precsim, \precnsim, \precapprox, \precnapprox </source>
| <math>\precsim, \precnsim, \precapprox, \precnapprox \,</math>
|-
| <source lang="latex" enclose="none">\succsim, \succnsim, \succapprox, \succnapprox </source>
| <math>\succsim, \succnsim, \succapprox, \succnapprox \,</math>
|-
!colspan="2"|
 
=== 기하 ===
|-
| <source lang="latex" enclose="none">\parallel, \nparallel, \shortparallel, \nshortparallel </source>
| <math>\parallel, \nparallel, \shortparallel, \nshortparallel \!</math>
|-
| <source lang="latex" enclose="none">\perp, \angle, \sphericalangle, \measuredangle, 45^\circ </source>
| <math>\perp, \angle, \sphericalangle, \measuredangle, 45^\circ \!</math>
|-
| <source lang="latex" enclose="none">\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar </source>
| <math>\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \!</math>
|-
| <source lang="latex" enclose="none">\bigcirc, \triangle \bigtriangleup, \bigtriangledown </source>
| <math>\bigcirc, \triangle \bigtriangleup, \bigtriangledown \!</math>
|-
| <source lang="latex" enclose="none">\vartriangle, \triangledown </source>
| <math>\vartriangle, \triangledown\!</math>
|-
| <source lang="latex" enclose="none">\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright </source>
| <math>\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \!</math>
|-
!colspan="2"|
 
=== 논리 ===
|-
| <source lang="latex" enclose="none">\forall, \exists, \nexists </source>
| <math>\forall, \exists, \nexists \!</math>
|-
| <source lang="latex" enclose="none">\therefore, \because, \And </source>
| <math>\therefore, \because, \And \!</math>
|-
| <source lang="latex" enclose="none">\or \lor \vee, \curlyvee, \bigvee </source>
| <math>\or \lor \vee, \curlyvee, \bigvee \!</math>
|-
| <source lang="latex" enclose="none">\and \land \wedge, \curlywedge, \bigwedge </source>
| <math>\and \land \wedge, \curlywedge, \bigwedge \!</math>
|-
| <source lang="text" enclose="none">\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, </source><br />
<source lang="latex" enclose="none">\lnot \neg, \not\operatorname{R}, \bot, \top</source>
| <math>\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, \!</math><br />
<math>\lnot \neg, \not\operatorname{R}, \bot, \top \!</math>
|-
| <source lang="latex" enclose="none">\vdash \dashv, \vDash, \Vdash, \models </source>
| <math>\vdash \dashv, \vDash, \Vdash, \models \!</math>
|-
| <source lang="latex" enclose="none">\Vvdash \nvdash \nVdash \nvDash \nVDash </source>
| <math>\Vvdash \nvdash \nVdash \nvDash \nVDash \!</math>
|-
| <source lang="latex" enclose="none">\ulcorner \urcorner \llcorner \lrcorner </source>
| <math>\ulcorner \urcorner \llcorner \lrcorner \,</math>
|-
!colspan="2"|
 
=== 화살표 ===
|-
| <source lang="latex" enclose="none">\Rrightarrow, \Lleftarrow </source>
| <math>\Rrightarrow, \Lleftarrow \!</math>
|-
| <source lang="latex" enclose="none">\Rightarrow, \nRightarrow, \Longrightarrow \implies </source>
| <math>\Rightarrow, \nRightarrow, \Longrightarrow \implies\!</math>
|-
| <source lang="latex" enclose="none">\Leftarrow, \nLeftarrow, \Longleftarrow </source>
| <math>\Leftarrow, \nLeftarrow, \Longleftarrow \!</math>
|-
| <source lang="latex" enclose="none">\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff </source>
| <math>\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \!</math>
|-
| <source lang="latex" enclose="none">\Uparrow, \Downarrow, \Updownarrow </source>
| <math>\Uparrow, \Downarrow, \Updownarrow \!</math>
|-
| <source lang="latex" enclose="none">\rightarrow \to, \nrightarrow, \longrightarrow </source>
| <math>\rightarrow \to, \nrightarrow, \longrightarrow\!</math>
|-
| <source lang="latex" enclose="none">\leftarrow \gets, \nleftarrow, \longleftarrow </source>
| <math>\leftarrow \gets, \nleftarrow, \longleftarrow\!</math>
|-
| <source lang="latex" enclose="none">\leftrightarrow, \nleftrightarrow, \longleftrightarrow </source>
| <math>\leftrightarrow, \nleftrightarrow, \longleftrightarrow \!</math>
|-
| <source lang="latex" enclose="none">\uparrow, \downarrow, \updownarrow </source>
| <math>\uparrow, \downarrow, \updownarrow \!</math>
|-
| <source lang="latex" enclose="none">\nearrow, \swarrow, \nwarrow, \searrow </source>
| <math>\nearrow, \swarrow, \nwarrow, \searrow \!</math>
|-
| <source lang="latex" enclose="none">\mapsto, \longmapsto </source>
| <math>\mapsto, \longmapsto \!</math>
|-
| <source lang="latex" enclose="none">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</source>
| <math>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!</math>
|-
| <source lang="latex" enclose="none">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright</source>
| <math>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright \,\!</math>
|-
| <source lang="latex" enclose="none">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft</source>
| <math>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft \,\!</math>
|-
| <source lang="latex" enclose="none">\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow </source>
| <math>\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \!</math>
|-
!colspan="2"|
 
=== 특수 ===
|-
| <source lang="latex" enclose="none">\amalg \P \S \% \dagger \ddagger \ldots \cdots </source>
| <math>\amalg \P \S \% \dagger \ddagger \ldots \cdots \!</math>
|-
| <source lang="latex" enclose="none">\smile \frown \wr \triangleleft \triangleright</source>
| <math>\smile \frown \wr \triangleleft \triangleright\!</math>
|-
| <source lang="latex" enclose="none">\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp </source>
| <math>\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \!</math>
|-
!colspan="2"|
 
=== 기타 ===
|-
| <source lang="latex" enclose="none">\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes </source>
| <math>\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \!</math>
|-
| <source lang="latex" enclose="none">\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq </source>
| <math>\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \!</math>
|-
| <source lang="latex" enclose="none">\intercal \barwedge \veebar \doublebarwedge \between \pitchfork </source>
| <math>\intercal \barwedge \veebar \doublebarwedge \between \pitchfork \!</math>
|-
| <source lang="latex" enclose="none">\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright </source>
| <math>\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \!</math>
|-
| <source lang="latex" enclose="none">\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq </source>
| <math>\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \!</math>
|}


== 위, 아래 첨자 ==
== 위, 아래 첨자 ==
419번째 줄: 81번째 줄:
| <math>x\prime</math>
| <math>x\prime</math>
|-----
|-----
| [[시그마]]  
| [[시그마 (수학)|시그마]]  
| <code>\sum_{k=1}^N k^2</code>  
| <code>\sum_{k=1}^N k^2</code>  
| <math>\sum_{k=1}^N k^2</math>
| <math>\sum_{k=1}^N k^2</math>
432번째 줄: 94번째 줄:
|-----
|-----
| [[적분]]  
| [[적분]]  
| <code>\int_{-N}^{N} e^x\, dx</code>  
| <code>\int_{-N}^{N} e^x\, \operatorname{d}\!x</code>  
| <math>\int_{-N}^{N} e^x\, dx</math>
| <math>\int_{-N}^{N} e^x\, \operatorname{d}\!x</math>
|-----
|-----
| [[선적분]]  
| [[선적분]]  
| <code>\oint_{C} x^3\, dx + 4y^2\, dy</code>
| <code>\oint_{C} x^3\, \operatorname{d}\!x + 4y^2\, \operatorname{d}\!y</code>
| <math>\oint_{C} x^3\, dx + 4y^2\, dy</math>
| <math>\oint_{C} x^3\, \operatorname{d}\!x + 4y^2\, \operatorname{d}\!y</math>
|-----
| 이중 선적분
| [[틀:oiint]]를 사용합니다. <ref><code><nowiki>{{oiint|앞=적분기호 앞에 쓸 내용|첨자= 적분기호에 적용할 밑첨자|뒤= 적분할 수식}}</nowiki></code>로 사용합니다.</ref>
|{{oiint|앞=3|첨자= C|뒤= (x+y)dx}}
|}
|}


490번째 줄: 156번째 줄:
| 두줄<br/>이상의<br/>방정식
| 두줄<br/>이상의<br/>방정식
|  
|  
  \begin{matrix}
  \begin{align}
  f(n+1) &= (n+1)^2 \\
  f(n+1) &= (n+1)^2 \\
         &= n^2 + 2n + 1
         &= n^2 + 2n + 1
  \end{matrix}
  \end{align}
| <math>\begin{matrix}f(n+1)&= (n+1)^2 \\ \ & = n^2 + 2n + 1\end{matrix}</math>
| <math>\begin{align}f(n+1)&= (n+1)^2 \\ \ & = n^2 + 2n + 1\end{align}</math>
|}
 
== 글꼴 ==
{| class="wikitable"
|-
!colspan="2"| 그리스어
|-
| <source lang="latex" enclose="none">\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta </source>
| <math>\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta \!</math>
|-
| <source lang="latex" enclose="none">\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho </source>
| <math>\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho \!</math>
|-
| <source lang="latex" enclose="none">\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega </source>
| <math>\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega \!</math>
|-
| <source lang="latex" enclose="none">\alpha \beta \gamma \delta \epsilon \zeta \eta \theta </source>
| <math>\alpha \beta \gamma \delta \epsilon \zeta \eta \theta \!</math>
|-
| <source lang="latex" enclose="none">\iota \kappa \lambda \mu \nu \xi \pi \rho </source>
| <math>\iota \kappa \lambda \mu \nu \xi \pi \rho \!</math>
|-
| <source lang="latex" enclose="none">\sigma \tau \upsilon \phi \chi \psi \omega </source>
| <math>\sigma \tau \upsilon \phi \chi \psi \omega \!</math>
|-
| <source lang="latex" enclose="none">\varepsilon \digamma \varkappa \varpi </source>
| <math>\varepsilon \digamma \varkappa \varpi \!</math>
|-
| <source lang="latex" enclose="none">\varrho \varsigma \vartheta \varphi </source>
| <math>\varrho \varsigma \vartheta \varphi \!</math>
|-
!colspan="2"| 히브리어
|-
| <source lang="latex" enclose="none">\aleph \beth \gimel \daleth </source>
| <math>\aleph \beth \gimel \daleth \!</math>
|-
!colspan="2"| 칠판체 로마자
|-
| <source lang="latex" enclose="none">\mathbb{ABCDEFGHI} </source>
| <math>\mathbb{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathbb{JKLMNOPQR} </source>
| <math>\mathbb{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathbb{STUVWXYZ} </source>
| <math>\mathbb{STUVWXYZ} \!</math>
|-
!colspan="2"| 볼드체 로마자
|-
| <source lang="latex" enclose="none">\mathbf{ABCDEFGHI} </source>
| <math>\mathbf{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathbf{JKLMNOPQR} </source>
| <math>\mathbf{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathbf{STUVWXYZ} </source>
| <math>\mathbf{STUVWXYZ} \!</math>
|-
| <source lang="latex" enclose="none">\mathbf{abcdefghijklm} </source>
| <math>\mathbf{abcdefghijklm} \!</math>
|-
| <source lang="latex" enclose="none">\mathbf{nopqrstuvwxyz} </source>
| <math>\mathbf{nopqrstuvwxyz} \!</math>
|-
| <source lang="latex" enclose="none">\mathbf{0123456789} </source>
| <math>\mathbf{0123456789} \!</math>
|-
!colspan="2"| 볼드체 그리스어
|-
| <source lang="latex" enclose="none">\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} </source>
| <math>\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} </source>
| <math>\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} </source>
| <math>\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta} </source>
| <math>\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho} </source>
| <math>\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega} </source>
| <math>\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\varepsilon\digamma\varkappa\varpi} </source>
| <math>\boldsymbol{\varepsilon\digamma\varkappa\varpi} \!</math>
|-
| <source lang="latex" enclose="none">\boldsymbol{\varrho\varsigma\vartheta\varphi} </source>
| <math>\boldsymbol{\varrho\varsigma\vartheta\varphi} \!</math>
|-
!colspan="2"| 기울임체 로마자
|-
| <source lang="latex" enclose="none">\mathit{0123456789} </source>
| <math>\mathit{0123456789} \!</math>
|-
!colspan="2"| 기울임체 그리스어
|-
| <source lang="latex" enclose="none">\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} </source>
| <math>\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} \!</math>
|-
| <source lang="latex" enclose="none">\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} </source>
| <math>\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} \!</math>
|-
| <source lang="latex" enclose="none">\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} </source>
| <math>\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} \!</math>
|-
!colspan="2"| 로만체
|-
| <source lang="latex" enclose="none">\mathrm{ABCDEFGHI} </source>
| <math>\mathrm{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathrm{JKLMNOPQR} </source>
| <math>\mathrm{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathrm{STUVWXYZ} </source>
| <math>\mathrm{STUVWXYZ} \!</math>
|-
| <source lang="latex" enclose="none">\mathrm{abcdefghijklm} </source>
| <math>\mathrm{abcdefghijklm} \!</math>
|-
| <source lang="latex" enclose="none">\mathrm{nopqrstuvwxyz} </source>
| <math>\mathrm{nopqrstuvwxyz} \!</math>
|-
| <source lang="latex" enclose="none">\mathrm{0123456789} </source>
| <math>\mathrm{0123456789} \!</math>
|-
!colspan="2"| 산세리프체
|-
| <source lang="latex" enclose="none">\mathsf{ABCDEFGHI} </source>
| <math>\mathsf{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{JKLMNOPQR} </source>
| <math>\mathsf{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{STUVWXYZ} </source>
| <math>\mathsf{STUVWXYZ} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{abcdefghijklm} </source>
| <math>\mathsf{abcdefghijklm} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{nopqrstuvwxyz} </source>
| <math>\mathsf{nopqrstuvwxyz} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{0123456789} </source>
| <math>\mathsf{0123456789} \!</math>
|-
!colspan="2"| 산세리프체 그리스어
|-
| <source lang="latex" enclose="none">\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta} </source>
| <math>\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho} </source>
| <math>\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho} \!</math>
|-
| <source lang="latex" enclose="none">\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}</source>
| <math>\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}\!</math>
|-
!colspan="2"| 흘림체
|-
| <source lang="latex" enclose="none">\mathcal{ABCDEFGHI} </source>
| <math>\mathcal{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathcal{JKLMNOPQR} </source>
| <math>\mathcal{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathcal{STUVWXYZ} </source>
| <math>\mathcal{STUVWXYZ} \!</math>
|-
!colspan="2"| 흑자체
|-
| <source lang="latex" enclose="none">\mathfrak{ABCDEFGHI} </source>
| <math>\mathfrak{ABCDEFGHI} \!</math>
|-
| <source lang="latex" enclose="none">\mathfrak{JKLMNOPQR} </source>
| <math>\mathfrak{JKLMNOPQR} \!</math>
|-
| <source lang="latex" enclose="none">\mathfrak{STUVWXYZ} </source>
| <math>\mathfrak{STUVWXYZ} \!</math>
|-
| <source lang="latex" enclose="none">\mathfrak{abcdefghijklm} </source>
| <math>\mathfrak{abcdefghijklm} \!</math>
|-
| <source lang="latex" enclose="none">\mathfrak{nopqrstuvwxyz} </source>
| <math>\mathfrak{nopqrstuvwxyz} \!</math>
|-
| <source lang="latex" enclose="none">\mathfrak{0123456789} </source>
| <math>\mathfrak{0123456789} \!</math>
|-
|-
!colspan="2"| 작은 글자
|-
| <source lang="latex" enclose="none">{\scriptstyle\text{abcdefghijklm}}</source>
| <math>{\scriptstyle\text{abcdefghijklm}}</math>
|}
|}


708번째 줄: 178번째 줄:
| <math>\left ( \frac{1}{2} \right )</math>
| <math>\left ( \frac{1}{2} \right )</math>
|}
|}
<code>\left</code> 와 <code>\right</code>를 사용하여, 여러가지 괄호를 사용할 수 있습니다.  
<code>\left</code> 와 <code>\right</code>를 사용하여, 여러 가지 괄호를 사용할 수 있습니다.  


{| class="wikitable" style="background-color:white"
{| class="wikitable" style="background-color:white"
737번째 줄: 207번째 줄:
|-----
|-----
| <code>\left.</code> 혹은 <code>\right.</code> 라고 쓰면, 그 쪽 괄호는 나타나지 않습니다.
| <code>\left.</code> 혹은 <code>\right.</code> 라고 쓰면, 그 쪽 괄호는 나타나지 않습니다.
| <code>\left. {A \over B} \right\} \to X
| <code>\left. {A \over B} \right\} \to X</code>
| <math>\left. {A \over B} \right\} \to X</math>
| <math>\left. {A \over B} \right\} \to X</math>
|}
|}
781번째 줄: 251번째 줄:
| <math>a\!b</math>
| <math>a\!b</math>
|}
|}
== 수식 꾸미기 ==
=== 수식에 색 넣기 ===
<code><nowiki><math>\color{#색의 RGB코드}{수식}</math></nowiki></code><br/>
색의 RGB코드에는 특정색의 #RGB 코드를 입력하면 됩니다.간단한것 가령 red나 blue 등은 그냥 입력하시면 됩니다.<br/>
{| class="wikitable"
! style="text-align: center;" | 입력
! 결과
|-
| ! style="text-align: center;" | <code><nowiki><math>\color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math></nowiki></code>
| ! style="text-align: center;" |<math>\color{#0909D9}{\lim_{x\rightarrow 0^{+}} x^{x}=1}</math>
|}
=== 수식에 슬래시 넣기 ===
<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>bcancel{수식}</nowiki></code> 혹은 <code><nowiki>xcancel{수식}</nowiki></code>을 넣습니다.<br/>
또는 <code><nowiki>cancelto{화살표 취소가 향하고자 하는 곳}{화살표 취소를 할 수식}</nowiki></code>이렇게<br/>
입력합니다.
{| class="wikitable"
! style="text-align: center;" | 입력
! 결과
|-
| ! style="text-align: center;" | <code><nowiki><math>\require{cancel},yes\cancel{{x}^{2}}</math></nowiki></code>
| ! style="text-align: center;" |<math>\require{cancel},yes\cancel{{x}^{2}}</math>
|-
| ! style="text-align: center;" |<code><nowiki><math>\require{cancel} rr \bcancel{2x}</math></nowiki></code>
| ! style="text-align: center;" |<math>\require{cancel} rr \bcancel{2x}</math>
|-
| ! style="text-align: center;" |<code><nowiki><math>\require{cancel} rr \xcancel{{x}^{x}}</math></nowiki></code>
| ! style="text-align: center;" |<math>\require{cancel} rr \xcancel{{x}^{x}}</math>
|-
| ! style="text-align: center;" |<code><nowiki><math>\require{cancel},\cancelto{a}{{x}^{2}}</math></nowiki></code>
| ! style="text-align: center;" |<math>\require{cancel},\cancelto{a}{{x}^{2}}</math>
|}
=== 수식 줄바꿈 ===
<code><nowiki><math>줄바꿈하고자 하는 수식\\</math></nowiki></code>
{| class="wikitable"
! style="text-align: center;" | 입력
! 결과
|-
| ! style="text-align: center;" | <code><nowiki><math>a\\b\\c\\d</math></nowiki></code>
| ! style="text-align: center;" |<math>a\\b\\c\\d</math>.
|}
== 가환 다이어그램 ==
AMSmath와 AMSsymbols를 불러온 후, array를 이용하여 object, category, arrow를 모두 씁니다. 어디까지나 이것은 MathJax 등의 리브레 위키에서 사용하는 수식 조판 프로그램이 commutative diagram을 지원하지 않을 때에만 사용하는 편법입니다.
: <code><nowiki><math>
\require{AMSmath}
\require{AMSsymbols}
\newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }}
\newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }}
\newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}}
\newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}}
\newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\begin{array}{ccc} [[[[[[[[[[여기에 이것저것 입력]]]]]]]]]] \end{array}</math></nowiki></code>
:<math>\require{AMSmath}
\require{AMSsymbols}
\newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }}
\newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }}
\newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}}
\newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}}
\newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\begin{array}{ccc} TM & \mapright{T\varphi = \mathrm d \varphi} & TN \\[3pt]  \mapdown[\pi_M]{} & \circlearrowleft & \mapdown{\pi_N} \\[3pt] M& \mapright{ \varphi} & N
\end{array}</math>
이때, object, category, arrow들은 다음과 같이 입력합니다.
# 행렬을 입력하듯 대상들을 배치합니다.
# 화살표들은 다음과 같이 입력합니다.
#: (array 부분만) <code><nowiki>\begin{array}{ccc}
\mapright{a} & \mapright[b]{a} & \mapleft{a} & \mapleft[b]{a} \\[3pt] \mapdown{a} & \mapdown[b]{a} & \mapup{a} & \mapup[b]{a} \\[3pt] \mapupright{a} & \mapupright[b]{a} & \mapupleft{a} & \mapupleft[b]{a} \\[3pt] \mapdownright{a} & \mapdownright[b]{a} & \mapdownleft{a} & \mapdownleft[b]{a} \\[3pt]
\end{array}</nowiki></code>
#:<math>\require{AMSmath}
\require{AMSsymbols}
\newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }}
\newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }}
\newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}}
\newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}}
\newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}}
\newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}}
\begin{array}{ccc}
\mapright{a} & \mapright[b]{a} & \mapleft{a} & \mapleft[b]{a} \\[3pt] \mapdown{a} & \mapdown[b]{a} & \mapup{a} & \mapup[b]{a} \\[3pt] \mapupright{a} & \mapupright[b]{a} & \mapupleft{a} & \mapupleft[b]{a} \\[3pt] \mapdownright{a} & \mapdownright[b]{a} & \mapdownleft{a} & \mapdownleft[b]{a} \\[3pt]
\end{array}</math>
# 여백이 이상하면 적당히 공백으로 채웁니다.


==같이 보기 ==
==같이 보기 ==
787번째 줄: 354번째 줄:
== 바깥 고리 ==
== 바깥 고리 ==
* [http://www.ktug.or.kr/xe/index.php?mid=documents 한글 텍 사용자 그룹(KTUG): 문서와 자료]
* [http://www.ktug.or.kr/xe/index.php?mid=documents 한글 텍 사용자 그룹(KTUG): 문서와 자료]
{{주석}}
{{리브레 위키 도움말}}
[[분류:도움말]]

2017년 10월 9일 (월) 20:15 판

리브레 위키에서는 수학 공식을 간편하게 입력하기 위해, [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])
  • 미분 ([math]\displaystyle{ \dfrac{ \partial }{\partial x } }[/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\, \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를 사용합니다. [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].

가환 다이어그램

AMSmath와 AMSsymbols를 불러온 후, array를 이용하여 object, category, arrow를 모두 씁니다. 어디까지나 이것은 MathJax 등의 리브레 위키에서 사용하는 수식 조판 프로그램이 commutative diagram을 지원하지 않을 때에만 사용하는 편법입니다.

<math> \require{AMSmath} \require{AMSsymbols} \newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }} \newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }} \newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}} \newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}} \newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \begin{array}{ccc} [[[[[[[[[[여기에 이것저것 입력]]]]]]]]]] \end{array}</math>
[math]\displaystyle{ \require{AMSmath} \require{AMSsymbols} \newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }} \newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }} \newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}} \newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}} \newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \begin{array}{ccc} TM & \mapright{T\varphi = \mathrm d \varphi} & TN \\[3pt] \mapdown[\pi_M]{} & \circlearrowleft & \mapdown{\pi_N} \\[3pt] M& \mapright{ \varphi} & N \end{array} }[/math]

이때, object, category, arrow들은 다음과 같이 입력합니다.

  1. 행렬을 입력하듯 대상들을 배치합니다.
  2. 화살표들은 다음과 같이 입력합니다.
    (array 부분만) \begin{array}{ccc} \mapright{a} & \mapright[b]{a} & \mapleft{a} & \mapleft[b]{a} \\[3pt] \mapdown{a} & \mapdown[b]{a} & \mapup{a} & \mapup[b]{a} \\[3pt] \mapupright{a} & \mapupright[b]{a} & \mapupleft{a} & \mapupleft[b]{a} \\[3pt] \mapdownright{a} & \mapdownright[b]{a} & \mapdownleft{a} & \mapdownleft[b]{a} \\[3pt] \end{array}
    [math]\displaystyle{ \require{AMSmath} \require{AMSsymbols} \newcommand\mapright[2][]{\xrightarrow[#1]{ #2 }} \newcommand\mapleft[2][]{\xleftarrow[#1]{ #2 }} \newcommand\mapdown[2][]{\llap{\raise2pt{\scriptstyle{ #1 }}}\Big\downarrow\rlap{\raise2pt{\scriptstyle{ #2 }}}} \newcommand\mapup[2][]{\llap{{\scriptstyle{ #1 }}}\Big\uparrow\rlap{{\scriptstyle{ #2 }}}} \newcommand\mapdownright[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-2pt\diagdown\kern-.42em\lower.63em{\searrow}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapdownleft[2][]{\vcenter{\kern9pt\rlap{\lower6pt{\scriptstyle#1}}\kern-14pt\kern1em\diagup\kern-1.6em\lower.63em{\swarrow}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \newcommand\mapupleft[2][]{\vcenter{\kern3pt\raise.5pt\rlap{\lower6pt{\scriptstyle#1}}\kern-4pt\nwarrow\kern-.64em\lower.63em{\diagdown}\raise-.5pt\kern-2pt\llap{\raise1.5pt{\scriptstyle#2 \kern4pt}}}} \newcommand\mapupright[2][]{\vcenter{\kern6pt\rlap{\lower6pt{\scriptstyle#1}}\kern-18pt\kern1em\nearrow\kern-1.9em\lower.63em{\diagup}\llap{\raise2pt{\scriptstyle #2\kern2pt}}}} \begin{array}{ccc} \mapright{a} & \mapright[b]{a} & \mapleft{a} & \mapleft[b]{a} \\[3pt] \mapdown{a} & \mapdown[b]{a} & \mapup{a} & \mapup[b]{a} \\[3pt] \mapupright{a} & \mapupright[b]{a} & \mapupleft{a} & \mapupleft[b]{a} \\[3pt] \mapdownright{a} & \mapdownright[b]{a} & \mapdownleft{a} & \mapdownleft[b]{a} \\[3pt] \end{array} }[/math]
  3. 여백이 이상하면 적당히 공백으로 채웁니다.

같이 보기

바깥 고리

각주

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