> 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/zh-cn/wen-da/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}
```

&#x20;[在 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/888e2156cc361f442dc307e6012a09c61ddc1dbc)

另请参阅 Overleaf 帮助文章，了解 [希腊文排版](/latex/zh-cn/yu-yan/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/zh-cn/wen-da/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.
