> 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/nl/latex-vragen/01-how-can-i-typeset-text-in-cyrillic-e.g.-in-russian.md).

# Hoe zet ik tekst in Cyrillisch op (bijv. in het Russisch)?

## Inleiding

Om Cyrillische tekst op Overleaf te zetten, moet je een paar extra pakketten laden—welke pakketten precies nodig zijn, hangt af van de compiler die je gebruikt: pdfLaTeX, XeLaTeX, LuaLaTeX of LaTeX (dus DVI naar PDF).

## Cyrillisch zetten met pdfLaTeX of LaTeX

Als je pdfLaTeX of LaTeX als compiler gebruikt, dan zou het volgende werken:

```latex
\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[main=english,russian]{babel}
\begin{document}
Dit is Engels en dit is Russisch: \textcyrillic{Здравствуй, мир!}
\end{document}
```

[Open dit `pdfLaTeX` voorbeeld in Overleaf.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Typesetting+Cyrillic+text\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5BT2A%2CT1%5D%7Bfontenc%7D%0A%5Cusepackage%5Bmain%3Denglish%2Crussian%5D%7Bbabel%7D%0A%5Cbegin%7Bdocument%7D%0AThis+is+English+and+this+is+Russian%3A+%5Ctextcyrillic%7B%D0%97%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82%D0%B2%D1%83%D0%B9%2C+%D0%BC%D0%B8%D1%80%21%7D%0A%5Cend%7Bdocument%7D)

Dit voorbeeld levert de volgende uitvoer op:

![Russische Cyrillische tekst gezet in LaTeX](/files/53a17db931c8dafb9f59e424bf9fec8caa75e5bb)

## Cyrillisch zetten met XeLaTeX of LuaLaTeX

De XeLaTeX- en LuaLaTeX-compilers hebben ingebouwde ondersteuning voor UTF-8-gecodeerde tekst, dus het is niet nodig om de `\inputenc` pakket (`\usepackage[utf8]{inputenc}`). Sinds 2018 is het niet meer nodig om `\usepackage[utf8]{inputenc}` ook met pdfLaTeX—zie de [nummer van april 2018 van LaTeX News](https://www.latex-project.org/news/2018/04/10/issue28-of-latex2e-news-released/) en de blogpost op Overleaf [*TeX Live-upgrade—september 2019*](https://www.overleaf.com/blog/tex-live-upgrade-september-2019).

Voor XeLaTeX of LuaLaTeX kan de [`polyglossia` pakket](https://ctan.org/pkg/polyglossia?lang=en) nuttig zijn, vooral als je een aangepast lettertype wilt kiezen.

```latex
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{russian}
\newfontfamily{\russianfont}[Script=Cyrillic]{CMU Serif}
\begin{document}
Dit is Engels en dit is Russisch: \textrussian{Здравствуй, мир!}
\end{document}
```

[Open dit LuaLaTeX-voorbeeld in Overleaf.](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Cyrillc+text+typeset+with+LuaTeX\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bpolyglossia%7D%0A%5Csetmainlanguage%7Benglish%7D%0A%5Csetotherlanguage%7Brussian%7D%0A%5Cnewfontfamily%7B%5Crussianfont%7D%5BScript%3DCyrillic%5D%7BCMU+Serif%7D%0A%5Cbegin%7Bdocument%7D%0AThis+is+English+and+this+is+Russian%3A+%5Ctextrussian%7B%D0%97%D0%B4%D1%80%D0%B0%D0%B2%D1%81%D1%82%D0%B2%D1%83%D0%B9%2C+%D0%BC%D0%B8%D1%80%21%7D%0A%5Cend%7Bdocument%7D)

Dit LuaLaTeX-voorbeeld produceert de volgende uitvoer:

![aly=Cyrillische tekst gezet met LuaLaTeX](/files/226500b957f14ce9d451e54fe19d4d4db7db351c)

## TIP: Hoe je LaTeX-compilers wisselt

Merk op dat je de compiler kunt wisselen naar XeLaTeX of LuaLaTeX door op de **Menu** knop linksboven te klikken en de **Compiler** instelling te wijzigen—de volgende korte video laat zien hoe je dat doet.

{% embed url="<https://www.filepicker.io/api/file/ikMVZIu9S6SurOfUPO34>" %}

## Enkele gerelateerde Overleaf-artikelen

* [Russisch](/latex/nl/talen/14-russian.md)
* [Ondersteuning voor internationale talen](/latex/nl/talen/03-international-language-support.md)
* [Meertalige opmaak op Overleaf met polyglossia en fontspec](/latex/nl/talen/01-multilingual-typesetting-on-overleaf-using-polyglossia-and-fontspec.md)
* [Lettertypen gebruiken met XeLaTeX](/latex/nl/lettertypen/03-xelatex.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/nl/latex-vragen/01-how-can-i-typeset-text-in-cyrillic-e.g.-in-russian.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.
