나무모에 미러 (일반/밝은 화면)
최근 수정 시각 : 2026-07-05 04:07:43

나무위키:문법 도움말/심화/TeX

TeX 문법에서 넘어옴

#!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>파일:나무위키 로고 흰.svg 나무위키의 규정
'''[[나무위키:기본방침|
#!wiki class="form"
기본방침
]]''' 문서 관리 방침 · 토론 관리 방침 · 이용자 관리 방침 · 운영 관리 방침 (운영진 선출)
'''[[나무위키:편집지침|
#!wiki class="form"
편집지침
]]''' 일반 문서 · 특수 문서 · 특정 분야 (인문사회 · 과학기술 · 문화예술) · 등재 기준 · 표제어
'''[[나무위키:편집합의|
#!wiki class="form"
편집합의
]]''' 일반 문서 · 특수 문서 · 특정 분야 (인문사회 · 과학기술 · 문화예술 · 창작물) · 등재 기준
'''[[나무위키:프로젝트|
#!wiki class="form"
프로젝트
]]''' 프로젝트 지침
파일:나무위키 로고 흰.svg 나무위키의 도움말
'''[[나무위키:FAQ|
#!wiki class="form"
FAQ
]]''' 나무위키 · 계정 · 문서 열람 · 편집 및 역사 페이지 · 이미지 업로드 · 문서 이동 · 기타 문의
'''[[나무위키:도움말|
#!wiki class="form"
도움말
]]''' 기능 · 편집 · 문법 (심화 · 수식 · 개발) · 토론 · 설정 · 소명 · 권리침해 · 자주 하는 실수 · 문서 삭제식 이동 · 더미
파일:나무위키 로고 흰.svg 나무위키의 운영
'''
#!wiki class="form"
운영진
''' 관리자 · 중재자 · 역대 운영진 · 운영진 지원 · 운영 도움말 (관리 · 중재 · 권한) · 운영위원회 (의견 제시) · 운영회의 (시행규칙 · 안건 건의) · 운영진 임명 회의 (진행 중인 회의)
'''
#!wiki class="form"
기타
''' 접근 제한 (문서 목록) · 봇 리스트 · 투명성 보고서 · 소급 적용 규정 일람 · 공지 목록 · 규정 개정 토론 시행규칙
파일:나무위키 로고 흰.svg 나무위키의 기능
'''
#!wiki class="form"
메타 문서
''' 분류 (파일 · 템플릿) · 프로젝트 · · 보존문서 · 주요 페이지 링크 · 문서 작성 요청
'''
#!wiki class="form"
기능
''' 계정 (내 문서함) · 게시판 · 연습장 (토론) · 엔진 (업데이트) · 통계
#!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;
      }
   }


파일:나무위키:로고3.png
이 문서는 나무위키의 도움말입니다.

이 문서는 나무위키 초보자를 위한 문서로, 규정으로서의 효력을 가지고 있지 않습니다.

1. 개요2. 수식 입력 문법3. 숙지 사항
3.1. 문법의 종류3.2. 속성
3.2.1. 속성 재지정 문법
4. 텍스트 모드
4.1. 텍스트 모드 다이어크리틱
5. 길이 단위6. 공백7. 수식 폰트
7.1. 별도 명령어가 있는 폰트 문자
8. 수식 크기9. 수식 색상
9.1. 고가시성 수식용 헥스 코드
10. 문자 체계
10.1. 다이어크리틱10.2. 그리스 문자10.3. 히브리 문자10.4. 기타 문자
11. 괄호 문법12. 대형 연산자 출력 관련
12.1. 크기 조절 문법12.2. 첨자 위치 문법
13. 화살표 문법14. 함수 문법15. 화학식 모드
15.1. 화살표 문법15.2. 화학 결합 문법
16. 물리 단위 모드17. \\begin, \\end 문법
17.1. 행렬 문법17.2. 배열 문법17.3. 가환 다이어그램
18. 입력 팁19. 예시20. 미지원 문제 및 해결법21. 외부 도구

#!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})]권장 문법
[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>레거시 문법은 한줄인 경우는 문제 없음
\begin{matrix}
a & b \\
c & d \\
\end{matrix}
</math>

\begin{matrix}
a & b \\
c & d \\
\end{matrix}
</math>
[주의2] 레거시 문법에서 줄바꿈이 있으면 문제 발생

이후 문단에서는 편의상 [math(내용)] 문법을 생략하고 소괄호 안쪽의 내용만 표시합니다. 실제로 수식을 작성할 때는 모든 내용을 [math(내용)]의 "내용" 부분에 넣어주시기 바랍니다.y = ax + b}}})] [math(\Rightarrow \, \color{red} y = ax + b)]

3. 숙지 사항

상술한 [math(...)]를 통하여 수식을 입력하면 기본적으로 수식 모드에 진입합니다. 해당 모드는 수식을 출력하는 데에 최적화되어있으며 별도의 공백 문법을 쓰지 않는 한 공백을 출력할 수 없기 때문에 문장을 쓰는 데에는 적합하지 않습니다. 문장 입력은 텍스트 모드 이용을 권장합니다(항목 참조). 나무위키의 수식 입력법은 수식 모드 내에서 텍스트 모드를 일시적으로 활성화하는 방식으로 사용하며 기본적으로는 수식 모드입니다.
아라비아 숫자, 로마자, 아래 표의 기호를 제외한 각종 기호는 그대로 입력합니다. 다음 기호들은 단순히 나무위키 수식 모드에서 출력을 지원하지 않거나 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)]
한글 폰트는 지원하지 않으며 나무위키의 문서를 출력하는 애플리케이션의 디폴트 폰트로 출력되므로 TeX에서의 한글의 사용은 권장되지 않습니다.[3] 크롬 브라우저를 예시로 한글의 디폴트 폰트는 다음과 같습니다.수식 모드 내에서의 개행은 개행 문법 \\를 이용합니다.[6]문법을 적용할 내용이 문자로 시작하며 중괄호로 감싸지 않는 경우, 문법과 내용을 구분 짓기 위해 공백( )을 반드시 넣어야 하지만, 내용이 숫자나 기호로 시작할 경우 공백이 필요 없습니다.일괄 적용 문법과 일시 적용 문법이 모두 존재하는 문법의 경우[7] 문법은 다르지만 출력이 같은 경우가 여럿 존재합니다. 아래 예시는 불필요한 중복이나 긴 타이핑을 줄일 수 있는 단순한 예시일 뿐, 반드시 한쪽 방식을 우선해야 하는 것은 아닙니다. 가독성을 생각하여 적절한 방식을 고르면 됩니다.

3.1. 문법의 종류

문법 적용 범위에 따라 일시 적용 문법일괄 적용 문법으로 나뉩니다. 이하 본 도움말에서 별도의 설명이 없으면 일시 적용 문법입니다.\\dbinom n{12\}}}} || [math(\dbinom n{12})] ||{}}}\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
#!wiki class="rhltex"
/ 
b
여는 괄호 [math(a \mathopen{\color{red} (} b))] a
#!wiki class="rhltex"
(
b)
닫는 괄호 [math((a \mathclose{\color{red} )} b)] (a
#!wiki class="rhltex"
) 
b
구두점 기호 오른쪽에 작은 공백 삽입 [math(a \mathpunct{\color{red} ,} b)]
[math(a \mathpunct{\color{red} ;} b)]
a
#!wiki class="rhltex"
, 
b
a
#!wiki class="rhltex"
; 
b
대형 연산자 기호 양쪽에 큰 공백 삽입
첨자 위치 문법을 이용하여 오른쪽 위아래첨자의 위치가 상하 위치로 이동
[math(a \mathop{\color{red} \sum} b)] a
#!wiki class="rhltex"
\\sum 
b
내부 수식 기호 양쪽에 작은 공백 삽입 [math(a \mathinner{\color{red} \left( b \right)} c)] a
#!wiki class="rhltex"
\\left( b \\right) 
c
이항 연산 기호 [math(a \mathbin{\color{red} +} b)]
[math(a \mathbin{\color{red} -} b)]
[math(a \mathbin{\color{red} \cup} b)]
a
#!wiki class="rhltex"
+ 
b
a
#!wiki class="rhltex"
- 
b
a
#!wiki class="rhltex"
\\cup 
b
이항 관계 기호 기호 양쪽에 큰 공백 삽입 [math(a \mathrel{\color{red} =} b)] a
#!wiki class="rhltex"
= 
b

속성에 따른 성질은 중괄호 문법 양끝에서 무효화됩니다. 아래 예시에서 [math(\sum)]와 [math(a)], [math(b)] 사이의 공백을 비교하여 보십시오.
<tableclass=mtbl> 문법 출력
a
#!wiki class="rhltex"
{
\color{blue} \sum b
#!wiki class="rhltex"
\
}
[math(a{\color{blue}\sum b})]
a \sum b [math(a \sum b)]

