This page is a translated version of the page Extension:Math/Syntax and the translation is 94% complete.
Outdated translations are marked like this.

The Math extension uses a subset of TeX markup, including some extensions from LaTeX and AMS-LaTeX, to display mathematical formulas. It either generates SVG, MathML markup, or uses MathJax to render math on the client side, depending on user preferences and the complexity of the expression.

MathML and MathJax are planned to be used more in the future, with the SVG images becoming deprecated.

더 상세하게 설명하자면, 미디어위키는 Texvc를 이용하여 마크업을 필터링하며, 이를 TeX에 명령얼 전달하여 실제 렌더링을 실행한다. 따라서, TeX 언어의 일부만 지원하며, 더 상세한 내용은 다음을 참고한다.

전통적으로 수식 마크업은 XML-스타일 태그 안에 기재합니다: <math> ... </math>. 기존 툴바 편집에서는 이 기능을 위한 버튼이 있었고, 현재도 위키편집기 툴바를 편집하여 비슷한 버튼을 추가할 수 있습니다. 아이콘들은 다음과 같습니다: MediaWiki:Math tip.

그러나 파서 기능 #tag: {{#tag:math|...}}을 사용할 수도 있습니다; 이 기능은 좀 더 활용성이 높습니다: ...에 들어가는 위키텍스트는 결과를 TeX 코드로 해석하기 전에 먼저 확장됩니다. 따라서 매개 변수와 변수, 파서 기능 및 틀을 포함 할 수 있습니다. 단, 이 구문을 사용하는 경우 TeX 코드의 이중 중괄호는 틀 호출 등에서 사용과 혼동을 피하기 위해 사이에 공백이 있어야합니다. 또한 문자 "|"를 생성합니다. TeX 코드 내에서 {{!}}를 사용합니다.

TeX에서는 HTML와 같이 잉여 공백과 새 줄은 무시된다.

렌더링

이미지를 볼 수 없는 시각 장애인 및 기타 독자에게 표시되고 텍스트를 선택하고 복사할 때도 사용되는 PNG 이미지의 대체 텍스트<math></math>. 수학 요소에 대한 alt 속성을 명시적으로 지정하여 이를 재정의할 수 있습니다. 예를 들어, <math alt="Square root of pi">\sqrt{\pi}</math>는 대체 텍스트가 포함된 이미지를 생성합니다. "파이의 제곱근"입니다.

함수 및 연산자 이름을 제외하고 수학에서 변수에 대한 관례와 같이 문자는 이탤릭체로 표시됩니다; 숫자가 아닙니다. 변수 레이블과 같은 다른 텍스트의 경우 변수와 같은 기울임꼴로 렌더링되는 것을 방지하려면 \text, \mbox 또는 \mathrm</code을 사용하세요. \operatorname{...}을 사용하여 새 함수 이름을 정의할 수도 있습니다. 예를 들어, <math>\text{abc}</math>를 제공합니다. \operatorname{...}을 사용하여 새 함수 이름을 정의할 수도 있습니다.

특수 문자

다음 기호는 LaTeX에서 특별한 의미를 가지거나 모든 글꼴에서 사용할 수 없는 예약된 문자입니다.

# $ % ^ & _ { } ~ \

이들 중 일부는 앞에 백슬래시를 사용하여 입력할 수 있습니다:

<math>\# \$ \% \& \_ \{ \} </math>

나머지는 특별한 이름을 가지고 있습니다:

<math> \hat{} \quad \tilde{} \quad \backslash </math>

<span id="TeX_and_HTML">

TeX 및 HTML

특수 문자 생성을 위한 TeX 마크업을 도입하기 전에 이 비교 표에서 볼 수 있듯이 HTML에서도 유사한 결과를 얻을 수 있다는 점에 유의해야 합니다(특수 문자에 대한 도움말 참조).

TeX 구문 (강제 PNG) TeX 렌더링 HTML 구문 HTML 렌더링
<math>\alpha</math> {{math|<var>&alpha;</var>}} α
<math> f(x) = x^2\,</math> {{math|''f''(<var>x</var>) {{=}} <var>x</var><sup>2</sup>}} f(x) = x2
<math>\sqrt{2}</math> {{math|{{radical|2}}}} 2
<math>\sqrt{1-e^2}</math> {{math|{{radical|1 &minus; ''e''&sup2;}}}} 1 − e²

왼쪽의 코드는 오른쪽의 기호를 생성하지만 후자는 '='를 제외하고 위키텍스트에 직접 넣을 수도 있습니다.

구문 렌더링
&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho; &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;
α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω
&int; &sum; &prod; &radic; &minus; &plusmn; &infty;
&asymp; &prop; {{=}} &equiv; &ne; &le; &ge; 
&times; &sdot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &Oslash; &oslash;
&isin; &notin; 
&cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall; 
&rArr; &hArr; &rarr; &harr; &uarr; 
&alefsym; - &ndash; &mdash; 
∫ ∑ ∏ √ − ± ∞
≈ ∝ = ≡ ≠ ≤ ≥
× ⋅ ÷ ∂ ′ ″
∇ ‰ ° ∴ Ø ø
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀
⇒ ⇔ → ↔ ↑
ℵ - – —

