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

# أريد كتابة نص باللغة اليونانية. كيف أفعل ذلك؟

يمكنك تنضيد نص يوناني باستخدام `babel` الحزمة، كما يوضح المثال التالي:

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

\section{مقدمة}

اليوم رأيت للمرة الأولى الـ
\selectlanguage{english} الموقع
\selectlanguage{greek}لِجانيس.

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

[افتح هذا المثال في 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)

ينتج هذا المثال المخرجات التالية:

![تنضيد النص اليوناني باستخدام LaTeX](/files/4ffc9bdc33453b4121d773b8d387c6d75c21055a)

اطّلع أيضًا على مقالة المساعدة في Overleaf حول [تنضيد النص اليوناني](/latex/ar/allghat/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/ar/alaselh-walajwbh/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.
