> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ko/mathematics/08-spacing-in-math-mode.md).

# 수학 모드의 간격

이 글에서는 수학 모드에서 서로 다른 너비의 공백을 삽입하는 방법을 설명합니다.

## 소개

(La)TeX의 기본 수학 모드 간격을 조정하는 것은 특정 상황에서 유용할 수 있습니다. 예를 보겠습니다:

```latex
\documentclass{article}
\usepackage{amssymb}
\begin{document}
다음 집합들이 있다고 가정합시다
\[
S = \{ z \in \mathbb{C}\, |\, |z| < 1 \} \quad \textrm{and} \quad S_2=\partial{S}
\]
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamssymb%7D%0A%5Cbegin%7Bdocument%7D%0AAssume+we+have+the+next+sets%0A%5C%5B%0AS+%3D+%5C%7B+z+%5Cin+%5Cmathbb%7BC%7D%5C%2C+%7C%5C%2C+%7Cz%7C+%3C+1+%5C%7D+%5Cquad+%5Ctextrm%7Band%7D+%5Cquad+S_2%3D%5Cpartial%7BS%7D%0A%5C%5D%0A%5Cend%7Bdocument%7D)

이 예제는 다음 출력을 생성합니다:

![수학 간격 조정을 보여 주는 예](/files/ba00bc4a84095dbafed17b285442029414790c8b)

이 예에서 보듯이, 수학 텍스트는 몇 가지 특수 명령을 사용하여 명시적으로 간격을 조정할 수 있습니다.

## 공백

아래 예에는 다양한 명령을 사용해 삽입한 공백의 전체 목록이 포함되어 있으며, 조판된 수학식에 미치는 영향을 보여 줍니다.

```latex
\documentclass{article}
\usepackage{amsmath}
\begin{document}
수학 모드의 공백.

\begin{align*}
f(x) &= x^2\! +3x\! +2 \\
f(x) &= x^2+3x+2 \\
f(x) &= x^2\, +3x\, +2 \\
f(x) &= x^2\: +3x\: +2 \\
f(x) &= x^2\; +3x\; +2 \\
f(x) &= x^2\ +3x\ +2 \\
f(x) &= x^2\quad +3x\quad +2 \\
f(x) &= x^2\qquad +3x\qquad +2
\end{align*}
\end{document}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0ASpaces+in+mathematical+mode.%0A%0A%5Cbegin%7Balign%2A%7D%0Af%28x%29+%26%3D+x%5E2%5C%21+%2B3x%5C%21+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%2B3x%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%2C+%2B3x%5C%2C+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%3A+%2B3x%5C%3A+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C%3B+%2B3x%5C%3B+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5C+%2B3x%5C+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5Cquad+%2B3x%5Cquad+%2B2+%5C%5C%0Af%28x%29+%26%3D+x%5E2%5Cqquad+%2B3x%5Cqquad+%2B2%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음 출력을 생성합니다:

![수학 모드에서 간격을 조정하는 더 많은 예](/files/3264fe6c5c30b8c724dde1b6dc82688d2e07270d)

다음을 확인해 보세요 [참조 안내서](#reference-guide) 명령어에 대한 설명을

**참고**: 명령어 설명을 보려면 `align*` 환경에 대한 설명은 [amsmath를 사용한 방정식 정렬](/latex/ko/mathematics/06-aligning-equations-with-amsmath.md)

## 연산자 간격

수학 모드에서 연산자와 관계 연산자 주변의 간격은 특정한 스킵 너비에 의해 결정됩니다:

* `\thinmuskip` (기본적으로 3 mu와 같습니다)
* `\medmuskip` (기본적으로 4 mu와 같습니다)
* `\thickmuskip` (기본적으로 5 mu와 같습니다)

```latex
\begin{align*}
3ax+4by=5cz\\
3ax<4by+5cz
\end{align*}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Math+mode+operator+spacing+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0A3ax%2B4by%3D5cz%5C%5C%0A3ax%3C4by%2B5cz%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음 출력을 생성합니다:

![LaTeX에서의 연산자 간격](/files/a2a9d3bb846662b8de5a84760c5b89a0a4e4ed58)

관계 연산자와 같은 $$<$$, $$>$$ 및 $$=$$, LaTeX는 `\thickmuskip` 간격을 설정합니다. 그러나 다음과 같은 이항 연산자에는 $$+$$, $$-$$ 및 $$\times$$에서 관찰했듯이, `\medmuskip` 간격이 설정됩니다. 차이는 거의 눈에 띄지 않습니다.

## 사용자 정의 이항 및 관계 연산자

이항 또는 관계 연산자에 사용되는 간격을 강제로 지정할 수 있으므로, 다음과 같이 [자신만의](/latex/ko/commands/01-commands.md).

```latex
\begin{align*}
34x^2a \mathbin{\#} 13bc \\
34x^2a \mathrel{\#} 13bc
\end{align*}
```

[이 예제를 Overleaf에서 열기](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Defining+your+own+math+operators\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Balign%2A%7D%0A34x%5E2a+%5Cmathbin%7B%5C%23%7D+13bc+%5C%5C%0A34x%5E2a+%5Cmathrel%7B%5C%23%7D+13bc%0A%5Cend%7Balign%2A%7D%0A%5Cend%7Bdocument%7D)

이 예제는 다음 출력을 생성합니다:

![자신만의 이항 또는 관계 연산자 정의하기](/files/c8df0869ced32d3c8bcdba9beafc815e7ac37b9a)

이전 예에서는 `#` 를 사용하여 앞뒤의 특정 간격을 설정합니다 `\mathrel` (관계 연산자) 및 `\mathbin` (이항 연산자) 명령을

## 참조 안내서

**간격 명령어 설명**

| LaTeX 코드          | 설명                                                                       |
| ----------------- | ------------------------------------------------------------------------ |
| `\quad`           | 현재 글꼴 크기와 같은 간격 (= 18 [mu](/latex/ko/formatting/01-lengths-in-latex.md)) |
| `\,`              | 의 3/18 `\quad` (= 3 mu)                                                  |
| `\:`              | 의 4/18 `\quad` (= 4 mu)                                                  |
| `\;`              | 의 5/18 `\quad` (= 5 mu)                                                  |
| `\!`              | -3/18의 `\quad` (= -3 mu)                                                 |
| `\` (백슬래시 뒤의 공백!) | 일반 텍스트의 공백과 동일                                                           |
| `\qquad`          | 의 두 배 `\quad` (= 36 mu)                                                  |

## 추가 읽을거리

자세한 내용은 다음을 참조하세요

* [수학 표현식](/latex/ko/mathematics/01-mathematical-expressions.md)
* [대괄호와 소괄호](/latex/ko/mathematics/03-brackets-and-parentheses.md)
* [amsmath를 사용한 방정식 정렬](/latex/ko/mathematics/06-aligning-equations-with-amsmath.md)
* [수학 모드의 표시 스타일](/latex/ko/mathematics/10-display-style-in-math-mode.md)
* [그리스 문자와 수학 기호 목록](/latex/ko/mathematics/11-list-of-greek-letters-and-math-symbols.md)
* [수학 글꼴](/latex/ko/mathematics/12-mathematical-fonts.md)
* [LaTeX2ε에 대한 그다지 짧지 않은 소개](http://www.ctan.org/tex-archive/info/lshort/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ko/mathematics/08-spacing-in-math-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