프로젝트는 HTML과 TeX 둘 다에 정착했습니다. 각각의 상황에서 장점이 있기 때문입니다.

HTML의 장점

  1. HTML의 수식은 일반 텍스트처럼 작동합니다. 인라인 HTML 공식은 항상 나머지 HTML 텍스트와 적절하게 정렬되며 어느 정도 잘라내어 붙여넣을 수 있습니다(TeXMathJax를 사용하여 렌더링되는 경우 문제가 되지 않으며 정렬이 버그 32694가 수정되면 PNG 렌더링).
  2. 수식의 배경 및 글꼴 크기는 나머지 HTML 내용과 일치하고(이것은 \pagecolor\definecolor 명령을 사용하여 TeX 수식에서 수정할 수 있습니다) 모양은 CSS 및 브라우저 설정을 따르지만 서체는 수식을 쉽게 식별할 수 있도록 변경됩니다.
  3. 수식에 HTML 코드를 사용하는 페이지는 전송하는 데 더 적은 데이터를 사용하므로 인터넷 연결이 느리거나 제한이 있는 사용자(예를 들어, 전화 접속 또는 모바일 인터넷 연결이 느리거나 데이터 제한이 있는 사용자)에게 중요합니다.
  4. HTML 코드가 있는 수식 조판은 클라이언트 측 스크립트 링크(일명 스크립틀릿)에 접근할 수 있습니다.
  5. 수학적 틀을 사용하여 입력한 공식의 표시는 관련된 틀을 수정하여 편리하게 변경할 수 있습니다. 이 수정은 수동 개입 없이 모든 관련 공식에 영향을 미칩니다.
  6. HTML 코드를 부지런히 입력하면 방정식을 다시 TeX 또는 필요에 따라 다른 코드로 변환하기 위한 모든 의미 정보가 포함됩니다. TeX가 일반적으로 포착하지 못하는 차이점을 포함할 수도 있습니다. {{math|''i''}}허수 단위이고 {{math|<var>i</var>}}는 임의의 인덱스 변수입니다.
  7. HTML 코드를 사용하는 공식은 어떤 장치를 사용하여 렌더링하든 관계없이 가능한 한 선명하게 렌더링됩니다.

<span id="Pros_of_TeX">

TeX의 장점

  1. TeX는 HTML보다 의미상 더 정확합니다.
    1. TeX에서 "<math>x</math>"는 "수학적 변수 "인 반면 HTML에서 "x"는 일반적이고 다소 모호합니다.
    2. 반면에 "{{math|<var>x</var>}}"와 같은 수식을 인코딩하면 동일한 시각적 결과 x를 얻을 수 있고 정보가 손실되지 않습니다. 이를 위해서는 수식을 입력할 때 이해하기 어렵게 만들 수 있는 부지런함과 더 많은 입력이 필요합니다. 그러나 편집자보다 독자가 훨씬 더 많기 때문에 이 노력은 다른 렌더링 옵션을 사용할 수 없는 경우 고려할 가치가 있습니다(예를 들어, 위키미디어 위키에서 사용하기 위해 버그 31406에서 요청되었고 새로운 렌더링 옵션으로 확장:수학에서 구현되는 MathJax와 같은).
  2. 포인트 1의 결과 중 하나는 TeX 코드를 HTML로 변환할 수 있지만 그 반대로는 변환할 수 없다는 것입니다.Template:Ref 이는 서버 측에서 텍스트 내의 복잡성과 위치, 사용자 기본 설정, 브라우저 유형 등에 따라 수식을 항상 변환할 수 있음을 의미합니다. 따라서 가능한 경우 HTML의 모든 이점과 함께 유지될 수 있습니다. TeX의 장점. 현재 상황이 이상적이지 않은 것은 사실이지만, 그것이 정보/콘텐츠를 떨어뜨리는 좋은 이유가 되지는 않습니다. 상황을 개선하는 데 도움이 더 많은 이유입니다.
  3. 포인트 1의 또 다른 결과는 TeX를 지원하는 브라우저에서 MathML(예를 들어, MathJax에 의해)로 변환할 수 있으므로 의미 체계를 유지하고 판독기의 그래픽 장치에 더 적합하도록 렌더링할 수 있다는 것입니다.
  4. TeX는 대부분의 전문 수학자, 과학자 및 엔지니어가 선호하는 텍스트 서식 지정 언어입니다. 그들이 TeX로 작성할 수 있다면 기여하도록 설득하는 것이 더 쉽습니다.
  5. TeX는 수식을 조판하기 위해 특별히 설계되었으므로 익숙해지면 입력이 더 쉽고 자연스럽고, 포함된 전체 페이지보다 하나의 수식에 집중하면 출력이 미학적으로 더 즐겁습니다.
  6. 공식이 TeX에서 올바르게 수행되면 안정적으로 렌더링되는 반면 HTML 공식의 성공은 브라우저 또는 브라우저 버전에 따라 다소 다릅니다. 이 종속성의 또 다른 측면은 글꼴입니다. 수식을 렌더링하는 데 사용되는 셰리프 글꼴은 브라우저에 따라 달라지며 일부 중요한 글리프가 누락될 수 있습니다. 브라우저는 일반적으로 다른 글꼴 패밀리에서 일치하는 글리프를 대체할 수 있지만 결합된 글리프의 경우에는 그럴 필요가 없습니다('' 및 '' 비교).
  7. TeX로 작성할 때 편집자는 이 버전이나 저 버전의 브라우저가 이 또는 저 HTML 개체를 지원하는지 여부에 대해 걱정할 필요가 없습니다. 이러한 결정의 부담은 소프트웨어에 있습니다. 이것은 다른 브라우저에서 편집자의 의도와 잘못되거나 다르게 렌더링되기 쉬운 HTML 공식에는 적용되지 않습니다.Template:Ref
  8. TeX 수식은 기본적으로 HTML 수식보다 더 크게 렌더링되고 일반적으로 더 읽기 쉽고 글꼴과 같은 클라이언트 측 브라우저 리소스에 의존하지 않으므로 결과가 더 안정적으로 위지위그(WYSIWYG)입니다.
  9. TeX는 HTML 코드나 유니코드 값(브라우저에서 HTML 소스를 보고 얻을 수 있음)을 찾는 데 도움이 되지 않지만 위키백과의 TeX PNG에서 간단한 텍스트로 잘라내어 붙여넣으면 LaTeX 소스가 반환됩니다.

