> 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/31-how-do-i-insert-an-image-into-my-document.md).

# ¿Cómo inserto una imagen en mi documento?

En primer lugar, para incluir una imagen en un documento en Overleaf, necesitas subir el archivo de imagen desde tu ordenador usando el botón "Upload files" en el menú del proyecto:

![Botón "Upload files" encima del panel de la lista de archivos](/files/4f6319838ce1e492d27dda250ae8773b8e1e2ee2)

Luego puedes incluirlas en tu documento usando el `\includegraphics` comando, como en este ejemplo:

```latex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=\textwidth]{YOUR-FILE-NAME-HERE}
\end{document}
```

## Ayuda e información adicional

Los siguientes artículos de ayuda tratan otros aspectos del uso de imágenes con LaTeX y/o Overleaf:

* [Insertar imágenes](/latex/es/mas-temas/27-inserting-images.md)
* [Incluir imágenes en Overleaf](/latex/es/base-de-conocimientos/088-including-images-on-overleaf.md)
* [Optimizar archivos de imagen muy grandes](/latex/es/base-de-conocimientos/113-optimising-very-large-image-files.md)
* [¿Cómo especifico el tamaño de una imagen en LaTeX?](/latex/es/preguntas-y-respuestas/35-how-do-i-specify-the-size-of-an-image-in-latex.md)
* [Ajuste del texto alrededor de las figuras](/latex/es/mas-temas/50-wrapping-text-around-figures.md)
* [Colocación de imágenes y tablas](/latex/es/figuras-y-tablas/02-positioning-images-and-tables.md)


---

# 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/31-how-do-i-insert-an-image-into-my-document.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.
