> 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/es/preguntas-y-respuestas/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).

# Tengo muchos archivos .cls, .sty y .bst, y quiero ponerlos en una carpeta para mantener mi proyecto despejado. Pero mi proyecto no los encuentra para compilar correctamente

La buena noticia es que podemos especificar `TEXINPUTS` directorios personalizados usando el `latexmkrc` archivo, para que Overleaf sepa que necesita buscar en ese directorio los archivos del paquete.

Para hacer esto, digamos que has puesto estos archivos de paquete en una carpeta llamada `tex/`; y, respectivamente, los archivos de estilo bibliográfico en una carpeta llamada `bst/`:

1. Haz clic en “Añadir archivo” en la parte superior de la barra lateral del proyecto.
2. Selecciona “Archivo en blanco” y guarda el nombre del archivo como `latexmkrc` (si aún no está allí).
3. Pon la siguiente línea en `latexmkrc`:

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

   (o cámbialo por los nombres de carpeta correspondientes en tu proyecto)

Overleaf ahora buscará primero en la `tex/` carpeta antes de buscar en el sistema `TEXINPUTS` para localizar los archivos del paquete, y `bst/` carpeta antes de buscar en el sistema `BSTINPUTS` para localizar los archivos de estilo bibliográfico.

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

**Nota**: Tu archivo principal del documento y tu `latexmkrc` archivo deben permanecer en el nivel superior de tu proyecto, no en una carpeta.


---

# 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/es/preguntas-y-respuestas/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.
