> 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/59-i-have-a-lot-of-.cls-.sty-.bst-files-and-i-want-to-put-them-in-a-folder-to-keep-my-project-unclut.md).

# .cls, .sty, .bst 파일이 아주 많아서 프로젝트를 깔끔하게 유지하려고 폴더에 넣고 싶습니다. 하지만 프로젝트가 이를 찾아 올바르게 컴파일하지 못합니다

좋은 소식은 사용자 지정 `TEXINPUTS` 다음을 사용해 디렉터리를 `latexmkrc` 파일, 그러면 Overleaf는 해당 디렉터리에서 패키지 파일을 찾아야 함을 알 수 있습니다.

이를 위해, 이러한 패키지 파일을 다음이라는 폴더에 넣었다고 가정해 봅시다 `tex/`; 그리고 참고문헌 스타일 파일은 각각 다음이라는 폴더에 `bst/`:

1. 프로젝트 사이드바 상단의 “파일 추가”를 클릭하세요.
2. “빈 파일”을 선택하고, 파일 이름을 다음으로 저장하세요 `latexmkrc` (이미 없다면).
3. 다음 줄을 넣으세요 `latexmkrc`:

   ```
   $ENV{'TEXINPUTS'}='./tex//:' . $ENV{'TEXINPUTS'};
   $ENV{'BSTINPUTS'}='./bst//:' . $ENV{'BSTINPUTS'};
   ```

   (또는 프로젝트의 관련 폴더 이름으로 변경하세요)

이제 Overleaf는 다음을 검색합니다 `tex/` 시스템을 검색하기 전에 먼저 폴더를 `TEXINPUTS` 패키지 파일을 찾기 위해, 그리고 `bst/` 시스템을 검색하기 전에 먼저 폴더를 `BSTINPUTS` 참고문헌 스타일 파일을 찾기 위해.

(출처: <http://tex.stackexchange.com/a/50847/226>)

**참고**: 주 문서 파일과 귀하의 `latexmkrc` 파일은 폴더가 아니라 프로젝트의 최상위 수준에 있어야 합니다.


---

# 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/59-i-have-a-lot-of-.cls-.sty-.bst-files-and-i-want-to-put-them-in-a-folder-to-keep-my-project-unclut.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.