3.2.1. 속성 재지정 문법

속성은 각종 일시 적용 문법을 이용하여 재지정할 수 있습니다.
<tableclass=mtbl> 속성명
문법
예시 비교 재지정된 속성
속성 재지정 문법
통상 문법
속성 재지정 출력
통상 출력
일반
\mathord
{}​
a\\mathord\\sumb
a{\\sum}​b
a\\sumb
[math(a\mathord{\color{red}\sum}b \\ a{\color{red}\sum}b \\ a\mathop{\color{blue}\sum}b)] 대형 연산자 → 일반
여는 괄호
\mathopen
a\\mathopen{\\left(\\right)}​b
a\\left(\\right)b
[math(a\mathopen{\color{red}\left(\right)}b \\ a\mathinner{\color{blue}\left(\right)}b)] 내부 수식 → 여는 괄호
닫는 괄호
\mathclose
a\\mathclose+b
a+b
[math(a\mathclose{\color{red}+}b \\ a\mathbin{\color{blue}+}b)] 이항 연산 기호 → 닫는 괄호
구두점
\mathpunct
a\\mathpunct\\cup b
a\\cup b
[math(a\mathpunct{\color{red}\cup} b \\ a\mathbin{\color{blue}\cup}b)] 이항 연산 기호 → 구두점
대형 연산자
\mathop
a\\mathop/b
a/b
[math(a\mathop{\color{red}/}b \\ a\mathord{\color{blue}/}b)] 일반 → 대형 연산자
내부 수식
\mathinner
a\\mathinner tb
atb
[math(a\mathinner{\color{red}t}b \\ a\mathord{\color{blue}t}b)] 일반 → 내부 수식
이항 연산 기호
\mathbin
a\\mathbin=b
a=b
[math(a\mathbin{\color{red}=}b \\ a\mathrel{\color{blue}=}b)] 이항 관계 기호 → 이항 연산 기호
이항 관계 기호
\mathrel
a\\mathrel.b
a.b
[math(a\mathrel{\color{red}.}b \\ a\mathord{\color{blue}.}b)] 일반 → 이항 관계 기호

속성 재지정 문법은 다음과 같은 경우에 활용할 수 있습니다.

4. 텍스트 모드

