> 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/006-can-i-choose-which-file-is-the-main-tex-file-in-a-project-on-overleaf.md).

# Overleaf 프로젝트에서 어떤 파일을 메인 tex 파일로 지정할 수 있나요?

네, 다음 단계를 따르면 됩니다:

1. Overleaf 메뉴 아이콘(![OLmenu.png](/files/b92890f23e3b267a585fdf6d9db31a7bfc4ea850))을 클릭하세요. 파일 목록 위에 있습니다.
2. 메뉴에서 **메인 문서** 옵션을 찾아 원하는 `.tex` 파일:

   ![SettingMainTeX.png](/files/8511ae685e9f40997682a2fd5eed7408f3161e6a)
3. 이렇게 하면 프로젝트로 돌아올 때마다 해당 파일이 컴파일 및 미리보기될 파일로 설정됩니다.

**비고**:

* Overleaf 기능이 올바르게 작동하도록 하려면 프로젝트의 메인 `.tex` 파일을 프로젝트의 최상위 폴더에 두는 것을 권장합니다. 예를 들어 영향을 받는 기능에는 [해당 위치로 이동](/latex/ko/knowledge-base/022-can-t-find-jump-to-location-arrows.md), [단어 수](/latex/ko/knowledge-base/099-is-there-a-way-to-run-a-word-count-that-doesn-t-include-latex-commands.md) 그리고 다음과 같은 스크립트: [makeglossaries](/latex/ko/document-structure/05-glossaries.md) 등이 있습니다.
* 명령을 포함하는 모든 프로젝트 파일은 `\documentclass` 명령이 포함된 파일은 편집기에서 열었을 때 **다시 컴파일** 버튼을 선택하면 컴파일할 수 있습니다. 이를 통해 프로젝트의 메인 파일 설정을 변경하지 않고도 하나의 Overleaf 프로젝트 안에서 여러 문서를 컴파일할 수 있습니다.


---

# 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/006-can-i-choose-which-file-is-the-main-tex-file-in-a-project-on-overleaf.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.