어떤 경우에는 TeX나 html 대체를 사용하지 않고 대신 표준 키보드의 간단한 ASCII 기호를 사용하는 것이 최선의 선택일 수 있습니다(예를 들어 아래 참조).

함수, 기호, 특수 문자

악센트/분음 부호

\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a}
\check{a} \bar{a} \ddot{a} \dot{a}

파서 함수

\sin a \cos b \tan c
\sec d \csc e \cot f
\arcsin h \arccos i \arctan j
\sinh k \cosh l \tanh m \coth n
\operatorname{sh}o\,\operatorname{ch}p\,\operatorname{th}q
\operatorname{arsinh}r\,\operatorname{arcosh}s\,\operatorname{artanh}t
\lim u \limsup v \liminf w \min x \max y
\inf z \sup a \exp b \ln c \lg d \log e \log_{10} f \ker g
\deg h \gcd i \Pr j \det k \hom l \arg m \dim n

모듈러 연산

s_k \equiv 0 \pmod{m}
a\,\bmod\,b

미분

\nabla \, \partial x \, dx \, \dot x \, \ddot y\, dy/dx\, \frac{dy}{dx}\, \frac{\partial^2 y}{\partial x_1\,\partial x_2}

집합

\forall \exists \empty \emptyset \varnothing
\in \ni \not\in \notin \not\ni \subset \subseteq \supset \supseteq
\cap \bigcap \cup \bigcup \biguplus \setminus \smallsetminus
\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup

연산자

+ \oplus \bigoplus \pm \mp -
\times \otimes \bigotimes \cdot \circ \bullet \bigodot
\star * / \div \frac{1}{2}

논리

\land (or \and) \wedge \bigwedge \bar{q} \to p
\lor \vee \bigvee \lnot \neg q \And

근호

\sqrt{2} \sqrt[n]{x}

관계

\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}
< \le \ll \gg \ge > \equiv \not\equiv \ne \mbox{or} \neq \propto
\lessapprox \lesssim \eqslantless \leqslant \leqq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox

기하

\Diamond \Box \triangle \angle \perp \mid \nmid \| 45^\circ

화살표

\leftarrow (or \gets) \rightarrow (or \to) \nleftarrow \nrightarrow \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow
\Leftarrow \Rightarrow \nLeftarrow \nRightarrow \Leftrightarrow \nLeftrightarrow \Longleftarrow (or \impliedby) \Longrightarrow (or \implies) \Longleftrightarrow (or \iff)
\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow
\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons
\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright
\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft
\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow

특수

\And \eth \S \P \% \dagger \ddagger \ldots \cdots \colon
\smile \frown \wr \triangleleft \triangleright \infty \bot \top
\vdash \vDash \Vdash \models \lVert \rVert \imath \hbar
\ell \mho \Finv \Re \Im \wp \complement
\diamondsuit \heartsuit \clubsuit \spadesuit \Game \flat \natural \sharp

정렬되지 않음(새 항목)

