Skip to main content
To write Russian in LaTeX with pdfLaTeX, load \usepackage[T2A]{fontenc} and \usepackage[russian]{babel}. If you prefer XeLaTeX or LuaLaTeX, load fontspec and polyglossia and select a Unicode font that contains Cyrillic glyphs (such as CMU Serif, Liberation Serif, DejaVu Serif, or Times New Roman). Both setups support direct UTF-8 Cyrillic input, Russian hyphenation, localized headings (Содержание, Список литературы, Рис.), and Russian date formatting (\today).

Minimal pdfLaTeX setup

Under pdfLaTeX, declare a Cyrillic font encoding such as T2A, because OT1 and T1 do not cover Cyrillic. Current LaTeX reads UTF-8 source files natively, so \usepackage[utf8]{inputenc} is only needed for older TeX installations.
pdflatex-russian.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
When a document mixes Russian and English, list the primary language last in babel (\usepackage[english,russian]{babel} for a Russian document with English terms, or [russian,english] for an English document with Russian quotes).

XeLaTeX and LuaLaTeX setup

XeLaTeX and LuaLaTeX handle Cyrillic natively in Unicode without T2A font switching and make PDF copy-paste and font selection straightforward. Do not load fontenc or inputenc with these engines. Choose a main font that includes Cyrillic glyphs: CMU Serif (Computer Modern Unicode, matching classic LaTeX styling), Liberation Serif, DejaVu Serif, Noto Serif, or Times New Roman. Default Latin Modern and TeX Gyre Termes do not cover Cyrillic.
xelatex-russian.tex
If your main font lacks Cyrillic glyphs and you only want a separate font for Russian passages, define \newfontfamily\cyrillicfont{CMU Serif} (and \newfontfamily\cyrillicfontsf{CMU Sans Serif}, \newfontfamily\cyrillicfonttt{CMU Typewriter Text}) so polyglossia switches fonts automatically when entering Russian text.

Mixed Russian–English text, quotes, and dashes

For bilingual Russian–English documents under pdfLaTeX, load both T1 and T2A (\usepackage[T1,T2A]{fontenc}) to cover Latin and Cyrillic glyphs, and wrap inline English terms in \foreignlanguage{english}{...} (or \textenglish{...} under polyglossia) so the active language switches hyphenation patterns cleanly. Two Russian typography conventions are built into csquotes and babel-russian:
  • Guillemets («…»): Load \usepackage[autostyle=true]{csquotes} and use \enquote{...}, or use the babel-russian shorthands "< (open) and "> (close).
  • Russian em-dash ("---): In babel-russian, "--- inserts a Cyrillic dash; when written after a space (as in the example below), it replaces that space with a nonbreaking gap and adds space after the dash.
russian-mixed-quotes.tex

Common mistakes

  • Omitting T2A under pdfLaTeX: Declare T2A explicitly before loading babel; otherwise babel-russian attempts to load T2A itself and warns about the missing declaration.
  • Using a Latin-only font under XeLaTeX or LuaLaTeX: Latin Modern and TeX Gyre Termes lack Cyrillic letters; polyglossia stops with The current roman font does not contain the Cyrillic script or renders missing characters. Switch \setmainfont to CMU Serif, Liberation Serif, DejaVu Serif, Noto Serif, or Times New Roman.
  • Reversing the babel language order: The last option in \usepackage[...]{babel} becomes the active document language. Writing [russian,english] sets English headings (Contents) and English hyphenation by default; write [english,russian] for a Russian document.

In LaTeX Cloud Studio

LaTeX Cloud Studio runs TeX Live 2026 and sets LaTeX Engine to Auto (Recommended) by default. With Auto selected, LaTeX Cloud Studio starts the examples above with pdfLaTeX or XeLaTeX, as labeled. Preinstalled fonts with Cyrillic coverage include CMU Serif, CMU Sans Serif, Liberation Serif, DejaVu Serif, Noto Serif, Times New Roman, and Arial. If a Russian GOST or university template calls for a custom font outside that set, upload the .ttf or .otf files to your project and load them with fontspec. Ready to write a Russian document in the browser? Start from the Basic Article template in LaTeX Cloud Studio and replace main.tex with whichever complete example above fits your setup.