#!if top = 문서명1 != null ? 문서명1 : calleeTitle != null ? (i = calleeTitle.lastIndexOf("/")) != -1 ? calleeTitle.substr(0, i) : '상위 문서' : '상위 문서'
[[파일:상위 문서 아이콘.svg|align=left&width=21.6px]] {{{#!html }}} 상위 문서: [[]]| <tableclass=colored-row> |
'''[[나무위키:기본방침|]]''' 문서 관리 방침 · 토론 관리 방침 · 이용자 관리 방침 · 운영 관리 방침 (운영진 선출) |
'''[[나무위키:편집지침|]]''' 일반 문서 · 특수 문서 · 특정 분야 (인문사회 · 과학기술 · 문화예술) · 등재 기준 · 표제어 |
'''[[나무위키:편집합의|]]''' 일반 문서 · 특수 문서 · 특정 분야 (인문사회 · 과학기술 · 문화예술 · 창작물) · 등재 기준 |
'''[[나무위키:프로젝트|]]''' 프로젝트 지침 |
'''[[나무위키:FAQ|]]''' 나무위키 · 계정 · 문서 열람 · 편집 및 역사 페이지 · 이미지 업로드 · 문서 이동 · 기타 문의 |
'''[[나무위키:도움말|]]''' 기능 · 편집 · 문법 (심화 · 수식 · 개발) · 토론 · 설정 · 소명 · 권리침해 · 자주 하는 실수 · 문서 삭제식 이동 · 더미 |
'''''' 관리자 · 중재자 · 역대 운영진 · 운영진 지원 · 운영 도움말 (관리 · 중재 · 권한) · 운영위원회 (의견 제시) · 운영회의 (시행규칙 · 안건 건의) · 운영진 임명 회의 (진행 중인 회의) |
'''''' 접근 제한 (문서 목록) · 봇 리스트 · 투명성 보고서 · 소급 적용 규정 일람 · 공지 목록 · 규정 개정 토론 시행규칙 |
'''''' 분류 (파일 · 템플릿) · 프로젝트 · 틀 · 보존문서 · 주요 페이지 링크 · 문서 작성 요청 |
'''''' 계정 (내 문서함) · 게시판 · 연습장 (토론) · 엔진 (업데이트) · 통계 |
#!style
table.colored-row td a { color: var(--article-text-color); }
table.colored-row td { padding: 5px 6px; }
table.colored-row tr:nth-of-type(1) td,
table.colored-row tr:nth-of-type(3n+6) td {
padding: 5px 10px;
background: #00a495;
color: #fff;
font-weight: bold;
font-size: 1.28em;
}
.form {
display: inline;
padding: 2px 4px;
border-radius: 3px;
background: #00a495;
color: #fff;
font-size: .9em;
}
@theseed-dark-mode {
table.colored-row tr:nth-of-type(1) td,
table.colored-row tr:nth-of-type(3n+6) td {
background: #2d2f34; color: #e0e0e0;
}
.form {
background: #2d2f34;
color: #e0e0e0;
}
}
#!style
table.mtbl {
background-color: transparent;
}
table.mtbl > thead > tr {
background-color: #eaeaea;
}
.tex {
font-family: monospace;
white-space: pre;
display: inline;
}
.rhltex {
font-family: monospace;
white-space: pre;
display: inline;
color: red;
}
.ghltex {
font-family: monospace;
white-space: pre;
display: inline;
color: green;
}
.bhltex {
font-family: monospace;
white-space: pre;
display: inline;
color: blue;
}
@theseed-dark-mode {
table.mtbl {
background-color: transparent;
}
table.mtbl > thead > tr {
background-color: #33353a;
}
}
1. 개요
나무위키는 TeX을 이용한 수식 입력을 지원하며, 렌더러로는 KaTeX 인라인 및 display 모드를 사용할 수 있습니다.본 문서는 KaTeX 호환 TeX 문법의 입력 방법을 해설하고 정리해 놓은 도움말입니다. 본 문서는 수학 기호의 의미나 뜻을 설명해주는 문서가 아닙니다. 그러한 내용은 수학·과학 기호 문서를 참고해 주세요.
KaTeX의 모든 최신 지원 문법 및 매뉴얼은 KaTeX 공식 문서에서 확인하실 수 있습니다.
수식 입력을 연습할 수 있는 별도의 외부 링크 및 소프트웨어에 대한 내용은 아래 외부 도구 문단을 참고해 주세요.
2. 수식 입력 문법
나무위키는 인라인 모드와 display 모드의 두 모드를 지원하며, 이 때 각자 사용되는 문법이 따로 존재합니다.인라인 모드의 경우 매크로 문법을 사용합니다. 다른 매크로와 마찬가지로
[매크로명(...)] 형태의 나무마크 매크로 문법을 사용하며, 수식 입력에 사용되는 매크로는 [math(...)] 입니다. 가장 안쪽의 소괄호에 후술하는 내용을 삽입하면 수식으로 바꾸어 보여집니다.display 모드의 경우 shebang 스타일 문법을 사용합니다.
{{{#!latex
...}}} 형태로 사용하며, ... 위치에 후술하는 내용을 삽입하면 수식이 display 모드로 보여집니다.이외에도
<math></math> 문법을 통한 입력 또한 가능합니다. 현재는 [math()] 형태의 문법을 사용할 것을 권장하며, 레거시 문법인 <math></math>는 지원은 하지만 제약사항이 존재합니다.※ [주의1] 모니위키에서 사용했던
$ TeX $ 형태는 지원하지 않습니다.※ [주의2]
<math>...</math>가 레거시 문법으로 남아 있으나 문법 내에서 다음과 같이 줄바꿈을 사용하는 경우 출력에 오류가 나며 후술할 경제적인 방향으로의 수식 작성을 위하여 사용을 권장하지 않습니다. 단, 토론에서는 [math(...)]는 정상작동하지 않으므로 <math>...</math> 문법을 사용해야 합니다.| <tableclass=mtbl> 입력 | 출력 | 비고 |
| [math(\begin{matrix} a & b \\ c & d \\ \end{matrix})] | 권장 문법 |
| [math( \begin{matrix} a & b \\ c & d \\ \end{matrix} )] | 줄바꿈이 있어도 문제 없음. |
| \begin{matrix} a & b \\ c & d \\ \end{matrix}</math> | 레거시 문법은 한줄인 경우는 문제 없음 |
| \begin{matrix} a & b \\ c & d \\ \end{matrix} </math> | [주의2] 레거시 문법에서 줄바꿈이 있으면 문제 발생 |
이후 문단에서는 편의상
[math(내용)] 문법을 생략하고 소괄호 안쪽의 내용만 표시합니다. 실제로 수식을 작성할 때는 모든 내용을 [math(내용)]의 "내용" 부분에 넣어주시기 바랍니다.[math({{{#!wiki class="rhltex"
)] [math(\Rightarrow \, \color{red} y = ax + b)]3. 숙지 사항
상술한[math(...)]를 통하여 수식을 입력하면 기본적으로 수식 모드에 진입합니다. 해당 모드는 수식을 출력하는 데에 최적화되어있으며 별도의 공백 문법을 쓰지 않는 한 공백을 출력할 수 없기 때문에 문장을 쓰는 데에는 적합하지 않습니다. 문장 입력은 텍스트 모드 이용을 권장합니다(항목 참조). 나무위키의 수식 입력법은 수식 모드 내에서 텍스트 모드를 일시적으로 활성화하는 방식으로 사용하며 기본적으로는 수식 모드입니다.This is not suitable for writing text[math(\Rightarrow This is not suitable for writing text)]
아라비아 숫자, 로마자, 아래 표의 기호를 제외한 각종 기호는 그대로 입력합니다. 다음 기호들은 단순히 나무위키 수식 모드에서 출력을 지원하지 않거나 TeX 내에서 특별한 기능을 담당하는 커맨드이기 때문에 기호 자체를 출력하려면 별도의 입력 방법을 써야 합니다.
| <tableclass=mtbl> 기호 | TeX내 기능 | 기호 출력을 위한 문법 | |
| 입력 | 출력 | ||
| # | \def 문법 내에서 인수 출력에 사용 | \# | [math(\#)] |
| $ | 없음[1] | \$ | [math(\$)] |
| & | \begin, \end 문법 내에서 단 생성 | \& | [math(\&)] |
| % | % 이후의 내용 주석 처리 | \% | [math(\%)] |
| ^ | 위첨자 문법 | ^\wedge | [math(^\wedge)] |
| _ | 아래첨자 문법 | \_ | [math(\_)] |
| { | 문법 적용 범위 설정 | \{ | [math(\{)] |
| } | \} | [math(\})] | |
| ~ | 공백 | \sim | [math(\sim)] |
| \\ | 각종 문법 시작 커맨드 공백[2] | \backslash | [math(\backslash)] |
\\를 이용합니다.[6]ABC\\abc[math(\Rightarrow \begin{aligned}&ABC\\&abc\end{aligned})]
\sqrt2[math(\Rightarrow\sqrt2)]\displaystyle\suma_n[math(\Rightarrow\displaystyle\sum a_n)]
- 기본 서체 이외의 폰트를 출력할 때, 예를 들어 [math(\dfrac{{\color{red}\rm d}y}{{\color{red}\rm d}x})] 출력 시 로만체가 문자 하나에만 적용된 표기이므로
\dfrac{\\mathrm{d}y}{\\mathrm{d}x}보다\dfrac{\\mathrm dy}{\\mathrm dx}가 경제적입니다(중괄호가 불필요하며 문법과 내용 사이에 공백[8]만으로 충분). 이보다 더 경제적인 표기로\dfrac{{\\rm d}y}{{\\rm d}x}가 있습니다(일괄 적용 문법 사용). - 하나의 수식 문법 안에 대형 분수 표기가 13개 미만이라면
\displaystyle……\frac ……\frac……의 일괄 적용 문법을 쓰는 것보다……\dfrac……\dfrac……축약 문법을 쓰는 것이 경제적입니다. 같은 이유로, 합의 기호, 적분과 같이 대형 연산자의 대형 출력을 위해\displaystyle문법을 썼다면, 이 문법은 일괄 적용 문법이므로 그 이후\dfrac를 쓸 필요가 없으며[9], 하나의 수식 내에 대형 연산자가 없는데\displaystyle를 쓰는 것 역시 불필요합니다.
3.1. 문법의 종류
문법 적용 범위에 따라 일시 적용 문법과 일괄 적용 문법으로 나뉩니다. 이하 본 도움말에서 별도의 설명이 없으면 일시 적용 문법입니다.- 일시 적용 문법
문법 이후의 한 글자에만 적용되기 때문에 복수의 글자로 구성된 내용에 적용하려면 해당 내용을 중괄호로 감싸야 합니다. 대부분의 문법이 일시 적용 문법이며 이 원칙과 관련하여 분수, 조합, 로그 등 2개 이상의 인수로 이루어진 문법의 경우, 다음과 같이 간단하게 입력할 수 있습니다.<tableclass=mtbl> 문법 출력 \log_28[math(\log_28)] \dfrac ab[math(\dfrac ab)]
- 일괄 적용 문법
문법 이후의 모든 글자에 적용되기 때문에 복수의 글자로 구성된 내용이라 하더라도 중괄호로 감쌀 필요가 없습니다. 단, 색상 문법처럼 수식 일부에만 적용하고 싶을 때에는 해당 문법과 내용 전체를 중괄호로 감싸야 합니다.<tableclass=mtbl> 문법 출력
\rm arccsc#!wiki class="rhltex"
\} \, x || [math({\color{red} \rm arccsc} \, x)] ||{}}}\rm d#!wiki class="rhltex"
\}y}{#!wiki class="rhltex"
{\rm d#!wiki class="rhltex"
\}#!wiki class="tex"
x\} || [math(\dfrac{{\color{red} \rm d}y}{{\color{red} \rm d}x})] ||3.2. 속성
특정 기호 또는 함수 이름을 출력하는 문법들은 8종류의 속성(class)으로 구분지어져 있으며 속성에 따라 자동으로 공백이 생성되기도 합니다. 공백이 생기는 구체적인 위치와 크기는 속성 종류에 따라 결정됩니다.| <tableclass=mtbl> 속성명 | 특징 | 예시 | |
| 출력 | 문법 | ||
| 일반 | 공백 없음 | [math(a \mathord{\color{red} /} b)] | a b |
| 여는 괄호 | [math(a \mathopen{\color{red} (} b))] | a b) | |
| 닫는 괄호 | [math((a \mathclose{\color{red} )} b)] | (ab | |
| 구두점 | 기호 오른쪽에 작은 공백 삽입 | [math(a \mathpunct{\color{red} ,} b)] [math(a \mathpunct{\color{red} ;} b)] | a ba b |
| 대형 연산자 | 기호 양쪽에 큰 공백 삽입 첨자 위치 문법을 이용하여 오른쪽 위아래첨자의 위치가 상하 위치로 이동 | [math(a \mathop{\color{red} \sum} b)] | a b |
| 내부 수식 | 기호 양쪽에 작은 공백 삽입 | [math(a \mathinner{\color{red} \left( b \right)} c)] | a c |
| 이항 연산 기호 | [math(a \mathbin{\color{red} +} b)] [math(a \mathbin{\color{red} -} b)] [math(a \mathbin{\color{red} \cup} b)] | a ba ba b | |
| 이항 관계 기호 | 기호 양쪽에 큰 공백 삽입 | [math(a \mathrel{\color{red} =} b)] | a b |
속성에 따른 성질은 중괄호 문법 양끝에서 무효화됩니다. 아래 예시에서 [math(\sum)]와 [math(a)], [math(b)] 사이의 공백을 비교하여 보십시오.
| <tableclass=mtbl> 문법 | 출력 |
a \color{blue} \sum b} | [math(a{\color{blue}\sum b})] |
a \sum b | [math(a \sum b)] |
3.2.1. 속성 재지정 문법
속성은 각종 일시 적용 문법을 이용하여 재지정할 수 있습니다.| <tableclass=mtbl> 속성명 문법 | 예시 비교 | 재지정된 속성 | |
| 속성 재지정 문법 통상 문법 | 속성 재지정 출력 통상 출력 | ||
일반\mathord{} | a\\mathord\\sumba{\\sum}ba\\sumb | [math(a\mathord{\color{red}\sum}b \\ a{\color{red}\sum}b \\ a\mathop{\color{blue}\sum}b)] | 대형 연산자 → 일반 |
여는 괄호\mathopen | a\\mathopen{\\left(\\right)}ba\\left(\\right)b | [math(a\mathopen{\color{red}\left(\right)}b \\ a\mathinner{\color{blue}\left(\right)}b)] | 내부 수식 → 여는 괄호 |
닫는 괄호\mathclose | a\\mathclose+ba+b | [math(a\mathclose{\color{red}+}b \\ a\mathbin{\color{blue}+}b)] | 이항 연산 기호 → 닫는 괄호 |
구두점\mathpunct | a\\mathpunct\\cup ba\\cup b | [math(a\mathpunct{\color{red}\cup} b \\ a\mathbin{\color{blue}\cup}b)] | 이항 연산 기호 → 구두점 |
대형 연산자\mathop | a\\mathop/ba/b | [math(a\mathop{\color{red}/}b \\ a\mathord{\color{blue}/}b)] | 일반 → 대형 연산자 |
내부 수식\mathinner | a\\mathinner tbatb | [math(a\mathinner{\color{red}t}b \\ a\mathord{\color{blue}t}b)] | 일반 → 내부 수식 |
이항 연산 기호\mathbin | a\\mathbin=ba=b | [math(a\mathbin{\color{red}=}b \\ a\mathrel{\color{blue}=}b)] | 이항 관계 기호 → 이항 연산 기호 |
이항 관계 기호\mathrel | a\\mathrel.ba.b | [math(a\mathrel{\color{red}.}b \\ a\mathord{\color{blue}.}b)] | 일반 → 이항 관계 기호 |
속성 재지정 문법은 다음과 같은 경우에 활용할 수 있습니다.
- [math(123,456,789 \Leftarrow)]
123,456,789
[math(123{,}456{,}789 \Leftarrow)]123{,}456{,}789 - [math(f\left(\dfrac 12\right) \Leftarrow)]
f\left(\dfrac 12\right)
[math(f{\left(\dfrac 12\right)} \Leftarrow)]f{\left(\dfrac 12\right)}
4. 텍스트 모드
'ab12+-'를 예로 아래 표에 정리한 문법을 이용하여 단어나 문장을 쓰는데 최적화 되어있는 텍스트 모드를 적용할 수 있습니다. 이 문법 안에서는 수식을 출력할 수 없으며 아래와 같이 출력 결과에서 에러가 납니다.\text{\displaystyle e=\sum_{n=0}^\infty\frac1{n!}}[math(\Rightarrow)] [math(\text{\displaystyle e=\sum_{n=0}^\infty\frac1{n!}})][10]
나무위키의 수식 텍스트 모드에서는 중간 굵기의 로만 폰트(직립체)가 디폴트이기 때문에
\text{}(디폴트), \textrm{}(로만), \textmd{}(중간 굵기), \textup{}(직립체) 모두 출력이 동일합니다.| <tableclass=mtbl> 폰트 | 출력 | 문법 |
| 로만 | [math(\text{ab12+-})] | \text{ab12+-}\textrm{ab12+-}\textmd{ab12+-}\textup{ab12+-} |
| 로만 볼드 | [math(\textbf{ab12+-})] | \textbf{ab12+-} |
| 이탤릭 | [math(\textit{ab12+-})] | \textit{ab12+-} |
| 산세리프 | [math(\textsf{ab12+-})] | \textsf{ab12+-} |
| 타자기 | [math(\texttt{ab12+-})] | \texttt{ab12+-} |
\\) 역시 무시[11]되므로 번거롭지만 개행을 하는 지점에서 텍스트 모드를 종료하고 수식 모드에서 개행을 한 뒤 다시 텍스트 모드를 작성해야 합니다.- \\text{
This is text mode\\\\\\where the line break is not available.}
[math(\Rightarrow\text{This is text mode where the line break is not available.})] (×)
\\text{This is text mode}\\\\\\\\text{where the line break is not available.}
[math(\Rightarrow \text{This is text mode}\\\text{where the line break is not available.})] (○)
- [math(\text{\tt This is }\text{\LARGE text }\text{\tiny\color{purple}mode} \Leftarrow)]
\text{\\ttThis is }\text{\\LARGEtext }\text{\\tiny\\color{purple}mode}
| <tableclass=mtbl> 기호 | 출력 | 문법 |
| ^ | [math(\text{\textasciicircum})] | \textasciicircum |
| ~ | [math(\text{\textasciitilde})] | \textasciitilde |
| \\ | [math(\text{\textbackslash})] | \char`\\\textbackslash |
\text{\alpha \beta \gamma}[math(\Rightarrow)] [math(\text{\alpha \beta \gamma})] (×)\text{αβγ}[math(\Rightarrow \text{αβγ})] (○)
- [math(\text{`C{\color{red}\oe}ur' means `heart' in French} \Leftarrow)]
\text{`C\\oeur' means `heart' in French}<tableclass=mtbl> 기호 출력 문법 Æ, æ [math(\text{\AE})], [math(\text{\ae})] \AE,\aeÅ, å [math(\text{\AA})], [math(\text{\aa})] \AA,\aaı, ȷ [math(\text{\i})], [math(\text{\j})] \i,\jØ, ø [math(\text{\O})], [math(\text{\o})] \O,\oŒ, œ [math(\text{\OE})], [math(\text{\oe})] \OE,\oeß [math(\text{\ss})] \ss
4.1. 텍스트 모드 다이어크리틱
나무위키 수식의 텍스트 모드에서는 다음 다이어크리틱의 출력을 지원합니다. 단, 수식 모드의 다이어크리틱 항목을 보면 알 수 있듯이 본 텍스트 모드의 다이어크리틱 문법은 수식 모드와 다르며, 텍스트 모드에서만 유효합니다. 또한 텍스트 모드의 각종 폰트 문법 안에서 입력해야 합니다.- [math(\text{r\'esum\'e} \Leftarrow)] \\text{
r\\'esume\\'e}
| <tableclass=mtbl> 이름 | 출력 | 문법 |
| 어큐트 | [math(\text{\'a})] | \'a |
| 이중 어큐트 | [math(\text{\H a})] | \H a |
| 그라브 | [math(\text{\`a})] | \`a |
| 서컴플렉스 | [math(\text{\^a})] | \^a |
| 하체크 | [math(\text{\v a})] | \v a |
| 브리브 | [math(\text{\u a})] | \u a |
| 도트 | [math(\text{\.a})] | \.a |
| 움라우트 | [math(\text{\"a})] | \"a |
| 매크론 | [math(\text{\=a})] | \=a |
| 틸데 | [math(\text{\~a})] | \~a |
| 위 링 | [math(\text{\r a})] | \r a |
5. 길이 단위
array 환경, \kern, 커스텀 공백 등을 넣을 때 사용자가 임의의 길이를 입력할 수 있습니다.KaTeX에서 지원되는 길이 단위는 다음과 같습니다. LaTeX과 마찬가지로
pt가 가장 기본적으로 쓰이나, 정확한 웹 페이지 렌더링을 위해서는 em, ex 등 단위를 사용하는 것도 좋습니다. KaTeX에서 사용되는 단위명(좌측 열)은 [math(F)]와 [math(G)] 값에 따라 실제 CSS의 단위(우측)와 일부 비례 차이가 있을 수 있어 주의가 필요합니다. 아래 표 우측 열에서 사용된 단위는 기본적으로 현재 페이지의 각 CSS 단위를 뜻하며, [math(\pu{ kpt })]는 KaTeX의 포인트 단위, 즉 *로 표시된 열의 단위를 뜻합니다.| <tableclass=mtbl> 단위 | 비고 | 예시 출력 | 예시 문법 |
em | [math(\pu{ 1 em })] | [math(\rule{1em}{1em})] | \rule{} |
ex | [math(\pu{ 1 ex })] | [math(\rule{1ex}{1em})] | \rule{} |
mu | [math(\pu{18^{-1} em })] | [math(\rule{1mu}{1em})] | \rule{} |
pt* | [math(72.27^{-1} \times F \times G ~ \pu{ in })] | [math(\rule{1pt}{1em})] | \rule{} |
mm | [math(F \times G ~ \pu{ mm })] | [math(\rule{1mm}{1em})] | \rule{} |
cm | [math(F \times G ~ \pu{ cm })] | [math(\rule{1cm}{1em})] | \rule{} |
in | [math(F \times G ~ \pu{ in })] | [math(\rule{1in}{1em})] | \rule{} |
bp | [math(72^{-1} \times F \times G ~ \pu{ in })] | [math(\rule{1bp}{1em})] | \rule{} |
pc | [math(\pu{ 12 kpt })] | [math(\rule{1pc}{1em})] | \rule{} |
dd | [math(\pu{ 1238 / 1157 kpt })] | [math(\rule{1dd}{1em})] | \rule{} |
cc | [math(\pu{ 14856 / 1157 kpt })] | [math(\rule{1cc}{1em})] | \rule{} |
nd | [math(\pu{ 685 / 642 kpt })] | [math(\rule{1nd}{1em})] | \rule{} |
nc | [math(\pu{ 1370 / 107 kpt })] | [math(\rule{1nc}{1em})] | \rule{} |
sp | [math(\pu{ 65536^{-1} kpt })] | [math(\rule{1sp}{1em})] | \rule{} |
이 때, [math(F)]와 [math(G)]는 각각 현재 브라우저 환경에서 다음과 같이 주어지는 상수입니다.
- [math(F = \dfrac{\text{현재 HTML 요소의 폰트 크기}}{\pu{10 pt}})]
- [math(G = 1.21)] (기본 KaTeX 수식 폰트 비례상수)
아래는
\kern 매크로에 em 단위를 사용한 수반쌍 예시입니다.| <tableclass=mtbl> 문법 | 출력 |
\\begin{array} c \\mathbf{Ring} \\\\[0.2em] \\mathllap{ \\Z[-] } \\bigg \\uparrow \\kern-0.3em \\dashv \\kern-0.3em \\bigg \\downarrow \\mathrlap U \\\\[0.8em] \\mathbf{Grp} \\end{array} | |
6. 공백
수식 모드에서 띄어쓰기를 출력하려면 별도의 띄어쓰기 문법을 써야 합니다. 아래 표의 두 번째 예처럼 스페이스바를 이용한 단순 반각 공백은 각종 문법을 구분해주는 역할을 할 뿐 출력상으로는 띄어쓰기가 적용되지 않습니다. 문법에서 는 출력하고자 할 때 반각 공백이 필수임을 의미합니다.| <tableclass=mtbl> 출력 | 문법 | 상대 길이 (반각 공백 기준) | 비율 |
| [math(a\!b)] | a\\!b | [math(-\dfrac23)] | [math(-6)] |
| [math(ab)] | aba b | [math(0\,)] | [math(0)] |
| [math(a\,b)] | a\\,b | [math(\dfrac23)] | [math(6)] |
| [math(a\:b)] | a\\:ba\\>b | [math(\dfrac89)] | [math(8)] |
| [math(a~b)] | a~ba\\ ba\\text{ }b[12] | [math(1\,)] | [math(9)] |
| [math(a\;b)] | a\\;b | [math(\dfrac{10}9)] | [math(10)] |
| [math(a\quad b)] | a\\quad b | [math(4\,)] | [math(36)] |
| [math(a\qquad b)] | a\\qquad b | [math(8\,)] | [math(72)] |
\!는 문자 사이의 간격을 줄여주는 문법으로, 해당 문법을 반복해서 쓰면 두 문자를 겹치게 나타내는 것도 가능합니다.p\\!\\!\\!/[math(\Rightarrow p\!\!\!/)][13]
- [math(a\!\!\!\!\;~b \Leftarrow)]
a\\!\\!\\!\\!\\;~b(상대 길이 [math(-\dfrac59)] , 비율 [math(-5)]) - [math(a\!\!\!\:~b \Leftarrow)]
a\\!\\!\\!\\:~b(상대 길이 [math(-\dfrac19)] , 비율 [math(-1)]) - [math(a\!\!\!\;~b \Leftarrow)]
a\\!\\!\\!\\;~b(상대 길이 [math(\dfrac19)] , 비율 [math(1)]) - [math(a\!~b \Leftarrow)]
a\\!~b(상대 길이 [math(\dfrac13)] , 비율 [math(3)])
7. 수식 폰트
'ab12+-'를 예시로 다음과 같이 폰트를 적용할 수 있는데, 일시 적용 문법과 일괄 적용 문법이 모두 존재합니다. 주의사항으로서, 폰트 문법 내에서는 개행 문법(\\)이 먹히지 않습니다. 개행을 적용할 경우 해당 문법이 적용되는 범위를 중괄호로 감싸서 효과를 끝내고 그 바깥에서 개행하며 개행 이후에 적용하고자 했던 폰트 문법을 다시 적용하는 방식으로 써야 합니다.\bf abc\\\\abc[math(\Rightarrow \bf abc \\ abc)] (×)
{\\bfabc}\\\\{\\bfabc} [math(\Rightarrow \begin{aligned} {\bf abc}\\{\bf abc}\end{aligned})] (○)\mathsf{abc\\\\abc}[math(\Rightarrow \mathsf{abc\\abc})] (×)
\\mathsf{abc}\\\\\\mathsf{abc} [math(\Rightarrow \begin{aligned} \mathsf{abc}\\ \mathsf{abc}\end{aligned})] (○)
- 일괄 적용 문법
<tableclass=mtbl> 폰트 출력 문법 기본 [math(ab12+-)] ab12+-로만 [math(\rm ab12+-)] \rm ab12+-로만 볼드 [math(\bf ab12+-)] \bf ab12+-이탤릭 [math(\it ab12+-)] \it ab12+-산세리프 [math(\sf ab12+-)] \sf ab12+-타자기체 [math(\tt ab12+-)] \tt ab12+- - 일시 적용 문법
<tableclass=mtbl> 폰트 출력 문법 로만 [math(\mathrm{ab12+-})] \mathrm{ab12+-}\operatorname{ab12+-}[14]볼드 [math(\bm{ab12+-})] \bm{ab12+-}\boldsymbol{ab12+-}로만 볼드 [math(\bold{ab12+-})] \bold{ab12+-}\mathbf{ab12+-}이탤릭 [math(\mathit{ab12+-})] \mathit{ab12+-}산세리프 [math(\mathsf{ab12+-})] \mathsf{ab12+-}타자기체 [math(\mathtt{ab12+-})] \mathtt{ab12+-}흑자체 [math(\frak{ab12+-})] \frak{ab12+-}\mathfrak{ab12+-} - 대문자에서만 유효한 폰트[15]
<tableclass=mtbl> 폰트 출력 문법 칠판체 [math(\Bbb{ABCDEFG})] \Bbb{ABCDEFG}\mathbb{ABCDEFG}[16]흘림체 [math(\cal ABCDEFG)] \cal ABCDEFG\mathcal{ABCDEFG}필기체 [math(\mathscr{ABCDEFG})] \mathscr{ABCDEFG}
\bm 또는 \boldsymbol 문법을 사용합니다.- [math(f(x)=x^2+4x+2 \Leftarrow)]
f(x)=x^2+4x+2
[math(\bm{f(x)=x^2+4x+2} \Leftarrow)] \\bm{f(x)=x^2+4x+2}
\pmb[17] 문법를 사용합니다. 아래 첫 번째 예시는 일괄 산세리프체 + 볼드체이고 두 번째는 흑자체 + 볼드체입니다.- [math({\bf L} = {\sf\pmb I}\bm\omega \Leftarrow)]
{\bf L} = {\sf\\pmbI}\bm\omega - [math(\mathfrak{\pmb{ABC}} \Leftarrow)]
\mathfrak{\\pmb{ABC}}
7.1. 별도 명령어가 있는 폰트 문자
특정 폰트로 적용된 수학적 대상은 전용 명령어가 있는 경우가 있습니다.| <tableclass=mtbl> 출력 | 문법 | 설명 |
| [math(\Re)] | \Re | 복소수의 실수부 |
| [math(\Im)] | \Im | 복소수의 허수부 |
| [math(\wp)] | \wp | 바이어슈트라스 타원 함수 |
| [math(\hbar)] | \hbar | 디랙 상수 |
| [math(\partial)] | \partial | 편미분 |
| [math(\complement)] | \complement | 여집합 |
| [math(\cnums)] | \cnums | 복소수 집합 |
| [math(\R)] | \R | 실수 집합 |
| [math(\Z)] | \Z | 정수 집합 |
| [math(\N)] | \N | 자연수 집합 |
8. 수식 크기
다음 두 가지 방법을 이용할 수 있으며, 병용하는 것도 가능합니다.- 수식 전체에 나무위키의 텍스트 크기 설정 방법 적용. 단, 이 방법으로는 분수나 첨자 등 문법 도중의 일부만 바꾸는 것이 불가능합니다.
- [math(ab12+-)] [math(\Leftarrow)]
{{{+1 [math(ab12+-)]}}} - 일괄 적용 문법 이용. 나무위키의 수식 모드에서는
\normalsize문법의 [math(10\,\rm pt)]가 디폴트입니다. 문법 도중의 일부분만 바꿀 수 있습니다. - [math({\huge ab}12+- \Leftarrow)] {
\huge ab}12+- - [math(\dfrac{{\Huge a}+b}c \Leftarrow)]
\dfrac{{\\Huge a}+b}c
| <tableclass=mtbl> 출력 | 문법 | 폰트 크기[math(\rm /pt)] |
| [math(\tiny ab12+-)] | \tiny ab12+- | [math(5)] |
| [math(\sixptsize ab12+-)] | \sixptsize ab12+- | [math(6)] |
| [math(\scriptsize ab12+-)] | \scriptsize ab12+- | [math(7)] |
| [math(\footnotesize ab12+-)] | \footnotesize ab12+- | [math(8)] |
| [math(\small ab12+-)] | \small ab12+- | [math(9)] |
| [math(\normalsize ab12+-)] | \normalsize ab12+- | [math(10)] |
| [math(\large ab12+-)] | \large ab12+- | [math(12)] |
| [math(\Large ab12+-)] | \Large ab12+- | [math(14.4)] |
| [math(\LARGE ab12+-)] | \LARGE ab12+- | [math(17.28)] |
| [math(\huge ab12+- )] | \huge ab12+- | [math(20.74)] |
| [math(\Huge ab12+- )] | \Huge ab12+- | [math(24.88)] |
9. 수식 색상
수식의 색상 조절은\color{색상 이름}내용의 일괄 적용 문법 혹은 \textcolor{색상 이름}{내용}[18]의 일시 적용 문법을 이용합니다.- [math({\color{blue}ab1}{\color{red}2+-} \Leftarrow)] {
\color{blue}ab1}{\color{red}2+-} 또는\textcolor{blue}{ab1}\textcolor{red}{2+-}
| <tableclass=mtbl> [math(\rm\color{aquamarine}aquamarine)] | [math(\rm\color{black}black)] | [math(\rm\color{blue}blue)] | [math(\rm\color{blueviolet}blueviolet)] |
| [math(\rm\color{brown}brown)] | [math(\rm\color{cadetblue}cadetblue)] | [math(\rm\color{cornflowerblue}cornflowerblue)] | [math(\rm\color{cyan}cyan)] |
| [math(\rm\color{darkorchid}darkorchid)] | [math(\rm\color{forestgreen}forestgreen)] | [math(\rm\color{fuchsia}fuchsia)] | [math(\rm\color{goldenrod}goldenrod)] |
| [math(\rm\color{gray}gray)] | [math(\rm\color{green}green)] | [math(\rm\color{greenyellow}greenyellow)] | [math(\rm\color{limegreen}limegreen)] |
| [math(\rm\color{magenta}magenta)] | [math(\rm\color{maroon}maroon)] | [math(\rm\color{midnightblue}midnightblue)] | [math(\rm\color{orange}orange)] |
| [math(\rm\color{orangered}orangered)] | [math(\rm\color{orchid}orchid)] | [math(\rm\color{plum}plum)] | [math(\rm\color{purple}purple)] |
| [math(\rm\color{red}red)] | [math(\rm\color{royalblue}royalblue)] | [math(\rm\color{salmon}salmon)] | [math(\rm\color{seagreen}seagreen)] |
| [math(\rm\color{skyblue}skyblue)] | [math(\rm\color{springgreen}springgreen)] | [math(\rm\color{tan}tan)] | [math(\rm\color{thistle}thistle)] |
| [math(\rm\color{turquoise}turquoise)] | [math(\rm\color{violet}violet)] | [math(\rm\color{white}white)] | [math(\rm\color{yellow}yellow)] |
| [math(\rm\color{yellowgreen}yellowgreen)] | [math(\rm\color{transparent}transparent)][투명색] | ||
[math({\color{#RRGGBB}내용})]과 같이 헥스 코드 입력도 지원합니다.9.1. 고가시성 수식용 헥스 코드
라이트 모드와 다크 모드 무관하게 수식의 가시성을 해치지 않는 주요 헥스 코드 색상 예시 팔레트입니다.기본적으로 KaTeX 내부에서는 나무위키 스킨의 라이트/다크 모드 CSS 상태를 분간할 방법이 없기에, 현재로써는 양쪽 모드에서 모두 잘 보이는 배색을 사용하는 것이 가장 권장됩니다.
|
10. 문자 체계
10.1. 다이어크리틱
나무위키 수식 모드에서는 다음 다이어크리틱의 출력을 지원합니다.| <tableclass=mtbl> 이름 | 출력 | 문법 |
| 어큐트 | [math(\acute a)] | \acute a |
| 그라브 | [math(\grave a)] | \grave a |
| 서컴플렉스 | [math(\hat a)] | \hat a |
| 넓은 서컴플렉스 | [math(\widehat{aa})] | \widehat{aa} |
| 하체크 | [math(\check a)] | \check a |
| 브리브 | [math(\breve a)] | \breve a |
| 도트 | [math(\dot a)] | \dot a |
| 움라우트 | [math(\ddot a)] | \ddot a |
| 트리플 도트 | [math(\dddot a)] | \dddot a |
| 쿼드러플 도트 | [math(\ddddot a)] | \ddddot a |
| 매크론 | [math(\bar a)] | \bar a |
| 틸데 | [math(\tilde a)] | \tilde a |
| 넓은 틸데 | [math(\widetilde{aa})] | \widetilde{aa} |
| 벡터 | [math(\vec a)] | \vec a |
전부 일시 적용 문법으로, 중괄호를 이용하여 복수의 문자에 적용할 수도 있으나
wide가 붙은 문법을 제외한 것은 기호의 길이가 늘어나지 않으며 가운데 정렬로 출력되는 점에 주의하십시오.\acute{aa}[math(\Rightarrow\acute{aa})]
\imath [math(\Rightarrow\imath)], \jmath [math(\Rightarrow\jmath)]를 이용합니다.\hat\imath[math(\Rightarrow\hat\imath)],\acute\jmath[math(\Rightarrow\acute\jmath)]
| <tableclass=mtbl> 출력 | 문법 |
| [math( [math( | ~~\:\overset{\Large\mathclap\frown}{\phantom{\scriptsize;\!}}\clap{AC}~~\:~~\;\;\overset{\huge\mathclap\frown}{\phantom{\scriptsize{;}\!}}\clap{ABC}~~\;\; |
10.2. 그리스 문자
그리스 문자의 개별 영어명을 토대로, 그리스 소문자는 모두 소문자로, 그리스 대문자는 첫 글자만 대문자로 기입하면 됩니다.- [math(\sigma \Larr)]
\sigma, [math(\Sigma \Leftarrow)]\Sigma
그리스 소문자는 이탤릭체로 고정되어있어 텍스트 모드에서처럼 특수 기호 또는 외국어 타자기를 통해 직접 입력해도 다른 폰트가 적용되지 않습니다.[20] 대문자 역시 대부분이 로만으로 고정되어있으나 총 [math(11)]개 문자에 한하여 수식 폰트의 일괄 적용 문법을 적용할 수 있습니다. 기타 대문자는 출력이 사실상 같은 로마자 대문자로 대용합니다. 특히 이탤릭 폰트에 한하여,
\varGamma [math(\Rightarrow \varGamma)] 처럼 var를 글자 앞에 붙임으로써 개별적으로 적용할 수도 있습니다.현대 그리스어에서는 사용되지 않는 일부 옛글자, 그리스 숫자 및 일부 이형자의 출력도 지원하며 그리스 소문자와 마찬가지로 다른 폰트를 적용할 수 없습니다. 단, teubner의
\Coppa, \coppa, \varcoppa, \Digamma, \Koppa, \koppa, \Sampi, \sampi, \Stigma, \stigma, \varstigma와 같이 위키피디아에서 공식 지원되는 일부 이형자, 그리스 숫자 전용 문자, 특수합자, 일부 옛글자 등은 나무위키에서 지원되지 않습니다.지원되는 모든 문자를 각 문자별로 출력하면 아래와 같습니다. 표준 그리스 문자 정렬 순서를 따릅니다.
| <tableclass=mtbl> 이름 | 소문자 | 대문자 | 대문자 이탤릭 | 이형자 | ||||
| 문법 | 출력 | 문법 | 출력 | 문법 | 출력 | 문법 | 출력 | |
| 알파 | \alpha | [math(\alpha)] | \Alpha | [math(\Alpha)] | ||||
| 베타 | \beta | [math(\beta)] | \Beta | [math(\Beta)] | ||||
| 감마 | \gamma | [math(\gamma)] | \Gamma | [math(\Gamma)] | \varGamma | [math(\varGamma)] | ||
| 델타 | \delta | [math(\delta)] | \Delta | [math(\Delta)] | \varDelta | [math(\varDelta)] | ||
| 엡실론 | \epsilon | [math(\epsilon)] | \Epsilon | [math(\Epsilon)] | \varepsilon | [math(\varepsilon)] | ||
| 디감마 | \digamma | [math(\digamma)] | ||||||
| 제타 | \zeta | [math(\zeta)] | \Zeta | [math(\Zeta)] | ||||
| 에타 | \eta | [math(\eta)] | \Eta | [math(\Eta)] | ||||
| 세타 | \theta | [math(\theta)] | \Theta | [math(\Theta)] | \varTheta | [math(\varTheta)] | \vartheta | [math(\vartheta)] |
| 요타 | \iota | [math(\iota)] | \Iota | [math(\Iota)] | ||||
| 카파 | \kappa | [math(\kappa)] | \Kappa | [math(\Kappa)] | \varkappa | [math(\varkappa)] | ||
| 람다 | \lambda | [math(\lambda)] | \Lambda | [math(\Lambda)] | \varLambda | [math(\varLambda)] | ||
| 뮤 | \mu | [math(\mu)] | \Mu | [math(\Mu)] | ||||
| 뉴 | \nu | [math(\nu)] | \Nu | [math(\Nu)] | ||||
| 크시 | \xi | [math(\xi)] | \Xi | [math(\Xi)] | \varXi | [math(\varXi)] | ||
| 오미크론 | \omicron | [math(\omicron)] | \Omicron | [math(\Omicron)] | ||||
| 파이 | \pi | [math(\pi)] | \Pi | [math(\Pi)] | \varPi | [math(\varPi)] | \varpi | [math(\varpi)] |
| 로 | \rho | [math(\rho)] | \Rho | [math(\Rho)] | \varrho | [math(\varrho)] | ||
| 시그마 | \sigma | [math(\sigma)] | \Sigma | [math(\Sigma)] | \varSigma | [math(\varSigma)] | \varsigma | [math(\varsigma)] |
| 타우 | \tau | [math(\tau)] | \Tau | [math(\Tau)] | ||||
| 윕실론 | \upsilon | [math(\upsilon)] | \Upsilon | [math(\Upsilon)] | \varUpsilon | [math(\varUpsilon)] | ||
| 피 | \phi | [math(\phi)] | \Phi | [math(\Phi)] | \varPhi | [math(\varPhi)] | \varphi | [math(\varphi)] |
| 카이 | \chi | [math(\chi)] | \Chi | [math(\Chi)] | ||||
| 프시 | \psi | [math(\psi)] | \Psi | [math(\Psi)] | \varPsi | [math(\varPsi)] | ||
| 오메가 | \omega | [math(\omega)] | \Omega | [math(\Omega)] | \varOmega | [math(\varOmega)] | ||
10.3. 히브리 문자
히브리 문자는 다음 4개만을 지원하며 폰트는 로만 폰트(디폴트) 및 로만 볼드 폰트(\bf)만 적용됩니다.| <tableclass=mtbl> 이름 | 출력 | 문법 |
| 알레프 | [math(\aleph)] | \aleph\alef\alefsym |
| 베트 | [math(\beth)] | \beth |
| 기멜 | [math(\gimel)] | \gimel |
| 달레트 | [math(\daleth)] | \daleth |
10.4. 기타 문자
키릴 문자는 문법을 통한 입력을 지원하지 않으므로 직접 입력해야 합니다.- [math({\color{red}Ш}(A/K) \ \Leftarrow)] Ш
(A/K)(테이트-샤파레비치 군)
11. 괄호 문법
소괄호를 예로, 각 기호 앞에 다음과 같이 문법을 덧붙여서 사용합니다. 괄호의 크기 비교를 위해 문법을 쓰지 않은 경우를 같이 표기합니다.| <tableclass=mtbl> 크기 | 출력 | 문법 | 등가가 되는 가변형 괄호의 내용 |
| 문법 미사용 | [math((a))], [math((\varpi_2))], [math(({}_n{\rm C}_r))] | (a), (\varpi_2), ({}_n{\rm C}_r) | 위첨자 없는 문자를 감쌀 때[21] |
| 소형 | [math(\bigl(\sqrt2\bigr))], [math(\bigl({V_{\max}}^2\bigr))], [math(\bigl(\overline{\rm AB}\bigr))] | \\bigl(\sqrt2\\bigr), \\bigl({V_{\max}}^2\\bigr), \\bigl(\overline{\rm AB}\\bigr) | 위첨자 있는 문자를 감쌀 때 |
| 중형 | [math(\Bigl(\omega_p\bf\hat k\Bigr))], [math(\Bigl(5^{3^2}\Bigr))], [math(\Bigl(\displaystyle\sum a_k\Bigr))] | \\Bigl(\omega_p\bf\hat k\\Bigr), \\Bigl(5^{3^2}\\Bigr), \\Bigl(\displaystyle\sum a_k\\Bigr) | 극한 표기를 감쌀 때, 적분 기호를 제외하고 위아래첨자가 없는 대형 연산자[22]를 감쌀 때 |
| 대형 | [math(\biggl(a^{\textstyle\frac12}\biggr))], [math(\biggl(\dfrac12\biggr))], [math(\biggl(\displaystyle\int\sin x\,{\rm d}x\biggr))] | \\biggl(a^{\textstyle\frac12}\\biggr), \\biggl(\dfrac12\\biggr), \\biggl(\displaystyle\int\sin x\,{\rm d}x\\biggr) | 부정적분 식을 감쌀 때, 정적분 계산식[23]의 대괄호 |
| 초대형 | [math(\Biggl(\displaystyle\int_a^b|f(x)|\,{\rm d}x\Biggr))], [math(\Biggl(\displaystyle\sum_{n=0}^\infty\frac1{n^2}\Biggr))] | \\Biggl(\displaystyle\int_a^b|f(x)|\,{\rm d}x\\Biggr), \\Biggl(\displaystyle\sum_{n=0}^\infty\frac1{n^2}\\Biggr) | 위아래첨자가 있는 대형 연산자[24]를 감쌀 때 |
| 가변형 | [math(\left(a\right))], [math(\left({V_{\max}}^2\right))], [math(\left(\dfrac12\right))] | \\left(a\\right), \\left({V_{\max}}^2\\right), \\left(\dfrac12\\right) | [25] |
가변형 문법은 내부 수식 속성에 속하기 때문에 사용시 좌우로 작은 공백이 삽입되는 특징이 있습니다. 일반 속성으로 재지정하여 공백을 제거하고 싶다면 가변형 문법을 적용한 괄호 전체를 중괄호로 감싸거나 일시 재지정 문법
\mathord를 적용하면 됩니다.(속성 재지정 문법 참조)크기는 문법 미사용<소형<중형<대형<초대형 순이며 위 표에서 알 수 있듯이 가변형 괄호 문법만 내용에 맞춰 세로 폭이 자동으로 조정[26]되므로 기본적으로는
\left, \right 세트를 이용합니다. 정적분 계산식처럼 항상 큰 세로 폭으로 출력하고 싶을 때에는 큰 폭의 괄호를 이용합니다. 특히 대형 괄호의 세로 폭이 대형 연산자의 세로 폭과 동일하므로 \biggl, \biggr 세트를 이용합니다.가변형은 반드시
\left와 \right가 세트로 들어가야 하며 둘 중 하나라도 누락되거나 다른 크기를 조합하면 출력에서 에러가 납니다. f\\left(x)=x^2[math(\Rightarrow)] [math(f\left(x)=x^2)] (×)- \\left
[0,\,1\\biggr][math(\Rightarrow)] [math(\left[0,\,1\biggr])] (×)
- [math([0,\,1\biggr] \Leftarrow)] [
0,\,1\biggr]
- [math({\color{red}\left[\!\!\:\right.}0,\,1{\color{blue}\left.\!\!\!\!\;~\right)} \Leftarrow)]
\left[0,\,1\right)
나무위키의 수식 모드에서는 다음과 같은 괄호의 출력을 지원합니다.(단, 괄호 문법은 적용하지 않았으며, 대형 연산자를 감쌀 경우 가변 문법을 적용해주시기 바랍니다.)
| <tableclass=mtbl> 종류 | 출력 | 문법 |
| 소괄호 | [math({\color{red} (} a {\color{red} )})] | a a |
| 묶음 괄호 | [math({\color{red} \lgroup} a {\color{red} \rgroup})] | a |
| 중괄호 | [math({\color{red} \{} a {\color{red} \}})] | a }a |
| 겹중괄호 | [math({\color{red} \lBrace} a {\color{red} \rBrace})] | a |
| 대괄호 | [math({\color{red} [} a {\color{red} ]})] | a a |
| 겹대괄호 | [math({\color{red} \llbracket} a {\color{red} \rrbracket})] | a |
| 바닥 함수 기호 | [math({\color{red} \lfloor} a {\color{red} \rfloor})] | a |
| 천장 함수 기호 | [math({\color{red} \lceil} a {\color{red} \rceil})] | a |
| 절댓값 기호 | [math({\color{red} |} a {\color{red} |})] | a a |
| 노름 기호 | [math({\color{red} \|} a {\color{red} \|})] | a a |
| 홑화살괄호 | [math({\color{red} \langle} a {\color{red} \rangle})] | a }a }[* 일시 적용 문법이기 때문에 내용이 한 글자라면 중괄호가 필요 없습니다. 과 의 차이는 괄호의 사이즈입니다. 전자는 감싸는 내용의 사이즈에 맞춰서 가변적으로 변하는 반면, 후자는 문법을 쓰지 않은 기본 크기로만 출력됩니다.]a a a [27] |
| 디랙 표기법 전용 홑화살괄호 | [math({\color{red} \langle} a {\color{red} |})] | a } |
| [math({\color{red} |} a {\color{red} \rangle})] | a } | |
| 물결 괄호 | [math({\color{red} \lmoustache} a {\color{red} \rmoustache})] | a |
| [math({\color{red} \rmoustache} a {\color{red} \lmoustache})] | a | |
| 홑낫표 | [math({\color{red} \ulcorner} a {\color{red} \lrcorner})] | a |
| [math({\color{red} \llcorner} a {\color{red} \urcorner})] | a | |
| 슬래시 | [math({\color{red} /} a {\color{red} \backslash})] | a |
| 화살표 | [math({\color{red} \uparrow} a {\color{red} \Updownarrow})] | a |
| 괄호 삭제 (괄호 문법 전용) | [math(\left. a \right.)] | a [28] |
겹화살괄호는 지원하지 않으나 홑화살괄호, 공백 문법을 이용해서 다음과 같은 대체 표현을 쓸 수 있습니다. 이때 외부에 가변형을 사용할 경우 내부 홑화살괄호는 가변형의 사용 유무에 관계 없이 전체를 중괄호로 감싸야 합니다. 감싸지 않을 경우 외부 가변형 괄호의 짝이 맞지 않은 것으로 인식되어 에러가 납니다.
| <tableclass=mtbl> 종류 | 출력 | 문법 |
| 겹화살괄호 | [math({\color{red} \lang \!} {\color{blue} \lang} a {\color{blue} \rang} {\color{red} \! \rang})] | a |
| [math({\color{red} \biggl< \! \! \!} {\color{blue} \biggl<} \dfrac12 {\color{blue} \biggr>} {\color{red} \! \! \! \biggr>})] | \dfrac12 |
가변형 괄호 문법
\left와 \right 사이에 \middle을 사용하여 괄호 크기를 맞출 수 있습니다.| <tableclass=mtbl> 문법 | 출력 |
} | [math(\left\{ \dfrac1n | n \in \N \right\})] |
\left\{ \dfrac1n } | [math(\left\{ \dfrac1n \textcolor{red}{\middle|} n \in \N \right\})] |
위의 예시와 같이 집합의 조건 제시법 등 중괄호 및 수직 파이프 기호를 함께 사용하는 경우, KaTeX에 내장된 집합 매크로
\Set, \set을 사용하면 유용합니다.| <tableclass=mtbl> 문법 | 출력 |
} | [math(\Set{ \dfrac1n | n \in \N })] |
12. 대형 연산자 출력 관련
분수, 조합, 적분, 합의 기호 등 대형 연산자의 크기를 조절하는 문법과, 적분, 극한, 합의 기호 등 첨자를 수반하는 연산자의 첨자 위치에 관한 문법이 있습니다.12.1. 크기 조절 문법
일괄 적용 문법입니다. 다음 4종류의 출력이 있습니다.| <tableclass=mtbl> 문법 | 출력 | 크기 | |
\frac12 | [math(\displaystyle \frac12)] | 대형 | |
\frac12 | [math(\textstyle \frac12)] | 소형 | 텍스트 |
\frac12 | [math(\scriptstyle \frac12)] | 첨자 | |
\frac12 | [math(\scriptscriptstyle \frac12)] | 첨자 내 첨자 | |
인라인 수식 모드에서 각 대형 연산자의 디폴트 크기는 텍스트 크기입니다.
\displaystyle을 씀으로써, 분수나 대형 연산자를 대형 표기로 강제 적용합니다. 기타 지수나 첨자 표기 등은 이 문법의 유무에 관계없이 출력이 똑같기 때문에 굳이 \displaystyle을 일일이 써주지 않아도 되며, 대형 표기 분수의 분자·분모에 대형 연산자를 쓰고 싶은 경우 해당 문법을 한 번 더 써줘야 합니다.| <tableclass=mtbl> 문법 | 출력 |
| [math(\displaystyle \frac{\sum_{k = 0}^n k}{n + 1})] |
| [math(\displaystyle \frac{\displaystyle \color{red} \sum_{k = 0}^n k}{n + 1})] |
극한의 경우 같은 수식 문법 내에 적분, 합의 기호 등 다른 대형 연산자가 없다면
\displaystyle을 쓰는 것보다 아래의 첨자 위치 문법을 조합해서 \limits를쓰는 것이 경제적입니다.- [math(\lim\limits_{n\to\infty}a_n \Leftarrow)]
\lim{{{#!wiki class="rhltex"
_{n\to\infty}a_n각종 첨자 문법 안에서도 크기 조절 문법이 정상작동합니다.
- [math(a^x \Leftarrow)]
a^x
[math(a^{\displaystyle{\color{red} x}} \Leftarrow)]a^{{{{#!wiki class="rhltex"
x}- [math(\displaystyle \int_a^b f(x){\rm\,d}x \Leftarrow)]
\displaystyle \int_a^b f(x){\rm\,d}x
[math(\displaystyle \int_{\displaystyle {\color{red} a}}^{\scriptscriptstyle {\color{red} b}} f(x){\rm\,d}x \Leftarrow)]\displaystyle \int_{{{{#!wiki class="rhltex"
a}^{#!wiki class="rhltex"
\\scriptscriptstyle b} f(x){\rm\,d}x참고로
\begin{}내용\end{} 단위로 쓰이는 각종 행렬, 연립 표기는 디폴트가 대형 크기이며 아래 예에서 알 수 있듯이 \textstyle 문법이 적용되지 않습니다.- [math(\begin{pmatrix}a & b \\ c & d\end{pmatrix} \Leftarrow)]
\begin{pmatrix} a & b \\ c & d\end{pmatrix}
[math(\textstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix} \Leftarrow)] \\textstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix}
\scriptstyle과 \scriptscriptstyle에 의한 크기 변화는 있으나 한계가 있고, 이보다 더 작게 출력하려면 수식 크기 문법을 이용해야 합니다.- [math({\scriptstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] \\scriptstyle
\begin{pmatrix} a & b \\ c & d\end{pmatrix}
[math({\scriptscriptstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] \\scriptscriptstyle\begin{pmatrix} a & b \\ c & d\end{pmatrix} - [math({\tiny\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] \\tiny
\begin{pmatrix} a & b \\ c & d\end{pmatrix}
\displaystyle\frac, \displaystyle\binom을 각각 \dfrac, \dbinom으로 간단하게 나타낼 수 있습니다. 이 경우 다른 일괄 크기 조절 문법이 선행됐다 하더라도 해당 문법은 대형 표기로 출력됩니다.\textstyle \frac 12\\dfrac ab\sum_{n=1}^\infty c_n[math(\Rightarrow \frac 12 {\color{red}\dfrac ab} \sum_{n=1}^\infty c_n)]\textstyle \frac{\\dfrac{a+1}{b+1}}{\frac{c+1}{d+1}}[math(\Rightarrow \textstyle \frac{{\color{red}\dfrac{a+1}{b+1}}}{\frac{c+1}{d+1}})]
\begin ~ \end 문법 외의 환경에서[29] \dfrac을 2행에 걸쳐 반복해서 사용할 경우, 분수의 행간 간격이 좁아 문자가 살짝 겹쳐서 출력되는 문제점이 있습니다. 이런 경우 후술할 연분수 문법 \cfrac으로 해결할 수 있습니다.\begin{cases}\\dfrac{{\rm d}y}{{\rm d}x} \\\\dfrac{\partial y}{\partial x}\end{cases}[math(\Rightarrow \begin{cases} \dfrac{{\rm d}y}{{\rm d}x} \\ \dfrac{\partial y}{\partial x}\end{cases})][참고]\begin{cases}\\cfrac{{\rm d}y}{{\rm d}x} \\\\cfrac{\partial y}{\partial x}\end{cases}[math(\Rightarrow \begin{cases} \cfrac{{\rm d}y}{{\rm d}x} \\ \cfrac{\partial y}{\partial x}\end{cases})]
\\dfracqp[math(\dfrac qp)]
\\dfracqp[math(\dfrac qp)]
\cfrac 문법을 이용[31]합니다. \dfrac과 유사하게 다른 일괄 크기 조절 문법의 영향을 받지 않으나 분수의 가로 세로 폭이 \dfrac보다 미묘하게 크게 출력됩니다. 원주율 [math(pi)]을 예로 두 문법을 각각 적용한 아래 예시를 비교하십시오.<tableclass=mtbl> \dfrac 적용 | \cfrac 적용 |
| [math(\pi = 3+\dfrac{1^2}{6+\dfrac{3^2}{6+\dfrac{5^2}{6+\dfrac{7^2}{6+\dfrac{9^2}{6+\dfrac{11^2}{6+\dfrac{13^2}{6+\dfrac{15^2}{\begin{matrix} \ddots \end{matrix}}}}}}}}})] | [math(\pi = 3+\cfrac{1^2}{6+\cfrac{3^2}{6+\cfrac{5^2}{6+\cfrac{7^2}{6+\cfrac{9^2}{6+\cfrac{11^2}{6+\cfrac{13^2}{6+\cfrac{15^2}{\begin{matrix} \ddots \end{matrix}}}}}}}}})] |
마찬가지로 분수, 조합의 텍스트 크기를
\tfrac, \tbinom으로 간단하게 나타낼 수 있습니다. 역시 다른 일괄 크기 조절 문법이 선행돼도 해당 수식은 텍스트 크기로 출력됩니다.12.2. 첨자 위치 문법
첨자 표기를 수반하는 연산자의 첨자 위치에는 다음과 같이 극한식, 비극한식의 두 가지 스타일이 있습니다. 정적분의 경우 독일 및 러시아 등 국가에서는 극한식 정적분 표기가 주류이며, 대한민국 등에서는 일반적으로 비극한식 표기가 주류입니다.| <tableclass=mtbl> 설명 | 출력 | 문법 |
| 비극한식 표기 | | \int_a^b f(x) \, \mathrm dx |
| 극한식 표기 | | \int_a^b f(x) \, \mathrm dx |
KaTeX에서는 소형 표기일 때 모든 연산자에서 전자 방식(비극한식)으로 출력되는 것이 디폴트이며, 대형 표기일 때는 적분을 제외한 대부분의 연산자에서 후자 방식(극한식)이 디폴트입니다.
소형 표기를 유지하되 대형 연산자의 첨자 위치를 극한식 표기로 나타내고 싶을 때[32]에는 해당 연산자 문법에
\limits를 덧붙입니다. 대형 연산자의 문법이 (연산자)(아래첨자)(위첨자)[33] 묶음으로 구성되어 있다고 할 때, (연산자) 앞을 제외한 각 묶음의 양 옆 중 아무데나 한 곳에 \limits를 붙여주면 해당 효과가 바로 적용됩니다(아래 참조). 그러나 연산자 묶음 앞에 선행하거나 각 묶음 내부에 \limits가 침범하는 경우엔 제대로 출력이 되지 않거나 에러가 납니다.| <tableclass=mtbl> 문법 | 출력 |
e^{\sum_{n=1}^\infty a_n} | [math(e^{\sum_{n=1}^\infty a_n})] |
e^{\sum_{n=1}^\infty a_n} | [math(e^{\sum\limits_{n=1}^\infty a_n})] |
e^{\sum_{n=1}^\infty a_n} | [math(e^{\sum_{n=1}\limits^\infty a_n})] |
e^{\sum_{n=1}^\infty a_n} | [math(e^{\sum_{n=1}^\infty\limits a_n})] |
\limits 문법은 해당 연산자에 한하여 첨자의 위치에만 영향을 주기 때문에 앞선 \displaystyle의 영향을 받으나, 적분을 제외한 연산자에서는 병용해도 의미가 없습니다. 이유인 즉, \displaystyle과 조합할 경우 원래대로의 극한식 표기가 적용될 뿐이기 때문에 출력에는 전혀 차이가 없으며, 소형 표기를 전제로 하는 특성상 다른 일괄 크기 조절 문법을 굳이 필요로 하지 않기 때문입니다.마찬가지로 대형 표기를 유지하되 대형 연산자의 첨자 위치를 비극한식 표기로 나타내고 싶을 때에는 해당 연산자 문법에
\nolimits를 덧붙입니다. 비극한식 표기 문법은 적분을 제외한 대형 연산자에서 \displaystyle과 병용했을 때에만 의미가 있습니다. 대한민국에서는 대형 연산자의 대형 표기에서 이 방식이 주류가 아니기 때문에 권장되지는 않습니다.| <tableclass=mtbl> 문법 | 출력 |
\sum_{k = 1}^n a_k | |
이 문법은 첨자 표기를 수반하는 연산자들에 한해서만 적용되기 때문에 분수나 조합에 적용하면 설령 첨자가 있다 하더라도 에러가 납니다.
13. 화살표 문법
화살표의 방향에 따라 다음과 같은 종류의 화살표 문법을 사용할 수 있습니다.| <tableclass=mtbl> 문법 | 출력 |
\leftarrow\larr\gets | [math(\leftarrow)] |
\rightarrow\rarr\to[34] | [math(\rightarrow)] |
\leftrightarrow\lrarr\harr | [math(\leftrightarrow)] |
\uparrow\uarr | [math(\uparrow)] |
\downarrow\darr | [math(\downarrow)] |
\updownarrow | [math(\updownarrow)] |
\nearrow | [math(\nearrow)] |
\searrow | [math(\searrow)] |
\nwarrow | [math(\nwarrow)] |
\swarrow | [math(\swarrow)] |
\mapsto | [math(\mapsto)] |
평행하는 화살표를 두 개 겹치는 것도 가능합니다. 겹화살표 문법과는 다르며, 문법이 복수(arrows)가 됨에 주의하세요. 상하 화살표를 겹치는 것은 불가능하므로 공백 문법을 조합해서 일일이 입력해야 합니다.
| <tableclass=mtbl> 문법 | 출력 |
\leftleftarrows | [math(\leftleftarrows)] |
\rightrightarrows | [math(\rightrightarrows)] |
\leftrightarrows | [math(\leftrightarrows)] |
\rightleftarrows | [math(\rightleftarrows)] |
\upuparrows | [math(\upuparrows)] |
\downdownarrows | [math(\downdownarrows)] |
\uparrow\!\!\!\!\:~\downarrow | [math(\uparrow\!\!\!\!\:~\downarrow)] |
\downarrow\!\!\!\!\:~\uparrow | [math(\downarrow\!\!\!\!\:~\uparrow)] |
좌우 화살표에 한하여, 시점에 갈고리를 달고 싶은 경우,
\바로 다음에 hook을 삽입합니다.| <tableclass=mtbl> 문법 | 출력 |
\hookleftarrow \hookrightarrow | [math(\hookleftarrow \quad \hookrightarrow)] |
작살표는 arrow 대신 harpoon을 쓰며 문법 마지막에 up, down, left, right로 작살이 튀어나온 방향을 씁니다. 좌우 겹작살표는 지원하는 반면 상하 겹작살표는 지원하지 않으므로 공백 문법을 조합해서 일일이 입력해야 합니다.
| <tableclass=mtbl> 문법 | 출력 |
\leftharpoonup | [math(\leftharpoonup)] |
\rightharpoonup | [math(\rightharpoonup)] |
\leftharpoondown | [math(\leftharpoondown)] |
\rightharpoondown | [math(\rightharpoondown)] |
\leftrightharpoons | [math(\leftrightharpoons)] |
\rightleftharpoons | [math(\rightleftharpoons)] |
\upharpoonleft | [math(\upharpoonleft)] |
\upharpoonright | [math(\upharpoonright)] |
\downharpoonleft | [math(\downharpoonleft)] |
\downharpoonright | [math(\downharpoonright)] |
\upharpoonleft\!\!\!\!\:~\downharpoonright | [math(\upharpoonleft\!\!\!\!\:~\downharpoonright)] |
\downharpoonleft\!\!\!\!\:~\upharpoonright | [math(\downharpoonleft\!\!\!\!\:~\upharpoonright)] |
화학의 평형 반응 등에서 쓰이는, 위아래의 길이가 다른 좌우 작살표는 기본 수식 모드에서는 지원하지 않습니다. 아래와 같이 화살표 위아래에 텍스트를 입력하는 문법을 써서 어느 한쪽 작살표 아래에 반대 방향 작살표를 쓰는 방식으로 대체할 수는 있으나, 화학식 모드에서는 완벽하게 지원되므로 화학식을 작성한다면 아래 방식 대신 전용 화학식 화살표 문법 사용을 적극 권장합니다.
#!if (문단 == null) == (앵커 == null)
를#!if 문단 != null & 앵커 == null
의 [[#s-|]]번 문단을#!if 문단 == null & 앵커 != null
{{{#!if 문서명 = 문서명 != null ? 문서명 : calleeTitle
의 [[#화학식 화살표 문법|화학식 화살표 문법]] 부분을}}} 참고하십시오.| <tableclass=mtbl> 문법 | 출력 |
\xrightharpoonup[\normalsize\leftharpoondown]{}} | [math(\xrightharpoonup[\normalsize\leftharpoondown]{})] |
겹화살표는 첫글자를 대문자로 씁니다. 대각선 및 대응 관계 화살표는 지원하지 않습니다.
| <tableclass=mtbl> 문법 | 출력 |
\Leftarrow\Larr\lArr | [math(\Leftarrow)] |
\Rightarrow\Rarr\rArr | [math(\Rightarrow)] |
\Leftrightarrow\Lrarr\lrArr\Harr\hArr | [math(\Leftrightarrow)] |
\Uparrow\Uarr\uArr | [math(\Uparrow)] |
\Downarrow\Darr\dArr | [math(\Downarrow)] |
\Updownarrow | [math(\Updownarrow)] |
삼겹화살표는 각 문법 첫글자의 대문자를 한번 더 씁니다. 좌우 화살표만 지원합니다.
| <tableclass=mtbl> 문법 | 출력 |
\Lleftarrow | [math(\Lleftarrow)] |
\Rrightarrow | [math(\Rrightarrow)] |
표준 길이보다 좀 더 긴 화살표를 쓰고 싶은 경우 기본 문법의
\ 다음에 long을 삽입합니다. 겹화살표로 나타내고 싶으면 Long을 삽입합니다. 상하 화살표는 직접적으로 지원되지 않으므로 \big등의 적절한 크기 지정자를 사용해 일일이 만들어야 합니다. 표준 길이보다 긴 삼겹화살표는 지원하지 않습니다.| <tableclass=mtbl> 문법 | 출력 |
\longleftarrow | [math(\longleftarrow)] |
\longrightarrow | [math(\longrightarrow)] |
\longleftrightarrow | [math(\longleftrightarrow)] |
\longmapsto | [math(\longmapsto)] |
\Longleftarrow | [math(\Longleftarrow)] |
\impliedby[d] | [math(\impliedby)] |
\Longrightarrow | [math(\Longrightarrow)] |
\implies[d] | [math(\implies)] |
\Longleftrightarrow | [math(\Longleftrightarrow)] |
\iff[d] | [math(\iff)] |
\big\uparrow | [math(\big\uparrow)] |
\big\downarrow | [math(\big\downarrow)] |
\big\updownarrow | [math(\big\updownarrow)] |
\big\Uparrow | [math(\big\Uparrow)] |
\big\Downarrow | [math(\big\Downarrow)] |
\big\Updownarrow | [math(\big\Updownarrow)] |
이외에도 꺾이거나 회전하는 등 특수한 화살표를 사용할 수 있습니다. 주로 위상수학, 범주론 등에서 사용합니다.
| <tableclass=mtbl> 문법 | 출력 |
\twoheadleftarrow | [math(\twoheadleftarrow)] |
\twoheadrightarrow | [math(\twoheadrightarrow)] |
\leftarrowtail | [math(\leftarrowtail)] |
\rightarrowtail | [math(\rightarrowtail)] |
\dashleftarrow | [math(\dashleftarrow)] |
\dashrightarrow | [math(\dashrightarrow)] |
\rightsquigarrow\leadsto | [math(\rightsquigarrow)] |
\leftrightsquigarrow | [math(\leftrightsquigarrow)] |
\Lsh | [math(\Lsh)] |
\Rsh | [math(\Rsh)] |
\looparrowleft | [math(\looparrowleft)] |
\looparrowright | [math(\looparrowright)] |
\circlearrowleft | [math(\circlearrowleft)] |
\circlearrowright | [math(\circlearrowright)] |
\curvearrowleft | [math(\curvearrowleft)] |
\curvearrowright | [math(\curvearrowright)] |
화살표에 부정을 취하고 싶은 경우 n을 덧붙입니다. 좌우 화살표만 지원되며, 이외의 경우
\cancel 등을 적절히 조합해야 합니다.| <tableclass=mtbl> 문법 | 출력 |
\nleftarrow | [math(\nleftarrow)] |
\nrightarrow | [math(\nrightarrow)] |
\nleftrightarrow | [math(\nleftrightarrow)] |
\nLeftarrow | [math(\nLeftarrow)] |
\nRightarrow | [math(\nRightarrow)] |
\nLeftrightarrow | [math(\nLeftrightarrow)] |
화살표 위아래로 코멘트를 입력할 경우 기본 문법의
\ 다음에 x를 삽입하고 아래에 쓸 내용을 대괄호로, 위에 넣을 내용을 중괄호로 감싸서 표기합니다. 둘 다 쓸 경우 반드시 대괄호 → 중괄호 순으로 써야 하며 어느 한쪽만 기입할 경우 대괄호는 생략해도 문제가 없으나 중괄호를 생략하면 에러가 납니다. 화살표의 길이는 내용에 맞춰 자동으로 조절되므로 long 문법을 쓴 화살표는 지원하지 않습니다.| <tableclass=mtbl> 문법 | 출력 |
\xleftarrowp[def]{abc} \xrightarrow[def]{} | [math(\xleftarrow[def]{abc} \quad \xrightarrow[def]{})] |
\xleftrightarrow{abc} | [math(\xleftrightarrow{abc})] |
\xmapsto[def]{abc} | [math(\xmapsto[def]{abc})] |
\xtwoheadleftarrow[def]{abc} \xtwoheadrightarrow[def]{abc} | [math(\xtwoheadleftarrow[def]{abc} \quad \xtwoheadrightarrow[def]{abc})] |
\xhookleftarrow[def]{abc} \xhookrightarrow[def]{abc} | [math(\xhookleftarrow[def]{abc} \quad \xhookrightarrow[def]{abc})] |
\xleftharpoonup[def]{abc} \xrightharpoonup[def]{abc} | [math(\xleftharpoonup[def]{abc} \quad \xrightharpoonup[def]{abc})] |
\xleftrightharpoons[def]{abc} \xrightleftharpoons[def]{abc} | [math(\xleftrightharpoons[def]{abc} \quad \xrightleftharpoons[def]{abc})] |
\xLeftarrow[def]{abc} xRightarrow[def]{abc} | [math(\xLeftarrow[def]{abc} \quad \xRightarrow[def]{abc})] |
\xLeftrightarrow[def]{abc} | [math(\xLeftrightarrow[def]{abc})] |
\xlongequal[def]{abc} | [math(\xlongequal[def]{abc})] |
14. 함수 문법
일부 지원되지 않는 함수들(후술)을 제외하고 로마자로 표현되는 각종 함수들은\함수 이름으로 간단히 쓸 수 있습니다. 단 [math(bmod)]는 \bmod로 써야 합니다.| <tableclass=mtbl> 출력 | 문법 | 출력 | 문법 | |
| [math(\sin x)] [math(\cos x)] [math(\tan x)] | \sin x\cos x\tan x | [math(\csc x)] [math(\sec x)] [math(\cot x)] | \csc x\sec x\cot x | |
| [math(\sinh x)] [math(\cosh x)] [math(\tanh x)] | \sinh x\cosh x\tanh x | [math(\sin^2x)] [math(\tanh^{-1}x)] | \sin^2x\tanh^{-1}x | |
| [math(\exp x)] | \exp x | [math(\log_ax)] [math(\ln x)] | \log_ax\ln x | |
| [math(\gcd(m,\,n))] | \gcd(m,\,n) | [math(\arg z)] | \arg z | |
| [math(\sup A)] | \sup A | [math(\inf A)] | \inf A |
일부 함수는 로마자가 아닌 블랙 레터 혹은 필기체로 표현됩니다.
- [math(\Re(x) \Leftarrow)]
\Re(x), [math(\Im(x) \Leftarrow)]\Im(x), [math(\wp(z;\,\tau) \Leftarrow)]\wp(z;\,\tau)
아래에 제시된 함수는 이 기능을 지원하지 않아 다음 두가지 방법으로 입력해야 합니다.
- 수식 로만 폰트를 이용해 직접 입력 후 최소 공백 만큼(
\,) 띄워서[38] 변수 혹은 수를 입력합니다. (괄호를 사용할 경우 띄우지 않습니다. 예: [math(f(x))] vs [math(f\,(x))]) \operatorname문법을 이용할 수도 있습니다. 해당 문법은 사용하면 변수와 함수간 띄어쓰기를 자동으로 처리해주기 때문에 편리하며, 로만 폰트가 적용된 이유가 연산자이기 때문임을 알려주는 역할도 합니다. 예: [math(\operatorname{arccot}x \Leftarrow)]\operatorname{arccot}x, [math(a\operatorname{Log}(b+c) \Leftarrow)]a\operatorname{Log}(b+c)
- 최소공배수: lcm[39]
- 역삼각함수: arccot, arcsec, arccsc
- 쌍곡선 함수: sech, csch
- [math(\operatorname{csch}x \Leftarrow)]
\operatorname{csch}x - 모든 역쌍곡선 함수[40]: arsinh, arcosh, artanh, arcoth, arsech, arcsch
- 로그 중 이진로그와 복소로그함수: lb, Log[41]
- 상당수의 특수함수: sgn, Ei, li, Si, Ci, Shi, Chi, erf 등
- 선형대수학의 연산자: rank, tr, null[42]
- [math(\operatorname{tr}A \Leftarrow)]
\operatorname{tr}A - 위상수학의 연산자: int[43], ext, cl
- [math(\operatorname{int}S \Leftarrow)]
\operatorname{int}S[44]
15. 화학식 모드
화학식은 수식 모드에서 로만체 문법과 각종 화살표 문법을 이용해서도 작성할 수 있으나 일시 적용 문법인\ce[45]를 이용하면 좀 더 간단하게 화학식을 작성할 수 있습니다. 특히 평형 반응에서 정/역반응의 우세 정도를 나타내는 화살표([math(\ce{<=>>})], [math(\ce{<<=>})])는 현재 KaTeX의 수식 모드에서 깔끔하게 나타낼 수 있는 방법이 없기에 화학식 모드 이용을 적극 권장합니다. 이하 예시에서 괄호 안의 문법은 수식 모드로 화학식을 작성한 경우입니다.기본적으로 수식 모드에서 쓸 수 있는 문법은 화학식 모드에서도 대체로[46] 유효하나
begin{}...end{}는 동작하지 않습니다.[47] 디폴트가 텍스트 스타일 출력이기 때문에 크게 출력하려면 displaystyle이 필요합니다.\ce{\displaystyle \sum\limits_n (C2H4) -> [-C_2H_2-]_n}[math(\Rightarrow \ce{\displaystyle \sum\limits_n (C2H4) -> [-CH_2-]_n})]
가독성을 위해, 가급적이면 문법은 화학종 단위로 띄어 쓸 것을 권장합니다. 특히
-와 +는 공백의 삽입 여부에 따라 후술할 첨자 표기로도 인식되기 때문에 주의가 필요합니다.\ce{Cu^2+(aq) + Zn(s) -> Cu(s) + Zn^2+(s)}[math(\Rightarrow \ce{Cu^2+(aq) + Zn(s) -> Cu(s) + Zn^2+(s)})] (○)
( [math(\Leftarrow)]\rm Cu^{2+}(aq) + Zn(s) \longrightarrow Cu(s) + Zn^{2+}(s))\ce{Cu^2+(aq)+Zn(s)->Cu(s)+Zn^2+(s)}[math(\ce{Cu^2+(aq)+Zn(s)->Cu(s)+Zn^2+(s)})] (×)
화학식 모드에서는 디폴트가 로만체이며, 원소 기호 뒤에 붙는 숫자는 기본적으로 아래 첨자로 출력되기 때문에 수식 모드의 아래 첨자 문법
_{}, 특히 중괄호를 쓰지 않아도 됩니다.[48] 이와 비슷하게 위 첨자에는 일반적으로 숫자와 기호만이 쓰이는 화학식 특성상, 다른 문자나 기호가 나올 때까지 위 첨자 표기로 일괄 적용한다는 특징이 있어 내용을 중괄호로 감싸지 않아도 됩니다.\ce{CO3^2-}[math(\Rightarrow \ce{CO3^2-})] ( [math(\Leftarrow)]\rm{CO_3}^{2-})
^ 필요 없이) 나타낼 수 있습니다.\ce{H+}[math(\Rightarrow \ce{H+})] ( [math(\Leftarrow)]\rm H^+)
- 뒤에 공백 없이 다른 문자나 기호가 오면 후술할 단일결합으로 인식하기 때문에 이온의 가수로 나타내려면 공백이 필요합니다.\ce{HO-}[math(\Rightarrow \ce{HO-})]\ce{HO-H}[math(\Rightarrow \ce{HO-H})]
^.으로 나타냅니다. [math(\ce{^.-})]와 같은 라디칼 이온 역시 ^.-로 중괄호 없이 입력해서 출력할 수 있습니다.\ce{^.NO}[math(\Rightarrow \ce{^.NO})]
원자 번호 및 핵자수는 원소 기호보다 앞에 오므로, 이 경우 위 첨자 및 아래 첨자 문법이 필요합니다.
\ce{^235_92U}[math(\Rightarrow \ce{^235_92U})][49]
\ce{HDO = H{^2H}O}[math(\Rightarrow)] [math(ce{HDO = H{^2H}O})] (반중수)
슬래시(/)를 이용해서 분수 표기를 쓸 경우, 자동으로 분수 표기로 출력됩니다. 이때, 분수는 텍스트 스타일로 출력되므로 대형 분수로 출력하고 싶다면 크기 조절 문법의
\displaystyle\frac[50] 혹은 \dfrac을 이용해야 합니다. 분수 표기를 원하지 않는다면 해당 분수를 소괄호로 감싸야 합니다. \ce{C2H6 + 7/2O2 -> 2CO2 + 3H2O}[math(\Rightarrow \ce{C2H6 + 7/2O2 -> 2CO2 + 3H2O})]\ce{C2H6 + \dfrac72O2 -> 2CO2 + 3H2O}[math(\Rightarrow \ce{C2H6 + \dfrac72O2 -> 2CO2 + 3H2O})]\ce{C2H6 + (7/2)O2 -> 2CO2 + 3H2O}[math(\Rightarrow \ce{C2H6 + (7/2)O2 -> 2CO2 + 3H2O})]
고체 앙금의 침전([math(\ce{v})])은
v로 기체의 상승([math(\ce{^})])은 ^로 나타낼 수 있으며 앞 화학종과는 띄어 써야 합니다.\ce{Ag+ + Cl- -> AgCl v}[math(\Rightarrow \ce{Ag+ + Cl- -> AgCl v})] (○)\ce{Ag+ + Cl- -> AgClv}[math(\Rightarrow \ce{Ag+ + Cl- -> AgClv})] (×)\ce{H2SO4 + Zn -> ZnSO4 + H2 ^}[math(\Rightarrow \ce{H2SO4 + Zn -> ZnSO4 + H2 ^})] (○)\ce{H2SO4 + Zn -> ZnSO4 + H2^}[math(\Rightarrow \ce{H2SO4 + Zn -> ZnSO4 + H2^})] (×)
15.1. 화살표 문법
화살표는 다음과 같이 입력할 수 있습니다.| <tableclass=mtbl> 문법 | 출력 |
\ce{->} | [math(\ce{->})] |
\ce{<-} | [math(\ce{<-})] |
\ce{<->} | [math(\ce{<->})] |
\ce{<-->} | [math(\ce{<-->})] |
\ce{<=>} | [math(\ce{<=>})] |
\ce{<=>>} | [math(\ce{<=>>})] |
\ce{<<=>} | [math(\ce{<<=>})] |
\x...에 해당하기 때문에 다음과 같이 화학 반응의 설명을 화살표 문법 바로 다음에 써서 첨기할 수 있습니다. 수식 모드 화살표와의 차이점은 \x...에서는 화살표 위의 내용을 중괄호({})로 감싸고 아래의 내용을 대괄호([])로 감싸서 구분하지만, 화학식 모드에서는 대괄호만 사용하며 위치는 대괄호의 순서로 구분합니다. 화살표 문법 다음에 대괄호를 두 번까지 쓸 수 있으며 첫 번째 대괄호의 내용이 상단에, 두 번째 대괄호의 내용이 하단에 출력됩니다.\ce{A ->[abc][def] B}[math(\Rightarrow \ce{A ->[abc][def] B})]\ce{A ->[abc] B}[math(\Rightarrow \ce{A ->[abc] B})]\ce{A ->[][def] B}[math(\Rightarrow \ce{A ->[][def] B})]
$로 감싸서 표기합니다.\ce{A ->[$abc$][$def$] B}[math(\Rightarrow \ce{A ->[$abc$][$def$] B})]
15.2. 화학 결합 문법
다음 결합 표기를 입력할 수 있습니다. 일반적인 단일결합, 이중결합, 삼중결합은 작용기 뒤에 각각-, =, #를 붙이는 것으로 충분하며, \bond{...}를 이용해서 좀 더 명확하게 나타내는 것도 가능합니다.| <tableclass=mtbl> 문법 | 출력 |
\ce{-}\ce{\bond{-}}\ce{\bond{1}} | [math(\ce-)] |
\ce{=}\ce{\bond{=}}\ce{\bond{2}} | [math(\ce{=})] |
\ce{#}\ce{\bond{#}}\ce{\bond{3}} | [math(\ce{#})] |
\ce{\bond{~}} | [math(\ce{\bond{~}})] |
\ce{\bond{~-}} | [math(\ce{\bond{~-}})] |
\ce{\bond{~=}} | [math(\ce{\bond{~=}})] |
\ce{\bond{...}} | [math(\ce{\bond{...}})] |
\ce{\bond{....}} | [math(\ce{\bond{....}})] |
\ce{\bond{->}} | [math(\ce{\bond{->}})] |
\ce{\bond{<-}} | [math(\ce{\bond{<-}})] |
16. 물리 단위 모드
일시 적용 문법인\pu[51]를 이용해서 3.141 592 m, 2.718 281 828 4×103 m/s2 등의 물리량을 국제단위계의 표기 지침에 맞게 출력할 수 있습니다. 본 모드는 디폴트 크기인 10 pt 환경에서 다음과 같은 특징을 갖습니다.- 일시 적용 문법이기 때문에 모드 내에서 개행 문법
\이 작동하지 않으며, 디스플레이 환경에 따른 강제 개행(즉, 좁은 좌우 폭으로 인한 개행)이 일어나지도 않습니다. 가로 공간이 모자랄 경우 물리 단위 모드가 시작되는 부분에서 개행이 됩니다.
내용이 2글자 이상일 경우 내용 전체를 중괄호로 감싸야하는 문법 특성상, 단순히 단위만을 선언하는 게 목적이라면\rm등의 일반 폰트 문법을 쓰는 것이 더 효율적일 수 있습니다. - 로마자와 숫자에 한하여 수식 폰트는 로만체가 디폴트입니다. 이는 곧 그리스 문자는 여전히 기울임체로 출력됨을 의미하며, 따라서 직립체로 써야하는 접두어 μ-의 경우
\textμ등의 텍스트 모드로 써야 합니다. - [math(pu A)] [math(\Leftarrow)]
\pu A - [math(pu K)] [math(\Leftarrow)]
\pu K - [math(pu m)] [math(\Leftarrow)]
\pu m - [math(\pu{\mu m} \Leftarrow)]
\pu{\mu m}(×) - [math(\pu{\textμm} \Leftarrow)]
\pu{\textμm}(○) - 수치 부분이 소수점을 기준으로 전후 4자리까지는 공백 없이 출력[52]되고, 5자리 이상은 3자리씩 반각 공백 을 기준으로 [math(\cfrac49\!\;)] 만큼(공백 문법으로는
\!\;)의 띄어서 출력됩니다. 아래 예시를 참고하십시오. - [math(\pu{9.8066} \Leftarrow)]
\pu{9.8066} - [math(\pu{3.141592653589793238} \Leftarrow)]
\pu{3.141592653589793238} - [math(3.141\!\;592\!\;653\!\;589\!\;793\!\;238 \Leftarrow)]
\pu{3.141\\!\\;592\\!\\;653\\!\\;589\\!\\;793\\!\\;238} - 수치 바로 다음에 입력된 숫자 이외의 문자 및 기호는 단위로 간주되며 수치와 단위 사이는 반각 공백 만큼(공백 문법으로는
~등) 띄어서 출력됩니다. - [math(\pu{2.7182818284m} \Leftarrow)]
\pu{2.7182818284m} - [math(2.718\!\;281\!\;828\!\;4~\rm m \Leftarrow)]
2.718\!\;281\!\;828\!\;4~\rm m \pu{3e m}[math(\Rightarrow \pu{3e m})] (×)3e~\pu m[math(\Rightarrow 3e~\pu m)] (○)[53]\pu{2\pi rad}[math(\Rightarrow \pu{2\pi rad})] (×)2\pi~\pu{rad} [math(\Rightarrow 2\pi~\pu{rad})] (○)[54]- [math(\pu{299Mm792km458m} \Leftarrow)]
\pu{299Mm792km458m}(×) - [math(\pu{299Mm 792km 458m} \Leftarrow)]
\pu{299Mm 792km 458m}(×) - [math(\pu{299Mm 792~km 458~m} \Leftarrow)]
\pu{299Mm 792~km 458~m}(△)[56] - [math(\pu{299Mm}\,\pu{792km}\,\pu{458m} \Leftarrow )]
\pu{299Mm}\,\pu{792km}\,\pu{458m}(△)
상기의 마지막 예시로부터, 복수의 물리량 값 사이는 [math(\cfrac23\!\;)] 만큼의 공백(공백 문법으로는\,)이 삽입됨을 알 수 있으며, 각도 혹은 시간 표기 등에서 [math(\degree)], [math(')], [math('')] 등을 이용할 때 각 물리량 값 사이는\,의 공백 삽입을 권장합니다. - [math(\pu{1.41421356N*m} \Leftarrow)]
\pu{1.41421356N*m}또는\pu{1.41421356N.m} - [math(\pu{0.30102999 mol//L} \Leftarrow)]
\pu{0.30102999mol//L} - [math(\pu{(V/C)/(J/C)} \Leftarrow)]
\pu{(V/C)/(J/C)}(×) - [math(\pu{(V{/}C){/}(J/C)} \Leftarrow)]
\pu{(V{/}C){/}(J/C)} - 수치 다음에 오는 [math(\mathrel\cdot10^n)], [math(\mathop\times10^n)]은 각각
en,En으로 간단하게 입력할 수 있습니다. 정수 부분인n은 중괄호로 감싸거나 할 필요가 없으며 양음 부호를 포함하여 숫자가 끝나는 구간까지 자동으로 지수로 출력합니다. - [math(\pu{1.01325}\textcolor{red}{\cdot10^5}~\pu{Pa} \Leftarrow)]
\pu{1.01325e5Pa} - [math(\pu{2.99792458}\textcolor{red}{\times10^8}~\pu{m/s} \Leftarrow)]
\pu{2.999792458E8m/s} - [math(\pu{1.602176634}\textcolor{red}{\cdot10^{-19}}~\pu C \Leftarrow)]
\pu{1.602176634e-19C} - [math(\pu{7.297352\cdots E-3} \Leftarrow)]
\pu{7.297352\cdots E-3}(×) - [math(\pu{7.297352}\cdots\times\pu{E-3} \Leftarrow)]
\pu{7.297352}\cdots\times\pu{E-3}(○)[57]
이는 한 가지 문제점을 시사하는데 [math(pi)], [math(e)]를 비롯하여 각종 문자로 표현되는 수학 상수들이 본 모드에서는 단위로 인식된다는 점입니다. 따라서 문자로 표현되는 수학 상수들은 본 모드 밖에서 입력해야 제대로 출력됩니다.
하나의 물리 단위 모드에 복수의 수치·단위가 포함될 경우, 처음의 수치·단위 세트만 제대로 출력되며 그 이후는 단위·지수의 조합으로 인식되어[55] 지수로 출력되거나 수치와 단위 사이의 공백이 적용되지 않는 등의 문제가 있습니다. 따라서 하나의 물리 단위 모드에는 하나의 수치·단위 세트만 포함시킬 것을 권장합니다.
가운뎃점은
. 또는 *로 입력할 수 있습니다.슬래시를 두 번 쓰면(
//) 텍스트 스타일의 소형 분수 꼴로 출력됩니다.[math(\rm C/(J/C))]와 같이 슬래시가 2개 이상 쓰인 단위의 경우 맨 마지막 슬래시 이외의 슬래시에는 전후로 [math(\cfrac23\!\;)] 만큼의 공백(공백 문법으로는
\,)이 삽입됩니다. 따라서 적절히 슬래시를 중괄호로 감싸서 일반 속성으로 되돌릴 필요가 있습니다.단, 전술한 '단위로 인식되는 규칙'에 의해 en이나 En 앞에 숫자 이외의 문자열이 오면 10의 거듭제곱으로 표기되지 않고 [math({\rm e}^n)], [math({\rm E}^n)]으로 출력되므로, 적절히 물리 단위 모드를 끊어줄 필요가 있습니다.
17. \\begin, \\end 문법
용도에 따라 고유한 특수한 환경(environment)에 진입해 내용을 작성한 후 해당 환경을 빠져나오는 방식의 문법으로, 보통 행렬, 연립 표기 등 단(段)이 필요한 형태의 수식에서 자주 활용됩니다. 기본적으로 아래와 같은 꼴로 사용합니다.\begin{종류}
내용
\end{종류}
개행이 꼭 들어가야 하는 것은 아니며, #!wiki class="tex"
\\begin{종류} 내용 \\end{종류\}와 같이도 쓸 수 있지만 많은 내용을 작성한다면 위와 같이 여러 줄로 나누어 쓰는 것이 가독성 측면에서 좋습니다.이 문법은 괄호 문법과는 달리 선언(
\begin{종류})과 종료(\end{종류})에서 종류를 반드시 일치시켜야 합니다. 종류가 다르면 출력 결과에서 에러가 납니다.| <tableclass=mtbl> 문법 | 출력 | 비고 |
\begin{} | [math(\begin{pmatrix} a & b \\ c & d \\ \end{vmatrix})] | \begin의 종류와 \end의 종류가 일치하지 않음. |
\begin{} | [math(\begin{pmatrix} a & b \\ c & d \\ \end{pmatrix})] | 종류가 pmatrix로 일치함. |
다음과 같은 종류를 이용할 수 있습니다.
| <tableclass=mtbl> 수식 | 종류 | 출력 | 문법 | display mode 전용 여부 |
| 행렬 | matrix | [math(\begin{matrix} a & b \\ c & d \\ \end{matrix})] | } | X |
pmatrix | [math(\begin{pmatrix} a & b \\ c & d \\ \end{pmatrix})] | } | X | |
bmatrix | [math(\begin{bmatrix} a & b \\ c & d \\ \end{bmatrix})] | } | X | |
Bmatrix | [math(\begin{Bmatrix} a & b \\ c & d \\ \end{Bmatrix})] | } | X | |
vmatrix | [math(\begin{vmatrix} a & b \\ c & d \\ \end{vmatrix})] | } | X | |
Vmatrix | [math(\begin{Vmatrix} a & b \\ c & d \\ \end{Vmatrix})] | } | X | |
smallmatrix | [math(\begin{smallmatrix} a & b \\ c & d \\ \end{smallmatrix})] | } | X | |
| 연립 표기 | cases | [math(\begin{cases} 0 & (x \in A) \\ 1 & (x \notin A) \\ \end{cases})] | } | X |
rcases | [math(\begin{rcases} (x \in A) & 0 \\ (x \notin A) & 1 \\ \end{rcases})] | } | X | |
| 정렬 문법 | aligned | [math(\begin{aligned} x + y + z & = 3 \\ 2y - z & = 1 \\ \end{aligned})] | } | X |
array | [math(\begin{array} {ccccc} & x & + y & + z & = 3 \\ & & ~ 2y & - z & = 1 \\ \end{array})] | } | X | |
subarray | [math(\begin{subarray} l i \in I \\ 0 < j < n \\ \end{subarray})] | } | X | |
| 번호 정렬 문법 | equation | | } | O |
align | | } | O | |
gather | | } | O | |
alignat | | } | O | |
| 가환 다이어그램 | CD | | } | O |
각 종류마다 단 내용의 정렬 방식에 차이가 있습니다. 행렬 계열은 가운데 정렬이고, 연립 표기는 왼쪽 정렬로 출력되며, 정렬 방식을 임의로 수정할 수 없습니다. 정렬 방식을 수동으로 지정하려면
aligned 혹은 array를 씁니다.| <tableclass=mtbl> 문법 | 출력 |
} | [math(\begin{pmatrix} a & b + 1 \\ c + 1 & d \\ \end{pmatrix})] |
} | [math(\begin{cases} a & b + 1 \\ c + 1 & d \\ \end{cases})] |
aligned에서는 한 행에 들어간 &의 개수에 따라 왼쪽 정렬과 오른쪽 정렬이 적용됩니다. 홀수 번째 &는 그 다음 & 전까지의 내용을 왼쪽으로 정렬하고, 짝수 번째 &는 그 다음 & 전까지의 내용을 오른쪽으로 정렬합니다. 이 기능을 잘 이용하면 특정 문자를 기준으로 여러 개의 수식을 정렬할 수 있습니다.\begin{aligned}x^2+4x+5y&=1\\x&=2y+7\end{aligned}[math(\Rightarrow \begin{aligned}x^2+4x+5y&\mathrel{\color{red}=}1\\x&\mathrel{\color{red}=}2y+7\end{aligned})]
aligned 정렬에 쓰인 내용에 따라 다릅니다. 아래 예시에서 alinged 문법 이후에 수동으로 공백을 맞춘 수식을 비교하십시오. 각 예시에서 빨간 글씨 ~ 파란 글씨가 단의 폭입니다.| <tableclass=mtbl> 문법 | 출력 |
& 0 \\& 6 & 7 \\& 1 \\\end{aligned} | |
\begin{aligned} \\\\\end{aligned} x^2 + 4 | |
17.1. 행렬 문법
행렬 표기에서 서로 다른 괄호를 조합하고 싶을 경우 '종류'를 괄호 없는 행렬matrix로 통일시키고 괄호 문법으로 직접 입력합니다.- [math({\color{red}\biggl(\biggr.}\begin{matrix}a&b\\c&d\end{matrix}{\color{blue}\biggl.\biggr]} \Leftarrow)] \\left(
\begin{matrix}a&b\\c&d\end{matrix}\\right]
&를 이용하며 & 하나 당 단 경계선 하나가 만들어지므로, 한 행에는 (만들고자 하는 단의 개수[math(-1)]개) 만큼의 &를 입력하면 됩니다.- [math(\begin{pmatrix}a_1&a_2&a_3\\b_1&b_2&b_3\end{pmatrix} \Leftarrow)]
\begin{pmatrix}a_1&a_2&a_3\\b_1&b_2&b_3\end{pmatrix}
\begin, \end 문법을 사용해도 단 경계선 위치는 왼쪽부터 차례대로 정렬되므로 행간에 다르게 적용하려면 하나의 \begin, \end 문법 안에 복수의 \begin, \end 문법을 감싸는 식으로 사용해야 합니다(아래 참조).\begin{pmatrix}a_1&a_2&a_3\\b_1&b_2&b_3\\c_1&c_2\end{pmatrix}[math(\Rightarrow \begin{pmatrix}a_1&a_1&a_3\\b_1&b_2&b_3\\c_1&c_2\end{pmatrix})] (×)
\\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\\end{matrix}\\\\\\ \\begin{matrix}c_1&c_2\\end{matrix} [math(\Rightarrow \begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix})][58] (×)
\\begin{pmatrix}\\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\\end{matrix}\\\\\\\\begin{matrix}c_1&c_2\\end{matrix}\\end{pmatrix} [math(\Rightarrow \begin{pmatrix}\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix}\end{pmatrix})] (○)
17.2. 배열 문법
array 정렬에서는 디폴트가 가운데 정렬이지만 각 단마다 정렬 방식을 지정할 수 있습니다. array 정렬 선언 후 l(왼쪽 정렬), c(가운데 정렬), r(오른쪽 정렬)을 이용하여 왼쪽부터 차례대로 쓴 뒤 중괄호로 묶어서 나타냅니다.꼭 단의 개수만큼 쓸 필요는 없으며 생략한 경우 해당 단은 디폴트 상태가 되지만, 정렬 지정 문법이 아예 없으면 출력에 에러가 납니다. 또한 단을 건너뛰어서 적용할 수 없으므로, 건너뛰고자 하는 단은 디폴트 정렬인
c로 지정해야 합니다. 아래 예에서는 전체 [math(5)]개의 단 중 제[math(1)]단을 건너뛰고(c) 제[math(2)]단(l), 제[math(3)]단(r)만 정렬을 지정했습니다.- [math(\begin{array}{clr}2x&{\color{skyblue}+3y}&{\color{purple}+5z}&=&11\\&{\color{skyblue}2y}&{\color{purple}-z}&=&1\end{array} \Leftarrow)]
\begin{array}{clr}2x&+3y&+5z&=&3\\&2y&-5z&=&1\end{array}
정렬 지정 문법 둘레와 사이사이에 바(|)를 입력하면, 바의 수만큼 단 경계에 세로줄이 만들어집니다. 또한
\hline을 입력하면 가로줄이 형성되므로 이를 응용하면 표를 만들 수 있습니다.| <tableclass=mtbl> 출력 | 입력 | ||
| [math(\begin{array}{|c | c|c|c|c|c|c|c|}\hline x&\cdots&a&\cdots&\alpha&\cdots&b&\cdots\\\hline f'\left(x\right)&+&0&-&-&-&0&+\\f''\left(x\right)&-&-&-&0&+&+&+\\f\left(x\right)&\nearrow&\cdots&\searrow&\cdots&\searrow&\cdots&\nearrow\\\hline\end{array})] | \begin{array}{|c{{{#red | }}}c|c|c|c|c|c|c|}\\hline x&\cdots&a&\cdots&\alpha&\cdots&b&\cdots\\\\hline f'\left(x\right)&+&0&-&-&-&0&+\\f''\left(x\right)&-&-&-&0&+&+&+\\f\left(x\right)&\nearrow&\cdots&\searrow&\cdots&\searrow&\cdots&\nearrow\\\\hline \end{array} |
17.3. 가환 다이어그램
기본적으로 KaTeX은amscd 호환 가환 다이어그램 문법을 지원합니다.| <tableclass=mtbl> 문법 | 출력 |
| |
기본적으로
\begin, \end를 통해 진입하며, 환경 이름은 CD입니다. 기본적으로 각 다이어그램은 정점들을 적절한 변(edge)들로 이어 그려집니다. 모든 변 문법은 @으로 시작하며, 지원되는 변 종류는 다음과 같습니다. 화살표 유형의 경우, 기호의 앞과 뒤에 수식을 넣어 화살표의 위/아래에 첨자 텍스트를 표시할 수 있습니다.| <tableclass=mtbl> 문법 | 출력 | 설명 | 첨자 문법 | 출력 |
| | 오른쪽 화살표 | | |
| | 왼쪽 화살표 | | |
| | 위쪽 화살표 | | |
| | 아래쪽 화살표 | | |
| | 수평 등호 | ||
| | 수직 등호 | ||
| | 빈 변 (공간 채움용) | ||
빈 변의 경우, 기본적으로 새 정점이나 변을 띄우기 위해 변을 입력해야 하는 시점이나 실제 다이어그램에 변이 그려져서는 안 될 때 사용합니다.
| <tableclass=mtbl> 문법 | 출력 | 설명 |
| | 정점과 정점 사이 변을 넣어 구분하지 않으면 두 기호가 전부 하나의 정점에 속하는 것으로 인식됩니다. |
| | 두 기호를 별개의 정점으로 띄우기 위해 빈 변을 사용했습니다. |
| | 왼쪽 변을 비우고 화살표를 오른쪽에 두고 싶으나, @VVV를 한번만 사용하였기에 첫 번째로 등장한 아래쪽 화살표가 왼쪽 정점들 간 화살표로 인식됩니다. |
| | 왼쪽 변을 건너띄고 화살표를 오른쪽에 그리기 위해 빈 변을 사용했습니다. |
반드시 정사각형 형태의 다이어그램 뿐 아니라 다수의 정점과 변들을 이어붙혀 얼마든지 긴 다이어그램을 만들 수 있습니다. 기본적으로 각 행 내의 수평 정점들은 변들이 사이사이에 들어가 구분되며, 각 열 내의 수직 정점들은 정점 행과 변 행이 번갈아 나타나며 구분됩니다. 이중 각 행, 열간 정점수의 최댓값이 전체 다이어그램의 크기를 결정합니다.
아래는 호몰로지 대수학 등에서 자주 볼 수 있는 대형 다이어그램의 예시입니다.
| <tableclass=mtbl> 문법 |
|
| 출력 |
|
전체 다이어그램의 크기가 결정되면, 각 행과 열 간 간격이 정렬되면서 격자 형태가 됩니다. 이 때 행 및 열 간 간격은 이들 사이의 변들 중 최대 길이의 변을 기준으로 하는데, 이 때 특정 변이 길어진다고 다른 변이 자동으로 이에 맞추어 늘어나지 않는 문제가 있습니다. 이 경우,
\phantom 공백 매크로를 사용하여 다른 변에도 레이블과 같은 크기의 공백을 삽입하는 해결책이 있습니다.| <tableclass=mtbl> 문법 | 출력 | 설명 |
| | 아래쪽 화살표의 길이가 위쪽 화살표의 길이와 맞지 않는 문제 발생 |
| | \phantom을 사용한 공백 삽입 |
18. 입력 팁
좌우로 폭이 긴 수식을 그냥 작성하면 스마트폰처럼 좌우 폭이 좁은 디스플레이에서 뒤쪽 수식이 잘리는 경우가 있습니다. 특히 \\begin ~ \\end의 정렬 문법을 사용했을 때에는 나무위키의 출력 방식(강제 개행)보다 수식의 출력 방식이 우선시되기 때문에 정렬 영역 내에서 개행을 따로 하지 않는 이상 긴 수식들은 잘린 채로 출력됩니다. 이를 막기 위해 웬만한 수식은 기본적으로 아래와 같이 테두리와 배경이 투명한 표 문법 안에 작성해주시기 바랍니다.[59][60]| 투명표 문법 | ||
| {{{ | | }}} |
| 인라인 모드 투명표 문법 | ||
| {{{ | [math(수식)] | }}} |
- 표 문법 미사용(모바일 등 환경에서 수식 일부 잘림 현상, 좌우 스크롤 불가)
{{{#!latex
&= \frac1{c+1}B_0n^{c+1} - B_1n^c + \frac c2B_2n^{c-1} - \frac{c (c-1)}6B_3n^{c-2} + \cdots + \frac{(-1)^{c-1}c}2B_{c-1}n^2 + (-1)^cB_cn \\ &= \frac1{c+1}n^{c+1} + \frac12n^c + \frac c{12}n^{c-1} + \cdots + \frac{(-1)^{c-1}c}2B_{c-1}n^2 + (-1)^cB_cn \end{aligned}
}}}
- 표 문법 사용(좌우 스크롤 가능)
&= \frac1{c+1}B_0n^{c+1} - B_1n^c + \frac c2B_2n^{c-1} - \frac{c (c-1)}6B_3n^{c-2} + \cdots + \frac{(-1)^{c-1}c}2B_{c-1}n^2 + (-1)^cB_cn \\ &= \frac1{c+1}n^{c+1} + \frac12n^c + \frac c{12}n^{c-1} + \cdots + \frac{(-1)^{c-1}c}2B_{c-1}n^2 + (-1)^cB_cn \end{aligned}
}}} ||
수식이 여러 개라면, 문서 내 전역 스타일 지정을 통해 다음과 같이 간략하게 나타낼 수 있습니다. 아래에서
{{{#!style }}}의 내용은 '표 가운데 정렬', '투명 테두리', '투명 배경'을 지정하는 문법이므로, 가령 같은 문서 내에서 '표 가운데 정렬'을 설정하지 않는 수식이 필요할 경우 별도의 전역 스타일을 만들거나 표 문법을 따로 작성해야 합니다.[61] 예시로서 맥스웰-볼츠만 분포 문서도 참고하십시오. 참고로 해당 문서에서는 '클래스 이름'으로서 tpc가 쓰였습니다.| 전역 스타일 지정을 활용한 간략 투명표 문법 | |
{{{(문서 내용1) | <tableclass=클래스 이름> |
<tableclass=클래스 이름> |
<tableclass=클래스 이름> |
}}} ||
| 전역 스타일 지정을 활용한 간략 인라인 모드 투명표 문법 | |
{{{(문서 내용1) | <tableclass=클래스 이름> [math(수식1)] |
| <tableclass=클래스 이름> [math(수식2)] |
| <tableclass=클래스 이름> [math(수식3)] |
}}} ||
두 가지 전역 스타일을 지정할 경우 아래와 같이 작성하면 됩니다. 아래의 예시에서 '클래스 이름1'은 '표 가운데 정렬', '투명 테두리', '투명 배경'을 지정하는 문법이고, 클래스 이름2는 '투명 테두리', '투명 배경'만 지정하는 문법입니다.
| 전역 스타일 지정을 활용한 간략 인라인 모드 투명표 문법 | |
{{{(문서 내용1) | <tableclass=클래스 이름1> [math(수식1)] |
| <tableclass=클래스 이름2> [math(수식2)] |
(후략)
}}} ||
수식 모드에서 반점([math(,)])과 세미콜론([math(;)])은 구두점 속성에 포함되므로, 해당 기호로 수식이 끝나지 않는다면 이후에 자동으로 최소 공백이 삽입됩니다.'''(디폴트 폰트 크기의 [math(10\rm\,pt)] 기준. 텍스트 모드는 해당되지 않습니다.) 아래 예시를 비교해 보십시오.
- [math(3{\color{red},}\,141592 \Leftarrow)]
3,141592
[math(\text{3{\color{red},}\,141592} \Leftarrow)]\text{3,\\,141592}(텍스트 모드에서 최소 공백만큼 띄움)
[math(\text{3{\color{red},}141592} \Leftarrow)]\text{3,141592}
[math(3{\color{red},}141592 \Leftarrow)]3,\\!141592(수식 모드에서 최소 공백만큼 제거)
[math(3.141592 \Leftarrow)]3.141592 - [math(1{\color{red};}\,2 \Leftarrow)]
1;2
[math(\text{1{\color{red};}\,2} \Leftarrow)]\text{1;\\,2}(텍스트 모드에서 최소 공백만큼 띄움)
[math(\text{1{\color{red};}2} \Leftarrow)]\text{1;2}
[math(1{\color{red};}2 \Leftarrow)]1;\\!2(수식 모드에서 최소 공백만큼 제거)
\!~, \!\ , \!\text{ } 등등)을 써야 하지만, 최소 공백만으로 크게 어색하지 않게 렌더링되며 경제적이므로 수식 도중에 반점, 세미콜론을 쓰고 공백을 띄우는 표기를 할 때에는 최소 공백만큼 띄우는 것을 권장합니다.- [math(\text{1, 2, 3, 4} \Leftarrow)]
\text{1, 2, 3, 4}
[math(1,\!~2,\!~3,\!~4 \Leftarrow)]1,\\!~2,\\!~3,\\!~4
[math(1,\,2,\,3,\,4 \Leftarrow)]1,\\,2,\\,3,\\,4
[math((x,\!~y) \Leftarrow)](x,\\!~y)
[math((x,\,y) \Leftarrow)](x,\\,y)
괄호 문법을 씀과 동시에 괄호에만 색을 입히고 싶다면, 가변형 문법이 아닌 다른 괄호 문법 사용을 권장합니다. 가변형 괄호는 반드시
\left, \right 짝이 세트로 쓰여야 하며 문법을 구분짓는 중괄호가 삽입될 경우 세트가 불완전한 것으로 인식되어 에러가 나기 때문입니다. 괄호 삭제 문법과 공백 문법을 이용해서 간격을 조정할 수 있으나 매우 번거로운 작업이며 공백의 크기 역시 괄호의 크기에 따라 변하기 때문에 일괄적으로 간단하게 적용하기도 어렵습니다.{\color{red}\left(}a+b{\color{red}\right)}^2[math(\Rightarrow {\color{red}\left(}a+b{\color{red}\right)}^2)] (×){\color{red}(}a+b{\color{red})}^2[math(\Rightarrow {\color{red}(}a+b{\color{red})}^2)] (○)
적분을 쓸 때, [math({\rm d}x)], [math({\rm d}y)] 등 무한소(엄밀히 말하면 미분형식)의 좌우는 최소 공백 만큼(
\,) 띄워야 합니다. 그러나 무한소 전후로 가변형 괄호 문법을 쓴 괄호가 올 경우 자동으로 최소 공백이 적용되므로 넣지 않아도 됩니다. (아래 3,4번째 예시를 비교해보십시오)- [math(\displaystyle \int x \,{\rm d}x \Leftarrow)]
\displaystyle \int x\\,{\rm d}x - [math(\displaystyle \iint_S A \,{\rm d}x \,{\rm d}y \Leftarrow)]
\displaystyle \iint_S A\\,{\rm d}x\\,{\rm d}y - [math(\displaystyle \int f(x)\,{\rm d}x \Leftarrow)]
\displaystyle \int f(x)\,{\rm d}x - [math(\displaystyle \int f\!\left(x\right){\rm d}x \Leftarrow)]
\displaystyle \int f\!\left(x\right){\rm d}x - [math(\displaystyle \int {\rm d}x \,f(x) \Leftarrow)]
\displaystyle \int {\rm d}x\\,f(x)
변수 부분이 길 경우 혼란 방지를 위해 다음과 같이 괄호를 둘러 어디까지가 변수인지를 명확히 밝혀주시기 바랍니다.
- [math(\sin x^2+4x+\dfrac1{2x})] (×)
[math(\sin\!{\color{red}\bigl(}x^2+4x{\color{red}\bigr)}+\dfrac1{2x})] (○)
도형명, 선분, 꼭짓점 등의 표기는 로만 폰트로 나타내는 것을 권장합니다.
| <tableclass=mtbl> 출력 | 문법 |
| [math(\triangle\rm ABC)] | \triangle\rm ABC |
| [math(\overline{\rm AB})] | \overline{\rm AB} |
| [math(\overrightarrow{\rm OP})] | \overrightarrow{\rm OP} |
| [math(\angle\rm ABC)] | \angle\rm ABC |
- 우리는 [math(1/2)]을 양변에 곱함으로써 식을 간단히 정리할 수 있다.
- 등가속도 공식 중 변위와 시간의 관계는 [math(s(t)=(at^2)/2+v_0t)]로 쓸 수 있다.
19. 예시
아래는 몇몇 경우의 입력 방법을 기입한 표입니다. 몇몇 문법은 동일한 표기를 출력하기도 하며 아래 표에서 등호로 표기되어있습니다.| <tableclass=mtbl> 출력 | 문법 | 비고 |
| [math(a^x)], [math(e^{x^2})] | a^x, e^{x^2} | 오른쪽 위첨자 |
| [math(a_x)], [math(a_{ij})] | a_x, a_{ij} | 오른쪽 아래첨자 |
| [math(a_x^y)], [math(A_{abc}^{\alpha\beta\gamma})] | a_x^y, A_{abc}^{\alpha\beta\gamma} | 오른쪽 위·아래첨자 혼용(1) |
| [math({a_1}^2)], [math({V_{\max}}^{-1})] | {a_1}^2, {V_{\max}}^{-1} | 오른쪽 위·아래첨자 혼용(2)[62] |
| [math(\ce{_1^2H})], [math(\ce{_6^12C})] | \ce{_1^2H}, \ce{_6^12C} | 화학식 모드에서 왼쪽 위·아래첨자 혼용 |
| [math(\times)] | \times | 곱셈 및 외적 기호 |
| [math(\cdot)] | \cdot | 곱셈 및 내적 기호 |
| [math(\div)] | \div | 나눗셈 기호 |
| [math(\sqrt2)], [math(\sqrt x)], [math(\sqrt{x^2-1})] [math(\sqrt[n]x)], [math(\sqrt[3]{27})] | \sqrt2, \sqrt x, \sqrt{x^2-1}\sqrt[n]x, \sqrt[3]{27} | 근호 |
| [math(\sim)] | \sim | 점근 표시 및 비례 표시, 국제적으로 통용되는 닮음기호 |
| [math(\backsim)] | \backsim | 한국 및 일본에서 쓰이는 닮음기호[63] |
| [math(\nsim)] | \nsim | 점근할 수 없음, 닮음이 아님 기호 |
| [math(\propto )] | \propto | 비례 표시 |
| [math(|x|)] | |x| = \lvert x\rvert | 절댓값 |
| [math(\|x\|)] | \|x\| = \lVert x\rVert | 노름 |
| [math(\left< x \right>)] [math(\braket{ \psi | \hat A | \psi } )] | \left< x \right> = \langle x\rangle\braket{ \psi | \hat A | \psi } | 평균값 브라-켓 표기 |
| [math(\le \\ \ge)] | \le = \leq\ge = \geq | 부등호(이상 및 이하) |
| [math(\nless \\ \ngtr \\ \nleq \\ \ngeq)] | \nless\ngtr\nleq\ngeq | 부등호(이상 및 이하)의 부정 |
| [math(\ne)] | \ne = \neq | 부등호(다름) |
| [math(\simeq)], [math(\cong)] [math(\approx )] [math(\fallingdotseq)], [math(\risingdotseq)] | \simeq, \cong\approx\fallingdotseq, \risingdotseq | 근사 |
| [math(\equiv \\ \not\equiv)] | \equiv\not\equiv | 합동 혹은 정의 합동이 아님 |
| [math({}_n{\rm P}_r)], [math({}_{12}{\rm P}_{11})] [math({}_n\Pi_r)], [math({}_{11}\Pi_{12})] [math({}_n{\rm C}_r)], [math({}_{12}{\rm C}_{10})] [math({}_n{\rm H}_r)], [math({}_{11}{\rm H}_{13})] | {}_n{\rm P}_r, {}_{12}{\rm P}_{11}[주의]{}_n\Pi_r, {}_{11}\Pi_{12}{}_n{\rm C}_r, {}_{12}{\rm C}_{10}{}_n{\rm H}_r, {}_{11}{\rm H}_{13} | 순열·조합 기호 |
| [math(\dbinom nr)] [math(\binom nr)] [math(\dbinom{12}3)], [math(\dbinom{12}{10})] [math(\left(\!\!\dbinom nk\!\!\right))] | \dbinom nr\binom nr = \tbinom nr\dbinom{12}3, \dbinom{12}{10}\left(\!\!\dbinom nk\!\!\right) | 국제적으로 통용되는 조합 기호 |
| [math((f\circ g)(x))] | (f\circ g)(x) | 함수 합성 |
| [math(\triangle \\ \square)] | \triangle\square | 삼각형 사각형 및 달랑베르시안 |
| [math(\angle)] | \angle | 각 |
| [math(\parallel \\ \perp)] | \parallel\perp | 평행 직교 또는 서로소 |
| [math(\therefore \\ \because)] | \therefore\because | 따라서 왜냐하면 |
| [math(\infty)] | \infty | 무한 |
| [math(\degree)] | \degree | 도(degree) |
| [math(\cdots)], [math(\dots)] [math(\vdots)] [math(\ddots)] | \cdots, \dots[65]\vdots\ddots | 생략 기호 |
| [math({\bf E})] | {\bf E} | 벡터[66] |
| [math(\partial)] | \partial | 편미분 혹은 텐서 기호 |
| [math(\ast)] | \ast | 켤레복소수 기호 혹은 합성곱 |
| [math(A^\dagger)] | A^\dagger | 켤레 전치(복소 공액) |
| [math(\hbar)] | \hbar | 플랑크 상수를 [math(2 \pi)]로 나눈 값 |
| [math(\nabla \\ \nabla^{2})] | \nabla\nabla^2 | 델 연산자 라플라시안 |
| [math(\leftarrow \\ \rightarrow \\ \leftrightarrow \\ \longleftarrow \\ \longrightarrow \\ \longleftrightarrow)] | \leftarrow\rightarrow 또는 \to\leftrightarrow\longleftarrow\longrightarrow\longleftrightarrow | 화살표 |
| [math(\Leftarrow \\ \Rightarrow \\ \Leftrightarrow \\ \Longleftarrow \\ \Longrightarrow \\ \Longleftrightarrow)] | \Leftarrow\Rightarrow\Leftrightarrow\Longleftarrow\Longrightarrow\Longleftrightarrow | 겹화살표 |
| [math(\Lleftarrow \\ \Rrightarrow)] | \Lleftarrow\Rrightarrow | 삼겹화살표 |
| [math(\xleftarrow[a]b \\ \xLeftarrow[a]{b+c} \\ \xleftrightarrow[a]{} \\\xrightarrow{b+c+d+e})] | \xleftarrow[a]b\xLeftarrow[a]{b+c}\xleftrightarrow[a]{}\xrightarrow{b+c+d+e} | 설명문이 있는 화살표 |
| [math(\rightleftharpoons \\ \leftrightharpoons)] | \rightleftharpoons\leftrightharpoons | 화학 평형에 쓰이는 화살표 |
| [math(\mapsto \\ \longmapsto)] | \mapsto\longmapsto | 사상을 나타내는 화살표 |
| [math(\overrightarrow A \\ \overleftarrow{\rm AB} \\ \overrightarrow{\rm XY})] | \overrightarrow A\overleftarrow{\rm AB}\overrightarrow{\rm XY} | 반직선 혹은 벡터 |
| [math(\overleftrightarrow{\rm AB})] | \overleftrightarrow{\rm AB} | 직선 |
| [math(\overline z \\ \overline{\rm AB} \\ \underline{AB} \\ x^{\underline n})] | \overline z\overline{\rm AB}\underline{AB}x^{\underline n} | 윗줄(켤레복소수 또는 선분 등) 밑줄(하강 계승 등) |
| [math(\dfrac ab)] | \dfrac ab | 분수 |
| [math(\dfrac{\dfrac{a+b}{c+d}}{\dfrac{x+y}{z+w}})] | \dfrac{\dfrac{a+b}{c+d}}{\dfrac{x+y}{z+w}} | 번분수 |
| [math(\pi = 3+\cfrac{1^2}{6+\cfrac{3^2}{6+\cfrac{5^2}{6+\cfrac{7^2}\ddots}}})] | \pi = 3+\cfrac{1^2}{6+\cfrac{3^2}{6+\cfrac{5^2}{6+\cfrac{7^2}\ddots}}} | 연분수 |
| [math(\cancel x)] | \cancel x | (분수 등에서의)삭제 표기 |
| [math(\Set{ \dfrac 1 {n^2} | n \in \N })] | \Set{ \dfrac 1 {n^2} | n \in \N } | 집합 |
| [math(\lim\limits_{n \to \infty} a_n)] | \lim\limits_{n \to \infty} a_n | 극한 |
| [math(\displaystyle \sum_{k=1}^n a_k \\ e^{\sum\limits_{k=1}^n a_k} \\ \prod_{k=1}^n a_k \\ e^{\prod\limits_{k=1}^n a_k})] | \displaystyle \sum_{k=1}^n a_ke^{\sum\limits_{k=1}^n a_k}\displaystyle \prod_{k=1}^n a_ke^{\prod\limits_{k=1}^n a_k} | 합의 기호 첨자에서의 합의 기호 곱의 기호 첨자에서의 곱의 기호 |
| [math(\left. \dfrac{{\rm d}f}{{\rm d}x}\right|_{x=a})] | \left. \dfrac{{\rm d}f}{{\rm d}x} \right|_{x=a} | 미분 계수 |
| [math(\displaystyle \int_a^b f(x) \,{\rm d}x)] [math(\displaystyle \iint_S f(x,\,y) \,{\rm d}x\,{\rm d}y)] [math(\displaystyle \iiint_V f(x,\,y,\,z) \,{\rm d}x\,{\rm d}y\,{\rm d}z)] [math(\displaystyle \int_a^b \int_c^d f(x,\,y) \,{\rm d}x\,{\rm d}y)] [math(\displaystyle \oint_C {\bf F} \cdot {\rm d}{\bf r})] [math(\displaystyle \oiint_S {\bf F} \cdot {\rm d}{\bf a})] | \displaystyle \int_a^b f(x) \,{\rm d}x\displaystyle \iint_S f(x,\,y) \,{\rm d}x\,{\rm d}y\displaystyle \iiint_V f(x,\,y,\,z) \,{\rm d}x\,{\rm d}y\,{\rm d}z\displaystyle \int_a^b \int_c^d f(x,\,y) \,{\rm d}x\,{\rm d}y\displaystyle \oint_C {\bf F} \cdot {\rm d}{\bf r}\displaystyle \oiint_S {\bf F} \cdot {\rm d}{\bf a} | 적분 |
| [math(\biggl[ \dfrac{x^2}2+x \biggr]_a^b)] [math(\biggl. \biggl( x^2+2x \biggr) \biggr|_a^b)] | \biggl[ \dfrac{x^2}2+x \biggr]_a^b\biggl. \biggl( x^2+2x \biggr) \biggr|_a^b | 정적분 계산 |
| [math(\begin{matrix} a & b \\ c & d \end{matrix})] [math(\begin{pmatrix} a & b \\ c & d \end{pmatrix})] [math(\begin{bmatrix} a & b \\ c & d \end{bmatrix})] [math(\begin{Bmatrix} a & b \\ c & d \end{Bmatrix})] [math(\begin{vmatrix} a & b \\ c & d \end{vmatrix})] [math(\begin{Vmatrix} a & b \\ c & d \end{Vmatrix})] | \begin{matrix} a & b \\ c & d \end{matrix}\begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}\begin{vmatrix} a & b \\ c & d \end{vmatrix}\begin{Vmatrix} a & b \\ c & d \end{Vmatrix} | 행렬[67] |
| [math(\begin{cases} x+y=5 \\ x-y=3 \end{cases})] [math({\bold 1}_{\mathbb Q}(x) \equiv \begin{cases} 1 & (x \in \mathbb{Q}) \\ 0 & (x \notin \mathbb{Q}) \end{cases} )] | \begin{cases} x+y=5 \\ x-y=3 \end{cases}{\bold 1}_{\mathbb Q}(x) \equiv \begin{cases} 1 & (x \in \mathbb{Q}) \\ 0 & (x \notin \mathbb{Q}) \end{cases} | 연립방정식 조각적 정의 |
20. 미지원 문제 및 해결법
크게 다섯 가지로 나눌 수 있습니다.- 구버전 KaTeX에서 지원되었으나 최신 버전에서 지원이 종료된 경우. - migration guide를 참고하여 직접 수정하면 됩니다.
- MathJax 등 popular한 웹 렌더러에서는 지원이 되나, KaTeX에서만 구현이 안 된 경우. - KaTeX 공식 레포에서 enhancement나 feature request 태그가 달린 issue를 찾아 보면 적절한 힌트나 workaround를 얻을 가능성이 있습니다.
- 특수한 문자에 대응하는 매크로가 부재하는 경우. - 많은 기기에서 지원되는 적절한 유니코드가 이미 존재한다면
\text나\char매크로를 사용해서 해당 유니코드를 직접 삽입하는 해결책이 있습니다. 후술할 위키피디아의 고전 그리스 문자 커스텀 매크로셋 등등이 이런 식으로 대체 가능합니다. 가령 [math(\char"29B6)] U+29B6는\char"29B6와 같이 삽입 가능합니다. - 일반적인 LaTeX package로 제공되는 문법이나, KaTeX 등 웹 렌더러에서 구현되지 않았고 앞으로도 구현될 확률이 낮은 경우. - 단적으로 TikZ같은 걸 말합니다. 이런 패키지나 매우 특수한 문법 같은 경우 TeX Live 등 로컬 LaTeX 환경에서 직접 컴파일한 후 standalone export를 하여 SVG 이미지를 구하는 방법이 있습니다.#
- LaTeX으로도 보통 불가능하거나 원본이 매우 특수한 이미지인 경우. - 가령 TikZ 소스를 찾을 수 없는 기하학적 이미지나 수학능력시험 해설 같은 경우입니다. 이런 경우 수식으로 바꾸는 장점이 미미한 경우이기에 이미지를 사용하는 것이 최선입니다.
다음은 구체적인 미지원 케이스 및 사용 가능한 해결 방법들(존재한다면)입니다.
\sslash#3918 - 가장 비슷하게 따라하면/\negthickspace/가 가능하며, 이는 노름 괄호와 비슷한 두께입니다.\wideparen#560- teubner
\Coppa,\coppa,\varcoppa,\Digamma,\Koppa,\koppa,\Sampi,\sampi,\Stigma,\stigma,\varstigma- 위키피디아에서는 공식 지원되나 KaTeX에서는 지원되지 않습니다.\textsc#471(작은 대문자)- graphicsx
\rotatebox#681- mathdots
\iddots#1223 -\newcommand\iddots{\mathinner{\kern{1.2mu}\raisebox{2mu}{.}\kern{3mu}\raisebox{7.4mu}{.}\kern{3mu}\raisebox{12.8mu}{.}\kern{1.2mu}} }로\iddots매크로를 선언해 사용할 수 있습니다. #1223 내 코멘트\bigominus,\bigoslash,\bigsqcap#1222
21. 외부 도구
- 연습 및 프리뷰 도구 - 긴 수식을 입력할 시 나무위키 내 Monaco만으로는 한계나 불편함이 있을 수 있습니다. 이 경우 다음과 같은 외부 도구를 사용할 수 있습니다. 가급적 나무위키 엔진의 렌더러인 KaTeX과 호환되는 도구를 사용해야 추후 복붙했을 때 의도한 것과 다르게 보여지는 문제가 발생하지 않습니다.
- 나무위키:연습장 또는 사용자 문서. 또한 편집시 미리보기 자동 갱신 등을 켜두면 좋습니다.
- katex.org/#demo: KaTeX의 공식 테스트 환경입니다.
- editor.codecogs.com: MathJax 기반.
[1] 원래는 TeX에서 수식 커맨드의 양끝을 $로 감싸서 텍스트 모드와 수식 모드를 구분짓는 데에 쓰이나 나무위키에서는 별도의 커맨드가 존재하므로 기능하지 않게 되었습니다.[2]
처럼 일반 텍스트와 섞인 꼴로 나타나기에 부득이하게 aligned 행렬 문법을 병기했음을 밝힙니다.[7] 수식 폰트처럼 단순히 두 종류가 모두 존재하는 경우 뿐만 아니라 대형 분수 문법과 같이 두 가지 이상의 문법이 축약된 경우도 포함합니다.[8] 만약 내용이 숫자나 기호라면 문법과 내용이 구분되기 때문에 공백조차 필요 없습니다.[9] 단, 분수의 분자, 분모에 대형 분수 표기를 적용하려면 써야 합니다.[10] 참고로 수식 모드에서의 정상적인 출력은 [math(\displaystyle e=\sum_{n=0}^\infty\frac1{n!})]입니다.[11] 당연히 나무위키의
[math(\sin30\degree \Leftarrow)]
[math({\rm sin}\,30\degree \Leftarrow)]92}U)]와는 렌더링이 약간 다르며, 특히 첨자 정렬의 디폴트가 왼쪽 정렬이기 때문에 공백 문법 {{{}}}을 동원해야 하는 등의 불편함이 있습니다.[50] 슬래시로 나타낸 분수에는
[math(\left(\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix}\right))]
처럼 행렬간 개행 문법이 무시됩니다.[59]
\로 공백을 출력하기 위해서는 \ 이후에 반각 공백 을 넣어야 합니다.[3] 달리 표현하자면 사용하는 웹 브라우저 혹은 앱의 설정에 따라 출력이 달라질 수도 있음을 의미합니다. 반면 로마자, 그리스 문자 등은 사용 기기에 상관 없이 항상 출력이 일정합니다.[4] 따라서, 이를테면 Serif폰트를 휴먼매직체(Magic R)로 설정하면 세 폰트가 휴먼매직체로 출력됩니다.[5] 역시 마찬가지로 표준 폰트를 특정 한글 폰트로 변경하면 산세리프, 타자기로 설정했음에도 표준 폰트로 출력됩니다.[6] 아래 예시에서는 해당 명령어를 그대로 적용해서 출력 시ABC\\abc [math(\Rightarrow ABC\\abc)]처럼 일반 텍스트와 섞인 꼴로 나타나기에 부득이하게 aligned 행렬 문법을 병기했음을 밝힙니다.[7] 수식 폰트처럼 단순히 두 종류가 모두 존재하는 경우 뿐만 아니라 대형 분수 문법과 같이 두 가지 이상의 문법이 축약된 경우도 포함합니다.[8] 만약 내용이 숫자나 기호라면 문법과 내용이 구분되기 때문에 공백조차 필요 없습니다.[9] 단, 분수의 분자, 분모에 대형 분수 표기를 적용하려면 써야 합니다.[10] 참고로 수식 모드에서의 정상적인 출력은 [math(\displaystyle e=\sum_{n=0}^\infty\frac1{n!})]입니다.[11] 당연히 나무위키의
[br]매크로도 적용되지 않으며 엔터 키를 이용한 직접 개행 역시 먹히지 않습니다.[12] 텍스트 모드에서의 반각 공백[13] 해당 표현은 \cancel 문법이 존재하므로 이쪽을 권장합니다.[14] \operatorname 문법은 \mathrm과 미묘한 차이가 있습니다. \mathrm은 일반적인 경우, \operatorname은 함수 이름자에 사용하는 경우에 적합합니다.#[15] 로마자 소문자, 아라비아 숫자, 기호는 기본 폰트로 출력됩니다.[16] 칠판체는 유일하게 소문자 [math(\Bbbk)]도 지원합니다.[17] poor man's bold의 준말로 같은 글자를 3번 겹쳐 써서 볼드체로 보이게끔 하는 효과입니다.[18] \text로 시작하지만 텍스트 모드 문법이 아니기 때문에 e=\textcolor{red}{\displaystyle\sum_{n=0}^\infty\frac1{n!}} [math(\Rightarrow e=\textcolor{red}{\displaystyle\sum_{n=0}^\infty\frac1{n!}})]처럼 해당 문법 내에서 수식을 정상적으로 작성할 수 있습니다.[투명색] transparent를 입력하면 글자 색이 투명해지며 내용은 투명해진 영역을 드래그하는 방식으로 확인할 수 있습니다.[20] 텍스트 모드 로만 폰트(\text) 및 텍스트 모드 로만 볼드 폰트(\textbf) 상에서 외국어를 직접 입력하는 방식으로 대체할 수는 있습니다.[21] 아래첨자의 유무에 따른 차이는 없습니다.[22] [math(\displaystyle \sum)], [math(\displaystyle \prod)], [math(\displaystyle \bigcup)] 등.[23] [math(\left[\dfrac{x^2}2\right]_0^1)] 같은 식[24] [math(\displaystyle \sum_{n=0}^\infty)], [math(\displaystyle \int_a^b)] 등[25] 참고로 [math(\displaystyle\int\limits_a^b)]가 포함된 식을 감싸면 초대형보다 더 큰 괄호로 출력됩니다. 이 크기는 근호 안에 정적분이 있는 식을 감쌌을 때의 크기와 똑같습니다.[26] 단, 최소 크기는 디폴트인 [math(10\,{\rm pt})]이며 폰트 크기 조절 문법의 영향을 받지 않기 때문에 이보다 작게 출력하려면 크기 조절 문법을 이용해야 합니다.[27] 꺽쇠 기호를 이용하여 나타낼 경우 \big, \Bigg 등의 괄호 문법을 적용해야 하며 반드시 같은 짝이 있어야 합니다. 반면 \langle, \rangle의 경우 괄호 그 자체를 출력하는 문법이기 때문에 짝이 갖춰지지 않아도 됩니다.[28] 가변형뿐만 아니라 다른 \big, \Bigg 등에도 적용됩니다.[29] 수식 내 개행뿐만 아니라 일반적인 편집 환경에서도 동일합니다. 아래 3~4번째 행의 사례를 참고하십시오.[참고] aligned 정렬 문법 내에서는 다음과 같이 겹치지 않고 출력됩니다. 아래 예시에서 aligned 정렬 문법 내에서는 디폴트가 대형 표기이기 때문에 \dfrac 대신 \frac을 사용했습니다.\begin{aligned}\\frac{{\rm d}y}{{\rm d}x} \\ \\frac{\partial y}{\partial x}\end{aligned} [math(\Rightarrow \begin{aligned} \frac{{\rm d}y}{{\rm d}x} \\ \frac{\partial y}{\partial x}\end{aligned})][31] cfrac은 continued fraction(연분수)의 약어로 이 문법이 연분수를 위한 문법임을 단적으로 드러내고 있습니다.[32] 특히 지수 부분에 첨자가 딸린 대형 연산자가 포함되는 경우, 이 표기를 권장합니다.[33] (아래첨자)와 (위첨자) 위치는 서로 뒤바뀌어도 됩니다.[34] 극한 등의 표기에서 씁니다.[d] 주로 논리 및 증명에서 사용되며, 미세한 공백 차이가 있습니다.[d] [d] [38] 정상적으로 출력되는 함수들을 로만 폰트로 표현할 경우 최소 공백만큼 띄운 것과 출력이 같기 때문입니다. 아래 예를 비교해보십시오.[math(\sin30\degree \Leftarrow)]
\sin30\degree[math({\rm sin}\,30\degree \Leftarrow)]
{\rm sin}\,30\degree[39] 최대공약수 \gcd는 정상적으로 출력됩니다.[40] asinh, arcsinh, argsinh 등 기타 다른 표현 역시 모두 먹히지 않습니다.[41] 소문자인 \log는 정상적으로 출력됩니다.[42] \dim, \ker, \det는 정상적으로 출력됩니다.[43] \int는 적분기호를 출력합니다.[44] [math(S\degree)](S\degree)로 대체 가능합니다.[45] chemical equation의 약자[46] 각종 폰트 크기, 색상, 스타일, 공백을 비롯하여 그리스 문자, 히브리 문자, 분수 문법 등등. 물론 그리스 소문자는 기존 수식 모드와 동일하게 문법을 통한 입력이든 키보드를 이용한 직접 입력이든 무조건 이탤릭체로 출력되기 때문에 로만체로 출력하려면 텍스트 모드를 경유해야 하며 특히 내용이 1글자라 하더라도 중괄호로 감싸야 한다는 특징이 있습니다.[47] 이 경우엔 거꾸로 \begin{}...\end{} 안에 화학식 모드를 써야 합니다. 이밖에도 아래 예시에서 볼 수 있듯이 \displaystyle은 잘 작동하지만 대형 연산자의 첨자 표기는 극한식이 아닌 적분식으로 적용되며 \limits 역시 먹히지 않습니다.[48] 물론 일부 출력의 경우 중괄호로 내용을 감싸야 하는 경우가 있습니다. 가령 앞서 화학종의 상태를 일반 표기가 아닌 아래 첨자 등으로 나타내고자 한다면 _{(aq)}와 같이 중괄호로 감싸서 입력해야 합니다.[49] 이 출력은 수식 모드의 \rm^{235}_{~~92}U [math(\Rightarrow \rm^{235}_{\displaystyle이 적용되지 않기 때문에 \displaystyle을 쓴다면 \frac이 세트로 들어가야 합니다.[51] physical unit의 약자[52] 따라서 소수점을 기준으로 전후 4자리 이내의 수치를 출력하는 것이라면 본 모드를 쓸 필요는 없습니다.[53] 이 경우 물리 단위 모드를 쓰지 않은 3e\rm~m이 1바이트 더 적긴 합니다.[54] 이 경우 물리 단위 모드를 쓰지 않은 \rm2\pi~rad이 2바이트 더 적긴 합니다.[55] [math(\pu V = \pu{kg*m2s-3A-1})]와 같은 유도 단위 때문입니다.[56] 이 출력은 단위의 지수화 표기를 막기 위해 앞선 단위와 뒤이은 수치 사이에 공백을 삽입하고, 수치와 단위 사이는 반각 공백이 삽입된다는 점을 수동으로 반영한 표기이나, 국제단위계의 표기 지침에는 어긋나므로 권장되지 않습니다.[57] 이 경우 10의 거듭제곱 부분은 물리 단위 모드를 쓰지 않은 10^{-3}이 1바이트 더 적긴 합니다.[58] 참고로 이 상태에서 양끝을 괄호 문법으로 감쌀 경우 [math(\left(\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix}\right))]
처럼 행렬간 개행 문법이 무시됩니다.[59]
{{{#!wiki style="text-align: center"}}}문법은 좌우 스크롤이 불가하기 때문에 권장되지 않습니다.[60] <tablealign=center>는 표 정렬에 관련된 문법으로, 개조식으로 수식을 나열하는 등 굳이 가운데 정렬이 필요 없다면 생략 가능합니다. 이 경우 표는 나무위키의 기본 출력에 따라 왼쪽 정렬로 출력됩니다.[61] 구체적으로는 아래 문법에서 margin: auto; 부분을 삭제하면 됩니다.[62] 특히 지수 표기에서, 첨자를 붙이고자 하는 문자 전체를 중괄호로 감싸야 합니다.[63] 교과서에 사용되는 모양([math(\mathrel{\text{∽}})])을 사용할 경우 \mathrel{\text{∽}} 와 같이 직접 기호를 사용하십시오.[주의] [65] \ldots로도 쓸 수 있습니다.[66] \vec 문법을 이용하여 \vec E[math(\Rightarrow \vec E)] 형태로도 쓸 수 있지만, 가독성이 떨어지고 \vec 문법은 글자 수에 맞춰 길이가 변하지 않으므로 로만 볼드체 표기를 권장합니다.[67] 행렬같은 대형 수식은 이곳에서 입력 후 붙이는 것이 낫습니다.#!if version2 == null
{{{#!wiki style="border:1px solid gray;border-top:5px solid gray;padding:7px;margin-bottom:0px"
[[크리에이티브 커먼즈 라이선스|[[파일:CC-white.svg|width=22.5px]]]] 이 문서의 내용 중 전체 또는 일부는 {{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/나무위키:문법 도움말/심화|나무위키:문법 도움말/심화]]}}}{{{#!if external != "o"
[[나무위키:문법 도움말/심화]]}}}}}} 문서의 {{{#!if uuid == null
'''uuid not found'''}}}{{{#!if uuid != null
[[https://namu.wiki/w/나무위키:문법 도움말/심화?uuid=d9f4d3f3-3e99-476b-95fe-29466fba7a52|r1969]]}}} 판{{{#!if paragraph != null
, [[https://namu.wiki/w/나무위키:문법 도움말/심화?uuid=d9f4d3f3-3e99-476b-95fe-29466fba7a52#s-|번 문단]]}}}에서 가져왔습니다. [[https://namu.wiki/history/나무위키:문법 도움말/심화?from=1969|이전 역사 보러 가기]]}}}#!if version2 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="border:1px solid gray;border-top:5px solid gray;padding:7px;margin-bottom:0px"
[[크리에이티브 커먼즈 라이선스|[[파일:CC-white.svg|width=22.5px]]]] 이 문서의 내용 중 전체 또는 일부는 다른 문서에서 가져왔습니다.
{{{#!wiki style="text-align: center"
{{{#!folding [ 펼치기 · 접기 ]
{{{#!wiki style="text-align: left; padding: 0px 10px"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/나무위키:문법 도움말/심화|나무위키:문법 도움말/심화]]}}}{{{#!if external != "o"
[[나무위키:문법 도움말/심화]]}}}}}} 문서의 {{{#!if uuid == null
'''uuid not found'''}}}{{{#!if uuid != null
[[https://namu.wiki/w/나무위키:문법 도움말/심화?uuid=d9f4d3f3-3e99-476b-95fe-29466fba7a52|r1969]]}}} 판{{{#!if paragraph != null
, [[https://namu.wiki/w/나무위키:문법 도움말/심화?uuid=d9f4d3f3-3e99-476b-95fe-29466fba7a52#s-|번 문단]]}}} ([[https://namu.wiki/history/나무위키:문법 도움말/심화?from=1969|이전 역사]])
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/사용자:pnictogen|사용자:pnictogen]]}}}{{{#!if external != "o"
[[사용자:pnictogen]]}}}}}} 문서의 {{{#!if uuid2 == null
'''uuid2 not found'''}}}{{{#!if uuid2 != null
[[https://namu.wiki/w/사용자:pnictogen?uuid=53476b23-ae95-4a0c-a350-8fe379c71bf3|r302]]}}} 판{{{#!if paragraph2 != null
, [[https://namu.wiki/w/사용자:pnictogen?uuid=53476b23-ae95-4a0c-a350-8fe379c71bf3#s-4|4번 문단]]}}} ([[https://namu.wiki/history/사용자:pnictogen?from=302|이전 역사]]){{{#!if version3 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid3 == null
'''uuid3 not found'''}}}{{{#!if uuid3 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph3 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version4 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid4 == null
'''uuid4 not found'''}}}{{{#!if uuid4 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph4 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version5 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid5 == null
'''uuid5 not found'''}}}{{{#!if uuid5 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph5 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version6 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid6 == null
'''uuid6 not found'''}}}{{{#!if uuid6 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph6 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version7 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid7 == null
'''uuid7 not found'''}}}{{{#!if uuid7 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph7 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version8 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid8 == null
'''uuid8 not found'''}}}{{{#!if uuid8 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph8 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version9 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid9 == null
'''uuid9 not found'''}}}{{{#!if uuid9 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph9 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version10 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid10 == null
'''uuid10 not found'''}}}{{{#!if uuid10 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph10 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version11 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid11 == null
'''uuid11 not found'''}}}{{{#!if uuid11 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph11 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version12 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid12 == null
'''uuid12 not found'''}}}{{{#!if uuid12 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph12 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version13 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid13 == null
'''uuid13 not found'''}}}{{{#!if uuid13 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph13 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version14 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid14 == null
'''uuid14 not found'''}}}{{{#!if uuid14 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph14 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version15 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid15 == null
'''uuid15 not found'''}}}{{{#!if uuid15 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph15 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version16 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid16 == null
'''uuid16 not found'''}}}{{{#!if uuid16 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph16 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version17 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid17 == null
'''uuid17 not found'''}}}{{{#!if uuid17 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph17 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version18 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid18 == null
'''uuid18 not found'''}}}{{{#!if uuid18 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph18 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version19 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid19 == null
'''uuid19 not found'''}}}{{{#!if uuid19 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph19 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version20 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid20 == null
'''uuid20 not found'''}}}{{{#!if uuid20 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph20 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version21 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid21 == null
'''uuid21 not found'''}}}{{{#!if uuid21 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph21 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version22 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid22 == null
'''uuid22 not found'''}}}{{{#!if uuid22 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph22 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version23 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid23 == null
'''uuid23 not found'''}}}{{{#!if uuid23 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph23 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version24 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid24 == null
'''uuid24 not found'''}}}{{{#!if uuid24 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph24 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version25 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid25 == null
'''uuid25 not found'''}}}{{{#!if uuid25 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph25 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version26 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid26 == null
'''uuid26 not found'''}}}{{{#!if uuid26 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph26 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version27 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid27 == null
'''uuid27 not found'''}}}{{{#!if uuid27 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph27 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version28 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid28 == null
'''uuid28 not found'''}}}{{{#!if uuid28 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph28 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version29 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid29 == null
'''uuid29 not found'''}}}{{{#!if uuid29 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph29 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version30 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid30 == null
'''uuid30 not found'''}}}{{{#!if uuid30 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph30 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version31 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid31 == null
'''uuid31 not found'''}}}{{{#!if uuid31 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph31 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version32 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid32 == null
'''uuid32 not found'''}}}{{{#!if uuid32 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph32 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version33 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid33 == null
'''uuid33 not found'''}}}{{{#!if uuid33 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph33 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version34 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid34 == null
'''uuid34 not found'''}}}{{{#!if uuid34 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph34 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version35 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid35 == null
'''uuid35 not found'''}}}{{{#!if uuid35 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph35 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version36 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid36 == null
'''uuid36 not found'''}}}{{{#!if uuid36 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph36 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version37 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid37 == null
'''uuid37 not found'''}}}{{{#!if uuid37 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph37 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version38 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid38 == null
'''uuid38 not found'''}}}{{{#!if uuid38 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph38 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version39 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid39 == null
'''uuid39 not found'''}}}{{{#!if uuid39 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph39 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version40 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid40 == null
'''uuid40 not found'''}}}{{{#!if uuid40 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph40 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version41 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid41 == null
'''uuid41 not found'''}}}{{{#!if uuid41 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph41 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version42 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid42 == null
'''uuid42 not found'''}}}{{{#!if uuid42 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph42 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version43 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid43 == null
'''uuid43 not found'''}}}{{{#!if uuid43 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph43 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version44 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid44 == null
'''uuid44 not found'''}}}{{{#!if uuid44 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph44 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version45 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid45 == null
'''uuid45 not found'''}}}{{{#!if uuid45 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph45 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version46 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid46 == null
'''uuid46 not found'''}}}{{{#!if uuid46 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph46 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version47 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid47 == null
'''uuid47 not found'''}}}{{{#!if uuid47 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph47 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version48 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid48 == null
'''uuid48 not found'''}}}{{{#!if uuid48 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph48 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version49 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid49 == null
'''uuid49 not found'''}}}{{{#!if uuid49 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph49 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}{{{#!if version50 != null
{{{#!wiki style="display: block;"
{{{#!wiki style="display: inline-block"
{{{#!if external == "o"
[[https://namu.wiki/w/|]]}}}{{{#!if external != "o"
[[]]}}}}}} 문서의 {{{#!if uuid50 == null
'''uuid50 not found'''}}}{{{#!if uuid50 != null
[[https://namu.wiki/w/?uuid=|r]]}}} 판{{{#!if paragraph50 != null
, [[https://namu.wiki/w/?uuid=#s-|번 문단]]}}} ([[https://namu.wiki/history/?from=|이전 역사]])}}}}}}}}}}}}}}}}}}}}}