'ab12+-'를 예로 아래 표에 정리한 문법을 이용하여 단어나 문장을 쓰는데 최적화 되어있는 텍스트 모드를 적용할 수 있습니다. 이 문법 안에서는 수식을 출력할 수 없으며 아래와 같이 출력 결과에서 에러가 납니다.
나무위키의 수식 텍스트 모드에서는 중간 굵기의 로만 폰트(직립체)가 디폴트이기 때문에 \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]되므로 번거롭지만 개행을 하는 지점에서 텍스트 모드를 종료하고 수식 모드에서 개행을 한 뒤 다시 텍스트 모드를 작성해야 합니다.단, 텍스트 모드 내에서 수식 폰트의 일괄 적용 문법, 색상 문법, 크기 문법공백 문법은 적용할 수 있습니다.수식 모드에서 별도의 문법으로 출력해야 했던 #, $, &, %, _, {, }는 텍스트 모드에서도 출력 문법이 동일합니다. ^, ~, \\는 출력하려면 텍스트 모드 내에서 다음과 같이 입력해야 합니다.
<tableclass=mtbl> 기호 출력 문법
^ [math(\text{\textasciicircum})] \textasciicircum
~ [math(\text{\textasciitilde})] \textasciitilde
\\ [math(\text{\textbackslash})] \char`\\
\textbackslash
각종 그리스 문자 및 히브리 문자를 문법으로 입력하는 나무위키의 TeX 특성상, 텍스트 모드에서 대부분의 확장 로마자 및 기타 외국어 문자를 출력하고 싶은 경우 특수 기호 혹은 외국어 타자기를 통해 직접 입력해야 합니다.단, 다음 확장 로마자는 문법을 통한 출력을 지원하며 해당 문법을 텍스트 모드 내에서 입력해야 합니다. 중괄호로 감싸지 않는 경우 문법 구분을 위해 반각 공백( )을 넣어야 하며 이 경우 출력에서 반각 공백은 무시됩니다.

4.1. 텍스트 모드 다이어크리틱

나무위키 수식의 텍스트 모드에서는 다음 다이어크리틱의 출력을 지원합니다. 단, 수식 모드의 다이어크리틱 항목을 보면 알 수 있듯이 본 텍스트 모드의 다이어크리틱 문법은 수식 모드와 다르며, 텍스트 모드에서만 유효합니다. 또한 텍스트 모드의 각종 폰트 문법 안에서 입력해야 합니다.
<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{
#!wiki class="rhltex"
1em
#!wiki class="tex"
}{1em\
}
ex [math(\pu{ 1 ex })][math(\rule{1ex}{1em})] \rule{
#!wiki class="rhltex"
1ex
#!wiki class="tex"
}{1em\
}
mu [math(\pu{18^{-1} em })][math(\rule{1mu}{1em})] \rule{
#!wiki class="rhltex"
1mu
#!wiki class="tex"
}{1em\
}
pt* [math(72.27^{-1} \times F \times G ~ \pu{ in })][math(\rule{1pt}{1em})] \rule{
#!wiki class="rhltex"
1pt
#!wiki class="tex"
}{1em\
}
mm [math(F \times G ~ \pu{ mm })][math(\rule{1mm}{1em})] \rule{
#!wiki class="rhltex"
1mm
#!wiki class="tex"
}{1em\
}
cm [math(F \times G ~ \pu{ cm })][math(\rule{1cm}{1em})] \rule{
#!wiki class="rhltex"
1cm
#!wiki class="tex"
}{1em\
}
in [math(F \times G ~ \pu{ in })][math(\rule{1in}{1em})] \rule{
#!wiki class="rhltex"
1in
#!wiki class="tex"
}{1em\
}
bp [math(72^{-1} \times F \times G ~ \pu{ in })][math(\rule{1bp}{1em})] \rule{
#!wiki class="rhltex"
1bp
#!wiki class="tex"
}{1em\
}
pc [math(\pu{ 12 kpt })][math(\rule{1pc}{1em})] \rule{
#!wiki class="rhltex"
1pc
#!wiki class="tex"
}{1em\
}
dd [math(\pu{ 1238 / 1157 kpt })][math(\rule{1dd}{1em})] \rule{
#!wiki class="rhltex"
1dd
#!wiki class="tex"
}{1em\
}
cc [math(\pu{ 14856 / 1157 kpt })][math(\rule{1cc}{1em})] \rule{
#!wiki class="rhltex"
1cc
#!wiki class="tex"
}{1em\
}
nd [math(\pu{ 685 / 642 kpt })][math(\rule{1nd}{1em})] \rule{
#!wiki class="rhltex"
1nd
#!wiki class="tex"
}{1em\
}
nc [math(\pu{ 1370 / 107 kpt })][math(\rule{1nc}{1em})] \rule{
#!wiki class="rhltex"
1nc
#!wiki class="tex"
}{1em\
}
sp [math(\pu{ 65536^{-1} kpt })][math(\rule{1sp}{1em})] \rule{
#!wiki class="rhltex"
1sp
#!wiki class="tex"
}{1em\
}

이 때, [math(F)]와 [math(G)]는 각각 현재 브라우저 환경에서 다음과 같이 주어지는 상수입니다.
아래는 \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}
#!latex
\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)] ab
a b
[math(0\,)]  [math(0)]
[math(a\,b)] a\\,b [math(\dfrac23)]  [math(6)]
[math(a\:b)] a\\:b
a\\>b
[math(\dfrac89)]  [math(8)]
[math(a~b)] a~b
a\\​ b
a\\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)]
\!는 문자 사이의 간격을 줄여주는 문법으로, 해당 문법을 반복해서 쓰면 두 문자를 겹치게 나타내는 것도 가능합니다.또한 복수의 공백을 중복 조합함으로써 위 표에 없는 상대 길이를 만들어낼 수도 있습니다.

7. 수식 폰트

'ab12+-'를 예시로 다음과 같이 폰트를 적용할 수 있는데, 일시 적용 문법과 일괄 적용 문법이 모두 존재합니다. 주의사항으로서, 폰트 문법 내에서는 개행 문법(\\)이 먹히지 않습니다. 개행을 적용할 경우 해당 문법이 적용되는 범위를 중괄호로 감싸서 효과를 끝내고 그 바깥에서 개행하며 개행 이후에 적용하고자 했던 폰트 문법을 다시 적용하는 방식으로 써야 합니다.기본 서체를 유지한 채로 전체를 볼드체로 나타내고 싶은 경우 \bm 또는 \boldsymbol 문법을 사용합니다.다른 서체를 적용하면서 전체를 볼드체로 나타내고 싶은 경우 \pmb[17] 문법를 사용합니다. 아래 첫 번째 예시는 일괄 산세리프체 + 볼드체이고 두 번째는 흑자체 + 볼드체입니다.

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. 수식 크기

다음 두 가지 방법을 이용할 수 있으며, 병용하는 것도 가능합니다.

9. 수식 색상

수식의 색상 조절은 \color{색상 이름}내용일괄 적용 문법 혹은 \textcolor{색상 이름}{내용}​[18]일시 적용 문법을 이용합니다.지원하는 색상은 다음과 같습니다.
<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 상태를 분간할 방법이 없기에, 현재로써는 양쪽 모드에서 모두 잘 보이는 배색을 사용하는 것이 가장 권장됩니다.
#!latex
\begin{aligned}
{\color{#e62101}\oint_C f(z) \,{\rm d}z = 0 \quad\blacksquare} &= \mathtt{\#e62101} \approx \mathrm{red} \\
{\color{#e5212a}f(z_0) = \frac1{2\pi i} \oint_C \frac{f(z)}{z-z_0} \,{\rm d}z \quad\blacksquare} &= \mathtt{\#e5212a} \approx \\
{\color{#c25335}f^{(n)}(z_0) = \frac{n!}{2\pi i} \oint_C \frac{f(z)}{(z-z_0)^{n+1}} \,{\rm d}z \quad\blacksquare} &= \mathtt{\#c25335} \approx \\
{\color{#9f6b0c}f(z) = \sum_{n=0}^\infty \frac{f^{(n)}(z_0)}{n!} (z-z_0)^n \quad\blacksquare} &= \mathtt{\#9f6b0c} \approx \mathrm{brown} \\
{\color{#038901}f(z) = \sum_{n=-\infty}^\infty a_n (z-z_0)^n \quad\blacksquare} &= \mathtt{\#038901} \approx \mathrm{green} \\
{\color{#38860a}a_n = \frac1{2\pi i} \oint_C \frac{f(\xi)}{(\xi-z_0)^{n+1}} \,{\rm d}\xi \quad\blacksquare} &= \mathtt{\#38860a} \approx \\
{\color{#2f72de}\oint_C f(z) \,{\rm d}z = 2\pi i \,\underset{z=z_0}{\operatorname{Res}} \,f(z) \quad\blacksquare} &= \mathtt{\#2f72de} \approx \mathrm{blue} \\
{\color{#4773cb}\underset{z=z_0}{\operatorname{Res}}\,f(z) = \lim_{z\to z_0} \,(z-z_0)f(z) \quad\blacksquare} &= \mathtt{\#4773cb} \approx \\
{\color{#5d60ff}\underset{z=z_0}{\operatorname{Res}}\,f(z) = \lim_{z\to z_0} \frac{\rm d}{{\rm d}z} (z-z_0)^2 f(z) \quad\blacksquare} &= \mathtt{\#5d60ff} \approx \\
{\color{#6562f2}\underset{z=z_0}{\operatorname{Res}}\,f(z) = \frac1{(m-1)!} \lim_{z\to z_0} \frac{{\rm d}^{m-1}}{{\rm d}z^{m-1}} (z-z_0)^m f(z) \quad\blacksquare} &= \mathtt{\#6562f2} \approx \\
{\color{#766cb5}{\rm p.v.}\int_{-\infty}^\infty f(x) \,{\rm d}x = \lim_{R\to\infty} \int_{-R}^R f(x) \,{\rm d}x \quad\blacksquare} &= \mathtt{\#766cb5} \approx \\
{\color{#a9599a}\oint_C f(z) \,{\rm d}z = 2\pi i \sum \underset{z=z_0}{\operatorname{Res}}\,f(z) \quad\blacksquare} &= \mathtt{\#a9599a} \approx \\
{\color{#a94dc8}\oint_C f(z) \,{\rm d}z = 0 \quad\blacksquare} &= \mathtt{\#a94dc8} \approx \\
{\color{#a936f9}f(z_0) = \frac1{2\pi i} \oint_C \frac{f(z)}{z-z_0} \,{\rm d}z \quad\blacksquare} &= \mathtt{\#a936f9} \approx \\
{\color{#a737fb}f^{(n)}(z_0) = \frac{n!}{2\pi i} \oint_C \frac{f(z)}{(z-z_0)^{n+1}} \,{\rm d}z \quad\blacksquare} &= \mathtt{\#a737fb} \approx \mathrm{violet} \\
{\color{#cf0dcc}f(z) = \sum_{n=0}^\infty \frac{f^{(n)}(z_0)}{n!} (z-z_0)^n \quad\blacksquare} &= \mathtt{\#cf0dcc} \approx \mathrm{magenta} \\
{\color{#cf3986}f(z) = \sum_{n=-\infty}^\infty a_n (z-z_0)^n \quad\blacksquare} &= \mathtt{\#cf3986} \approx \\
{\color{#d60bb6}a_n = \frac1{2\pi i} \oint_C \frac{f(\xi)}{(\xi-z_0)^{n+1}} \,{\rm d}\xi \quad\blacksquare} &= \mathtt{\#d60bb6} \approx \\
{\color{#e20e7b}\oint_C f(z) \,{\rm d}z = 2\pi i \,\underset{z=z_0}{\operatorname{Res}} \,f(z) \quad\blacksquare} &= \mathtt{\#e20e7b} \approx \\
{\color{#7f7f7f}\oint_C f(z) \,{\rm d}z = 0 \quad\blacksquare} &= \mathtt{\#7f7f7f} \approx \mathrm{gray}
\end{aligned}

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가 붙은 문법을 제외한 것은 기호의 길이가 늘어나지 않으며 가운데 정렬로 출력되는 점에 주의하십시오.특히 다이어크리틱 첨가에 따라 점이 삭제되는 [math(i)], [math(j)]의 경우 \imath [math(\Rightarrow\imath)], \jmath [math(\Rightarrow\jmath)]를 이용합니다.호의 경우는 다음과 같은 대체 표현을 사용할 수 있습니다. 호는 문자 길이에 따라 길게 늘어나지 않기 때문에 폰트 크기 문법을 이용하여 글자수에 따라 수동으로 조절해야 합니다.
<tableclass=mtbl> 출력 문법
[math(\:\overset{\Large\mathclap\frown}{\phantom{\scriptsize{;}\!}}\clap{AC}\:)]
[math(\;\;\overset{\huge\mathclap\frown}{\phantom{\scriptsize{;}\!}}\clap{ABC}\;\;)]
~~\:\overset{\Large\mathclap\frown}{\phantom{\scriptsize;\!}}\clap{AC}~~\:

~~\;\;\overset{\huge\mathclap\frown}{\phantom{\scriptsize{;}\!}}\clap{ABC}~~\;\;

10.2. 그리스 문자

그리스 문자의 개별 영어명을 토대로, 그리스 소문자는 모두 소문자로, 그리스 대문자는 첫 글자만 대문자로 기입하면 됩니다.

그리스 소문자는 이탤릭체로 고정되어있어 텍스트 모드에서처럼 특수 기호 또는 외국어 타자기를 통해 직접 입력해도 다른 폰트가 적용되지 않습니다.[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. 기타 문자

키릴 문자는 문법을 통한 입력을 지원하지 않으므로 직접 입력해야 합니다.

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가 세트로 들어가야 하며 둘 중 하나라도 누락되거나 다른 크기를 조합하면 출력에서 에러가 납니다. 다른 크기로 조합해서 출력하려면 가변형 이외의 괄호 문법을 이용합니다.단, 괄호의 종류는 변경할 수 있습니다.
나무위키의 수식 모드에서는 다음과 같은 괄호의 출력을 지원합니다.(단, 괄호 문법은 적용하지 않았으며, 대형 연산자를 감쌀 경우 가변 문법을 적용해주시기 바랍니다.)
<tableclass=mtbl> 종류 출력 문법
소괄호 [math({\color{red} (} a {\color{red} )})]
#!wiki class="rhltex"
( 
a
#!wiki class="rhltex"
)

#!wiki class="rhltex"
\\lparen 
a
#!wiki class="rhltex"
\\rparen
묶음 괄호 [math({\color{red} \lgroup} a {\color{red} \rgroup})]
#!wiki class="rhltex"
\\lgroup 
a
#!wiki class="rhltex"
\\rgroup
중괄호 [math({\color{red} \{} a {\color{red} \}})]
#!wiki class="rhltex"
\{ 
a
#!wiki class="rhltex"
\
}
#!wiki class="rhltex"
\\lbrace 
a
#!wiki class="rhltex"
\\rbrace
겹중괄호 [math({\color{red} \lBrace} a {\color{red} \rBrace})]
#!wiki class="rhltex"
\\lBrace 
a
#!wiki class="rhltex"
\\rBrace
대괄호 [math({\color{red} [} a {\color{red} ]})]
#!wiki class="rhltex"
[ 
a
#!wiki class="rhltex"
]

#!wiki class="rhltex"
\\lbrack 
a
#!wiki class="rhltex"
\\rbrack
겹대괄호 [math({\color{red} \llbracket} a {\color{red} \rrbracket})]
#!wiki class="rhltex"
\\llbracket 
a
#!wiki class="rhltex"
\\rrbracket
바닥 함수 기호 [math({\color{red} \lfloor} a {\color{red} \rfloor})]
#!wiki class="rhltex"
\\lfloor 
a
#!wiki class="rhltex"
\\rfloor
천장 함수 기호 [math({\color{red} \lceil} a {\color{red} \rceil})]
#!wiki class="rhltex"
\\lceil 
a
#!wiki class="rhltex"
\\rceil
절댓값 기호 [math({\color{red} |} a {\color{red} |})]
#!wiki class="rhltex"
| 
a
#!wiki class="rhltex"
|

#!wiki class="rhltex"
\\lvert 
a
#!wiki class="rhltex"
\\rvert
노름 기호 [math({\color{red} \|} a {\color{red} \|})]
#!wiki class="rhltex"
\\| 
a
#!wiki class="rhltex"
\\|

#!wiki class="rhltex"
\\lVert 
a
#!wiki class="rhltex"
\\rVert
홑화살괄호 [math({\color{red} \langle} a {\color{red} \rangle})]
#!wiki class="rhltex"
\\braket{ 
a
#!wiki class="rhltex"
\
}
#!wiki class="rhltex"
\\Braket{ 
a
#!wiki class="rhltex"
\
}[* 일시 적용 문법이기 때문에 내용이 한 글자라면 중괄호가 필요 없습니다.
#!wiki class="rhltex"
\\Braket
#!wiki class="rhltex"
\\braket
의 차이는 괄호의 사이즈입니다. 전자는 감싸는 내용의 사이즈에 맞춰서 가변적으로 변하는 반면, 후자는 문법을 쓰지 않은 기본 크기로만 출력됩니다.]
#!wiki class="rhltex"
\\langle 
a
#!wiki class="rhltex"
\\rangle

#!wiki class="rhltex"
\\lang 
a
#!wiki class="rhltex"
\\rang

#!wiki class="rhltex"
\\left< 
a
#!wiki class="rhltex"
\\right>
[27]
디랙 표기법 전용 홑화살괄호 [math({\color{red} \langle} a {\color{red} |})]
#!wiki class="rhltex"
\\bra{ 
a
#!wiki class="rhltex"
\
}
[math({\color{red} |} a {\color{red} \rangle})]
#!wiki class="rhltex"
\\ket{ 
a
#!wiki class="rhltex"
\
}
물결 괄호 [math({\color{red} \lmoustache} a {\color{red} \rmoustache})]
#!wiki class="rhltex"
\\lmoustache 
a
#!wiki class="rhltex"
\\rmoustache
[math({\color{red} \rmoustache} a {\color{red} \lmoustache})]
#!wiki class="rhltex"
\\rmoustache 
a
#!wiki class="rhltex"
\\lmoustache
홑낫표 [math({\color{red} \ulcorner} a {\color{red} \lrcorner})]
#!wiki class="rhltex"
\\ulcorner 
a
#!wiki class="rhltex"
\\lrcorner
[math({\color{red} \llcorner} a {\color{red} \urcorner})]
#!wiki class="rhltex"
\\llcorner 
a
#!wiki class="rhltex"
\\urcorner
슬래시 [math({\color{red} /} a {\color{red} \backslash})]
#!wiki class="rhltex"
/ 
a
#!wiki class="rhltex"
\\backslash
화살표 [math({\color{red} \uparrow} a {\color{red} \Updownarrow})]
#!wiki class="rhltex"
\\uparrow 
a
#!wiki class="rhltex"
\\Updownarrow
괄호 삭제
(괄호 문법 전용)
[math(\left. a \right.)]
#!wiki class="rhltex"
\\left. 
a
#!wiki class="rhltex"
\\right.
[28]

겹화살괄호는 지원하지 않으나 홑화살괄호, 공백 문법을 이용해서 다음과 같은 대체 표현을 쓸 수 있습니다. 이때 외부에 가변형을 사용할 경우 내부 홑화살괄호는 가변형의 사용 유무에 관계 없이 전체를 중괄호로 감싸야 합니다. 감싸지 않을 경우 외부 가변형 괄호의 짝이 맞지 않은 것으로 인식되어 에러가 납니다.
<tableclass=mtbl> 종류 출력 문법
겹화살괄호 [math({\color{red} \lang \!} {\color{blue} \lang} a {\color{blue} \rang} {\color{red} \! \rang})]
#!wiki class="rhltex"
\\lang 
#!wiki class="ghltex"
\\! 
#!wiki class="bhltex"
\\lang 
a
#!wiki class="bhltex"
\\rang 
#!wiki class="ghltex"
\\! 
#!wiki class="rhltex"
\\rang
[math({\color{red} \biggl< \! \! \!} {\color{blue} \biggl<} \dfrac12 {\color{blue} \biggr>} {\color{red} \! \! \! \biggr>})]
#!wiki class="rhltex"
\\left< 
#!wiki class="ghltex"
\\!\\!\\! 
#!wiki class="bhltex"
\\left< 
\dfrac12
#!wiki class="bhltex"
\\right> 
#!wiki class="ghltex"
\\!\\!\\! 
#!wiki class="rhltex"
\\right>

가변형 괄호 문법 \left\right 사이에 \middle을 사용하여 괄호 크기를 맞출 수 있습니다.
<tableclass=mtbl> 문법 출력
#!wiki class="tex"
\\left\\{ \\dfrac1n | n \\in \\N \\right\\\
}
[math(\left\{ \dfrac1n | n \in \N \right\})]
\left\{ \dfrac1n
#!wiki class="rhltex"
\\middle| 
#!wiki class="tex"
n \\in \\N \\right\\\
}
[math(\left\{ \dfrac1n \textcolor{red}{\middle|} n \in \N \right\})]

위의 예시와 같이 집합의 조건 제시법 등 중괄호 및 수직 파이프 기호를 함께 사용하는 경우, KaTeX에 내장된 집합 매크로 \Set, \set을 사용하면 유용합니다.
<tableclass=mtbl> 문법 출력
#!wiki class="tex"
\\Set{ \\dfrac1n | n \\in \\N \
}
[math(\Set{ \dfrac1n | n \in \N })]

12. 대형 연산자 출력 관련

분수, 조합, 적분, 합의 기호 등 대형 연산자의 크기를 조절하는 문법과, 적분, 극한, 합의 기호 등 첨자를 수반하는 연산자의 첨자 위치에 관한 문법이 있습니다.

12.1. 크기 조절 문법

일괄 적용 문법입니다. 다음 4종류의 출력이 있습니다.
<tableclass=mtbl> 문법 출력 크기
#!wiki class="rhltex"
\\displaystyle
\frac12
[math(\displaystyle \frac12)] 대형
#!wiki class="rhltex"
\\textstyle
\frac12
[math(\textstyle \frac12)] 소형 텍스트
#!wiki class="rhltex"
\\scriptstyle
\frac12
[math(\scriptstyle \frac12)] 첨자
#!wiki class="rhltex"
\\scriptscriptstyle
\frac12
[math(\scriptscriptstyle \frac12)] 첨자 내 첨자

인라인 수식 모드에서 각 대형 연산자의 디폴트 크기는 텍스트 크기입니다. \displaystyle을 씀으로써, 분수나 대형 연산자를 대형 표기로 강제 적용합니다. 기타 지수나 첨자 표기 등은 이 문법의 유무에 관계없이 출력이 똑같기 때문에 굳이 \displaystyle을 일일이 써주지 않아도 되며, 대형 표기 분수의 분자·분모에 대형 연산자를 쓰고 싶은 경우 해당 문법을 한 번 더 써줘야 합니다.
<tableclass=mtbl> 문법 출력
#!wiki class="rhltex"
\\displaystyle 
#!wiki class="tex"
\\frac{\\sum_{k = 0}^n k}{n + 1}}
[math(\displaystyle \frac{\sum_{k = 0}^n k}{n + 1})]
#!wiki class="rhltex"
\\displaystyle 
#!wiki class="tex"
\\frac{
#!wiki class="rhltex"
\\displaystyle 
#!wiki class="tex"
\\sum_{k = 0}^n k}{n + 1}}
[math(\displaystyle \frac{\displaystyle \color{red} \sum_{k = 0}^n k}{n + 1})]

극한의 경우 같은 수식 문법 내에 적분, 합의 기호 등 다른 대형 연산자가 없다면 \displaystyle을 쓰는 것보다 아래의 첨자 위치 문법을 조합해서 \limits를쓰는 것이 경제적입니다.\\limits}}}_{n\to\infty}a_n
각종 첨자 문법 안에서도 크기 조절 문법이 정상작동합니다.\\displaystyle}}} x}​\\displaystyle}}} a}^{
#!wiki class="rhltex"
\\scriptscriptstyle
b} f(x){\rm\,d}x
참고로 \begin{}내용\end{}​ 단위로 쓰이는 각종 행렬, 연립 표기는 디폴트가 대형 크기이며 아래 예에서 알 수 있듯이 \textstyle 문법이 적용되지 않습니다.\scriptstyle\scriptscriptstyle에 의한 크기 변화는 있으나 한계가 있고, 이보다 더 작게 출력하려면 수식 크기 문법을 이용해야 합니다.분수, 조합 기호에 한해서 \displaystyle\frac, \displaystyle\binom을 각각 \dfrac, \dbinom으로 간단하게 나타낼 수 있습니다. 이 경우 다른 일괄 크기 조절 문법이 선행됐다 하더라도 해당 문법은 대형 표기로 출력됩니다.단, 나무위키의 KaTeX 출력 환경 한계로, aligned를 이용한 \begin ~ \end 문법 외의 환경에서[29] \dfrac을 2행에 걸쳐 반복해서 사용할 경우, 분수의 행간 간격이 좁아 문자가 살짝 겹쳐서 출력되는 문제점이 있습니다. 이런 경우 후술할 연분수 문법 \cfrac으로 해결할 수 있습니다.연분수를 나타내고자 할 때에는 \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> 설명 출력 문법
비극한식 표기
#!latex
\int_a^b f(x) \, \mathrm dx
\int_a^b f(x) \, \mathrm dx
극한식 표기
#!latex
\int\limits_a^b f(x) \, \mathrm dx
\int
#!wiki class="rhltex"
\\limits
_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
#!wiki class="rhltex"
\\limits
_{n=1}^\infty a_n}​
[math(e^{\sum\limits_{n=1}^\infty a_n})]
e^{\sum_{n=1}​
#!wiki class="rhltex"
\\limits
^\infty a_n}​
[math(e^{\sum_{n=1}\limits^\infty a_n})]
e^{\sum_{n=1}^\infty
#!wiki class="rhltex"
\\limits
a_n}​
[math(e^{\sum_{n=1}^\infty\limits a_n})]

\limits 문법은 해당 연산자에 한하여 첨자의 위치에만 영향을 주기 때문에 앞선 \displaystyle의 영향을 받으나, 적분을 제외한 연산자에서는 병용해도 의미가 없습니다. 이유인 즉, \displaystyle과 조합할 경우 원래대로의 극한식 표기가 적용될 뿐이기 때문에 출력에는 전혀 차이가 없으며, 소형 표기를 전제로 하는 특성상 다른 일괄 크기 조절 문법을 굳이 필요로 하지 않기 때문입니다.

마찬가지로 대형 표기를 유지하되 대형 연산자의 첨자 위치를 비극한식 표기로 나타내고 싶을 때에는 해당 연산자 문법에 \nolimits를 덧붙입니다. 비극한식 표기 문법은 적분을 제외한 대형 연산자에서 \displaystyle과 병용했을 때에만 의미가 있습니다. 대한민국에서는 대형 연산자의 대형 표기에서 이 방식이 주류가 아니기 때문에 권장되지는 않습니다.
<tableclass=mtbl> 문법 출력
\sum
#!wiki class="rhltex"
\\nolimits
_{k = 1}^n a_k
#!latex
\sum\nolimits_{\color{red} k = 1}^{\color{red} 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)]

화학의 평형 반응 등에서 쓰이는, 위아래의 길이가 다른 좌우 작살표는 기본 수식 모드에서는 지원하지 않습니다. 아래와 같이 화살표 위아래에 텍스트를 입력하는 문법을 써서 어느 한쪽 작살표 아래에 반대 방향 작살표를 쓰는 방식으로 대체할 수는 있으나, 화학식 모드에서는 완벽하게 지원되므로 화학식을 작성한다면 아래 방식 대신 전용 화학식 화살표 문법 사용을 적극 권장합니다.
파일:상세 내용 아이콘.svg   자세한 내용은 문서
#!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

일부 함수는 로마자가 아닌 블랙 레터 혹은 필기체로 표현됩니다.
아래에 제시된 함수는 이 기능을 지원하지 않아 다음 두가지 방법으로 입력해야 합니다.
  1. 최소공배수: lcm[39]
  2. 역삼각함수: arccot, arcsec, arccsc
  3. 쌍곡선 함수: sech, csch
    • [math(\operatorname{csch}x \Leftarrow)] \operatorname{csch}x
  4. 모든 역쌍곡선 함수[40]: arsinh, arcosh, artanh, arcoth, arsech, arcsch
  5. 로그이진로그복소로그함수: lb, Log[41]
  6. 상당수의 특수함수: sgn, Ei, li, Si, Ci, Shi, Chi, erf
  7. 선형대수학의 연산자: rank, tr, null[42]
    • [math(\operatorname{tr}A \Leftarrow)] \operatorname{tr}A
  8. 위상수학의 연산자: 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이 필요합니다.
가독성을 위해, 가급적이면 문법은 화학종 단위로 띄어 쓸 것을 권장합니다. 특히 -+는 공백의 삽입 여부에 따라 후술할 첨자 표기로도 인식되기 때문에 주의가 필요합니다.
화학식 모드에서는 디폴트가 로만체이며, 원소 기호 뒤에 붙는 숫자는 기본적으로 아래 첨자로 출력되기 때문에 수식 모드의 아래 첨자 문법 _{}​, 특히 중괄호를 쓰지 않아도 됩니다.[48] 이와 비슷하게 위 첨자에는 일반적으로 숫자와 기호만이 쓰이는 화학식 특성상, 다른 문자나 기호가 나올 때까지 위 첨자 표기로 일괄 적용한다는 특징이 있어 내용을 중괄호로 감싸지 않아도 됩니다.특히 아래 예시에서 알 수 있듯이 이온의 가수를 의미하는 [math(-)], [math(+)]는 원소 기호 바로 다음에 붙여 씀으로써 간단하게(즉, ^ 필요 없이) 나타낼 수 있습니다.단, - 뒤에 공백 없이 다른 문자나 기호가 오면 후술할 단일결합으로 인식하기 때문에 이온의 가수로 나타내려면 공백이 필요합니다.라디칼^.으로 나타냅니다. [math(\ce{^.-})]와 같은 라디칼 이온 역시 ^.-로 중괄호 없이 입력해서 출력할 수 있습니다.
원자 번호 및 핵자수는 원소 기호보다 앞에 오므로, 이 경우 위 첨자 및 아래 첨자 문법이 필요합니다.단, 다원자 분자의 동위원소를 나타내는 경우, 가독성을 위해 중괄호를 적절히 삽입하는 것을 권장합니다.
슬래시(/)를 이용해서 분수 표기를 쓸 경우, 자동으로 분수 표기로 출력됩니다. 이때, 분수는 텍스트 스타일로 출력되므로 대형 분수로 출력하고 싶다면 크기 조절 문법\displaystyle\frac[50] 혹은 \dfrac을 이용해야 합니다. 분수 표기를 원하지 않는다면 해당 분수를 소괄호로 감싸야 합니다.
고체 앙금의 침전([math(\ce{v})])은 v로 기체의 상승([math(\ce{^})])은 ^로 나타낼 수 있으며 앞 화학종과는 띄어 써야 합니다.

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...에서는 화살표 위의 내용을 중괄호({})로 감싸고 아래의 내용을 대괄호([])로 감싸서 구분하지만, 화학식 모드에서는 대괄호만 사용하며 위치는 대괄호의 순서로 구분합니다. 화살표 문법 다음에 대괄호를 두 번까지 쓸 수 있으며 첫 번째 대괄호의 내용이 상단에, 두 번째 대괄호의 내용이 하단에 출력됩니다.설명을 로만체가 아닌 수식 모드의 기본 폰트로 출력하고 싶다면 내용을 $로 감싸서 표기합니다.

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 환경에서 다음과 같은 특징을 갖습니다.

17. \\begin, \\end 문법

용도에 따라 고유한 특수한 환경(environment)에 진입해 내용을 작성한 후 해당 환경을 빠져나오는 방식의 문법으로, 보통 행렬, 연립 표기 등 단(段)이 필요한 형태의 수식에서 자주 활용됩니다. 기본적으로 아래와 같은 꼴로 사용합니다.
\begin{종류}
내용
\end{종류}
개행이 꼭 들어가야 하는 것은 아니며,
#!wiki class="tex"
\\begin{종류} 내용 \\end{종류\
}와 같이도 쓸 수 있지만 많은 내용을 작성한다면 위와 같이 여러 줄로 나누어 쓰는 것이 가독성 측면에서 좋습니다.

이 문법은 괄호 문법과는 달리 선언(\begin{종류}​)과 종료(\end{종류}​)에서 종류를 반드시 일치시켜야 합니다. 종류가 다르면 출력 결과에서 에러가 납니다.
<tableclass=mtbl> 문법 출력 비고
\begin{
#!wiki class="rhltex"
pmatrix
#!wiki class="tex"
}
a & b \\\\
c & d \\\\
\\end{
#!wiki class="bhltex"
vmatrix
#!wiki class="tex"
\
}
[math(\begin{pmatrix}
a & b \\
c & d \\
\end{vmatrix})]
\begin의 종류와 \end의 종류가 일치하지 않음.
\begin{
#!wiki class="rhltex"
pmatrix
#!wiki class="tex"
}
a & b \\\\
c & d \\\\
\\end{
#!wiki class="rhltex"
pmatrix
#!wiki class="tex"
\
}
[math(\begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix})]
종류가 pmatrix로 일치함.

다음과 같은 종류를 이용할 수 있습니다.
<tableclass=mtbl> 수식 종류 출력 문법 display mode 전용 여부
행렬 matrix [math(\begin{matrix}
a & b \\
c & d \\
\end{matrix})]
#!wiki class="tex"
\\begin{matrix}
a & b \\\\
c & d \\\\
\\end{matrix\
}
X
pmatrix [math(\begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix})]
#!wiki class="tex"
\\begin{pmatrix}
a & b \\\\
c & d \\\\
\\end{pmatrix\
}
X
bmatrix [math(\begin{bmatrix}
a & b \\
c & d \\
\end{bmatrix})]
#!wiki class="tex"
\\begin{bmatrix}
a & b \\\\
c & d \\\\
\\end{bmatrix\
}
X
Bmatrix [math(\begin{Bmatrix}
a & b \\
c & d \\
\end{Bmatrix})]
#!wiki class="tex"
\\begin{Bmatrix}
a & b \\\\
c & d \\\\
\\end{Bmatrix\
}
X
vmatrix [math(\begin{vmatrix}
a & b \\
c & d \\
\end{vmatrix})]
#!wiki class="tex"
\\begin{vmatrix}
a & b \\\\
c & d \\\\
\\end{vmatrix\
}
X
Vmatrix [math(\begin{Vmatrix}
a & b \\
c & d \\
\end{Vmatrix})]
#!wiki class="tex"
\\begin{Vmatrix}
a & b \\\\
c & d \\\\
\\end{Vmatrix\
}
X
smallmatrix [math(\begin{smallmatrix}
a & b \\
c & d \\
\end{smallmatrix})]
#!wiki class="tex"
\\begin{smallmatrix}
a & b \\\\
c & d \\\\
\\end{smallmatrix\
}
X
연립 표기 cases [math(\begin{cases}
0 & (x \in A) \\
1 & (x \notin A) \\
\end{cases})]
#!wiki class="tex"
\\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})]
#!wiki class="tex"
\\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})]
#!wiki class="tex"
\\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})]
#!wiki class="tex"
\\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})]
#!wiki class="tex"
\\begin{subarray} l
i \\in I \\\\
0 < j < n \\\\
\\end{subarray\
}
X
번호 정렬 문법 equation
#!latex
\begin{equation}
\begin{split}
a & = b + c \\
& = e + f \\
\end{split}
\end{equation}
#!wiki class="tex"
\\begin{equation}
\\begin{split}
a & = b + c \\\\
& = e + f \\\\
\\end{split}
\\end{equation\
}
O
align
#!latex
\begin{align}
a & = b + c \\
d + e & = f \\
\end{align}
#!wiki class="tex"
\\begin{align}
a & = b + c \\\\
d + e & = f \\\\
\\end{align\
}
O
gather
#!latex
\begin{gather}
a = b \\
e = b + c \\
\end{gather}
#!wiki class="tex"
\\begin{gather}
a = b \\\\
e = b + c \\\\
\\end{gather}\
}
O
alignat
#!latex
\begin{alignat} 2
10 & x + & 3 & y = 2 \\
3 & x + & 13 & y = 4 \\
\end{alignat}
#!wiki class="tex"
\\begin{alignat} 2
10 & x + & 3 & y = 2 \\\\
3 & x + & 13 & y = 4 \\\\
\\end{alignat\
}
O
가환 다이어그램 CD
#!latex
\begin{CD}
\bull @>>> \bull \\
@VVV @VVV \\
\bull @>>> \bull \\
\end{CD}
#!wiki class="tex"
\\begin{CD}
\\bull @>>> \\bull \\\\
@VVV @VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD\
}
O

각 종류마다 단 내용의 정렬 방식에 차이가 있습니다. 행렬 계열은 가운데 정렬이고, 연립 표기는 왼쪽 정렬로 출력되며, 정렬 방식을 임의로 수정할 수 없습니다. 정렬 방식을 수동으로 지정하려면 aligned 혹은 array를 씁니다.
<tableclass=mtbl> 문법 출력
#!wiki class="tex"
\\begin{pmatrix}
a & b + 1 \\\\
c + 1 & d \\\\
\\end{pmatrix\
}
[math(\begin{pmatrix}
a & b + 1 \\
c + 1 & d \\
\end{pmatrix})]
#!wiki class="tex"
\\begin{cases}
a & b + 1 \\\\
c + 1 & d \\\\
\\end{cases\
}
[math(\begin{cases}
a & b + 1 \\
c + 1 & d \\
\end{cases})]

aligned에서는 한 행에 들어간 &의 개수에 따라 왼쪽 정렬과 오른쪽 정렬이 적용됩니다. 홀수 번째 &는 그 다음 & 전까지의 내용을 왼쪽으로 정렬하고, 짝수 번째 &는 그 다음 & 전까지의 내용을 오른쪽으로 정렬합니다. 이 기능을 잘 이용하면 특정 문자를 기준으로 여러 개의 수식을 정렬할 수 있습니다.여러 행 중 왼쪽 정렬, 오른쪽 정렬 내용이 가장 긴 것들 사이에 [math(10\rm\,pt)] 기준으로 반각 공백  의 [math(\dfrac{40}9)]배만큼의 공백이 삽입되기 때문에 정렬된 단의 폭은 하나의 aligned 정렬에 쓰인 내용에 따라 다릅니다. 아래 예시에서 alinged 문법 이후에 수동으로 공백을 맞춘 수식을 비교하십시오. 각 예시에서 빨간 글씨 ~ 파란 글씨가 단의 폭입니다.
<tableclass=mtbl> 문법 출력
#!wiki class="tex"
\\begin{aligned}
& 1 & 6 
#!wiki class="rhltex"
& 78 
& 0 \\
#!wiki class="rhltex"
& 123 
& 6 & 7
#!wiki class="bhltex"
& 90 
\\
& 1
#!wiki class="bhltex"
& 456 
#!wiki class="rhltex"
& 78 
#!wiki class="bhltex"
& 90 
\\
\end{aligned}

#!wiki class="rhltex"
123 
#!wiki class="ghltex"
\\;\\;\\;\\; 
#!wiki class="bhltex"
456
#!wiki class="rhltex"
78 
#!wiki class="ghltex"
\\;\\;\\;\\; 
#!wiki class="bhltex"
90
#!latex
\begin{matrix}
\begin{aligned}
& 1 & 6 & {\color{red} 78} & 0 \\
& {\color{red} 123} & 6 & 7 & {\color{blue} 90} \\
& 1 & {\color{blue} 456} & {\color{red} 78} & {\color{blue} 90} \\
\end{aligned} \\
\hline
{\color{red} 123} \;\;\;\; {\color{blue} 456} {\color{red} 78} \;\;\;\; {\color{blue} 90} \\
\end{matrix}
\begin{aligned}
#!wiki class="rhltex"
x^2 + 4 
#!wiki class="rhltex"
& x + 5y 
#!wiki class="bhltex"
& = 1 
\\
#!wiki class="rhltex"
& x 
#!wiki class="bhltex"
& = 2y + 7 
\\
\end{aligned}

x^2 + 4
#!wiki class="rhltex"
x + 5y 
#!wiki class="ghltex"
\\;\\;\\;\\; 
#!wiki class="bhltex"
= 2y + 7
#!latex
\begin{matrix}
\begin{aligned}
x^2 + 4 & {\color{red} x + 5y} & {\color{blue} \mathrel= 1} \\
& {\color{red} x} & {\color{blue} \mathrel= 2y + 7} \\
\end{aligned} \\
\hline
x^2 + 4 {\color{red} x + 5y} \;\;\;\; {\color{blue} \mathrel= 2y + 7} \\
\end{matrix}

17.1. 행렬 문법

행렬 표기에서 서로 다른 괄호를 조합하고 싶을 경우 '종류'를 괄호 없는 행렬 matrix로 통일시키고 괄호 문법으로 직접 입력합니다.단을 만드는 데에는 &를 이용하며 & 하나 당 단 경계선 하나가 만들어지므로, 한 행에는 (만들고자 하는 단의 개수[math(-1)]개) 만큼의 &를 입력하면 됩니다.이 때 한 '종류'의 문법 내에서는 물론, 개행 문법과 복수 '종류'의 \begin, \end 문법을 사용해도 단 경계선 위치는 왼쪽부터 차례대로 정렬되므로 행간에 다르게 적용하려면 하나의 \begin, \end 문법 안에 복수의 \begin, \end 문법을 감싸는 식으로 사용해야 합니다(아래 참조).

17.2. 배열 문법

array 정렬에서는 디폴트가 가운데 정렬이지만 각 단마다 정렬 방식을 지정할 수 있습니다. array 정렬 선언 후 l(왼쪽 정렬), c(가운데 정렬), r(오른쪽 정렬)을 이용하여 왼쪽부터 차례대로 쓴 뒤 중괄호로 묶어서 나타냅니다.

꼭 단의 개수만큼 쓸 필요는 없으며 생략한 경우 해당 단은 디폴트 상태가 되지만, 정렬 지정 문법이 아예 없으면 출력에 에러가 납니다. 또한 단을 건너뛰어서 적용할 수 없으므로, 건너뛰고자 하는 단은 디폴트 정렬인 c로 지정해야 합니다. 아래 예에서는 전체 [math(5)]개의 단 중 제[math(1)]단을 건너뛰고(c) 제[math(2)]단(l), 제[math(3)]단(r)만 정렬을 지정했습니다.

정렬 지정 문법 둘레와 사이사이에 바(|)를 입력하면, 바의 수만큼 단 경계에 세로줄이 만들어집니다. 또한 \hline을 입력하면 가로줄이 형성되므로 이를 응용하면 표를 만들 수 있습니다.
<tableclass=mtbl> 출력 입력
[math(\begin{array}{|cc|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. 가환 다이어그램

기본적으로 KaTeXamscd 호환 가환 다이어그램 문법을 지원합니다.
<tableclass=mtbl> 문법 출력
#!wiki class="tex"
\\begin{CD}
\\bull @>>> \\bull \\\\
@VVV @VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @>>> \bull \\
@VVV @VVV \\
\bull @>>> \bull \\
\end{CD}

기본적으로 \begin, \end를 통해 진입하며, 환경 이름은 CD입니다. 기본적으로 각 다이어그램은 정점들을 적절한 변(edge)들로 이어 그려집니다. 모든 변 문법은 @으로 시작하며, 지원되는 변 종류는 다음과 같습니다. 화살표 유형의 경우, 기호의 앞과 뒤에 수식을 넣어 화살표의 위/아래에 첨자 텍스트를 표시할 수 있습니다.
<tableclass=mtbl> 문법 출력 설명 첨자 문법 출력
#!wiki class="tex"
@>>>
#!latex
\begin{CD}
@>>>
\end{CD}
오른쪽 화살표
#!wiki class="tex"
@> a > b >
#!latex
\begin{CD}
@> a > b >
\end{CD}
#!wiki class="tex"
@<<<
#!latex
\begin{CD}
@<<<
\end{CD}
왼쪽 화살표
#!wiki class="tex"
@< a < b <
#!latex
\begin{CD}
@< a < b <
\end{CD}
#!wiki class="tex"
@AAA
#!latex
\begin{CD}
@AAA
\end{CD}
위쪽 화살표
#!wiki class="tex"
@A a A b A
#!latex
\begin{CD}
@A a A b A
\end{CD}
#!wiki class="tex"
@VVV
#!latex
\begin{CD}
@VVV
\end{CD}
아래쪽 화살표
#!wiki class="tex"
@V a V b V
#!latex
\begin{CD}
@V a V b V
\end{CD}
#!wiki class="tex"
@=
#!latex
\begin{CD}
@=
\end{CD}
수평 등호
#!wiki class="tex"
@|
#!latex
\begin{CD}
@|
\end{CD}
수직 등호
#!wiki class="tex"
@.
#!latex
\begin{CD}
@.
\end{CD}
빈 변 (공간 채움용)

빈 변의 경우, 기본적으로 새 정점이나 변을 띄우기 위해 변을 입력해야 하는 시점이나 실제 다이어그램에 변이 그려져서는 안 될 때 사용합니다.
<tableclass=mtbl> 문법 출력 설명
#!wiki class="tex"
\\begin{CD}
\\bull \\bull \\\\
@VVV @VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull \bull \\
@VVV @VVV \\
\bull @>>> \bull \\
\end{CD}
정점과 정점 사이 변을 넣어 구분하지 않으면 두 기호가 전부 하나의 정점에 속하는 것으로 인식됩니다.
#!wiki class="tex"
\\begin{CD}
\\bull 
#!wiki class="rhltex"
@. 
#!wiki class="tex"
\\bull \\\\
@VVV @VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @. \bull \\
@VVV @VVV \\
\bull @>>> \bull \\
\end{CD}
두 기호를 별개의 정점으로 띄우기 위해 빈 변을 사용했습니다.
#!wiki class="tex"
\\begin{CD}
\\bull @>>> \\bull \\\\
@VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @>>> \bull \\
@VVV \\
\bull @>>> \bull \\
\end{CD}
왼쪽 변을 비우고 화살표를 오른쪽에 두고 싶으나, @VVV를 한번만 사용하였기에 첫 번째로 등장한 아래쪽 화살표가 왼쪽 정점들 간 화살표로 인식됩니다.
#!wiki class="tex"
\\begin{CD}
\\bull @>>> \\bull \\\\

#!wiki class="rhltex"
@. 
#!wiki class="tex"
@VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @>>> \bull \\
@. @VVV \\
\bull @>>> \bull \\
\end{CD}
왼쪽 변을 건너띄고 화살표를 오른쪽에 그리기 위해 빈 변을 사용했습니다.

반드시 정사각형 형태의 다이어그램 뿐 아니라 다수의 정점과 변들을 이어붙혀 얼마든지 긴 다이어그램을 만들 수 있습니다. 기본적으로 각 행 내의 수평 정점들은 변들이 사이사이에 들어가 구분되며, 각 열 내의 수직 정점들은 정점 행과 변 행이 번갈아 나타나며 구분됩니다. 이중 각 행, 열간 정점수의 최댓값이 전체 다이어그램의 크기를 결정합니다.

아래는 호몰로지 대수학 등에서 자주 볼 수 있는 대형 다이어그램의 예시입니다.
<tableclass=mtbl> 문법
#!wiki class="tex"
\\begin{CD}
0 @>>> \\ker f @>>> \\ker g @>>> \\ker h @>>> \\operatorname{coker} f \\\\
@. @VVV @VVV @VVV \\\\
0 @>>> \\bullet @>>> \\bullet @>>> \\bullet @>>> 0 \\\\
@. @VfVV @VgVV @VhVV \\\\
0 @>>> \\bullet @>>> \\bullet @>>> \\bullet @>>> 0 \\\\
@. @VVV @VVV @VVV \\\\
\\ker h @>>> \\operatorname{coker} f @>>> \\operatorname{coker} g @>>> \\operatorname{coker} h @>>> 0 \\\\
\\end{CD}
출력
#!latex
\begin{CD}
0 @>>> \ker f @>>> \ker g @>>> \ker h @>>> \operatorname{coker} f \\
@. @VVV @VVV @VVV \\
0 @>>> \bullet @>>> \bullet @>>> \bullet @>>> 0 \\
@. @VfVV @VgVV @VhVV \\
0 @>>> \bullet @>>> \bullet @>>> \bullet @>>> 0 \\
@. @VVV @VVV @VVV \\
\ker h @>>> \operatorname{coker} f @>>> \operatorname{coker} g @>>> \operatorname{coker} h @>>> 0 \\
\end{CD}

전체 다이어그램의 크기가 결정되면, 각 행과 열 간 간격이 정렬되면서 격자 형태가 됩니다. 이 때 행 및 열 간 간격은 이들 사이의 변들 중 최대 길이의 변을 기준으로 하는데, 이 때 특정 변이 길어진다고 다른 변이 자동으로 이에 맞추어 늘어나지 않는 문제가 있습니다. 이 경우, \phantom 공백 매크로를 사용하여 다른 변에도 레이블과 같은 크기의 공백을 삽입하는 해결책이 있습니다.
<tableclass=mtbl> 문법 출력 설명
#!wiki class="tex"
\\begin{CD}
\\bull @> \\text{abstract nonsense} >> \\bull \\\\
@VVV @VVV \\\\
\\bull @>>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @> \text{abstract nonsense} >> \bull \\
@VVV @VVV \\
\bull @>>> \bull \\
\end{CD}
아래쪽 화살표의 길이가 위쪽 화살표의 길이와 맞지 않는 문제 발생
#!wiki class="tex"
\\begin{CD}
\\bull @> \\text{abstract nonsense} >> \\bull \\\\
@VVV @VVV \\\\
\\bull @> 
#!wiki class="rhltex"
\\phantom{ \\text{abstract nonsense} } 
#!wiki class="tex"
\>> \\bull \\\\
\\end{CD}
#!latex
\begin{CD}
\bull @> \text{abstract nonsense} >> \bull \\
@VVV @VVV \\
\bull @> \phantom{ \text{abstract nonsense} } >> \bull \\
\end{CD}
\phantom을 사용한 공백 삽입

18. 입력 팁

좌우로 폭이 긴 수식을 그냥 작성하면 스마트폰처럼 좌우 폭이 좁은 디스플레이에서 뒤쪽 수식이 잘리는 경우가 있습니다. 특히 \\begin ~ \\end의 정렬 문법을 사용했을 때에는 나무위키의 출력 방식(강제 개행)보다 수식의 출력 방식이 우선시되기 때문에 정렬 영역 내에서 개행을 따로 하지 않는 이상 긴 수식들은 잘린 채로 출력됩니다. 이를 막기 위해 웬만한 수식은 기본적으로 아래와 같이 테두리와 배경이 투명한 표 문법 안에 작성해주시기 바랍니다.[59][60]
투명표 문법
{{{
#!latex
수식
}}}
인라인 모드 투명표 문법
{{{ [math(수식)] }}}
아래 예시를 비교해보십시오.\begin{aligned} \sum_{k=1}^n k^c &= \sum_{k=0}^c \frac{(-1)^k}{c+1} \binom{c+1}k B_k n^{c+1-k} \\
&= \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}
}}}\begin{aligned} \sum_{k=1}^n k^c &= \sum_{k=0}^c \frac{(-1)^k}{c+1} \binom{c+1}k B_k n^{c+1-k} \\
&= \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가 쓰였습니다.
전역 스타일 지정을 활용한 간략 투명표 문법
{{{​
#!style
.클래스 이름 {
border: 2px solid #0000; margin: auto; background: #0000 !important}

(문서 내용1)
<tableclass=클래스 이름>
#!latex
수식1
(문서 내용2)
<tableclass=클래스 이름>
#!latex
수식2
(문서 내용3)
<tableclass=클래스 이름>
#!latex
수식3
(후략)
}}} ||
전역 스타일 지정을 활용한 간략 인라인 모드 투명표 문법
{{{​
#!style
.클래스 이름 {
border: 2px solid #0000; margin: auto; background: #0000 !important}

(문서 내용1)
<tableclass=클래스 이름> [math(수식1)]
(문서 내용2)
<tableclass=클래스 이름> [math(수식2)]
(문서 내용3)
<tableclass=클래스 이름> [math(수식3)]
(후략)
}}} ||
두 가지 전역 스타일을 지정할 경우 아래와 같이 작성하면 됩니다. 아래의 예시에서 '클래스 이름1'은 '표 가운데 정렬', '투명 테두리', '투명 배경'을 지정하는 문법이고, 클래스 이름2는 '투명 테두리', '투명 배경'만 지정하는 문법입니다.
전역 스타일 지정을 활용한 간략 인라인 모드 투명표 문법
{{{​
#!style
.클래스 이름1 {
border: 2px solid #0000; margin: auto; background: #0000 !important}
.클래스 이름2 {border: 2px solid #0000; background: #0000 !important}

(문서 내용1)
<tableclass=클래스 이름1> [math(수식1)]
(문서 내용2)
<tableclass=클래스 이름2> [math(수식2)]
(문서 내용3)
(후략)
}}} ||

수식 모드에서 반점([math(,)])과 세미콜론([math(;)])은 구두점 속성에 포함되므로, 해당 기호로 수식이 끝나지 않는다면 이후에 자동으로 최소 공백이 삽입됩니다.'''(디폴트 폰트 크기의 [math(10\rm\,pt)] 기준. 텍스트 모드는 해당되지 않습니다.) 아래 예시를 비교해 보십시오.공백 문법에서도 전술한 바와 같이, 최소 공백은 반각 공백 폭의 [math(\dfrac23)]이기 때문에, 텍스트 모드와 등가로 출력하려면 [math(\dfrac13)]짜리 공백 문법(\!~, \!\ , \!\text{ }​ 등등)을 써야 하지만, 최소 공백만으로 크게 어색하지 않게 렌더링되며 경제적이므로 수식 도중에 반점, 세미콜론을 쓰고 공백을 띄우는 표기를 할 때에는 최소 공백만큼 띄우는 것을 권장합니다.
괄호 문법을 씀과 동시에 괄호에만 색을 입히고 싶다면, 가변형 문법이 아닌 다른 괄호 문법 사용을 권장합니다. 가변형 괄호는 반드시 \left, \right 짝이 세트로 쓰여야 하며 문법을 구분짓는 중괄호가 삽입될 경우 세트가 불완전한 것으로 인식되어 에러가 나기 때문입니다. 괄호 삭제 문법과 공백 문법을 이용해서 간격을 조정할 수 있으나 매우 번거로운 작업이며 공백의 크기 역시 괄호의 크기에 따라 변하기 때문에 일괄적으로 간단하게 적용하기도 어렵습니다.
적분을 쓸 때, [math({\rm d}x)], [math({\rm d}y)] 등 무한소(엄밀히 말하면 미분형식)의 좌우는 최소 공백 만큼(\,) 띄워야 합니다. 그러나 무한소 전후로 가변형 괄호 문법을 쓴 괄호가 올 경우 자동으로 최소 공백이 적용되므로 넣지 않아도 됩니다. (아래 3,4번째 예시를 비교해보십시오)
변수 부분이 길 경우 혼란 방지를 위해 다음과 같이 괄호를 둘러 어디까지가 변수인지를 명확히 밝혀주시기 바랍니다.
도형명, 선분, 꼭짓점 등의 표기는 로만 폰트로 나타내는 것을 권장합니다.
<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(\dfrac ab = a/b)]로 [math(b)]가 분모이고 [math(a)]가 분자입니다. 다만, 이 경우엔 괄호를 잘 활용하여, 분모 분자를 잘 밝혀 적어야 한다는 것에 유의합니다.

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_k

e^{\sum\limits_{k=1}^n a_k}​

\displaystyle \prod_{k=1}^n a_k

e^{\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. 미지원 문제 및 해결법

크게 다섯 가지로 나눌 수 있습니다.
  1. 구버전 KaTeX에서 지원되었으나 최신 버전에서 지원이 종료된 경우. - migration guide를 참고하여 직접 수정하면 됩니다.
  2. MathJax 등 popular한 웹 렌더러에서는 지원이 되나, KaTeX에서만 구현이 안 된 경우. - KaTeX 공식 레포에서 enhancementfeature request 태그가 달린 issue를 찾아 보면 적절한 힌트나 workaround를 얻을 가능성이 있습니다.
  3. 특수한 문자에 대응하는 매크로가 부재하는 경우. - 많은 기기에서 지원되는 적절한 유니코드가 이미 존재한다면 \text\char 매크로를 사용해서 해당 유니코드를 직접 삽입하는 해결책이 있습니다. 후술할 위키피디아의 고전 그리스 문자 커스텀 매크로셋 등등이 이런 식으로 대체 가능합니다. 가령 [math(\char"29B6)] U+29B6는 \char"29B6와 같이 삽입 가능합니다.
  4. 일반적인 LaTeX package로 제공되는 문법이나, KaTeX 등 웹 렌더러에서 구현되지 않았고 앞으로도 구현될 확률이 낮은 경우. - 단적으로 TikZ같은 걸 말합니다. 이런 패키지나 매우 특수한 문법 같은 경우 TeX Live 등 로컬 LaTeX 환경에서 직접 컴파일한 후 standalone export를 하여 SVG 이미지를 구하는 방법이 있습니다.#
  5. LaTeX으로도 보통 불가능하거나 원본이 매우 특수한 이미지인 경우. - 가령 TikZ 소스를 찾을 수 없는 기하학적 이미지나 수학능력시험 해설 같은 경우입니다. 이런 경우 수식으로 바꾸는 장점이 미미한 경우이기에 이미지를 사용하는 것이 최선입니다.

다음은 구체적인 미지원 케이스 및 사용 가능한 해결 방법들(존재한다면)입니다.

21. 외부 도구


[1] 원래는 TeX에서 수식 커맨드의 양끝을 $로 감싸서 텍스트 모드와 수식 모드를 구분짓는 데에 쓰이나 나무위키에서는 별도의 커맨드가 존재하므로 기능하지 않게 되었습니다.[2] \로 공백을 출력하기 위해서는 \ 이후에 반각 공백  을 넣어야 합니다.[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}_{92}U)]와는 렌더링이 약간 다르며, 특히 첨자 정렬의 디폴트가 왼쪽 정렬이기 때문에 공백 문법 {{{}}}을 동원해야 하는 등의 불편함이 있습니다.[50] 슬래시로 나타낸 분수에는 \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=|이전 역사]])}}}}}}}}}}}}}}}}}}}}}