r9
| 1 | [[분류:나무위키의 도움말]] |
|---|
| 2 | [include(틀:상위 문서, top1=나무위키:문법 도움말/심화)] |
|---|
| 3 | [include(틀:나무위키)] |
|---|
| 4 | [include(틀:나무위키 도움말)] |
|---|
r1
| 5 | [목차] |
|---|
| 6 | == 개요 == |
|---|
| 7 | [[TeX]]을 이용한 [[수식]] 입력을 지원합니다. [[https://www.codecogs.com/latex/eqneditor.php|이곳]]에서 연습이 가능합니다. 이 문법 가이드에 없는 수식 입력 방법은 [[https://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:TeX_%EB%AC%B8%EB%B2%95|이곳]]을 참조하십시오. |
|---|
| 8 | ※'''[주의]''' [[모니위키]]에서 사용했던 {{{$ TeX $}}} 형태는 지원하지 않습니다. |
|---|
| 9 | ※'''[주의2]''' {{{<math>...</math>}}}가 [[레거시]] 문법으로 남아 있으나 문법 내에서 다음과 같이 줄바꿈을 사용하는 경우 출력에 오류가 나며 후술할 경제적인 방향으로의 수식 작성을 위하여 사용을 권장하지 않습니다. 단, 토론이나 각주 내에서는 {{{[math(...)]}}}는 정상작동하지 않으므로 {{{<math>...</math>}}} 문법을 사용해야 합니다. |
|---|
| 10 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''입력''' || '''출력''' || |
|---|
| 11 | ||{{{[math(}}}[br]{{{\begin{matrix}}}}[br]{{{a & b \\}}}[br]{{{c & d}}}[br]{{{\end{matrix}}}}[br]{{{)]}}} || [math(\begin{matrix} a & b \\ c & d\end{matrix})] || |
|---|
| 12 | ||{{{<math>}}}[br]{{{\begin{matrix}}}}[br]{{{a & b \\}}}[br]{{{c & d}}}[br]{{{\end{matrix}}}}[br]{{{</math>}}} ||<math> |
|---|
| 13 | \begin{matrix} |
|---|
| 14 | a & b \\ |
|---|
| 15 | c & d |
|---|
| 16 | \end{matrix} |
|---|
| 17 | </math> || |
|---|
| 18 | |
|---|
| 19 | == 숙지 사항 == |
|---|
| 20 | 기본 커맨드 {{{[math(내용)]}}}를 이용해서 입력합니다. |
|---|
| 21 | * {{{[math(}}}{{{#red y=ax+b}}}{{{)]}}} [math(\Rightarrow\,\color{red}y=ax+b)] |
|---|
r9
| 22 | '''수식 모드'''라 불리는 이 커맨드 내에서는 수식을 출력하는 데에 최적화되어있으며 별도의 공백 문법을 쓰지 않는 한 공백을 출력할 수 없기 때문에 문장을 쓰는 데에는 적합하지 않습니다. 문장 입력은 '''[[#텍스트 모드|텍스트 모드]]''' 이용을 권장합니다(항목 참조). 나무위키의 수식 입력법은 '''수식 모드 내에서 텍스트 모드를 일시적으로 활성화하는 방식으로 사용'''하며 기본적으로는 수식 모드입니다. |
|---|
r1
| 23 | * {{{This is not suitable to write text}}} [math(\Rightarrow This is not suitable to write text)] |
|---|
r9
| 24 | 아라비아 숫자, 로마자, 아래 표의 기호를 제외한 각종 기호는 그대로 입력합니다. 다음 기호들은 단순히 나무위키 수식 모드에서 출력을 지원하지 않거나 TeX내에서 특별한 기능을 담당하는 커맨드이기 때문에 기호 자체를 출력하려면 별도의 입력 방법을 써야 합니다. |
|---|
r1
| 25 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a><|2> '''기호''' ||<|2> '''TeX내 기능''' ||<-2> '''기호 출력을 위한 문법''' || |
|---|
| 26 | ||<rowbgcolor=#eaeaea,#33353a> '''입력''' || '''출력''' || |
|---|
| 27 | || # || {{{\def}}} 문법 내에서 인수 출력에 사용 || {{{\#}}} || [math(\#)] || |
|---|
r9
| 28 | || $ || 없음[* 원래는 TeX에서 수식 커맨드의 양끝을 $로 감싸서 텍스트 모드와 수식 모드를 구분짓는 데에 쓰이나 나무위키에서는 별도의 커맨드가 존재하므로 기능하지 않게 되었습니다.] || {{{\$}}} || [math(\$)] || |
|---|
r1
| 29 | || & || {{{\begin}}}, {{{\end}}} 문법 내에서 단 생성 || {{{\&}}} || [math(\&)] || |
|---|
| 30 | || % || % 이후의 내용 출력 무효화 || {{{\%}}} || [math(\%)] || |
|---|
| 31 | || ^ || 위 첨자 문법 || {{{^\wedge}}} || [math(^\wedge)] || |
|---|
| 32 | || _ || 아래 첨자 문법 || {{{\_}}} || [math(\_)] || |
|---|
| 33 | || { ||<|2> 문법 적용 범위 설정 || {{{\{}}} || [math(\{)] || |
|---|
| 34 | || } || {{{\}}}} || [math(\})] || |
|---|
| 35 | || ~ || 공백 || {{{\sim}}} || [math(\sim)] || |
|---|
| 36 | || \\ || 각종 문법 시작 커맨드[br]공백[* {{{\}}}로 공백을 출력하기 위해서는 {{{\}}} 이후에 반각 공백 {{{#!html <span style="background-color: #00FF00"> </span>}}}을 넣어야 합니다.] || {{{\backslash}}} || [math(\backslash)] || |
|---|
| 37 | 수식 모드 내에서의 개행은 개행 문법 {{{\\}}}를 이용합니다. |
|---|
| 38 | * {{{ABC\\abc}}} [math(\Rightarrow ABC\\abc)] |
|---|
| 39 | 문법을 적용할 내용이 문자로 시작하며 중괄호로 감싸지 않는 경우, 문법과 내용을 구분 짓기 위해 공백({{{#!html <span style="background-color: #00FF00"> </span>}}})을 반드시 넣어야 합니다. 내용이 숫자나 기호로 시작할 경우 공백이 필요 없지만, 수식 문법 편집 시의 가독성을 위해 적절하게 공백을 넣는 것을 권장합니다. |
|---|
| 40 | * {{{\sqrt2}}} [math(\Rightarrow\sqrt2)] |
|---|
| 41 | * {{{\displaystyle\sum}}}{{{#!html <span style="background-color: #00FF00"> </span>}}}{{{a_n}}} [math(\Rightarrow\displaystyle\sum a_n)] |
|---|
| 42 | 일괄 적용 문법과 일시 적용 문법이 모두 존재하는 문법의 경우[* 수식 폰트처럼 단순히 두 종류가 모두 존재하는 경우 뿐만 아니라 대형 분수 문법과 같이 두 가지 이상의 문법이 축약된 경우도 포함합니다.] 문법은 다르지만 출력이 같은 경우가 여럿 존재합니다. 불필요한 데이터의 전송을 방지하기 위해 가급적이면 경제적인 방향으로 수식을 작성하는 것을 권장합니다. |
|---|
| 43 | * 기본 서체 이외의 폰트를 출력할 때, 예를 들어 [math(\dfrac{{\color{red}\rm d}y}{{\color{red}\rm d}x})] 출력 시 로만체가 문자 하나에만 적용된 표기이므로 {{{\dfrac{}}}{{{#red \\mathrm{d}}}}{{{y}{}}}{{{#red \\mathrm{d}}}}{{{x}}}}보다 {{{\dfrac{}}}{{{#red \\mathrm d}}}{{{y}{}}}{{{#red \\mathrm d}}}{{{x}}}}가 경제적입니다(중괄호가 불필요하며 문법과 내용 사이에 공백[* 만약 내용이 숫자나 기호라면 문법과 내용이 구분되기 때문에 공백조차 필요 없습니다.]만으로 충분). 이보다 더 경제적인 표기로 {{{\dfrac{}}}{{{#red {\\rm d}}}}{{{y}{}}}{{{#red {\\rm d}}}}{{{x}}}}가 있습니다(일괄 적용 문법 사용). |
|---|
| 44 | * 하나의 수식 문법 안에 대형 분수 표기가 13개 미만이라면 {{{\displaystyle……\frac ……\frac……}}}의 일괄 적용 문법을 쓰는 것보다 {{{……\dfrac……\dfrac……}}} 축약 문법을 쓰는 것이 경제적입니다. 같은 이유로, 합의 기호, 적분과 같이 대형 연산자의 대형 출력을 위해 {{{\displaystyle}}} 문법을 썼다면, 이 문법은 일괄 적용 문법이므로 그 이후 {{{\dfrac}}}를 쓸 필요가 없으며[* 단, 분수의 분자, 분모에 대형 분수 표기를 적용하려면 써야합니다.], 하나의 수식 내에 대형 연산자가 없는데 {{{\displaystyle}}}를 쓰는 것 역시 불필요합니다. |
|---|
| 45 | |
|---|
| 46 | === 문법의 종류 === |
|---|
| 47 | 문법 적용 범위에 따라 '''일시 적용 문법'''과 '''일괄 적용 문법'''으로 나뉩니다. 이하 본 도움말에서 '''별도의 설명이 없으면 일시 적용 문법'''입니다. |
|---|
| 48 | * '''일시 적용 문법''' |
|---|
| 49 | 문법 이후의 한 글자에만 적용되기 때문에 복수의 글자로 구성된 내용에 적용하려면 '''해당 내용을 중괄호로 감싸야 합니다'''. 대부분의 문법이 일시 적용 문법이며 이 원칙과 관련하여 분수, 조합, 로그 등 2개 이상의 인수로 이루어진 문법의 경우, 다음과 같이 간단하게 입력할 수 있습니다. |
|---|
| 50 | * {{{\log_28}}}[math(\Rightarrow\log_28)] |
|---|
| 51 | * {{{\dfrac ab}}}[math(\Rightarrow \dfrac ab)] |
|---|
| 52 | * {{{\dbinom n{12}}}}[math(\Rightarrow \dbinom n{12})] |
|---|
| 53 | * [anchor(일괄 적용 문법)]'''일괄 적용 문법''' |
|---|
| 54 | 문법 이후의 모든 글자에 적용되기 때문에 복수의 글자로 구성된 내용이라 하더라도 중괄호로 감쌀 필요가 없습니다. 단, [[#수식 색상|색상 문법]]처럼 수식 일부에만 적용하고 싶을 때에는 '''해당 문법과 내용 전체를 중괄호로 감싸야 합니다'''. |
|---|
| 55 | * [math({\color{red}\rm arccsc}\,x \Leftarrow)] {{{#red {}}}{{{\rm arccsc}}}{{{#red }}}}{{{\,x}}} |
|---|
| 56 | * [math(\dfrac{{\color{red}\rm d}y}{{\color{red}\rm d}x} \Leftarrow)] {{{\dfrac{}}}{{{#red {}}}{{{\rm d}}}{{{#red }}}}{{{y}{}}}{{{#red {}}}{{{\rm d}}}{{{#red }}}}{{{x}}}} |
|---|
| 57 | == 텍스트 모드 == |
|---|
| 58 | 'ab12+-'를 예로 아래 표에 정리한 문법을 이용하여 단어나 문장을 쓰는데 최적화 되어있는 텍스트 모드를 적용할 수 있습니다. 이 문법 안에서는 '''수식을 출력할 수 없으며''' 아래와 같이 출력 결과에서 에러가 납니다. |
|---|
| 59 | * {{{\text{\displaystyle e=\sum_{n=0}^\infty\frac1{n!}}}}} [math(\Rightarrow)] [math(\text{\displaystyle e=\sum_{n=0}^\infty\frac1{n!}})][* 참고로 수식 모드에서의 정상적인 출력은 [math(\displaystyle e=\sum_{n=0}^\infty\frac1{n!})]입니다.] |
|---|
r9
| 60 | 나무위키의 수식 텍스트 모드에서는 중간 굵기의 로만 폰트(직립체)가 디폴트이기 때문에 {{{\text{}}}}(디폴트), {{{\textrm{}}}}(로만), {{{\textmd{}}}}(중간 굵기), {{{\textup{}}}}(직립체) 모두 출력이 동일합니다. |
|---|
r1
| 61 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''폰트''' || '''출력''' || '''문법''' || |
|---|
| 62 | || '''로만''' || [math(\text{ab12+-})] ||{{{\text{ab12+-}}}}[br]{{{\textrm{ab12+-}}}}[br]{{{\textmd{ab12+-}}}}[br]{{{\textup{ab12+-}}}} || |
|---|
| 63 | || '''로만 볼드''' || [math(\textbf{ab12+-})] ||{{{\textbf{ab12+-}}}} || |
|---|
| 64 | || '''이탤릭''' || [math(\textit{ab12+-})] ||{{{\textit{ab12+-}}}} || |
|---|
| 65 | || '''산세리프''' || [math(\textsf{ab12+-})] ||{{{\textsf{ab12+-}}}} || |
|---|
| 66 | || '''타자기''' || [math(\texttt{ab12+-})] ||{{{\texttt{ab12+-}}}} || |
|---|
r9
| 67 | '''개행 문법({{{\\}}}) 역시 무시'''[* 당연히 나무위키의 {{{[br]}}}매크로도 적용되지 않으며 엔터 키를 이용한 직접 개행 역시 먹히지 않습니다.]되므로 번거롭지만 개행을 하는 지점에서 텍스트 모드를 종료하고 수식 모드에서 개행을 한 뒤 다시 텍스트 모드를 작성해야합니다. |
|---|
r1
| 68 | * {{{#red \\text{}}}{{{This is text mode}}}{{{#blue \\\\\\}}}{{{where the line break is not available.}}}{{{#red }}}}[br][math(\Rightarrow\text{This is text mode where the line break is not available.})] ({{{+1 ×}}})[br]{{{#red \\text{}}}{{{This is text mode}}}{{{#red }}}}{{{#blue \\\\\\}}}{{{#red \\text{}}}{{{where the line break is not available.}}}{{{#red }}}}[br][math(\Rightarrow \text{This is text mode}\\\text{where the line break is not available.})] ({{{+1 ○}}}) |
|---|
| 69 | 단, 텍스트 모드 내에서 [[#수식 폰트|수식 폰트의 일괄 적용 문법]], [[#수식 색상|색상 문법]], [[#수식 크기|크기 문법]] 및 [[#공백|공백 문법]]은 적용할 수 있습니다. |
|---|
| 70 | * [math(\text{\tt This is }\text{\LARGE text }\text{\tiny\color{purple}mode} \Leftarrow)] {{{\text{}}}{{{#red \\tt }}}{{{This is }\text{}}}{{{#blue \\LARGE }}}{{{text }\text{}}}{{{#blue \\tiny}}}{{{#green \\color{purple}}}}{{{mode}}}} |
|---|
| 71 | 수식 모드에서 별도의 문법으로 출력해야했던 #, $, &, %, _, {, }는 텍스트 모드에서도 출력 문법이 동일합니다. ^, ~, \\는 출력하려면 텍스트 모드 내에서 다음과 같이 입력해야 합니다. |
|---|
| 72 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''기호''' || '''출력''' || '''문법''' || |
|---|
| 73 | || ^ || [math(\text{\textasciicircum})] || {{{\textasciicircum}}} || |
|---|
| 74 | || ~ || [math(\text{\textasciitilde})] || {{{\textasciitilde}}} || |
|---|
| 75 | || \\ || [math(\text{\textbackslash})] || {{{\char`\\}}}[br]{{{\textbackslash}}} || |
|---|
r9
| 76 | 각종 그리스 문자 및 히브리 문자를 문법으로 입력하는 나무위키의 TeX 특성상, 텍스트 모드에서 대부분의 확장 로마자 및 기타 외국어 문자를 출력하고 싶은 경우 특수 기호 혹은 외국어 타자기를 통해 직접 입력해야 합니다. |
|---|
r1
| 77 | * {{{\text{\alpha \beta \gamma}}}} [math(\Rightarrow)] [math(\text{\alpha \beta \gamma})] ({{{+1 ×}}})[br]{{{\text{αβγ}}}} [math(\Rightarrow \text{αβγ})] ({{{+1 ○}}}) |
|---|
| 78 | 단, 다음 확장 로마자는 문법을 통한 출력을 지원하며 해당 문법을 텍스트 모드 내에서 입력해야 합니다. 중괄호로 감싸지 않는 경우 문법 구분을 위해 반각 공백({{{#!html <span style="background-color: #FF0000"> </span>}}})을 넣어야 하며 이 경우 출력에서 반각 공백은 무시됩니다. |
|---|
| 79 | * [math(\text{`C{\color{red}\oe}ur' means `heart' in French} \Leftarrow)] {{{\text{`C}}}{{{#red \\oe}}}{{{#!html <span style="background-color: #FF0000"> </span>}}}{{{ur' means `heart' in French}}}} |
|---|
| 80 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''기호''' || '''출력''' || '''문법''' || |
|---|
| 81 | || Æ, æ || [math(\text{\AE})], [math(\text{\ae})] || {{{\AE}}}, {{{\ae}}} || |
|---|
| 82 | || Å, å || [math(\text{\AA})], [math(\text{\aa})] || {{{\AA}}}, {{{\aa}}} || |
|---|
| 83 | || ı, ȷ || [math(\text{\i})], [math(\text{\j})] || {{{\i}}}, {{{\j}}} || |
|---|
| 84 | || Ø, ø || [math(\text{\O})], [math(\text{\o})] || {{{\O}}}, {{{\o}}} || |
|---|
| 85 | || Œ, œ || [math(\text{\OE})], [math(\text{\oe})] || {{{\OE}}}, {{{\oe}}} || |
|---|
| 86 | || ß || [math(\text{\ss})] || {{{\ss}}} || |
|---|
| 87 | |
|---|
| 88 | === 텍스트 모드 분음 기호 === |
|---|
r9
| 89 | 나무위키 수식의 텍스트 모드에서는 다음 [[분음 기호]]의 출력을 지원합니다. 단, [[#수식 모드 분음 기호|수식 모드의 분음 기호]] 항목을 보면 알 수 있듯이 본 텍스트 모드의 분음 기호 문법은 수식 모드와 다르며, '''텍스트 모드에서만 유효'''합니다. 또한 '''[[#텍스트 모드|텍스트 모드]]의 각종 폰트 문법 안에서 입력'''해야 합니다. |
|---|
r1
| 90 | * [math(\text{r\'esum\'e} \Leftarrow)] {{{#red \\text{}}}{{{r}}}{{{#blue \\'e}}}{{{sume}}}{{{#blue \\'e}}}{{{#red }}}} |
|---|
| 91 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''이름''' || '''출력''' || '''문법''' || |
|---|
| 92 | || '''어큐트''' || [math(\text{\'a})] || {{{\'a}}} || |
|---|
| 93 | || '''이중 어큐트''' || [math(\text{\H a})] || {{{\H a}}} || |
|---|
| 94 | || '''그라브''' || [math(\text{\`a})] || {{{\`a}}} || |
|---|
| 95 | || '''서컴플렉스''' || [math(\text{\^a})] || {{{\^a}}} || |
|---|
| 96 | || '''하체크''' || [math(\text{\v a})] || {{{\v a}}} || |
|---|
| 97 | || '''브리브''' || [math(\text{\u a})] || {{{\u a}}} || |
|---|
| 98 | || '''도트''' || [math(\text{\.a})] || {{{\.a}}} || |
|---|
| 99 | || '''움라우트''' || [math(\text{\"a})] || {{{\"a}}} || |
|---|
| 100 | || '''매크론''' || [math(\text{\=a})] || {{{\=a}}} || |
|---|
| 101 | || '''틸데''' || [math(\text{\~a})] || {{{\~a}}} || |
|---|
| 102 | || '''위 링''' || [math(\text{\r a})] || {{{\r a}}} || |
|---|
| 103 | |
|---|
| 104 | == 공백 == |
|---|
r9
| 105 | === 일반 === |
|---|
r1
| 106 | 수식 모드에서 띄어쓰기를 출력 하려면 별도의 띄어쓰기 문법을 써야 합니다. 아래 표의 두 번째 예처럼 스페이스바를 이용한 단순 반각 공백은 각종 문법을 구분 지어주는 역할을 할 뿐 출력 상으로는 공백 기능이 없습니다. 문법에서 {{{#!html <span style="background-color: #FF0000"> </span>}}}는 출력하고자 할 때 반각 공백이 필수임을 의미합니다. |
|---|
| 107 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || '''상대 길이'''[br](반각 공백 {{{#!html <span style="background-color: #00FF00"> </span>}}} 기준)|| '''비율''' || |
|---|
| 108 | ||[math(a\!b)] || {{{a}}}{{{#red \\!}}}{{{b}}} || [math(-\dfrac23)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(-6)]|| |
|---|
| 109 | ||[math(ab)] || {{{ab}}}[br]{{{a b}}} || [math(0\,)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(0)]|| |
|---|
| 110 | ||[math(a\,b)] || {{{a}}}{{{#red \\,}}}{{{b}}} || [math(\dfrac23)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(6)]|| |
|---|
| 111 | ||[math(a\:b)] || {{{a}}}{{{#red \\:}}}{{{b}}}[br]{{{a}}}{{{#red \\>}}}{{{b}}} || [math(\dfrac89)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(8)]|| |
|---|
| 112 | ||[math(a~b)] || {{{a}}}{{{#red ~}}}{{{b}}}[br]{{{a}}}{{{#red \\}}}{{{#!html <span style="background-color: #FF0000"> </span>}}}{{{b}}}[br]{{{a}}}{{{#red \\text{}}}{{{#!html <span style="background-color: #FF0000"> </span>}}}{{{#red }}}}{{{b}}}[* 텍스트 모드에서의 반각 공백] || [math(1\,)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(9)]|| |
|---|
| 113 | ||[math(a\;b)] || {{{a}}}{{{#red \\;}}}{{{b}}} || [math(\dfrac{10}9)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(10)]|| |
|---|
| 114 | ||[math(a\quad b)] || {{{a}}}{{{#red \\quad }}}{{{b}}} || [math(4\,)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(36)]|| |
|---|
| 115 | ||[math(a\qquad b)] || {{{a}}}{{{#red \\qquad }}}{{{b}}} || [math(8\,)]{{{#!html <span style="background-color: #00FF00"> </span>}}}|| [math(72)]|| |
|---|
| 116 | {{{\!}}}는 문자 사이의 간격을 줄여주는 문법으로, 해당 문법을 반복해서 쓰면 두 문자를 겹치게 나타내는 것도 가능합니다. |
|---|
| 117 | * {{{p}}}{{{#red \\!\\!\\!}}}{{{/}}}[math(\Rightarrow p\!\!\!/)][* 해당 표현은 {{{\cancel}}} 문법이 존재하므로 이쪽을 권장합니다.] |
|---|
| 118 | 또한 복수의 공백을 중복 조합함으로써 위 표에 없는 상대 길이를 만들어낼 수도 있습니다. |
|---|
| 119 | * [math(a\!\!\!\!\;~b \Leftarrow)] {{{a}}}{{{#red \\!\\!\\!\\!\\;~}}}{{{b}}} (상대 길이 [math(-\dfrac59)]{{{#!html <span style="background-color: #00FF00"> </span>}}}) |
|---|
| 120 | * [math(a\!~b \Leftarrow)] {{{a}}}{{{#red \\!~}}}{{{b}}} (상대 길이 [math(\dfrac13)]{{{#!html <span style="background-color: #00FF00"> </span>}}}) |
|---|
| 121 | |
|---|
r9
| 122 | === 속성 재지정 === |
|---|
| 123 | 각 명령어는 속성(class)이 있으며 속성에 따라 자동으로 공백이 생성됩니다. 속성에 따라 공백 생성의 여부와 공백의 크기가 결정됩니다. |
|---|
| 124 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a><|2> '''속성 번호''' ||<|2> '''속성명''' ||<-2> '''예시''' || |
|---|
| 125 | ||<rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || |
|---|
| 126 | || 0 || 일반 || [math(a\mathord{\color{red}/}b)] ||{{{a}}}{{{#red /}}}{{{b}}} || |
|---|
| 127 | || 1 || 대형 연산자 || [math(a\mathop{\color{red}\sum}b)] ||{{{a}}}{{{#red \\sum}}}{{{ b}}} || |
|---|
| 128 | ||<|3> 2 ||<|3> 이항 연산 기호 || [math(a\mathbin{\color{red}+}b)] ||{{{a}}}{{{#red +}}}{{{b}}} || |
|---|
| 129 | || [math(a\mathbin{\color{red}-}b)] ||{{{a}}}{{{#red -}}}{{{b}}} || |
|---|
| 130 | || [math(a\mathbin{\color{red}\cup}b)] ||{{{a}}}{{{#red \\cup}}}{{{ b}}} || |
|---|
| 131 | || 3 || 관계 || [math(a\mathrel{\color{red}=}b)] ||{{{a}}}{{{#red =}}}{{{b}}} || |
|---|
| 132 | || 4 || 열기 || [math(a\mathopen{\color{red}(}b) )] ||{{{a}}}{{{#red (}}}{{{b)}}} || |
|---|
| 133 | || 5 || 닫기 || [math((a\mathclose{\color{red})}b)] ||{{{(a}}}{{{#red )}}}{{{b}}} || |
|---|
| 134 | || 6 || 구두점 || [math(a\mathpunct{\color{red},}b)] ||{{{a}}}{{{#red ,}}}{{{b}}} || |
|---|
| 135 | || 7 || variable family || [math(a\mathord{\color{red}t}b)] ||{{{a}}}{{{#red t}}}{{{b}}} || |
|---|
| 136 | || 8 || eighth classification || [math(a\mathinner{\color{red}\left(b\right)}c )] ||{{{a}}}{{{#red \\left(b\\right)}}}{{{c}}} || |
|---|
| 137 | |
|---|
| 138 | 속성이 이항 연산 기호와 관계인 명령어는 양끝에 공백이 생기고, 일반과 열기, 닫기 속성의 명령어는 공백이 생기지 않습니다. 구두점 속성의 경우 뒤쪽에만 공백이 생깁니다. |
|---|
| 139 | |
|---|
| 140 | * [math(a{\color{red}\sum b} \Rightarrow)] {{{a}}}{{{#red {}}}{{{\color{red}\sum b}}}{{{#red }}}} |
|---|
| 141 | |
|---|
| 142 | 속성에 따른 성질은 중괄호 문법 양끝에서 무효화됩니다. [math(\sum)]와 [math(a)], [math(b)] 사이의 공백을 비교하여 보십시오. |
|---|
| 143 | |
|---|
| 144 | 속성은 일시 적용 문법인 {{{\mathord}}}(일반), {{{\mathbin}}}(이항 연산 기호) {{{\mathop}}}(대형 연산자), {{{\mathrel}}}(관계), {{{\mathpunct}}}(구두점), {{{\mathopen}}}(열기), {{{\mathclose}}}(닫기), {{{\mathinner}}}(8th classification)문법들을 이용하여 재지정할 수 있습니다. |
|---|
| 145 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || '''재지정된 속성''' || |
|---|
| 146 | || [math(a\mathop{\color{red}/}b)] ||{{{a}}}{{{#red \\mathop/}}}{{{b}}} || 대형 연산자 || |
|---|
| 147 | || [math(a\mathord{\color{red}\sum}b)] ||{{{a}}}{{{#red \\mathord\\sum}}}{{{b}}} || 일반 || |
|---|
| 148 | || [math(a\mathopen{\color{red}+}b)] ||{{{a}}}{{{#red \\mathopen+}}}{{{b}}} || 열기 || |
|---|
| 149 | || [math(a\mathclose{\color{red}-}b)] ||{{{a}}}{{{#red \\mathclose-}}}{{{b}}} || 닫기 || |
|---|
| 150 | || [math(a\mathpunct{\color{red}\cup} b)] ||{{{a}}}{{{#red \\mathpunct{\\cup}}}}{{{b}}} || 구두점 || |
|---|
| 151 | || [math(a\mathbin{\color{red}=}b)] ||{{{a}}}{{{#red \\mathbin=}}}{{{b}}} || 이항 연산자 || |
|---|
| 152 | || [math(a\mathinner{\color{red}t}b)] ||{{{a}}}{{{#red \\mathinner t}}}{{{b}}} || 8th classification || |
|---|
| 153 | |
|---|
| 154 | 속성 재지정 문법은 다음과 같은 경우에 활용할 수 있습니다. |
|---|
| 155 | * [math(123,456,789 \Leftarrow)] {{{123,456,789}}}[br][math(123\mathord,456\mathord,789 \Leftarrow)] {{{123}}}{{{#red \\mathord,}}}{{{456}}}{{{#red \\mathord,}}}{{{789}}} |
|---|
| 156 | * [math(f\left(\dfrac 12\right) \Leftarrow)] {{{f\left(\dfrac 12\right)}}}[br][math(f\mathord{\left(\dfrac 12\right)} \Leftarrow)] {{{f}}}{{{#red \\mathord}}}{{{{\left(\dfrac 12\right)}}}} |
|---|
| 157 | |
|---|
r1
| 158 | == 수식 폰트 == |
|---|
| 159 | 'ab12+-'를 예시로 다음과 같이 폰트를 적용할 수 있는데, 일시 적용 문법과 '''[[#일괄 적용 문법|일괄 적용 문법]]'''이 모두 존재합니다. |
|---|
| 160 | * '''일괄 적용 문법''' |
|---|
| 161 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''폰트''' || '''출력''' || '''문법''' || |
|---|
| 162 | || '''기본''' || [math(ab12+-)] ||{{{ab12+-}}} || |
|---|
| 163 | || '''로만''' || [math(\rm ab12+-)] ||{{{\rm ab12+-}}} || |
|---|
| 164 | || '''로만 볼드''' || [math(\bf ab12+-)] ||{{{\bf ab12+-}}} || |
|---|
| 165 | || '''이탤릭''' || [math(\it ab12+-)] ||{{{\it ab12+-}}} || |
|---|
| 166 | || '''산세리프''' || [math(\sf ab12+-)] ||{{{\sf ab12+-}}} || |
|---|
| 167 | || '''타자기체''' || [math(\tt ab12+-)] ||{{{\tt ab12+-}}} || |
|---|
| 168 | * '''일시 적용 문법''' |
|---|
| 169 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''폰트''' || '''출력''' || '''문법''' || |
|---|
| 170 | || '''로만''' || [math(\mathrm{ab12+-})] ||{{{\mathrm{ab12+-}}}} || |
|---|
| 171 | || '''로만 볼드''' || [math(\mathbf{ab12+-})] ||{{{\mathbf{ab12+-}}}} || |
|---|
| 172 | || '''이탤릭''' || [math(\mathit{ab12+-})] ||{{{\mathit{ab12+-}}}} || |
|---|
| 173 | || '''산세리프''' || [math(\mathsf{ab12+-})] ||{{{\mathsf{ab12+-}}}} || |
|---|
| 174 | || '''타자기체''' || [math(\mathtt{ab12+-})] ||{{{\mathtt{ab12+-}}}} || |
|---|
| 175 | || '''흑자체''' || [math(\frak{ab12+-})] ||{{{\frak{ab12+-}}}}[br]{{{\mathfrak{ab12+-}}}} || |
|---|
| 176 | * 대문자에서만 유효한 폰트[* 로마자 소문자, 아라비아 숫자, 기호는 기본 폰트로 출력됩니다.] |
|---|
| 177 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''폰트''' || '''출력''' || '''문법''' || |
|---|
| 178 | || '''칠판체''' || [math(\mathbb{ABCDEFG})] ||{{{\mathbb{ABCDEFG}}}} || |
|---|
| 179 | || '''흘림체''' || [math(\mathcal{ABCDEFG})] ||{{{\mathcal{ABCDEFG}}}} || |
|---|
| 180 | || '''필기체''' || [math(\mathscr{ABCDEFG})] ||{{{\mathscr{ABCDEFG}}}} || |
|---|
| 181 | 각종 수식을 포함한 전체를 볼드체로 나타내고 싶은 경우 {{{\boldsymbol}}} 문법을 사용합니다. |
|---|
| 182 | * [math(f(x)=x^2+4x+2 \Leftarrow)] {{{f(x)=x^2+4x+2}}}[br][math(\boldsymbol{f(x)=x^2+4x+2} \Leftarrow)] {{{#red \\boldsymbol{}}}{{{f(x)=x^2+4x+2}}}{{{#red }}}} |
|---|
| 183 | |
|---|
| 184 | == 수식 크기 == |
|---|
| 185 | 다음 두 가지 방법을 이용할 수 있으며, 병용하는 것도 가능합니다. |
|---|
r9
| 186 | * 수식 전체에 [[나무위키]]의 텍스트 크기 설정 방법 적용. 단, 이 방법으로는 분수나 첨자 등 문법 도중의 일부만 바꾸는 것이 불가능합니다. |
|---|
r1
| 187 | * {{{+1 [math(ab12+-)]}}} [math(\Leftarrow)] {{{{{{+1 [math(ab12+-)]}}}}}} |
|---|
r9
| 188 | * '''[[#일괄 적용 문법|일괄 적용 문법]]''' 이용. 나무위키의 수식 모드에서는 {{{\normalsize}}} 문법의 [math(10\,\rm pt)]가 디폴트입니다. 문법 도중의 일부분만 바꿀 수 있습니다. |
|---|
r1
| 189 | * [math({\huge ab}12+- \Leftarrow)] {{{#red {}}}{{{\huge ab}}}{{{#red }}}}{{{12+-}}} |
|---|
| 190 | * [math(\dfrac{{\Huge a}+b}c \Leftarrow)] {{{\dfrac{}}}{{{#red {\\Huge a}}}}{{{+b}c}}} |
|---|
| 191 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || '''폰트 크기[math(\rm /pt)]''' || |
|---|
| 192 | || [math(\tiny ab12+-)] || {{{\tiny ab12+-}}} || [math(5)] || |
|---|
| 193 | || [math(\scriptsize ab12+-)] || {{{\scriptsize ab12+-}}} || [math(7)] || |
|---|
| 194 | || [math(\footnotesize ab12+-)] || {{{\footnotesize ab12+-}}} || [math(8)] || |
|---|
| 195 | || [math(\small ab12+-)] || {{{\small ab12+-}}} || [math(9)] || |
|---|
| 196 | || [math(\normalsize ab12+-)] || {{{\normalsize ab12+-}}} || [math(10)] || |
|---|
| 197 | || [math(\large ab12+-)] || {{{\large ab12+-}}} || [math(12)] || |
|---|
| 198 | || [math(\Large ab12+-)] || {{{\Large ab12+-}}} || [math(14.4)] || |
|---|
| 199 | || [math(\LARGE ab12+-)] || {{{\LARGE ab12+-}}} || [math(17.28)] || |
|---|
| 200 | || [math(\huge ab12+- )] || {{{\huge ab12+-}}} || [math(20.74)] || |
|---|
| 201 | || [math(\Huge ab12+- )] || {{{\Huge ab12+-}}} || [math(24.88)] || |
|---|
| 202 | |
|---|
| 203 | == 수식 색상 == |
|---|
| 204 | 수식의 색상 조절은 {{{\color{색상 이름}내용}}}의 '''[[#일괄 적용 문법|일괄 적용 문법]]'''을 이용합니다. |
|---|
| 205 | * [math({\color{blue}ab1}{\color{red}2+-} \Leftarrow)] {{{#red {}}}{{{\color{blue}ab1}}}{{{#red }{}}}{{{\color{red}2+-}}}{{{#red }}}} |
|---|
| 206 | 지원하는 색상은 다음과 같습니다. |
|---|
r3
| 207 | === CSS 색상명 === |
|---|
r1
| 208 | ||<table bgcolor=white><bgcolor=gray> [math(\rm\color{aquamarine}aquamarine)] || [math(\rm\color{black}black)] || [math(\rm\color{blue}blue)] || [math(\rm\color{blueviolet}blueviolet)] || |
|---|
| 209 | || [math(\rm\color{brown}brown)] || [math(\rm\color{cadetblue}cadetblue)] || [math(\rm\color{cornflowerblue}cornflowerblue)] ||<bgcolor=gray> [math(\rm\color{cyan}cyan)] || |
|---|
| 210 | || [math(\rm\color{darkorchid}darkorchid)] || [math(\rm\color{forestgreen}forestgreen)] || [math(\rm\color{fuchsia}fuchsia)] || [math(\rm\color{goldenrod}goldenrod)] || |
|---|
| 211 | || [math(\rm\color{gray}gray)] || [math(\rm\color{green}green)] ||<bgcolor=gray> [math(\rm\color{greenyellow}greenyellow)] ||<bgcolor=gray> [math(\rm\color{limegreen}limegreen)] || |
|---|
| 212 | || [math(\rm\color{magenta}magenta)] || [math(\rm\color{maroon}maroon)] || [math(\rm\color{midnightblue}midnightblue)] || [math(\rm\color{orange}orange)] || |
|---|
| 213 | || [math(\rm\color{orangered}orangered)] || [math(\rm\color{orchid}orchid)] || [math(\rm\color{plum}plum)] || [math(\rm\color{purple}purple)] || |
|---|
| 214 | || [math(\rm\color{red}red)] || [math(\rm\color{royalblue}royalblue)] || [math(\rm\color{salmon}salmon)] || [math(\rm\color{seagreen}seagreen)] || |
|---|
| 215 | || [math(\rm\color{skyblue}skyblue)] ||<bgcolor=gray> [math(\rm\color{springgreen}springgreen)] || [math(\rm\color{tan}tan)] ||<bgcolor=gray> [math(\rm\color{thistle}thistle)] || |
|---|
| 216 | || [math(\rm\color{turquoise}turquoise)] || [math(\rm\color{violet}violet)] ||<bgcolor=gray> [math(\rm\color{white}white)] ||<bgcolor=gray> [math(\rm\color{yellow}yellow)] || |
|---|
| 217 | || [math(\rm\color{yellowgreen}yellowgreen)] ||<-3> || |
|---|
| 218 | |
|---|
r9
| 219 | {{{[math({\color{#RRGGBB}내용})]}}}과 같이 RRGGBB 입력도 지원합니다. |
|---|
r3
| 220 | |
|---|
r1
| 221 | == 수식 모드 분음 기호 == |
|---|
r9
| 222 | 나무위키 수식 모드에서는 다음 분음 기호의 출력을 지원합니다. |
|---|
r1
| 223 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''이름''' || '''출력''' || '''문법''' || |
|---|
| 224 | || '''어큐트''' || [math(\acute a)] || {{{\acute a}}} || |
|---|
| 225 | || '''그라브''' || [math(\grave a)] || {{{\grave a}}} || |
|---|
| 226 | || '''서컴플렉스''' || [math(\hat a)] || {{{\hat a}}} || |
|---|
| 227 | || '''넓은 서컴플렉스''' || [math(\widehat{aa})] || {{{\widehat{aa}}}} || |
|---|
| 228 | || '''하체크''' || [math(\check a)] || {{{\check a}}} || |
|---|
| 229 | || '''브리브''' || [math(\breve a)] || {{{\breve a}}} || |
|---|
| 230 | || '''도트''' || [math(\dot a)] || {{{\dot a}}} || |
|---|
| 231 | || '''움라우트''' || [math(\ddot a)] || {{{\ddot a}}} || |
|---|
| 232 | || '''매크론''' || [math(\bar a)] || {{{\bar a}}} || |
|---|
| 233 | || '''틸데''' || [math(\tilde a)] || {{{\tilde a}}} || |
|---|
| 234 | || '''넓은 틸데''' || [math(\widetilde{aa})] || {{{\widetilde{aa}}}} || |
|---|
| 235 | || '''벡터''' || [math(\vec a)] || {{{\vec a}}} || |
|---|
| 236 | 전부 일시 적용 문법으로 중괄호를 이용하여 복수의 문자에 적용할 수도 있으나 {{{wide}}}가 붙은 문법을 제외한 것은 기호의 길이가 늘어나지 않으며 가운데 정렬로 출력되는 점에 주의하십시오. |
|---|
| 237 | * {{{\acute{aa}}}} [math(\Rightarrow\acute{aa})] |
|---|
| 238 | 특히 분음 기호 첨가에 따라 점이 삭제되는 [math(i)], [math(j)]의 경우 {{{\imath}}} [math(\Rightarrow\imath)], {{{\jmath}}} [math(\Rightarrow\jmath)]를 이용합니다. |
|---|
| 239 | * {{{\hat\imath}}} [math(\Rightarrow\hat\imath)], {{{\acute\jmath}}} [math(\Rightarrow\acute\jmath)] |
|---|
| 240 | 기타 분음 기호는 다음과 같은 대체 표현을 쓸 수 있습니다. 특히 호의 경우 문자 길이에 따라 길게 늘어나지 않기 때문에 폰트 크기 문법을 이용하여 글자수에 따라 수동으로 조절해야합니다. |
|---|
| 241 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || |
|---|
| 242 | || [math(\overset\mathbf{...}x)] || {{{\overset\mathbf{...}x}}} || |
|---|
| 243 | || [math(\overset{\Large\frown}{AB})][br][math(\overset{\huge\frown}{ABC})] || {{{\overset{\Large\frown}{AB}}}}[br][br]{{{\overset{\huge\frown}{ABC}}}} || |
|---|
| 244 | |
|---|
| 245 | == 그리스 문자, 히브리 문자 == |
|---|
| 246 | [[그리스 문자]] 문서에 나온 각 문자의 영어명을 토대로, 그리스 소문자는 모두 소문자로, 그리스 대문자는 첫 글자만 대문자로 기입하면 됩니다. |
|---|
| 247 | * [math(\sigma \Leftarrow)] {{{\sigma}}}, [math(\Sigma \Leftarrow)] {{{\Sigma}}} |
|---|
| 248 | 그리스 소문자는 이탤릭체로 고정되어있어 텍스트 모드에서처럼 특수 기호 또는 외국어 타자기를 통해 직접 입력해도 '''다른 폰트가 적용되지 않습니다'''.[* 텍스트 모드 로만 폰트({{{\text}}}) 및 텍스트 모드 로만 볼드 폰트({{{\textbf}}}) 상에서 외국어를 직접 입력하는 방식으로 대체할 수는 있습니다.] 대문자 역시 '''대부분이 로만으로 고정'''되어있으나 다음 [math(10)]개 문자에 한하여 '''[[#수식 폰트|수식 폰트의 일괄 적용 문법]]'''을 적용할 수 있습니다. '''기타 대문자는 출력이 사실상 같은 로마자 대문자로 대용'''합니다. 특히 이탤릭 폰트에 한하여, {{{\varGamma}}} [math(\Rightarrow \varGamma)] 처럼 {{{var}}}를 글자 앞에 붙임으로써 개별적으로 적용할 수도 있습니다. |
|---|
| 249 | * [math(\varGamma)], [math(\varDelta)], [math(\varTheta)], [math(\varLambda)], [math(\varXi)], [math(\varPi)], [math(\varSigma)], [math(\varPhi)], [math(\varUpsilon)], [math(\varOmega)] |
|---|
| 250 | 일부 옛글자 및 이형자의 출력도 지원하며 그리스 소문자와 마찬가지로 다른 폰트를 적용할 수 없습니다. |
|---|
| 251 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || '''비고''' || |
|---|
| 252 | ||[math(\digamma)] || {{{\digamma}}} || 옛글자 || |
|---|
| 253 | ||[math(\varepsilon)] || {{{\varepsilon}}} || [math(\epsilon)]의 이형 || |
|---|
| 254 | ||[math(\vartheta)] || {{{\vartheta}}} || [math(\theta)]의 이형 || |
|---|
| 255 | ||[math(\varkappa)] || {{{\varkappa}}} || [math(\kappa)]의 이형 || |
|---|
| 256 | ||[math(\varpi)] || {{{\varpi}}} || [math(\pi)]의 이형 || |
|---|
| 257 | ||[math(\varrho)] || {{{\varrho}}} || [math(\rho)]의 이형 || |
|---|
| 258 | ||[math(\varsigma)] || {{{\varsigma}}} || [math(\sigma)]의 이형 || |
|---|
| 259 | ||[math(\varphi)] || {{{\varphi}}} || [math(\phi)]의 이형 || |
|---|
| 260 | |
|---|
| 261 | [[히브리 문자]]는 다음 4개만을 지원하며 폰트는 로만 폰트(디폴트) 및 로만 볼드 폰트({{{\bf}}})만 적용됩니다. |
|---|
| 262 | * [math(\aleph \Leftarrow)] {{{\aleph}}}, [math(\beth \Leftarrow)] {{{\beth}}}, [math(\gimel \Leftarrow)] {{{\gimel}}}, [math(\daleth \Leftarrow)] {{{\daleth}}} |
|---|
| 263 | |
|---|
| 264 | == 기타 문자 == |
|---|
| 265 | [[키릴 문자]]는 문법을 통한 입력을 지원하지 않으므로 직접 입력해야 합니다. |
|---|
| 266 | * [math({\color{red}Ш}(A/K) \ \Leftarrow)] {{{#red Ш}}}{{{(A/K)}}}([[https://en.wikipedia.org/wiki/Tate%E2%80%93Shafarevich_group|테이트-샤파레비치 군]]) |
|---|
| 267 | |
|---|
| 268 | == 괄호 문법 == |
|---|
| 269 | 소괄호를 예로, 각 기호 앞에 다음과 같이 문법을 덧붙여서 사용합니다. 괄호의 크기 비교를 위해 문법을 쓰지 않은 경우를 같이 표기합니다. |
|---|
| 270 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''크기''' || '''출력''' || '''문법''' || '''등가가 되는 가변형 괄호의 내용''' || |
|---|
| 271 | ||<rowbgcolor=#eaeaea,#33353a> '''문법 미사용''' || [math((a))], [math(({V_{\max}}^2))], [math((\dfrac12))] || {{{(a)}}}, {{{({V_{\max}}^2)}}}, {{{(\dfrac12)}}} || 윗첨자 없는 문자를 감쌀 때[* 아래 첨자의 유무에 따른 차이는 없습니다.] || |
|---|
| 272 | || '''소형''' || [math(\bigl(a\bigr))], [math(\bigl({V_{\max}}^2\bigr))], [math(\bigl(\dfrac12\bigr))] || {{{#red \\bigl}}}{{{(a}}}{{{#red \\bigr}}}{{{)}}}, {{{#red \\bigl}}}{{{({V_{\max}}^2}}}{{{#red \\bigr}}}{{{)}}}, {{{#red \\bigl}}}{{{(\dfrac12}}}{{{#red \\bigr}}}{{{)}}} || 윗첨자 있는 문자를 감쌀 때 || |
|---|
| 273 | || '''중형''' || [math(\Bigl(a\Bigr))], [math(\Bigl({V_{\max}}^2\Bigr))], [math(\Bigl(\dfrac12\Bigr))] || {{{#red \\Bigl}}}{{{(a}}}{{{#red \\Bigr}}}{{{)}}}, {{{#red \\Bigl}}}{{{({V_{\max}}^2}}}{{{#red \\Bigr}}}{{{)}}}, {{{#red \\Bigl}}}{{{(\dfrac12}}}{{{#red \\Bigr}}}{{{)}}} || 극한 표기를 감쌀 때,[br]적분 기호를 제외하고 위아래 첨자가 없는 대형 연산자[* [math(\displaystyle \sum)], [math(\displaystyle \prod)], [math(\displaystyle \bigcup)] 등.]를 감쌀 때 || |
|---|
| 274 | || '''대형''' || [math(\biggl(a\biggr))], [math(\biggl({V_{\max}}^2\biggr))], [math(\biggl(\dfrac12\biggr))] || {{{#red \\biggl}}}{{{(a}}}{{{#red \\biggr}}}{{{)}}}, {{{#red \\biggl}}}{{{({V_{\max}}^2}}}{{{#red \\biggr}}}{{{)}}}, {{{#red \\biggl}}}{{{(\dfrac12}}}{{{#red \\biggr}}}{{{)}}} || 부정적분 식을 감쌀 때,[br]정적분 계산식[* [math(\left[\dfrac{x^2}2\right]_0^1)] 같은 식]의 대괄호 || |
|---|
| 275 | || '''초대형''' || [math(\Biggl(a\Biggr))], [math(\Biggl({V_{\max}}^2\Biggr))], [math(\Biggl(\dfrac12\Biggr))] || {{{#red \\Biggl}}}{{{(a}}}{{{#red \\Biggr}}}{{{)}}}, {{{#red \\Biggl}}}{{{({V_{\max}}^2}}}{{{#red \\Biggr}}}{{{)}}}, {{{#red \\Biggl}}}{{{(\dfrac12}}}{{{#red \\Biggr}}}{{{)}}} || 위아래 첨자가 있는 대형 연산자[* [math(\displaystyle \sum_{n=0}^\infty)], [math(\displaystyle \int_a^b)] 등]를 감쌀 때[* 참고로 [math(\displaystyle\int\limits_a^b)]가 포함된 식을 감싸면 '''초대형보다 더 큰 괄호로 출력됩니다.''' 이 크기는 근호 안에 정적분이 있는 식을 감쌌을 때의 크기와 똑같습니다.] || |
|---|
| 276 | || '''가변형''' || [math(\left(a\right))], [math(\left({V_{\max}}^2\right))], [math(\left(\dfrac12\right))] || {{{#red \\left}}}{{{(a}}}{{{#red \\right}}}{{{)}}}, {{{#red \\left}}}{{{({V_{\max}}^2}}}{{{#red \\right}}}{{{)}}}, {{{#red \\left}}}{{{(\dfrac12}}}{{{#red \\right}}}{{{)}}} || || |
|---|
| 277 | |
|---|
| 278 | 가변형 문법은 분수나 적분, 합의 기호 등 대형 연산자에만 사용할 것을 권합니다. 그 이유는 아래와 같습니다. |
|---|
| 279 | * 괄호 밖으로 공백이 생겨 함수(예를 들어 [math(f(x))]) 등을 입력할 때 함수 문자와 변수 문자 사이에 불필요한 공백이 생깁니다.(해당 예시 참조: [math( f \left( x \right) )]) |
|---|
| 280 | * 지수나 루트, 괄호가 본래 있었던 항 등에 처리할 경우 크기가 다른 괄호가 우후죽순 생겨 전체적으로 난잡한 느낌이 듭니다. |
|---|
| 281 | |
|---|
| 282 | 크기는 문법 미사용<소형<중형<대형<초대형 순이며 위 표에서 알 수 있듯이 '''가변형 괄호 문법만 내용에 맞춰 세로 폭이 자동으로 조정'''[* 단, 최소 크기는 디폴트인 [math(10\,{\rm pt})]이며 [[#수식 크기|폰트 크기 조절 문법]]의 영향을 받지 않기 때문에 이보다 작게 출력하려면 [[#크기 조절 문법|크기 조절 문법]]을 이용해야 합니다.]되므로 기본적으로는 {{{\left}}}, {{{\right}}} 세트를 이용합니다. [[#정적분 계산|정적분 계산식]]처럼 항상 큰 세로 폭으로 출력하고 싶을 때에는 큰 폭의 괄호를 이용합니다. 특히 대형 괄호의 세로 폭이 대형 연산자의 세로 폭과 동일하므로 {{{\biggl}}}, {{{\biggr}}} 세트를 이용합니다. |
|---|
| 283 | '''반드시 같은 크기가 세트로 들어가야 하며''' 둘 중 하나라도 누락되거나 다른 크기를 조합하면 출력에서 에러가 납니다. |
|---|
| 284 | * {{{f}}}{{{#red \\left}}}{{{(x)=x^2}}} [math(\Rightarrow)] [math(f\left(x)=x^2)] ({{{+1 ×}}}) |
|---|
| 285 | * {{{#red \\left}}}{{{[0,\,1}}}{{{#blue \\biggr}}}{{{]}}} [math(\Rightarrow)] [math(\left[0,\,1\biggr])] ({{{+1 ×}}}) |
|---|
| 286 | 다른 크기로 조합해서 출력하려면 같은 크기의 괄호를 쓰되 아래 표의 괄호 삭제 기능을 이용하여 한쪽 괄호를 제거하는 방식으로 써야 합니다. 이 때 공백 문법을 통해 간격을 조정해야하며 복잡한데다 번거로우므로 '''이와 같은 표현은 권장하지 않습니다'''. |
|---|
| 287 | * [math(\left[\!\!\!\!\!\;~\right.0,\,1\biggl.\biggr] \Leftarrow)] {{{\left[}}}{{{#blue \\!\\!\\!\\!\\!\\;~}}}{{{#red \\right.}}}{{{0,\,1}}}{{{#red \\biggl.}}}{{{\biggr]}}} |
|---|
| 288 | 단, 괄호의 종류는 변경할 수 있습니다. |
|---|
| 289 | * [math({\color{red}\left[\!\!\:\right.}0,\,1{\color{blue}\left.\!\!\!\!\;~\right)} \Leftarrow)] {{{\left}}}{{{#red [}}}{{{0,\,1\right}}}{{{#blue )}}} |
|---|
r9
| 290 | 나무위키의 수식 모드에서는 다음과 같은 괄호의 출력을 지원합니다.(단, 괄호 문법은 적용하지 않았으며, 대형 연산자를 감쌀 경우 가변 문법을 적용해주시기 바랍니다.) |
|---|
r1
| 291 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''종류''' || '''출력''' || '''문법''' || |
|---|
| 292 | || '''[[소괄호]]''' || [math({\color{red}(}a{\color{red})})] || {{{#red (}}}{{{a}}}{{{#red )}}} || |
|---|
| 293 | || '''[[중괄호]]''' || [math({\color{red}\{}a{\color{red}\}})] || {{{#red \\{}}}{{{a}}}{{{#red \\}}}} || |
|---|
| 294 | || '''[[대괄호]]''' || [math({\color{red}[}a{\color{red}]})] || {{{#red [}}}{{{a}}}{{{#red ]}}} || |
|---|
| 295 | || '''[[절댓값|절댓값 기호]]''' || [math({\color{red}|}a{\color{red}|})][br] || {{{#red |}}}{{{a}}}{{{#red |}}}[br]{{{#red \\lvert}}}{{{ a}}}{{{#red \\rvert}}} || |
|---|
| 296 | || '''[[노름|노름 기호]]''' || [math({\color{red}\|}a{\color{red}\|})] || {{{#red \\|}}}{{{a}}}{{{#red \\|}}}[br]{{{#red \\lVert}}}{{{ a}}}{{{#red \\rVert}}} || |
|---|
| 297 | || '''[[홑화살괄호]]''' || [math({\color{red}\langle}a{\color{red}\rangle})] || {{{#red \\langle}}}{{{a}}}{{{#red \\rangle}}}[br]{{{#red \\left<}}}{{{a}}}{{{#red \\right>}}}[* 꺽쇠 기호를 이용하여 나타낼 경우 {{{\big}}}, {{{\Bigg}}} 등의 괄호 문법을 적용해야하며 반드시 같은 짝이 있어야 합니다. 반면 {{{\langle}}}, {{{\rangle}}}의 경우 괄호 그 자체를 출력하는 문법이기 때문에 짝이 갖춰지지 않아도 됩니다.] || |
|---|
| 298 | || '''[[바닥 함수|바닥 함수 기호]]''' || [math({\color{red}\lfloor}a{\color{red}\rfloor})] || {{{#red \\lfloor}}}{{{a}}}{{{#red \\rfloor}}} || |
|---|
| 299 | || '''[[바닥 함수|천장 함수 기호]]''' || [math({\color{red}\lceil}a{\color{red}\rceil})] || {{{#red \\lceil}}}{{{a}}}{{{#red \\rceil}}} || |
|---|
r9
| 300 | || '''[[슬래시]]''' || [math({\color{red}/}a{\color{red}\backslash})] || {{{#red /}}}{{{a}}}{{{#red \\backslash}}} || |
|---|
| 301 | || '''[[화살표]]''' || [math({\color{red}\uparrow}a{\color{red}\Updownarrow})] || {{{#red \\uparrow}}}{{{a}}}{{{#red \\Updownarrow}}} || |
|---|
r1
| 302 | || '''괄호 삭제'''[br](괄호 문법 전용) || [math(\left.a\right.)] || {{{#red \\left.}}}{{{a}}}{{{#red \\right.}}}[* 가변형뿐만 아니라 다른 {{{\big}}}, {{{\Bigg}}} 등에도 적용됩니다.] || |
|---|
| 303 | [[겹화살괄호]]는 지원하지 않으나 홑화살괄호와 공백 문법을 이용해서 다음과 같은 대체 표현을 쓸 수 있습니다. 단, 괄호 내용의 세로 폭이 클 경우 괄호 문법과 공백을 일일이 적용해야한다는 문제점이 있습니다.[* 게다가 가변형은 초대형 괄호보다 크게 출력되는 경우가 있는만큼, 이 방법으로 표현할 수 없는 수식이 존재한다는 한계점도 있습니다.] |
|---|
| 304 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''종류''' || '''출력''' || '''문법''' || |
|---|
| 305 | ||<|2> '''[[겹화살괄호]]''' || [math({\color{red}\langle\!\!\!\;\langle}a{\color{red}\rangle\!\!\!\;\rangle})] || {{{#red \\langle\\!\\!\\!\\;\\langle}}}{{{a}}}{{{#red \\rangle\\!\\!\\!\\;\\rangle}}} || |
|---|
| 306 | || [math(\biggl<\!\!\!\!\!\!\;\biggr.\left<\dfrac12\right>\biggl.\!\!\!\!\!\!\;\biggr>)] || {{{#red \\biggl<}}}{{{#blue \\!\\!\\!\\!\\!\\!\\;}}}{{{#red \\biggr.}}}{{{#green \\left<}}}{{{\dfrac12}}}{{{#green \\right>}}}{{{#red \\biggl.}}}{{{#blue \\!\\!\\!\\!\\!\\!\\;}}}{{{#red \\biggr>}}} || |
|---|
| 307 | |
|---|
| 308 | == 대형 연산자 출력 관련 == |
|---|
| 309 | 분수, 조합, 적분, 합의 기호 등 대형 연산자의 크기를 조절하는 문법과, 적분, 극한, 합의 기호 등 첨자를 수반하는 연산자의 첨자 위치에 관한 문법이 있습니다. |
|---|
| 310 | |
|---|
| 311 | === 크기 조절 문법 === |
|---|
| 312 | '''[[#일괄 적용 문법|일괄 적용 문법]]'''입니다. 다음 [math(4)]종류의 출력이 있습니다. |
|---|
| 313 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''문법''' || '''출력''' ||<-2> '''크기''' || |
|---|
| 314 | || {{{#red \\displaystyle}}}{{{\frac12}}} || [math(\displaystyle\frac12)] ||<-2> 대형 || |
|---|
| 315 | || {{{#red \\textstyle}}}{{{\frac12}}} || [math(\textstyle\frac12)] ||<|3> 소형 || 텍스트 || |
|---|
| 316 | || {{{#red \\scriptstyle}}}{{{\frac12}}} || [math(\scriptstyle\frac12)] || 첨자 || |
|---|
| 317 | || {{{#red \\scriptscriptstyle}}}{{{\frac12}}} || [math(\scriptscriptstyle\frac12)] || 첨자 내 첨자 || |
|---|
| 318 | 수식 모드에서 각 대형 연산자의 디폴트 크기는 텍스트 크기입니다. {{{\displaystyle}}}을 씀으로써, 분수나 대형 연산자를 대형 표기로 강제 적용합니다. 기타 지수나 첨자 표기 등은 이 문법의 유무에 관계없이 출력이 똑같기 때문에 굳이 {{{\displaystyle}}}을 일일이 써주지 않아도 되며, 대형 표기 분수의 분자·분모에 대형 연산자를 쓰고 싶은 경우 해당 문법을 한 번 더 써줘야 합니다. |
|---|
| 319 | * [math(\displaystyle\frac{\sum_{k=0}^nk}{n+1} \Leftarrow)] {{{\displaystyle\frac{\sum_{k=0}^nk}{n+1}}}}[br][math(\displaystyle\frac{\displaystyle{\color{red}\sum_{k=0}^n}k}{n+1} \Leftarrow)] {{{\displaystyle\frac{}}}{{{#red \\displaystyle}}}{{{\sum_{k=0}^nk}{n+1}}}} |
|---|
| 320 | 극한의 경우 같은 수식 문법 내에 적분, 합의 기호 등 다른 대형 연산자가 없다면 {{{\displaystyle}}}을 쓰는 것보다 아래의 첨자 위치 문법을 조합해서 {{{\limits}}}를쓰는 것이 경제적입니다. |
|---|
| 321 | * [math(\lim\limits_{n\to\infty}a_n \Leftarrow)] {{{\lim}}}{{{#red \\limits}}}{{{_{n\to\infty}a_n}}} |
|---|
| 322 | 각종 첨자 문법 안에서도 크기 조절 문법이 정상작동합니다. |
|---|
| 323 | * [math(a^x \Leftarrow)] {{{a^x}}}[br][math(a^{\displaystyle{\color{red} x}} \Leftarrow)] {{{a^{}}}{{{#red \\displaystyle}}} {{{x}}}} |
|---|
| 324 | * [math(\displaystyle \int_a^b f(x) \, {\rm d}x \Leftarrow)] {{{\displaystyle \int_a^b f(x) \, {\rm d}x}}}[br][math(\displaystyle \int_{\displaystyle {\color{red} a}}^{\scriptscriptstyle {\color{red} b}} f(x) \, {\rm d}x \Leftarrow)] {{{\displaystyle \int_{}}}{{{#red \\displaystyle}}} {{{a}^{}}}{{{#red \\scriptscriptstyle}}} {{{b} f(x) \, {\rm d}x}}} |
|---|
| 325 | 참고로 {{{\begin{}내용\end{}}}} 단위로 쓰이는 각종 행렬, 연립 표기는 디폴트가 대형 크기이며 아래 예에서 알 수 있듯이 '''{{{\textstyle}}} 문법이 적용되지 않습니다'''. |
|---|
| 326 | * [math(\begin{pmatrix}a & b \\ c & d\end{pmatrix} \Leftarrow)] {{{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}}}[br][math(\textstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix} \Leftarrow)] {{{#red \\textstyle}}}{{{\begin{pmatrix}a & b \\ c & d\end{pmatrix}}}} |
|---|
| 327 | {{{\scriptstyle}}}과 {{{\scriptscriptstyle}}}에 의한 크기 변화는 있으나 한계가 있고, 이보다 더 작게 출력하려면 [[#수식 크기|수식 크기 문법]]을 이용해야 합니다. |
|---|
| 328 | * [math({\scriptstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] {{{#red \\scriptstyle}}}{{{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}}}[br][math({\scriptscriptstyle\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] {{{#red \\scriptscriptstyle}}}{{{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}}} |
|---|
| 329 | * [math({\tiny\begin{pmatrix}a & b \\ c & d\end{pmatrix}} \Leftarrow)] {{{#red \\tiny}}}{{{\begin{pmatrix} a & b \\ c & d\end{pmatrix}}}} |
|---|
| 330 | 분수, 조합 기호에 한해서 {{{\displaystyle\frac}}}, {{{\displaystyle\binom}}}을 각각 {{{\dfrac}}}, {{{\dbinom}}}으로 간단하게 나타낼 수 있습니다. 이 경우 다른 일괄 크기 조절 문법이 선행됐다 하더라도 해당 문법은 대형 표기로 출력됩니다. |
|---|
| 331 | * {{{\textstyle \frac 12 }}}{{{#red \\dfrac ab }}}{{{\sum_{n=1}^\infty c_n}}} [math(\Rightarrow \frac 12 {\color{red}\dfrac ab} \sum_{n=1}^\infty c_n)] |
|---|
| 332 | * {{{\textstyle \frac{}}}{{{#red \\dfrac{a+1}{b+1}}}}{{{}{\frac{c+1}{d+1}}}}} [math(\Rightarrow \textstyle \frac{{\color{red}\dfrac{a+1}{b+1}}}{\frac{c+1}{d+1}})] |
|---|
| 333 | 단, 연분수를 나타내고자 할 때에는 {{{\cfrac}}} 문법을 이용[* cfrac은 '''c'''ontinued '''frac'''tion(연분수)의 약어로 이 문법이 연분수를 위한 문법임을 단적으로 드러내고 있습니다.]합니다. {{{\dfrac}}}과 유사하게 다른 일괄 크기 조절 문법의 영향을 받지 않으나 분수의 가로 세로 폭이 {{{\dfrac}}}보다 미묘하게 크게 출력됩니다. [[원주율|원주율 [math(\pi)]]]을 예로 두 문법을 각각 적용한 아래 예시를 비교하십시오. |
|---|
| 334 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''{{{\dfrac}}} 적용''' || '''{{{\cfrac}}} 적용''' || |
|---|
| 335 | || [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}}}}}}}}})] || |
|---|
| 336 | 마찬가지로 분수, 조합의 텍스트 크기를 {{{\tfrac}}}, {{{\tbinom}}}으로 간단하게 나타낼 수 있습니다. 역시 다른 일괄 크기 조절 문법이 선행돼도 해당 수식은 텍스트 크기로 출력됩니다. |
|---|
| 337 | |
|---|
| 338 | === 첨자 위치 문법 === |
|---|
| 339 | 첨자 표기를 수반하는 연산자의 첨자 위치에는 다음과 같이 두 가지 스타일이 있습니다. |
|---|
| 340 | * 비극한식 표기: [math(\displaystyle \int_a^b f(x) \,{\rm d}x)] |
|---|
| 341 | * 극한식 표기: [math(\displaystyle \int\limits_a^b f(x) \,{\rm d}x)][* 참고로 독일 및 러시아에서는 이 방식의 정적분 표기가 주류입니다.] |
|---|
r9
| 342 | 나무위키의 TeX에서는 소형 표기일 때 모든 연산자에서 전자 방식(비극한식)으로 출력되는 것이 디폴트이며, 대형 표기일 때는 적분을 제외한 대부분의 연산자에서 후자 방식(극한식)이 디폴트입니다. |
|---|
r1
| 343 | 소형 표기를 유지하되 대형 연산자의 첨자 위치를 극한식 표기로 나타내고 싶을 때[* 특히 지수 부분에 첨자가 딸린 대형 연산자가 포함되는 경우, 이 표기를 권장합니다.]에는 해당 연산자 문법에 {{{\limits}}}를 덧붙입니다. 대형 연산자의 문법이 (연산자)(아래 첨자)(위 첨자)[* (아래 첨자)와 (위 첨자) 위치는 서로 뒤바뀌어도 됩니다.] 묶음으로 구성되어 있다고 할 때, '''(연산자) 앞을 제외한 각 묶음의 양 옆 중 아무데나 한 곳'''에 {{{\limits}}}를 붙여주면 해당 효과가 바로 적용됩니다(아래 참조). 그러나 연산자 묶음 앞에 선행하거나 각 묶음 내부에 {{{\limits}}}가 침범하는 경우엔 제대로 출력이 되지 않거나 에러가 납니다. |
|---|
| 344 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''문법''' || '''출력''' || |
|---|
| 345 | ||{{{e^{\sum_{n=1}^\infty a_n}}}} || [math(e^{\sum_{n=1}^\infty a_n})] || |
|---|
| 346 | ||{{{e^{\sum}}}{{{#red \\limits}}}{{{_{n=1}^\infty a_n}}}} || [math(e^{\sum\limits_{n=1}^\infty a_n})] || |
|---|
| 347 | ||{{{e^{\sum_{n=1}}}}{{{#red \\limits}}}{{{^\infty a_n}}}} || [math(e^{\sum_{n=1}\limits^\infty a_n})] || |
|---|
| 348 | ||{{{e^{\sum_{n=1}^\infty}}}{{{#red \\limits }}}{{{a_n}}}} || [math(e^{\sum_{n=1}^\infty\limits a_n})] || |
|---|
| 349 | {{{\limits}}} 문법은 해당 연산자에 한하여 첨자의 위치에만 영향을 주기 때문에 앞선 {{{\displaystyle}}}의 영향을 받으나, 적분을 제외한 연산자에서는 병용해도 의미가 없습니다. 이유인 즉, {{{\displaystyle}}}과 조합할 경우 원래대로의 극한식 표기가 적용될 뿐이기 때문에 출력에는 전혀 차이가 없으며, 소형 표기를 전제로 하는 특성상 다른 일괄 크기 조절 문법을 굳이 필요로 하지 않기 때문입니다. |
|---|
| 350 | 마찬가지로 대형 표기를 유지하되 대형 연산자의 첨자 위치를 비극한식 표기로 나타내고 싶을 때에는 해당 연산자 문법에 {{{\nolimits}}}를 덧붙입니다. 비극한식 표기 문법은 적분을 제외한 대형 연산자에서 {{{\displaystyle}}}과 병용했을 때에만 의미가 있습니다. 대한민국에서는 대형 연산자의 대형 표기에서 이 방식이 주류가 아니기 때문에 권장되지는 않습니다. |
|---|
| 351 | * [math(\displaystyle \sum\nolimits_{\color{red}k=1}^{\color{red}n}a_k \Leftarrow)] {{{\displaystyle \sum}}}{{{#red \\nolimits}}}{{{_{k=1}^n a_k}}} |
|---|
| 352 | 이 문법은 첨자 표기를 수반하는 연산자들에 한해서만 적용되기 때문에 분수나 조합에 적용하면 설령 첨자가 있다 하더라도 에러가 납니다. |
|---|
| 353 | |
|---|
| 354 | == 함수 문법 == |
|---|
| 355 | 일부 지원되지 않는 함수들(후술)을 제외하고 로마자로 표현되는 각종 함수들은 {{{\함수 이름}}}으로 간단히 쓸 수 있습니다. 단 [[MOD#s-1|[math(\bmod)]]]는 {{{\bmod}}}로 써야 합니다. |
|---|
| 356 | * [math(\sin x \Leftarrow)] {{{\sin x}}}, [math(\cos x \Leftarrow)] {{{\cos x}}}, [math(\tan x \Leftarrow)] {{{\tan x}}}, [math(\sin^2x \Leftarrow)] {{{\sin^2x}}} |
|---|
| 357 | * [math(\sinh x \Leftarrow)] {{{\sinh x}}}, [math(\cosh x \Leftarrow)] {{{\cosh x}}}, [math(\tanh x \Leftarrow)] {{{\tanh x}}}, [math(\coth x \Leftarrow)] {{{\coth x}}} |
|---|
| 358 | * [math(\exp(x) \Leftarrow)] {{{\exp(x)}}}, [math(\ln x \Leftarrow)] {{{\ln x}}}, [math(\log_ab \Leftarrow)] {{{\log_ab}}} |
|---|
| 359 | * [math(\gcd(m,\,n)\Leftarrow)] {{{\gcd(m,\,n)}}}, [math(\arg z \Leftarrow)] {{{\arg z}}}, [math(\sup A \Leftarrow)] {{{\sup A}}}, [math(\inf S \Leftarrow)] {{{\inf S}}} |
|---|
| 360 | |
|---|
| 361 | 일부 함수는 로마자가 아닌 [[블랙 레터]]로 표현됩니다. |
|---|
| 362 | * [math(\Re(x) \Leftarrow)] {{{\Re(x)}}}, [math(\Im(x) \Leftarrow)] {{{\Im(x)}}}, [math(\wp(z;\,\tau) \Leftarrow)] {{{\wp(z;\,\tau)}}} |
|---|
| 363 | 아래에 제시된 함수는 이 기능을 지원하지 않으므로 수식 로만 폰트를 이용해 직접 입력 후 최소 공백 만큼({{{\,}}}) 띄워서[* 정상적으로 출력되는 함수들을 로만 폰트로 표현할 경우 최소 공백만큼 띄운 것과 출력이 같기 때문입니다. 아래 예를 비교해보십시오.[br][math(\sin30\degree \Leftarrow)] {{{\sin30\degree}}}[br][math({\rm sin}\,30\degree \Leftarrow)] {{{{\rm sin}\,30\degree}}}] 변수 혹은 수를 입력합니다. (괄호를 사용할 경우 띄우지 않습니다. 예: [math(f(x))] vs [math(f\,(x))]) |
|---|
| 364 | 1. 최소공배수: lcm[* 최대공약수 {{{\gcd}}}는 정상적으로 출력됩니다.] |
|---|
| 365 | 1. 역삼각함수: arccot, arcsec, arccsc |
|---|
| 366 | 1. 쌍곡선 함수: sech, csch |
|---|
| 367 | 1. '''모든''' 역쌍곡선 함수[* asinh, [[쌍곡선 함수#s-2.3|arcsinh]] 등 기타 다른 표현 역시 모두 먹히지 않습니다.]: arsinh, arcosh, artanh, arcoth, arsech, arcsch |
|---|
| 368 | 1. 상당수의 특수함수: [[부호 함수|sgn]], [[지수 적분 함수|Ei]], [[로그 적분 함수|li]], [[삼각 적분 함수|Si, Ci]], [[쌍곡선 적분 함수|Shi, Chi]], [[오차함수|erf]] 등 |
|---|
| 369 | 1. 선형대수학의 연산자: rank, tr, null[* {{{\dim}}}, {{{\ker}}}, {{{\det}}}는 정상적으로 출력됩니다.] |
|---|
| 370 | * [math({\rm csch}\,x \Leftarrow)] {{{{\rm csch}\,x}}} |
|---|
| 371 | * [math({\rm tr}\,A \Leftarrow)] {{{{\rm tr}\,A}}} |
|---|
| 372 | == \\begin, \\end 문법 == |
|---|
| 373 | 본 문법은 {{{\begin{종류}내용\end{종류}}}} 꼴로 사용하며 행렬, 연립 표기 등 단(段)이 필요한 모든 형태의 수식 문법에 쓰입니다. 이 문법은 [[#괄호 문법|괄호 문법]]과는 달리 선언({{{\begin{종류}}}})과 종료({{{\end{종류}}}})에서 '''종류를 반드시 일치시켜야 합니다'''. 종류가 다르면 출력 결과에서 에러가 납니다. |
|---|
| 374 | * {{{\begin{}}}{{{#red pmatrix}}}{{{}a&b\\c&d\end{}}}{{{#blue vmatrix}}}{{{}}}} [math(\Rightarrow)] [math(\begin{pmatrix}a&b\\c&d\end{vmatrix})] |
|---|
| 375 | 다음과 같은 종류를 이용할 수 있습니다. |
|---|
| 376 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''수식''' || '''출력''' || '''종류''' || |
|---|
| 377 | ||<|6> '''행렬''' || [math(\begin{matrix}a&b\\c&d\end{matrix})] || matrix || |
|---|
| 378 | || [math(\begin{pmatrix}a&b\\c&d\end{pmatrix})] || pmatrix || |
|---|
| 379 | || [math(\begin{bmatrix}a&b\\c&d\end{bmatrix})] || bmatrix || |
|---|
| 380 | || [math(\begin{Bmatrix}a&b\\c&d\end{Bmatrix})] || Bmatrix || |
|---|
| 381 | || [math(\begin{vmatrix}a&b\\c&d\end{vmatrix})] || vmatrix || |
|---|
| 382 | || [math(\begin{Vmatrix}a&b\\c&d\end{Vmatrix})] || Vmatrix || |
|---|
| 383 | || '''연립 표기''' || [math(\begin{cases}a&b\\c&d\end{cases})] || cases || |
|---|
| 384 | ||<|2> '''정렬 문법''' || [math(\begin{aligned}x+y+z&=3\\2y-z&=1\end{aligned})] || aligned || |
|---|
| 385 | || [math(\begin{array}{ccccc}&x&+y&+z&=3\\& &~2y&-z&=1\end{array})] || array || |
|---|
| 386 | 행렬 표기에서 서로 다른 괄호를 조합하고 싶을 경우 '종류'를 괄호 없는 행렬 {{{matrix}}}로 통일시키고 괄호 문법으로 직접 입력합니다. |
|---|
| 387 | * [math({\color{red}\biggl(\biggr.}\begin{matrix}a&b\\c&d\end{matrix}{\color{blue}\biggl.\biggr]} \Leftarrow)] {{{#red \\left(}}}{{{\begin{}}}{{{#green matrix}}}{{{}a&b\\c&d\end{}}}{{{#green matrix}}}{{{}}}}{{{#blue \\right]}}} |
|---|
| 388 | 단을 만드는 데에는 {{{&}}}를 이용하며 {{{&}}} 하나 당 단 '''경계선''' 하나가 만들어지므로, 한 행에는 (만들고자 하는 단의 개수[math(-1)]개) 만큼의 {{{&}}}를 입력하면 됩니다. |
|---|
| 389 | * [math(\begin{pmatrix}a_1&a_2&a_3\\b_1&b_2&b_3\end{pmatrix} \Leftarrow)] {{{\begin{pmatrix}a_1}}}{{{#red &}}}{{{a_2}}}{{{#red &}}}{{{a_3\\b_1}}}{{{#red &}}}{{{b_2}}}{{{#red &}}}{{{b_3\end{pmatrix}}}} |
|---|
| 390 | 이 때 한 '종류'의 문법 내에서는 물론, 개행 문법과 복수 '종류'의 {{{\begin}}}, {{{\end}}} 문법을 사용해도 단 경계선 위치는 왼쪽부터 차례대로 정렬되므로 행간에 다르게 적용하려면 '''하나의 {{{\begin}}}, {{{\end}}} 문법 안에 복수의 {{{\begin}}}, {{{\end}}} 문법을 감싸는 식으로 사용'''해야 합니다(아래 참조). |
|---|
| 391 | * {{{\begin{pmatrix}a_1}}}{{{#red &}}}{{{a_2}}}{{{#red &}}}{{{a_3\\b_1}}}{{{#red &}}}{{{b_2}}}{{{#red &}}}{{{b_3\\c_1}}}{{{#blue &}}}{{{c_2\end{pmatrix}}}} [math(\Rightarrow \begin{pmatrix}a_1&a_1&a_3\\b_1&b_2&b_3\\c_1&c_2\end{pmatrix})] ({{{+1 ×}}}) |
|---|
| 392 | {{{#red \\begin{matrix}}}}{{{a_1&a_1&a_3\\b_1&b_2&b_3}}}{{{#red \\end{matrix}}}}{{{#blue \\\\\\}}}{{{#red \begin{matrix}}}}{{{c_1&c_2}}}{{{#red \\end{matrix}}}} [math(\Rightarrow \begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix})][* 참고로 이 상태에서 양끝을 괄호 문법으로 감쌀 경우 [br][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))][br]처럼 '''행렬간 개행 문법이 무시'''됩니다.] ({{{+1 ×}}}) |
|---|
| 393 | {{{#red \\begin{pmatrix}}}}{{{#blue \\begin{matrix}}}}{{{a_1&a_1&a_3\\b_1&b_2&b_3}}}{{{#blue \\end{matrix}}}}{{{#red \\\\\\}}}{{{#green \\begin{matrix}}}}{{{c_1&c_2}}}{{{#green \\end{matrix}}}}{{{#red \\end{pmatrix}}}} [math(\Rightarrow \begin{pmatrix}\begin{matrix}a_1&a_1&a_3\\b_1&b_2&b_3\end{matrix}\\\begin{matrix}c_1&c_2\end{matrix}\end{pmatrix})] ({{{+1 ○}}}) |
|---|
| 394 | {{{aligned}}} 정렬 이외의 종류에서는 {{{&}}}가 단의 경계선이 되지만, {{{aligned}}} 정렬에서는 '''{{{&}}} 바로 다음 한 글자'''[* 즉 중괄호로 묶어서 {{{&{AB}}}}와 같이 써도 {{{A}}}가 있는 열이 기준이 되어 정렬됩니다.]가 단의 경계선이 됩니다. 그러나 {{{&}}}를 여러 개 사용할 경우 다음과 같은 문제가 생길 수 있습니다. [* 단의 폭을 정하는 알고리즘이 다른 종류와 다르기 때문입니다.] |
|---|
| 395 | * {{{\begin{aligned}x^2+4x+5y}}}{{{#red &=}}}{{{1\\x}}}{{{#red &=}}}{{{2y+7\end{aligned}}}} [math(\Rightarrow \begin{aligned}x^2+4x+5y&{\color{red}=}1\\x&{\color{red}=}2y+7\end{aligned})] |
|---|
| 396 | * {{{\begin{aligned}x^2+4}}}{{{#red &x}}}{{{+5y}}}{{{#blue &=}}}{{{1\\}}}{{{#red &x}}}{{{#blue &=}}}{{{2y+7\end{aligned}}}} [math(\Rightarrow \begin{aligned}x^2+4&{\color{red}x}+5y&{\color{blue}=}1\\&{\color{red}x}&{\color{blue}=}2y+7\end{aligned})] ({{{+1 ×}}}) |
|---|
| 397 | {{{aligned}}} 문법에서 {{{&}}}를 여러 번 사용할 경우 다음과 같이 두 개의 행이 짝지어집니다. {{{#red 빨간색 &}}}는 두 행을 붙이고 있고 {{{#blue 파란색 &}}}는 두 행을 띄우고 있습니다. |
|---|
| 398 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''입력''' || |
|---|
| 399 | || [math(\begin{aligned} M_{{\rm max}_1} & i_2 & M_{{\rm max}_3} & i_4 & M_{{\rm max}_5}\\ i_1 & M_{{\rm max}_2} & i_3 & M_{{\rm max}_4} & i_5 \end{aligned})] ||{{{\begin{aligned}M_{{\rm max}_1}}}}{{{#red &}}}{{{i_2}}}{{{#blue &}}}{{{M_{{\rm max}_3}}}}{{{#red &}}}{{{i_4}}}{{{#blue &}}}{{{M_{{\rm max}_5}}}}[br]{{{\\i_1}}}{{{#red &}}}{{{M_{{\rm max}_2}}}}{{{#blue &}}}{{{i_3}}}{{{#red &}}}{{{M_{{\rm max}_4}}}}{{{#blue &}}}{{{i_5\end{aligned}}}} || |
|---|
| 400 | 각 종류마다 단 내용의 정렬 방식에 차이가 있습니다. 행렬 계열은 가운데 정렬이고, 연립 표기는 왼쪽 정렬로 출력됩니다. |
|---|
| 401 | * [math(\begin{pmatrix}a&b+1\\c+1&d\end{pmatrix} \Leftarrow)] {{{\begin{pmatrix}a&b+1\\c+1&d\end{pmatrix}}}} |
|---|
| 402 | * [math(\begin{cases}a&b+1\\c+1&d\end{cases} \Leftarrow)] {{{\begin{cases}a&b+1\\c+1&d\end{cases}}}} |
|---|
| 403 | {{{array}}} 정렬에서는 디폴트가 가운데 정렬이지만 '''각 단마다 정렬 방식을 지정할 수 있습니다'''. {{{array}}} 정렬 선언 후 {{{l}}}(왼쪽 정렬), {{{c}}}(가운데 정렬), {{{r}}}(오른쪽 정렬)을 이용하여 왼쪽부터 차례대로 쓴 뒤 중괄호로 묶어서 나타냅니다. 꼭 단의 개수만큼 쓸 필요는 없으며 생략한 경우 해당 단은 디폴트 상태가 되지만, '''정렬 지정 문법이 아예 없으면 출력에 에러가 납니다'''. 또한 단을 건너뛰어서 적용할 수 없으므로, 건너뛰고자 하는 단은 디폴트 정렬인 {{{c}}}로 지정해야 합니다. 아래 예에서는 전체 [math(5)]개의 단 중 제[math(1)]단을 건너뛰고({{{c}}}) 제[math(2)]단({{{#skyblue l}}}), 제[math(3)]단({{{#purple r}}})만 정렬을 지정하였습니다. |
|---|
| 404 | * [math(\begin{array}{clr}2x&{\color{skyblue}+3y}&{\color{purple}+5z}&=&11\\&{\color{skyblue}2y}&{\color{purple}-z}&=&1\end{array} \Leftarrow)] {{{\begin{array}}}}{{{#red {}}}{{{c}}}{{{#skyblue l}}}{{{#purple r}}}{{{#red }}}}{{{2x}}}{{{#blue &}}}{{{+3y}}}{{{#blue &}}}{{{+5z}}}{{{#blue &}}}={{{#blue &}}}{{{3\\}}}{{{#green &}}}{{{2y}}}{{{#green &}}}{{{-5z}}}{{{#green &}}}{{{=}}}{{{#green &}}}{{{1\end{array}}}} |
|---|
| 405 | 정렬 지정 문법 둘레와 사이사이에 바(|)를 입력하면, 바의 수만큼 단 경계에 세로줄이 만들어집니다. 또한 {{{\hline}}}을 입력하면 가로줄이 형성되므로 이를 응용하면 표를 만들 수 있습니다. |
|---|
| 406 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''입력''' || |
|---|
| 407 | || [math(\begin{array}{|c||c|c|c|c|c|c|c|}\hline x&\cdots&a&\cdots&\alpha&\cdots&b&\cdots\\\hline f'\left(x\right)&+&0&-&-&-&0&+\\f''\left(x\right)&-&-&-&0&+&+&+\\f\left(x\right)&\nearrow&\cdots&\searrow&\cdots&\searrow&\cdots&\nearrow\\\hline\end{array})] ||{{{\begin{array}{}}}{{{#red |}}}{{{c}}}{{{#red ||}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{c}}}{{{#red |}}}{{{}}}}[br]{{{#blue \\hline }}}[br]{{{x&\cdots&a&\cdots&\alpha&\cdots&b&\cdots\\}}}[br]{{{#blue \\hline }}}[br]{{{f'\left(x\right)&+&0&-&-&-&0&+\\}}}[br]{{{f''\left(x\right)&-&-&-&0&+&+&+\\}}}[br]{{{f\left(x\right)&\nearrow&\cdots&\searrow&\cdots&\searrow&\cdots&\nearrow\\}}}[br]{{{#blue \\hline}}}[br]{{{\end{array}}}} || |
|---|
| 408 | |
|---|
| 409 | == 입력 팁 == |
|---|
| 410 | 수식 모드에서 반점([math(,)]과 세미콜론([math(;)])에 대해, '''해당 기호로 수식이 끝나지 않는다면 이후에 자동적으로 최소 공백({{{\,}}})이 삽입되는 기능이 있습니다.'''(텍스트 모드는 해당되지 않습니다.)아래 예시를 비교해보십시오. |
|---|
| 411 | * [math(3{\color{red},}\,141592 \Leftarrow)] {{{3}}}{{{#red ,}}}{{{141592}}} |
|---|
| 412 | [math(\text{3{\color{red},}\,141592} \Leftarrow)] {{{\text{3}}}{{{#red ,}}}{{{#blue \\,}}}{{{141592}}}} (텍스트 모드에서 최소 공백만큼 띄움) |
|---|
| 413 | [math(\text{3{\color{red},}141592} \Leftarrow)] {{{\text{3}}}{{{#red ,}}}{{{141592}}}} |
|---|
| 414 | [math(3{\color{red},}141592 \Leftarrow)] {{{3}}}{{{#red ,}}}{{{#green \\!}}}{{{141592}}} (수식 모드에서 최소 공백만큼 제거) |
|---|
| 415 | [math(3.141592 \Leftarrow)] {{{3.141592}}} |
|---|
| 416 | * [math(1{\color{red};}\,2 \Leftarrow)] {{{1}}}{{{#red ;}}}{{{2}}} |
|---|
| 417 | [math(\text{1{\color{red};}\,2} \Leftarrow)] {{{\text{1}}}{{{#red ;}}}{{{#blue \\,}}}{{{2}}}} (텍스트 모드에서 최소 공백만큼 띄움) |
|---|
| 418 | [math(\text{1{\color{red};}2} \Leftarrow)] {{{\text{1}}}{{{#red ;}}}{{{2}}}} |
|---|
| 419 | [math(1{\color{red};}2 \Leftarrow)] {{{1}}}{{{#red ;}}}{{{#green \\!}}}{{{2}}} (수식 모드에서 최소 공백만큼 제거) |
|---|
| 420 | [[#공백|공백 문법]]에서도 전술한바와 같이, 최소 공백은 반각 공백 폭의 [math(\dfrac23)]이기 때문에, 텍스트 모드와 등가로 출력하려면 [math(\dfrac13)]짜리 공백 문법({{{\!~}}}, {{{\!\}}}{{{#!html <span style="background-color: #FF0000"> </span>}}}, {{{\!\text{}}}{{{#!html <span style="background-color: #FF0000"> </span>}}}{{{}}}} 등등)을 써야 하지만, 최소 공백만으로 크게 어색하지 않게 렌더링되며 경제적이므로 '''수식 도중에 반점, 세미콜론을 쓰고 공백을 띄우는 표기를 할 때에는 최소 공백만큼 띄우는 것을 권장합니다.''' |
|---|
| 421 | * [math(\text{1, 2, 3, 4} \Leftarrow)] {{{\text{1, 2, 3, 4}}}} |
|---|
| 422 | [math(1,\!~2,\!~3,\!~4 \Leftarrow)] {{{1,}}}{{{#blue \\!~}}}{{{2,}}}{{{#blue \\!~}}}{{{3,}}}{{{#blue \\!~}}}{{{4}}} |
|---|
| 423 | [math(1,\,2,\,3,\,4 \Leftarrow)] {{{1,}}}{{{#red \\,}}}{{{2,}}}{{{#red \\,}}}{{{3,}}}{{{#red \\,}}}{{{4}}} |
|---|
| 424 | [math((x,\!~y) \Leftarrow)] {{{(x,}}}{{{#blue \\!~}}}{{{y)}}} |
|---|
| 425 | [math((x,\,y) \Leftarrow)] {{{(x,}}}{{{#red \\,}}}{{{y)}}} |
|---|
| 426 | |
|---|
| 427 | 괄호 문법을 씀과 동시에 괄호에만 색을 입히고 싶은 경우, {{{{\color{red}\left(}내용{\color{red}\right)}}}}처럼 입력하면 색상 문법 내에서 괄호가 불완전하게 종료된 것으로 인식되기 때문에 출력에서 에러가 납니다. 따라서 일일이 다른 한쪽 괄호를 삭제 문법으로 채워넣어야 하며 공백 문법으로 간격도 조정해야합니다. 아래 예에서는 괄호 문법을 쓰지 않았을 때와 등가로 만들기 위해[* 비교[br][math({\color{red}(}a+b{\color{red})}^2 \Leftarrow)] {{{{\color{red}}}}{{{#red (}}}{{{}a+b{\color{red}}}}{{{#red )}}}{{{}^2}}}(괄호 문법 미사용)[br][math({\color{red}\left(\!\!\:\right.}a+b{\color{red}\left.\!\!\!\!\;~\right)}^2 \Leftarrow)] {{{{\color{red}}}}{{{#red \\left(}}}{{{#blue \\!\\!\\:}}}{{{#red \\right.}}}{{{}a+b{\color{red}}}}{{{#red \\left.}}}{{{#blue \\!\\!\\!\\!\\;~}}}{{{#red \\right)}}}{{{}^2}}}(괄호 문법 사용)] 왼쪽, 오른쪽에 각각 상대 길이 [math(-\dfrac49)]{{{#!html <span style="background-color: #00FF00"> </span>}}}, [math(-\dfrac59)]{{{#!html <span style="background-color: #00FF00"> </span>}}}의 공백을 썼지만 '''이 간격 조정 수치는 괄호의 크기에 따라 달라집니다'''.[* 일례로 대형 괄호는[br][math(\left(\dfrac12\right) \Leftarrow)] {{{\left(\dfrac12\right)}}}[br][math({\color{red}\bigg(\bigg.}\dfrac12{\color{red}\bigg.\bigg)} \Leftarrow)] {{{{\color{red}\bigg(\bigg.}\dfrac12{\color{red}\bigg.\bigg)}}}}[br]처럼 공백 문법이 필요 없습니다.] |
|---|
| 428 | * {{{{\color{red}\left(}a+b{\color{red}\right)}^2}}} [math(\Rightarrow)] [math({\color{red}\left(}a+b{\color{red}\right)}^2)] ({{{+1 ×}}}) |
|---|
| 429 | {{{{\color{red}\left(}}}{{{#blue \\!\\!\\:}}}{{{#red \\right.}}}{{{}a+b{\color{red}}}}{{{#red \\left.}}}{{{#blue \\!\\!\\!\\!\\;~}}}{{{\right)}^2}}} [math(\Rightarrow {\color{red}\left(\!\!\:\right.}a+b{\color{red}\left.\!\!\!\!\;~\right)}^2)] ({{{+1 ○}}}) |
|---|
| 430 | |
|---|
| 431 | 적분을 쓸 때, [math({\rm d}x)], [math({\rm d}y)] 등 무한소(엄밀히 말하면 [[미분형식]])의 좌우는 최소 공백 만큼({{{\,}}}) 띄워야 합니다. 그러나 무한소 전후로 괄호 문법을 쓴 괄호가 올 경우 자동으로 최소 공백이 적용되므로 넣지 않아도 됩니다. (아래 3,4번째 예시를 비교해보십시오) |
|---|
| 432 | * [math(\displaystyle \int x \,{\rm d}x \Leftarrow)] {{{\displaystyle \int x}}}{{{#red \\,}}}{{{{\rm d}x}}} |
|---|
| 433 | * [math(\displaystyle \iint_S A \,{\rm d}x \,{\rm d}y \Leftarrow)] {{{\displaystyle \iint_S A}}}{{{#red \\,}}}{{{{\rm d}x}}}{{{#red \\,}}}{{{{\rm d}y}}} |
|---|
| 434 | * [math(\displaystyle \int f(x)\,{\rm d}x \Leftarrow)] {{{\displaystyle \int f(x)\,{\rm d}x}}} |
|---|
| 435 | * [math(\displaystyle \int f\!\left(x\right){\rm d}x \Leftarrow)] {{{\displaystyle \int f\!\left(x\right){\rm d}x}}} |
|---|
| 436 | * [math(\displaystyle \int {\rm d}x \,f(x) \Leftarrow)] {{{\displaystyle \int {\rm d}x}}}{{{#red \\,}}}{{{f(x)}}} |
|---|
| 437 | |
|---|
| 438 | 변수 부분이 길 경우 혼란 방지를 위해 다음과 같이 괄호를 둘러 어디까지가 변수인지를 명확히 밝혀주시기 바랍니다. |
|---|
| 439 | * [math(\sin x^2+4x+\dfrac1{2x})] ('''{{{+1 ×}}}''')[br][math(\sin\!{\color{red}(}x^2+4x{\color{red})}+\dfrac1{2x})] ('''{{{+1 ○}}}''') |
|---|
| 440 | |
|---|
| 441 | 도형명, 선분, 꼭짓점 등의 표기는 로만 폰트로 나타내는 것을 권장합니다. |
|---|
| 442 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || |
|---|
| 443 | || [math(\triangle\rm ABC)] ||{{{\triangle\rm ABC}}} || |
|---|
| 444 | || [math(\overline{\rm AB})] ||{{{\overline{\rm AB}}}} || |
|---|
| 445 | || [math(\overrightarrow{\rm OP})] ||{{{\overrightarrow{\rm OP}}}} || |
|---|
| 446 | || [math(\angle\rm ABC)] ||{{{\angle\rm ABC}}} || |
|---|
| 447 | 단위는 수에서 최소 공백({{{\,}}})만큼 띄우고, 로만 폰트로 쓰는 것이 원칙입니다. 아울러 [[가운뎃점]]({{{\cdot}}})은 전각 기호로 출력되므로 공간을 많이 차지합니다. 따라서 [[내적]]의 의미로 쓴 것이 아니라면 전후로 최소 공백({{{#red \\!}}})만큼 제거하는 문법을 쓰는 것을 권장합니다. |
|---|
| 448 | ||<table bgcolor=#fff,#1f2023><rowbgcolor=#eaeaea,#33353a> '''출력''' || '''문법''' || |
|---|
| 449 | || [math(5\,\rm kg\!\cdot\!m/s^2)] ||{{{5\,\rm kg}}}{{{#red \\!}}}{{{\cdot}}}{{{#red \\!}}}{{{m/s^2}}} || |
|---|
| 450 | || [math(5\,\Omega)] ||{{{5\,\Omega}}} || |
|---|
| 451 | 슬래시를 이용하여 분수를 표현할 경우에는 분모·분자의 위치에 주의합니다. [math(\dfrac ab = a/b)]로 [math(b)]가 분모이고 [math(a)]가 분자입니다. 다만, 이 경우엔 괄호를 잘 활용하여, 분모 분자를 잘 밝혀 적어야 한다는 것에 유의합니다. |
|---|
| 452 | * 우리는 [math(1/2)]을 양변에 곱함으로써 식을 간단히 정리할 수 있다. |
|---|
| 453 | * 등가속도 공식 중 변위와 시간의 관계는 [math(s(t)=(at^2)/2+v_0t)]로 쓸 수 있다. |
|---|
| 454 | |
|---|
| 455 | == 예시 == |
|---|
| 456 | 아래는 몇몇 경우의 입력 방법을 기입한 표입니다. 몇몇 문법은 동일한 표기를 출력하기도 하며 아래 표에서 등호로 표기되어있습니다. |
|---|
| 457 | ||<table align=center><table width=100%><width=30%><table bgcolor=#fff,#1f2023><rowbgcolor=#ddd,#383b40> '''출력''' ||<width=50%> '''문법''' ||<width=20%> '''비고''' || |
|---|
| 458 | || [math(a^x)], [math(e^{x^2})] || {{{a^x}}}, {{{e^{x^2}}}} || 오른쪽 위 첨자 || |
|---|
| 459 | || [math(a_x)], [math(a_{ij})] || {{{a_x}}}, {{{a_{ij}}}} || 오른쪽 아래 첨자 || |
|---|
| 460 | || [math(a_x^y)], [math(A_{\nu}^{\mu})] || {{{a_x^y}}}, {{{A_{\nu}^{\mu}}}} || 오른쪽 위·아래 첨자 혼용(1) || |
|---|
| 461 | || [math({a_1}^2)], [math({V_{\max}}^{-1})] || {{{{a_1}^2}}}, {{{{V_{\max}}^{-1}}}} || 오른쪽 위·아래 첨자 혼용(2)[* 특히 지수 표기에서, 첨자를 붙이고자 하는 문자 전체를 중괄호로 감싸야 합니다.] || |
|---|
r9
| 462 | || [math({}_1^2{\rm H})], [math({}_{~~6}^{12}{\rm C})] || {{{{}_1^2{\rm H}}}}, {{{{}_{~~6}^{12}{\rm C}}}}[*※ 왼쪽 첨자를 사용할 때 처음에 중괄호를 쓰지 않으면 앞에 쓴 글자에 첨자를 붙이는 것으로 인식되어 제대로 출력되지 않습니다. ex): {{{6=_3{\rm P}_3}}}[math(\Rightarrow 6=_3{\rm P}_3)]][* 원소의 질량수와 원자 번호는 오른쪽 정렬로 표기하는 것이 원칙이나 현재 나무위키에서 정렬 문법이 지원되지 않습니다. 대신 반각 공백 문법 두 번(상대 길이 [math(2)]{{{#!html <span style="background-color: #00FF00"> </span>}}})으로 숫자 하나 분량의 칸을 메워서 나타낼 수 있습니다.] || 왼쪽 위·아래 첨자 혼용 || |
|---|
r1
| 463 | || [math(\times)] || {{{\times}}} || 곱셈 및 외적 기호 || |
|---|
| 464 | || [math(\cdot)] || {{{\cdot}}} || 곱셈 및 내적 기호 || |
|---|
| 465 | || [math(\div)] || {{{\div}}} || 나눗셈 기호 || |
|---|
| 466 | || [math(\sqrt2)], [math(\sqrt x)], [math(\sqrt{x^2-1})][br][math(\sqrt[n]x)], [math(\sqrt[3]{27})] || {{{\sqrt2}}}, {{{\sqrt x}}}, {{{\sqrt{x^2-1}}}}[br]{{{\sqrt[n]x}}}, {{{\sqrt[3]{27}}}} || 근호 || |
|---|
| 467 | || [math(\sim)] || {{{\sim}}} || 점근 표시 및 비례 표시, [br] 국제적으로 통용되는 [[닮음]]기호 || |
|---|
| 468 | || [math(\backsim)] || {{{\backsim}}} || 한국 및 일본에서 쓰이는 [[닮음]]기호 || |
|---|
| 469 | || [math(\propto )] || {{{\propto}}} || 비례 표시 || |
|---|
| 470 | || [math(|x|)] || {{{|x|}}} = {{{\lvert x\rvert}}} || 절댓값 || |
|---|
| 471 | || [math(\|x\|)] || {{{\|x\|}}} = {{{\lVert x\rVert}}} || 노름 || |
|---|
| 472 | || [math(\left< x \right>)] || {{{\left< x \right>}}} = {{{\langle x\rangle}}} || 평균값 || |
|---|
| 473 | || [math(\le \\ \ge)] || {{{\le}}} = {{{\leq}}}[br]{{{\ge}}} = {{{\geq}}} || 부등호(이상 및 이하) || |
|---|
| 474 | || [math(\ne)] || {{{\ne}}} = {{{\neq}}} || 부등호(다름) || |
|---|
| 475 | || [math(\simeq)], [math(\cong)][br][math(\approx )][br][math(\fallingdotseq)], [math(\risingdotseq)] || {{{\simeq}}}, {{{\cong}}}[br]{{{\approx}}}[br]{{{\fallingdotseq}}}, {{{\risingdotseq}}} || 근사 || |
|---|
| 476 | || [math(\equiv \\ \not\equiv)] || {{{\equiv}}}[br]{{{\not\equiv}}} || 합동 혹은 정의[br]합동이 아님 || |
|---|
| 477 | || [math({}_n{\rm P}_r)], [math({}_{12}{\rm P}_{11})][br][math({}_n{\rm C}_r)], [math({}_{12}{\rm C}_{10})][br][math({}_n{\rm H}_r)], [math({}_{11}{\rm H}_{13})] || {{{{}_n{\rm P}_r}}}, {{{{}_{12}{\rm P}_{11}}}}[*※][br]{{{{}_n{\rm C}_r}}}, {{{{}_{12}{\rm C}_{10}}}}[br]{{{{}_n{\rm H}_r}}}, {{{{}_{11}{\rm H}_{13}}}} || 순열·조합 기호 || |
|---|
| 478 | || [math(\dbinom nr)][br][br][math(\binom nr)][br][br][math(\dbinom{12}3)], [math(\dbinom{12}{10})][br][br][math(\left(\!\!\dbinom nk\!\!\right))] || {{{\dbinom nr}}}[br][br][br]{{{\binom nr}}} = {{{\tbinom nr}}}[br][br][br]{{{\dbinom{12}3}}}, {{{\dbinom{12}{10}}}}[br][br][br]{{{\left(\!\!\dbinom nk\!\!\right)}}} || 국제적으로 통용되는 조합 기호 || |
|---|
| 479 | || [math((f\circ g)(x))] || {{{ (f\circ g)(x)}}} || 함수 합성 || |
|---|
| 480 | || [math(\triangle \\ \square)] || {{{\triangle}}}[br]{{{\square}}} || 삼각형[br]사각형 및 달랑베르시안 || |
|---|
| 481 | || [math(\angle)] || {{{\angle}}} || 각 || |
|---|
| 482 | || [math(\parallel \\ \perp)] || {{{\parallel}}}[br]{{{\perp}}} || 평행[br]직교 또는 서로소 || |
|---|
| 483 | || [math(\therefore \\ \because)] || {{{\therefore}}}[br]{{{\because}}} || 따라서[br]왜냐하면 || |
|---|
| 484 | || [math(\infty)] || {{{\infty}}} || 무한 || |
|---|
| 485 | || [math(\degree)] || {{{\degree}}} || 도(degree) || |
|---|
| 486 | || [math(\cdots)], [math(\dots)][br][math(\vdots)][br][math(\ddots)] || {{{\cdots}}}, {{{\dots}}}[* {{{\ldots}}}로도 쓸 수 있습니다.][br]{{{\vdots}}}[br]{{{\ddots}}} || 생략 기호 || |
|---|
| 487 | || [math({\bf E})] || {{{{\bf E}}}} || 벡터[* {{{\vec}}} 문법을 이용하여 {{{\vec E}}}[math(\Rightarrow \vec E)] 형태로도 쓸 수 있지만, 가독성이 떨어지고 {{{\vec}}} 문법은 글자 수에 맞춰 길이가 변하지 않으므로 로만 볼드체 표기를 권장합니다.] || |
|---|
| 488 | || [math(\partial)] || {{{\partial}}} || 편미분 혹은 텐서 기호 || |
|---|
| 489 | || [math(\ast)] || {{{\ast}}} || 켤레복소수 기호 혹은 합성곱 || |
|---|
| 490 | || [math(A^\dagger)] || {{{A^\dagger}}} || 켤레 전치(복소 공액) || |
|---|
| 491 | || [math(\hbar)] || {{{\hbar}}} || [[플랑크 상수]]를 [math(2 \pi)]로 나눈 값 || |
|---|
| 492 | || [math(\nabla \\ \nabla^{2})] || {{{\nabla}}}[br]{{{\nabla^2}}} || 델 연산자[br]라플라시안 || |
|---|
| 493 | || [math(\leftarrow \\ \rightarrow \\ \leftrightarrow \\ \longleftarrow \\ \longrightarrow \\ \longleftrightarrow)] || {{{\leftarrow}}}[br]{{{\rightarrow}}}[br]{{{\leftrightarrow}}}[br]{{{\longleftarrow}}}[br]{{{\longrightarrow}}}[br]{{{\longleftrightarrow}}} || 화살표 || |
|---|
| 494 | || [math(\Leftarrow \\ \Rightarrow \\ \Leftrightarrow \\ \Longleftarrow \\ \Longrightarrow \\ \Longleftrightarrow)] || {{{\Leftarrow}}}[br]{{{\Rightarrow}}}[br]{{{\Leftrightarrow}}}[br]{{{\Longleftarrow}}}[br]{{{\Longrightarrow}}}[br]{{{\Longleftrightarrow}}} || 겹화살표 || |
|---|
| 495 | || [math(\Lleftarrow \\ \Rrightarrow)][br] || {{{\Lleftarrow}}}[br]{{{\Rrightarrow}}} || 삼겹화살표 || |
|---|
| 496 | || [math(\xleftarrow[a]b \\ \xLeftarrow[a]{b+c} \\ \xleftrightarrow[a]{} \\\xrightarrow{b+c+d+e})] || {{{\xleftarrow[a]b}}}[br]{{{\xLeftarrow[a]{b+c}}}}[br]{{{\xleftrightarrow[a]{}}}}[br]{{{\xrightarrow{b+c+d+e}}}} || 설명문이 있는 화살표 || |
|---|
| 497 | || [math(\rightleftharpoons \\ \leftrightharpoons)] || {{{\rightleftharpoons}}}[br]{{{\leftrightharpoons}}} || 화학 평형에 쓰이는 화살표 || |
|---|
| 498 | || [math(\overrightarrow A \\ \overleftarrow{\rm AB} \\ \overrightarrow{\rm XY})] || {{{\overrightarrow A}}}[br]{{{\overleftarrow{\rm AB}}}}[br]{{{\overrightarrow{\rm XY}}}} || 반직선 혹은 벡터 || |
|---|
| 499 | || [math(\overleftrightarrow{\rm AB})] || {{{\overleftrightarrow{\rm AB}}}} || 직선 || |
|---|
| 500 | || [math(\overline z \\ \overline{\rm AB} \\ \underline{AB} \\ x^{\underline n})] || {{{\overline z}}}[br]{{{\overline{\rm AB}}}}[br]{{{\underline{AB}}}}[br]{{{x^{\underline n}}}} || 윗줄(켤레복소수 또는 선분 등)[br][br]밑줄(하강 계승 등) || |
|---|
| 501 | || [math(\dfrac ab)] || {{{\dfrac ab}}} || 분수 || |
|---|
| 502 | || [math(\dfrac{\dfrac{a+b}{c+d}}{\dfrac{x+y}{z+w}})] || {{{\dfrac{\dfrac{a+b}{c+d}}{\dfrac{x+y}{z+w}}}}} || 번분수 || |
|---|
| 503 | || [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}}}}}} || 연분수 || |
|---|
| 504 | || [math(\cancel x)] || {{{\cancel x}}} || (분수 등에서의)삭제 표기 || |
|---|
| 505 | || [math(\lim\limits_{n \to \infty} a_n)] || {{{\lim\limits_{n \to \infty} a_n}}} || 극한 || |
|---|
| 506 | || [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}}}[br][br]{{{e^{\sum\limits_{k=1}^n a_k}}}}[br][br]{{{\displaystyle \prod_{k=1}^n a_k}}}[br][br]{{{e^{\prod\limits_{k=1}^n a_k}}}} || 합의 기호[br][br]첨자에서의 합의 기호[br][br]곱의 기호[br][br]첨자에서의 곱의 기호 || |
|---|
| 507 | || [math(\left. \dfrac{{\rm d}f}{{\rm d}x}\right|_{x=a})] || {{{\left. \dfrac{{\rm d}f}{{\rm d}x} \right|_{x=a}}}} || 미분 계수 || |
|---|
| 508 | || [math(\displaystyle \int_a^b f(x) \,{\rm d}x)][br][br][math(\displaystyle \iint_S f(x,\,y) \,{\rm d}x\,{\rm d}y)][br][br][math(\displaystyle \iiint_V f(x,\,y,\,z) \,{\rm d}x\,{\rm d}y\,{\rm d}z)][br][br][math(\displaystyle \int_a^b \int_c^d f(x,\,y) \,{\rm d}x\,{\rm d}y)][br][br][math(\displaystyle \oint_C {\bf F} \cdot {\rm d}{\bf r})][br][br][math(\displaystyle \oiint_S {\bf F} \cdot {\rm d}{\bf a})] || {{{\displaystyle \int_a^b f(x) \,{\rm d}x}}}[br][br][br]{{{\displaystyle \iint_S f(x,\,y) \,{\rm d}x\,{\rm d}y}}}[br][br][br]{{{\displaystyle \iiint_V f(x,\,y,\,z) \,{\rm d}x\,{\rm d}y\,{\rm d}z}}}[br][br][br]{{{\displaystyle \int_a^b \int_c^d f(x,\,y) \,{\rm d}x\,{\rm d}y}}}[br][br][br]{{{\displaystyle \oint_C {\bf F} \cdot {\rm d}{\bf r}}}}[br][br][br]{{{\displaystyle \oiint_S {\bf F} \cdot {\rm d}{\bf a}}}} || 적분 || |
|---|
| 509 | || [anchor(정적분 계산)][math(\biggl[ \dfrac{x^2}2+x \biggr]_a^b)][br][br][math(\biggl. \biggl( x^2+2x \biggr) \biggr|_a^b)] || {{{\biggl[ \dfrac{x^2}2+x \biggr]_a^b}}}[br][br][br]{{{\biggl. \biggl( x^2+2x \biggr) \biggr|_a^b}}} || 정적분 계산 || |
|---|
| 510 | || [math(\begin{matrix} a & b \\ c & d \end{matrix})][br][br][math(\begin{pmatrix} a & b \\ c & d \end{pmatrix})][br][br][math(\begin{bmatrix} a & b \\ c & d \end{bmatrix})][br][br][math(\begin{Bmatrix} a & b \\ c & d \end{Bmatrix})][br][br][math(\begin{vmatrix} a & b \\ c & d \end{vmatrix})][br][br][math(\begin{Vmatrix} a & b \\ c & d \end{Vmatrix})] || {{{\begin{matrix} a & b \\ c & d \end{matrix}}}}[br][br][br]{{{\begin{pmatrix} a & b \\ c & d \end{pmatrix}}}}[br][br][br]{{{\begin{bmatrix} a & b \\ c & d \end{bmatrix}}}}[br][br][br]{{{\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}}}}[br][br][br]{{{\begin{vmatrix} a & b \\ c & d \end{vmatrix}}}}[br][br][br]{{{\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}}}} || 행렬[* 행렬같은 대형 수식은 [[https://www.codecogs.com/latex/eqneditor.php|이곳]]에서 입력 후 붙이는 것이 낫습니다.] || |
|---|
| 511 | || [math(\begin{cases} x+y=5 \\ x-y=3 \end{cases})] || {{{\begin{cases} x+y=5 \\ x-y=3 \end{cases}}}} || 연립 방정식 || |
|---|
| 512 | |
|---|
r9
| 513 | [각주][include(틀:나무위키에서 가져옴, title=나무위키:문법 도움말/심화/TeX, version=67)] |
|---|