> 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/knowledge-base/029-code-check.md).

# 코드 검사

Overleaf 편집기에는 입력하면서 흔한 오류를 강조 표시하는 구문 검사기("Code Check"라고 함)가 포함되어 있습니다.

Code Check가 찾을 수 있는 오류는 다음과 같습니다:

* 불일치하는 `\begin` 및 `\end` 명령
* 불일치하는 LaTeX 그룹 구분 기호 `{ }`
* 불일치하는 `\left` 및 `\right` 구분 기호
* 불일치하는 수학 모드 구분 기호 `$..$` 및 `$$..$$`
* 수학 모드 밖에서 사용된 수학 명령
* 수학 모드 안에서 사용된 텍스트 명령

Code Check는 휴리스틱을 사용하며, 문서가 표준 명령만 사용하는 전형적인 LaTeX라고 가정합니다. 예를 들어, 모든 `\begin{}` 에는 대응하는 `\end{}`.

## Code Check의 제한 사항

프로젝트에서 자체 LaTeX 또는 TeX 매크로를 사용하거나, 표준 LaTeX 동작을 변경하는 패키지를 사용하는 경우 Code Check를 꺼야 할 수도 있습니다. 이는 전체적으로, 단일 파일에 대해, 또는 파일의 일부에 대해 할 수 있습니다.

특히, 표준 LaTeX 환경의 바로 가기로 매크로를 사용하는 경우(예: `\newcommand{\beq}{\begin{equation}}`) 이러한 것은 확장되지 않으므로 Code Check를 비활성화해야 합니다.

## 전역에서 Code Check 비활성화

Code Check를 전혀 사용하고 싶지 않다면 왼쪽 메뉴에서 끌 수 있습니다: 파일 목록 패널 위의 Overleaf 메뉴 아이콘을 클릭한 다음 "Settings - Code Check"를 찾으세요.

## 단일 파일에 대해 Code Check 비활성화

단일 파일에서 Code Check를 끄려면 다음 주석을 `%%novalidate` 파일 맨 위에 넣으세요. (참고: 충돌을 피하기 위해 이중 주석 문자를 사용합니다).

```latex
%%novalidate

% 복잡한 매크로 정의 또는 TikZ 그림
% ...
```

## 파일의 일부에 대해 Code Check 비활성화

파일의 일부에 대해서도 Code Check를 끌 수 있습니다

```latex
이 파일 부분은 Code Check로 검사됩니다

%%begin novalidate
이 부분은 검사되지 않습니다
%%end novalidate

이 부분도 Code Check로 검사됩니다
```

## 알려진 문제

* Url, verbatim 및 기타 명령으로 `%` 가 리터럴 문자일 때, 명령과 같은 줄에 이후 LaTeX 코드가 있으면 잘못된 오류가 발생할 수 있습니다. 해결 방법은 해당 `\url{}` 또는 리터럴 `%` 문자를 포함하는 기타 명령.
* 매크로 이름에 밑줄을 사용하는 LaTeX3 구문을 사용하는 명령.
* 분리하는 사용자 정의 명령 정의 `\begin{...}` 에서 온 `\end{...}` 문장


---

# 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/knowledge-base/029-code-check.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.