\vartriangle \triangledown \lozenge \circledS \measuredangle \nexists \Bbbk \backprime \blacktriangle \blacktriangledown
\square \blacksquare \blacklozenge \bigstar \sphericalangle \diagup \diagdown \dotplus \Cap \Cup \barwedge
\veebar \doublebarwedge \boxminus \boxtimes \boxdot \boxplus \divideontimes \ltimes \rtimes \leftthreetimes
\rightthreetimes \curlywedge \curlyvee \circleddash \circledast \circledcirc \centerdot \intercal \leqq \leqslant
\eqslantless \lessapprox \approxeq \lessdot \lll \lessgtr \lesseqgtr \lesseqqgtr \doteqdot \risingdotseq
\fallingdotseq \backsim \backsimeq \subseteqq \Subset \preccurlyeq \curlyeqprec \precsim \precapprox \vartriangleleft
\Vvdash \bumpeq \Bumpeq \eqsim \gtrdot
\ggg \gtrless \gtreqless \gtreqqless \eqcirc \circeq \triangleq \thicksim \thickapprox \supseteqq
\Supset \succcurlyeq \curlyeqsucc \succsim \succapprox \vartriangleright \shortmid \between \shortparallel \pitchfork
\varpropto \blacktriangleleft \therefore \backepsilon \blacktriangleright \because \nleqslant \nleqq \lneq \lneqq
\lvertneqq \lnsim \lnapprox \nprec \npreceq \precneqq \precnsim \precnapprox \nsim \nshortmid
\nvdash \nVdash \ntriangleleft \ntrianglelefteq \nsubseteq \nsubseteqq \varsubsetneq \subsetneqq \varsubsetneqq \ngtr
\subsetneq
\ngeqslant \ngeqq \gneq \gneqq \gvertneqq \gnsim \gnapprox \nsucc \nsucceq \succneqq
\succnsim \succnapprox \ncong \nshortparallel \nparallel \nvDash \nVDash \ntriangleright \ntrianglerighteq \nsupseteq
\nsupseteqq \varsupsetneq \supsetneqq \varsupsetneqq
\jmath \surd \ast \uplus \diamond \bigtriangleup \bigtriangledown \ominus
\oslash \odot \bigcirc \amalg \prec \succ \preceq \succeq
\dashv \asymp \doteq \parallel
\ulcorner \urcorner \llcorner \lrcorner
\Coppa\coppa\Digamma\Koppa\koppa\Sampi\sampi\Stigma\stigma\varstigma

더 큰 표현

아래 첨자, 위 첨자, 적분

기능 구문 렌더링 된 모습
위 첨자 a^2
아래 첨자 a_2
그룹화 a^{2+2}
a_{i,j}
위 첨자 및 아래 첨자 조합 수평 분리하는 경우와 수평 분리하지 않는 경우 x_2^3
{x_2}^3
위 첨자 위 첨자 10^{10^{8}}
기호의 앞이나 뒤에 추가 할 위 첨자 및 아래 첨자 _nP_k
\sideset{_1^2}{_3^4}\prod_a^b
{}_1^2\!\Omega_3^4
기호 쌓기 \overset{\alpha}{\omega}
\underset{\alpha}{\omega}
\overset{\alpha}{\underset{\gamma}{\omega}}
\stackrel{\alpha}{\omega}
도함수 x', y'', f', f''
x^\prime, y^{\prime\prime}
고계 도함수 \dot{x}, \ddot{x}
밑줄, 윗줄, 벡터 \hat a \ \bar b \ \vec c
\overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f}
\overline{g h i} \ \underline{j k l}
\not 1 \ \cancel{123}
화살표 A \xleftarrow{n+\mu-1} B \xrightarrow[T]{n\pm i-1} C
위쪽에 붙이는 중괄호 \overbrace{ 1+2+\cdots+100 }^{\text{sum}\,=\,5050}
아래쪽에 붙이는 중괄호 \underbrace{ a+b+\cdots+z }_{26\text{ terms}}
\sum_{k=1}^N k^2
합 (force \textstyle) \textstyle \sum_{k=1}^N k^2
\prod_{i=1}^N x_i
곱 (force \textstyle) \textstyle \prod_{i=1}^N x_i
쌍대곱 \coprod_{i=1}^N x_i
쌍대곱 (force \textstyle) \textstyle \coprod_{i=1}^N x_i
극한 \lim_{n \to \infty}x_n
극한 (force \textstyle) \textstyle \lim_{n \to \infty}x_n
적분 \int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx
적분 (대체 극한 스타일) \int_{1}^{3}\frac{e^3/x}{x^2}\, dx
적분 (force \textstyle) \textstyle \int\limits_{-N}^{N} e^x\, dx
적분 (force \textstyle, alternate limits style) \textstyle \int_{-N}^{N} e^x\, dx
이중적분 \iint\limits_D \, dx\,dy
삼중적분 \iiint\limits_E \, dx\,dy\,dz
4중적분 \iiiint\limits_F \, dx\,dy\,dz\,dt
선적분 또는 경로적분 \int_C x^3\, dx + 4y^2\, dy
폐 선적분 또는 경로적분 \oint_C x^3\, dx + 4y^2\, dy
교집합 \bigcap_1^n p
합집합 \bigcup_1^k p

분수, 행렬, 여러 줄

