> 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/texlive/nl/vaardigheden/latex-afhankelijkheden-toevoegen.md).

# LaTeX-afhankelijkheden toevoegen

Als je `.cls`, `.sty`, `.bst` bestanden in je project hebt, kan het compilatieproces van Overleaf deze bestanden niet vinden, tenzij ze op het hoogste niveau worden geplaatst.

Om je project te organiseren, kun je deze bestanden echter in mappen plaatsen, zodat je ze gemakkelijker kunt vinden en het hoogste niveau van je project niet rommelig wordt.

Het goede nieuws is dat we aangepaste `TEXINPUTS` mappen kunnen opgeven met behulp van het `latexmkrc` bestand, zodat Overleaf weet dat het in die map naar de pakketbestanden moet zoeken.

Om dit te doen, gaan we ervan uit dat je deze pakketbestanden in een map hebt geplaatst met de naam `tex/`; en de bibliografiestijlbestanden respectievelijk in een map met de naam `bst/`:

1. Klik bovenaan in de Projectzijbalk op “Bestand toevoegen”.
2. Selecteer “Leeg bestand” en sla de bestandsnaam op als `latexmkrc` (als die daar nog niet staat).
3. Plaats de volgende regel in `latexmkrc`:

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

   (of wijzig dit naar de relevante mapnamen in je project)

Overleaf zal nu eerst in de `tex/` map zoeken voordat het het systeem doorzoekt `TEXINPUTS` om pakketbestanden te vinden, en `bst/` map zoeken voordat het het systeem doorzoekt `BSTINPUTS` om bibliografiestijlbestanden te vinden.

(Bron: <https://tex.stackexchange.com/a/50847>)

{% hint style="info" %}
Je hoofddocumentbestand en je `latexmkrc` bestand moeten op het hoogste niveau van je project blijven, niet in een map.
{% endhint %}


---

# 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/texlive/nl/vaardigheden/latex-afhankelijkheden-toevoegen.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.
