> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/uk/zapitannya-ta-vidpovidi/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. Натисніть «Add file» у верхній частині бічної панелі проєкту.
2. Виберіть «Blank file» і збережіть файл із назвою `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://ayakaleaf-pro.ayaka.space/latex/uk/zapitannya-ta-vidpovidi/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.
