> 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/62-i-want-to-write-greek-language-text.-how-do-i-do-this.md).

# Quiero escribir texto en griego. ¿Cómo lo hago?

Puedes componer texto griego con el `babel` paquete, como se demuestra en el siguiente ejemplo:

```latex
\documentclass[a4paper]{article}
\usepackage[english,greek]{babel}
\begin{document}

\section{Introducción}

Hoy vi por primera vez el
\selectlanguage{english} sitio
\selectlanguage{greek}de Giannis.

\[
a = b + \gamma
\]
\end{document}
```

[Abre este ejemplo en Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+using+Greek+text\&snip=%5Cdocumentclass%5Ba4paper%5D%7Barticle%7D%0A%5Cusepackage%5Benglish%2Cgreek%5D%7Bbabel%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Csection%7B%CE%95%CE%B9%CF%83%CE%B1%CE%B3%CF%89%CE%B3%CE%AE%7D%0A%0A%CE%A3%CE%AE%CE%BC%CE%B5%CF%81%CE%B1+%CE%B5%CE%AF%CE%B4%CE%B1+%CE%B3%CE%B9%CE%B1+%CF%80%CF%81%CF%8E%CF%84%CE%B7+%CF%86%CE%BF%CF%81%CE%AC+%CF%84%CE%BF%0A%5Cselectlanguage%7Benglish%7D+site%0A%5Cselectlanguage%7Bgreek%7D%CF%84%CE%BF%CF%85+%CE%93%CE%B9%CE%AC%CE%BD%CE%BD%CE%B7.%0A%0A%5C%5B%0Aa+%3D+b+%2B+%5Cgamma%0A%5C%5D%0A%5Cend%7Bdocument%7D)

Este ejemplo produce la siguiente salida:

![Texto griego compuesto con LaTeX](/files/6a7b2306ffdf8cdf5143c3198effc4e91d6259fe)

Consulta también el artículo de ayuda de Overleaf sobre [la composición de texto griego](/latex/es/idiomas/09-greek.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/62-i-want-to-write-greek-language-text.-how-do-i-do-this.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.