기능 구문 렌더링 된 모습
분수 \frac{1}{2}=0.5
작은 ("텍스트 스타일") 분수 \tfrac{1}{2} = 0.5
큰 ("표시 스타일") 분수 \dfrac{k}{k-1} = 0.5
크고 작은 분수의 혼합 \dfrac{ \tfrac{1}{2}[1-(\tfrac{1}{2})^n] }{ 1-\tfrac{1}{2} } = s_n
연분수 (형식의 차이에 유의)
\cfrac{2}{ c + \cfrac{2}{ d + \cfrac{1}{2} } } = a
\qquad
\dfrac{2}{ c + \dfrac{2}{ d + \dfrac{1}{2} } } = a
이항 계수 \binom{n}{k}
작은("텍스트 스타일") 이항 계수 \tbinom{n}{k}
큰 ("표시 스타일") 이항 계수 \dbinom{n}{k}
행렬
\begin{matrix}
x & y \\
z & v 
\end{matrix}
\begin{vmatrix}
x & y \\
z & v 
\end{vmatrix}
\begin{Vmatrix}
x & y \\
z & v
\end{Vmatrix}
\begin{bmatrix}
0      & \cdots & 0      \\
\vdots & \ddots & \vdots \\ 
0      & \cdots & 0
\end{bmatrix}
\begin{Bmatrix}
x & y \\
z & v
\end{Bmatrix}
\begin{pmatrix}
x & y \\
z & v 
\end{pmatrix}
\bigl( \begin{smallmatrix}
a&b\\ c&d
\end{smallmatrix} \bigr)
배열
\begin{array}{|c|c||c|} a & b & S \\
\hline
0&0&1\\
0&1&1\\
1&0&1\\
1&1&0
\end{array}
경우 분리
f(n) = 
\begin{cases} 
n/2,  & \mbox{if }n\mbox{ is even} \\
3n+1, & \mbox{if }n\mbox{ is odd} 
\end{cases}
연립방정식
\begin{cases}
3x + 5y +  z &= 1 \\
7x - 2y + 4z &= 2 \\
-6x + 3y + 2z &= 3
\end{cases}
긴 표현을 쪼개어 필요할 때 감싸기
<math>f(x) = \sum_{n=0}^\infty a_n x^n</math>
<math>= a_0 + a_1x + a_2x^2 + \cdots</math>
여러 줄의 방정식
\begin{align}
f(x) & = (a+b)^2 \\
& = a^2+2ab+b^2
\end{align}
\begin{alignat}{2}
f(x) & = (a-b)^2 \\
& = a^2-2ab+b^2
\end{alignat}
정렬이 지정된 여러 줄의 방정식 (left, center, right)
\begin{array}{lcl}
z        & = & a \\
f(x,y,z) & = & x + y + z  
\end{array}
\begin{array}{lcr}
z        & = & a \\
f(x,y,z) & = & x + y + z     
\end{array}

큰 표현, 대괄호, 막대를 괄호로 묶기

기능 구문 렌더링된 모습
나쁜 예 ( \frac{1}{2} )
좋은 예 \left ( \frac{1}{2} \right )

\left\right에 다양한 구분 기호를 사용할 수 있습니다:

기능 문법 렌더링된 모습
괄호 \left ( \frac{a}{b} \right )
사각 괄호 \left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack
집합괄호 (코드에서 중괄호 앞의 백슬래시 참고) \left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace
부등호 괄호 \left \langle \frac{a}{b} \right \rangle
바 및 이중 바 (참고: "바"는 절대값 기능을 제공합니다) \left | \frac{a}{b} \right \vert \left \Vert \frac{c}{d} \right \|
내림 및 올림 함수: \left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil
슬래시 및 백슬래시 \left / \frac{a}{b} \right \backslash
위, 아래 및 위 아래 화살표 \left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow
\left\right를 모두 사용하는 한 구분 기호를 혼합할 수 있습니다 \left [ 0,1 \right )
\left \langle \psi \right |

