> 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/questions-and-answers/77-my-main-file-is-in-a-subfolder-but-this-is-not-allowed-on-overleaf.-but-i-don-t-want-to-change-my.md).

# 주 파일이 하위 폴더에 있는데, Overleaf에서는 허용되지 않습니다. 하지만 폴더 구조와 \input 경로는 바꾸고 싶지 않습니다!

기존 소스 코드를 수정하지 않고도 평소의 파일 구조를 그대로 유지한 채 Overleaf에서 계속 작업할 수 있습니다. 추가로 하나를 제공하기만 하면 됩니다 `main.tex` 프로젝트 최상위 수준에 파일을 두고, 다음을 사용하세요 `import` 패키지를 사용하여 하위 폴더에 있는 실제 메인 파일을 불러오세요:

* 프로젝트 최상위 수준
  * `main.tex`
  * paper/
    * `manuscript.tex`
    * `refs.bib`
    * `appendix.tex`
  * output/
    * `chart.png`
    * `results-table.tex`

다음의 내용: `main.tex`:

```latex
\RequirePackage{import}
\import{paper/}{manuscript.tex}
```

원래의 `\inludegraphics`, `\input` 등은 `manuscript.tex` 프로젝트 파일 구조에 따라 계속 작동합니다.

다음을 찾을 수 있습니다 [작동 중인 예시](https://www.overleaf.com/read/hpqnttjpvmkn) 여기 갤러리에서.


---

# 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/questions-and-answers/77-my-main-file-is-in-a-subfolder-but-this-is-not-allowed-on-overleaf.-but-i-don-t-want-to-change-my.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.
