> 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/latex-1/31-undefined-control-sequence.md).

# 정의되지 않은 제어 시퀀스

이 오류는 LaTeX가 사용한 명령 중 하나를 이해하지 못할 때 나타납니다.

## 흔한 예

**명령의 오타:**

이러한 오류의 가장 흔한 원인은 단순한 오타입니다. 아래에는 이런 오타의 예가 보이며, 여기서 실수로 **`Z`** 대신 **`a`** 를 입력했을 때 **`\alpha`**

```latex
$\alpha$를 쓸 때의 오타는 $\Zlpha$일 수 있습니다
```

다음과 같은 오류 메시지가 표시됩니다

main.tex, 10행

정의되지 않은 제어 시퀀스.

< \Zlpha l.10 $\alpha$를 쓸 때의 오타는 $$\alpha$$ 는 $\Zlpha $일 수 있습니다. 오류 메시지 맨 위 줄의 끝에 있는 제어 시퀀스는 한 번도 \def'된 적이 없습니다. 만약 철자가 잘못되었다면(예: \`\hobx'), \`I'를 입력하고 올바른 철자(예: \`I\hbox')를 입력하세요. 그렇지 않으면 계속 진행하면 되고, 정의되지 않은 것은 무엇이든 잊어버리겠습니다. \[1

이런 오류는 사람이 보기엔 쉽게 찾을 수 있지만, LaTeX가 무엇을 요구받고 있는지 혼란스러워하게 만들 수 있습니다.

**패키지를 불러오는 것을 잊음:**

이런 오류의 또 다른 원인은 특정 명령을 사용하려면 특정 패키지가 필요한데, 프리앰블에서 실수로 잊어버리는 경우입니다. 예를 들면

```latex
저는 \LaTeX\xspace라는 단어 뒤에 공백을 넣고 싶지만 xspace 패키지를 불러오는 것을 잊었습니다.
```

이 예에서는 LaTeX가 **`\xspace`** 명령을 인식하지 못하므로 문서 컴파일이 실패합니다. 이것은 오타가 아닙니다, 왜냐하면 **`\xspace`** 는 완전히 올바른 명령이기 때문입니다. 문제는 **`\usepackage{xspace}`** 를 프리앰블에 포함하는 것을 잊었다는 점입니다. 이 줄을 포함하면 LaTeX가 이제 **`\xspace`** 명령을 어떻게 해석해야 하는지 알게 되므로 오류 메시지가 사라집니다.

**잘못된 위치에서 백슬래시 사용:**

또 다른 *정의되지 않은 제어 시퀀스* 오류의 원인은 백슬래시를 부적절하게 사용하는 것입니다. 이는 아래와 같이 파일 링크를 쓸 때 특히 발생할 수 있습니다.

```latex
파일 경로를 다음과 같이 쓰면 오류가 발생합니다

C:\Users\Files
```

문제는 LaTeX가 백슬래시 **`\`**&#xB97C; 보면, 그 뒤에 오는 것을 명령으로 해석한다는 점입니다. 여기에는 \Users라는 명령이 없으므로 *정의되지 않은 제어 시퀀스* 오류가 발생합니다. 이를 피하려면, 본문을 쓸 때 백슬래시는 **`\backslash`**&#xB77C;고 써야 합니다. 긴 파일 경로나 URL을 쓸 때는 때때로 다음을 사용하는 것이 더 편리할 수 있습니다 **`url`** 패키지를, 매번 쓰는 것보다 **`\backslash`** 이 더 낫습니다.


---

# 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/latex-1/31-undefined-control-sequence.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.
