> 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/fr/questions-et-reponses/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).

# J’ai beaucoup de fichiers .cls, .sty, .bst et je veux les mettre dans un dossier pour garder mon projet bien rangé. Mais mon projet ne les trouve pas pour compiler correctement

La bonne nouvelle, c’est que nous pouvons spécifier des répertoires personnalisés `TEXINPUTS` à l’aide du `latexmkrc` fichier, afin qu’Overleaf sache qu’il doit rechercher les fichiers du paquet dans ce répertoire.

Pour ce faire, supposons que vous ayez placé ces fichiers de paquet dans un dossier appelé `tex/`; et, respectivement, les fichiers de style bibliographique dans un dossier appelé `bst/`:

1. Cliquez sur « Ajouter un fichier » en haut de la barre latérale du projet.
2. Sélectionnez « Fichier vierge » et enregistrez le nom du fichier sous `latexmkrc` (si ce n’est pas déjà le cas).
3. Insérez la ligne suivante dans `latexmkrc`:

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

   (ou remplacez par les noms de dossiers appropriés dans votre projet)

Overleaf recherchera désormais d’abord le `tex/` dossier avant de rechercher dans le système `TEXINPUTS` pour localiser les fichiers du paquet, et `bst/` dossier avant de rechercher dans le système `BSTINPUTS` pour localiser les fichiers de style bibliographique.

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

**Remarque**: Votre fichier de document principal et votre `latexmkrc` fichier doivent rester à la racine de votre projet, pas dans un dossier.


---

# 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/fr/questions-et-reponses/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.