구분 기호를 표시하지 않으려면 \left. 또는 \right.를 사용합니다: \left . \frac{A}{B} \right \} \to X
구분 기호의 크기 \big( \Big( \bigg( \Bigg( \dots \Bigg] \bigg] \Big] \big]
\big\{ \Big\{ \bigg\{ \Bigg\{ \dots \Bigg\rangle \bigg\rangle \Big\rangle \big\rangle
\big| \Big| \bigg| \Bigg| \dots \Bigg\| \bigg\| \Big\| \big\|
\big\lfloor \Big\lfloor \bigg\lfloor \Bigg\lfloor \dots \Bigg\rceil \bigg\rceil \Big\rceil \big\rceil
\big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow \dots \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow
\big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots \Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow
\big / \Big / \bigg / \Bigg / \dots \Bigg\backslash \bigg\backslash \Big\backslash \big\backslash

알파벳 및 서체

Texvc는 임의의 유니코드 문자를 렌더링할 수 없습니다. 처리할 수 있는 것은 아래 식으로 입력할 수 있습니다. 키릴 문자와 같은 다른 경우 실행 중인 텍스트에서 유니코드 또는 HTML 개체로 입력할 수 있지만 표시된 수식에는 사용할 수 없습니다.

그리스 알파벳
\Alpha \Beta \Gamma \Delta \Epsilon \Zeta
\Eta \Theta \Iota \Kappa \Lambda \Mu
\Nu \Xi \Omicron \Pi \Rho \Sigma \Tau
\Upsilon \Phi \Chi \Psi \Omega
\alpha \beta \gamma \delta \epsilon \zeta
\eta \theta \iota \kappa \lambda \mu
\nu \xi \omicron \pi \rho \sigma \tau
\upsilon \phi \chi \psi \omega
\varepsilon \digamma \vartheta \varkappa
\varpi \varrho \varsigma \varphi
칠판 볼드체
\mathbb{A} \mathbb{B} \mathbb{C} \mathbb{D} \mathbb{E} \mathbb{F} \mathbb{G}
\mathbb{H} \mathbb{I} \mathbb{J} \mathbb{K} \mathbb{L} \mathbb{M}
\mathbb{N} \mathbb{O} \mathbb{P} \mathbb{Q} \mathbb{R} \mathbb{S} \mathbb{T}
\mathbb{U} \mathbb{V} \mathbb{W} \mathbb{X} \mathbb{Y} \mathbb{Z}
\C \N \Q \R \Z
볼드체 로마자 (벡터 타입)
\mathbf{A} \mathbf{B} \mathbf{C} \mathbf{D} \mathbf{E} \mathbf{F} \mathbf{G}
\mathbf{H} \mathbf{I} \mathbf{J} \mathbf{K} \mathbf{L} \mathbf{M}
\mathbf{N} \mathbf{O} \mathbf{P} \mathbf{Q} \mathbf{R} \mathbf{S} \mathbf{T}
\mathbf{U} \mathbf{V} \mathbf{W} \mathbf{X} \mathbf{Y} \mathbf{Z}
\mathbf{a} \mathbf{b} \mathbf{c} \mathbf{d} \mathbf{e} \mathbf{f} \mathbf{g}
\mathbf{h} \mathbf{i} \mathbf{j} \mathbf{k} \mathbf{l} \mathbf{m}
\mathbf{n} \mathbf{o} \mathbf{p} \mathbf{q} \mathbf{r} \mathbf{s} \mathbf{t}
\mathbf{u} \mathbf{v} \mathbf{w} \mathbf{x} \mathbf{y} \mathbf{z}
\mathbf{0} \mathbf{1} \mathbf{2} \mathbf{3} \mathbf{4}
\mathbf{5} \mathbf{6} \mathbf{7} \mathbf{8} \mathbf{9}
볼드체 (그리스어)
\boldsymbol{\Alpha} \boldsymbol{\Beta} \boldsymbol{\Gamma} \boldsymbol{\Delta} \boldsymbol{\Epsilon} \boldsymbol{\Zeta}
\boldsymbol{\Eta} \boldsymbol{\Theta} \boldsymbol{\Iota} \boldsymbol{\Kappa} \boldsymbol{\Lambda} \boldsymbol{\Mu}
\boldsymbol{\Nu} \boldsymbol{\Xi} \boldsymbol{\Omicron} \boldsymbol{\Pi} \boldsymbol{\Rho} \boldsymbol{\Sigma} \boldsymbol{\Tau}
\boldsymbol{\Upsilon} \boldsymbol{\Phi} \boldsymbol{\Chi} \boldsymbol{\Psi} \boldsymbol{\Omega}
\boldsymbol{\alpha} \boldsymbol{\beta} \boldsymbol{\gamma} \boldsymbol{\delta} \boldsymbol{\epsilon} \boldsymbol{\zeta}
\boldsymbol{\eta} \boldsymbol{\theta} \boldsymbol{\iota} \boldsymbol{\kappa} \boldsymbol{\lambda} \boldsymbol{\mu}
\boldsymbol{\nu} \boldsymbol{\xi} \boldsymbol{\omicron} \boldsymbol{\pi} \boldsymbol{\rho} \boldsymbol{\sigma} \boldsymbol{\tau}
\boldsymbol{\upsilon} \boldsymbol{\phi} \boldsymbol{\chi} \boldsymbol{\psi} \boldsymbol{\omega}
\boldsymbol{\varepsilon} \boldsymbol{\digamma} \boldsymbol{\vartheta} \boldsymbol{\varkappa}
\boldsymbol{\varpi} \boldsymbol{\varrho} \boldsymbol{\varsigma} \boldsymbol{\varphi}
기울임체 로마자
\mathit{A} \mathit{B} \mathit{C} \mathit{D} \mathit{E} \mathit{F} \mathit{G}
\mathit{H} \mathit{I} \mathit{J} \mathit{K} \mathit{L} \mathit{M}
\mathit{N} \mathit{O} \mathit{P} \mathit{Q} \mathit{R} \mathit{S} \mathit{T}
\mathit{U} \mathit{V} \mathit{W} \mathit{X} \mathit{Y} \mathit{Z}
\mathit{a} \mathit{b} \mathit{c} \mathit{d} \mathit{e} \mathit{f} \mathit{g}
\mathit{h} \mathit{i} \mathit{j} \mathit{k} \mathit{l} \mathit{m}
\mathit{n} \mathit{o} \mathit{p} \mathit{q} \mathit{r} \mathit{s} \mathit{t}
\mathit{u} \mathit{v} \mathit{w} \mathit{x} \mathit{y} \mathit{z}
\mathit{0} \mathit{1} \mathit{2} \mathit{3} \mathit{4}
\mathit{5} \mathit{6} \mathit{7} \mathit{8} \mathit{9}
로만체
\mathrm{A} \mathrm{B} \mathrm{C} \mathrm{D} \mathrm{E} \mathrm{F} \mathrm{G}
\mathrm{H} \mathrm{I} \mathrm{J} \mathrm{K} \mathrm{L} \mathrm{M}
\mathrm{N} \mathrm{O} \mathrm{P} \mathrm{Q} \mathrm{R} \mathrm{S} \mathrm{T}
\mathrm{U} \mathrm{V} \mathrm{W} \mathrm{X} \mathrm{Y} \mathrm{Z}
\mathrm{a} \mathrm{b} \mathrm{c} \mathrm{d} \mathrm{e} \mathrm{f} \mathrm{g}
\mathrm{h} \mathrm{i} \mathrm{j} \mathrm{k} \mathrm{l} \mathrm{m}
\mathrm{n} \mathrm{o} \mathrm{p} \mathrm{q} \mathrm{r} \mathrm{s} \mathrm{t}
\mathrm{u} \mathrm{v} \mathrm{w} \mathrm{x} \mathrm{y} \mathrm{z}
\mathrm{0} \mathrm{1} \mathrm{2} \mathrm{3} \mathrm{4}
\mathrm{5} \mathrm{6} \mathrm{7} \mathrm{8} \mathrm{9}
프락투어 서체
\mathfrak{A} \mathfrak{B} \mathfrak{C} \mathfrak{D} \mathfrak{E} \mathfrak{F} \mathfrak{G}
\mathfrak{H} \mathfrak{I} \mathfrak{J} \mathfrak{K} \mathfrak{L} \mathfrak{M}
\mathfrak{N} \mathfrak{O} \mathfrak{P} \mathfrak{Q} \mathfrak{R} \mathfrak{S} \mathfrak{T}
\mathfrak{U} \mathfrak{V} \mathfrak{W} \mathfrak{X} \mathfrak{Y} \mathfrak{Z}
\mathfrak{a} \mathfrak{b} \mathfrak{c} \mathfrak{d} \mathfrak{e} \mathfrak{f} \mathfrak{g}
\mathfrak{h} \mathfrak{i} \mathfrak{j} \mathfrak{k} \mathfrak{l} \mathfrak{m}
\mathfrak{n} \mathfrak{o} \mathfrak{p} \mathfrak{q} \mathfrak{r} \mathfrak{s} \mathfrak{t}
\mathfrak{u} \mathfrak{v} \mathfrak{w} \mathfrak{x} \mathfrak{y} \mathfrak{z}
\mathfrak{0} \mathfrak{1} \mathfrak{2} \mathfrak{3} \mathfrak{4}
\mathfrak{5} \mathfrak{6} \mathfrak{7} \mathfrak{8} \mathfrak{9}
칼리그래피 서체
\mathcal{A} \mathcal{B} \mathcal{C} \mathcal{D} \mathcal{E} \mathcal{F} \mathcal{G}
\mathcal{H} \mathcal{I} \mathcal{J} \mathcal{K} \mathcal{L} \mathcal{M}
\mathcal{N} \mathcal{O} \mathcal{P} \mathcal{Q} \mathcal{R} \mathcal{S} \mathcal{T}
\mathcal{U} \mathcal{V} \mathcal{W} \mathcal{X} \mathcal{Y} \mathcal{Z}
히브리어
\aleph \beth \gimel \daleth
기능 구문 렌더링된 모습
기울임꼴이 아닌 문자 \mbox{abc}
혼합 이탤릭체 (나쁜 예) \mbox{if} n \mbox{is even}
혼합 이탤릭체 (좋은 예) \mbox{if }n\mbox{ is even}
혼합 이탤릭체 (더 읽기 쉽게: ~는 줄 바꿈하지 않는 공백이고 "\"는 공백을 강제 실행합니다) \mbox{if}~n\ \mbox{is even}

색깔

방정식은 색상을 사용할 수 있습니다:

  • {\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}
  • x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}

LaTeX에서 지원하는 모든 명명된 색상(아카이브)은 여기를 참조하세요.

색상은 흑백 미디어나 색맹인 사람들에게 의미가 없기 때문에 무언가를 식별하는 "유일한" 방법으로 사용되어서는 안 됩니다. 을 참조하세요.

형식 문제

간격

TeX는 대부분의 간격을 자동으로 처리하지만 때로는 수동으로 제어해야 할 수도 있습니다.

기능 구문 렌더링된 모습
두 칸 공백 간격 a \qquad b
한 칸 공백 간격 a \quad b
텍스트 간격 a\ b
PNG 변환이 없는 텍스트 간격 a \mbox{ } b
넓은 간격 a\;b
중간 너비 간격 a\>b [not supported]
좁은 간격 a\,b
간격 없음 ab
들여쓰기 간격 a\!b

자동 간격은 매우 긴 표현식에서 깨질 수 있습니다(TeX에서 전체 hbox를 생성하기 때문에):

<math>0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots</math>

이것은 전체 표현식 주위에 한 쌍의 중괄호 { }를 넣어 해결할 수 있습니다.

<math>{0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots}</math>

빈 가로 또는 세로 간격

phantom 명령은 인수의 높이 및/또는 너비와 같은 빈 가로 및/또는 세로 공간을 만듭니다.

특징 구문 렌더링된 모습
빈 가로 및 세로 간격 \Gamma^{\phantom{i}j}_{i\phantom{j}k}
빈 세로 간격 -e\sqrt{\vphantom{p'}p},\; -e'\sqrt{p'},\; \ldots
빈 가로 간격 \int u^2\,du=\underline{\hphantom{(2/3)u^3+C}}


일반 텍스트 흐름과 정렬

기본 CSS로 인해

img.tex { vertical-align: middle; }

와 같은 인라인 표현식은 좋아 보일 것입니다.

그렇지 않으면 정렬해야 하는 경우 <math style="vertical-align:-100%;">...</math>를 사용하고 올바른 값을 얻을 때까지 vertical-align 인수를 사용합니다; 그러나 모양은 브라우저와 브라우저 설정에 따라 다를 수 있습니다.

또한 이 해결 방법에 의존하는 경우 서버의 렌더링이 향후 릴리스에서 수정되는 경우 이 추가 수동 오프셋의 결과로 수식이 갑자기 잘못 정렬됩니다. 따라서 가능한 한 적게 사용하세요.

화학

화학 방정식에서 사용되는 화학 합계 공식을 렌더링하는 두 가지 방법이 있습니다:

  • <math chem>
  • <chem>

<chem>X</chem><math chem>\ce{X}</math>의 약자입니다.

(여기서 X는 화학식입니다)

기술적으로 <math chem>mathjax 설명 문서에 따르면 확장자 mhchem이 활성화된 math 태그입니다.

\cee\cf 명령은 mhchem LaTeX 패키지 설명 문서에서 더 이상 사용되지 않는 것으로 표시되어 있으므로 사용할 수 없습니다.

공식이 특정 "복잡성"에 도달하면 공백이 무시될 수 있습니다(<chem>A + B</chem>는 양전하를 띤 <chem>A+B</chem>인 것처럼 렌더링될 수 있습니다). 이 경우 <chem>A{} + B</chem>를 작성합니다 (이전에 제안된 <chem>{A} + {B}</chem>가 "아닙니다"). 이렇게 하면 버그가 수정되거나 최신 mhchem 버전이 사용되면 공식을 자동으로 정리할 수 있습니다.

아래의 예를 참조하세요.

예시

화학

<chem>C6H5-CHO</chem>

<chem>\mathit{A} ->[\ce{+H2O}] \mathit{B}</chem>

<math chem>A \ce{->[\ce{+H2O}]} B</math>

<chem>SO4^2- + Ba^2+ -> BaSO4 v</chem>

<chem>H2NCO2- + H2O <=> NH4+ + CO3^2-</chem>

<chem>H2O</chem>

<chem>Sb2O3</chem>

<chem>H+</chem>

<chem>CrO4^2-</chem>

<chem>AgCl2-</chem>

<chem>[AgCl2]-</chem>

<chem>Y^{99}+</chem>

<chem>Y^{99+}</chem>

<chem>H2_{(aq)}</chem>

<chem>NO3-</chem>

<chem>(NH4)2S</chem>

이차 다항식



<math>ax^2 + bx + c = 0</math>

이차 다항식 (강제 PNG 렌더링)



<math>ax^2 + bx + c = 0\,</math>

이차 공식



<math>x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>

큰 괄호와 분수



<math>2 = \left(
 \frac{\left(3-x\right) \times 2}{3-x}
 \right)</math>

 <math>S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}</math>
 

적분



<math>\int_a^x \!\!\!\int_a^s f(y)\,dy\,ds
 = \int_a^x f(y)(x-y)\,dy</math>

합계



<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
 {3^m\left(m\,3^n+n\,3^m\right)}</math>

미분 방정식



<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>

복소수



<math>|\bar{z}| = |z|,
 |(\bar{z})^n| = |z|^n,
 \arg(z^n) = n \arg(z)</math>

극한



<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)</math>

적분 방정식



<math>\phi_n(\kappa) =
 \frac{1}{4\pi^2\kappa^2} \int_0^\infty
 \frac{\sin(\kappa R)}{\kappa R}
 \frac{\partial}{\partial R}
 \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR</math>

예시



<math>\phi_n(\kappa) = 
 0.033C_n^2\kappa^{-11/3},\quad
 \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}</math>

연속 및 경우



<math>
 f(x) =
 \begin{cases}
 1 & -1 \le x < 0 \\
 \frac{1}{2} & x = 0 \\
 1 - x^2 & \mbox{otherwise}
 \end{cases}
 </math>

접두사 아래 첨자



 <math>{}_pF_q(a_1,\dots,a_p;c_1,\dots,c_q;z)
 = \sum_{n=0}^\infty
 \frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}
 \frac{z^n}{n!}</math>

분수 및 작은 분수


<math> \frac {a}{b}\  \tfrac {a}{b} </math>

버그 보고서

Bug reports and feature requests should be reported on Phabricator with the tag Math.

같이 보기

외부 링크