Skip to main content
To write Greek text in LaTeX, XeLaTeX or LuaLaTeX with fontspec, polyglossia, and a Unicode font that contains Greek glyphs (such as CMU Serif, Gentium, or Liberation Serif) is the cleanest setup. If a template requires pdfLaTeX, load \usepackage[LGR,T1]{fontenc} and \usepackage[english,greek]{babel}.
Only need Greek letters inside equations, such as $\alpha$, $\beta$, or $\Delta$? You do not need a Greek language package. See Mathematical Symbols for math-mode Greek commands.

Minimal pdfLaTeX setup

Under pdfLaTeX, declare both LGR (for Greek) and T1 (for Latin text) explicitly in fontenc, and list greek last in babel so Greek is the default document language. Inside Greek prose, wrap English terms in \foreignlanguage{english}{...} to switch languages, or use \ensureascii{...} to switch only the script (the example below uses the older command \textlatin{...}).
pdflatex-greek.tex
Test this example live in your browser. Open a ready-to-compile LaTeX project with TeX Live 2026 preinstalled and zero local setup.Open starter article
XeLaTeX and LuaLaTeX let you use OpenType fonts directly for Greek without switching to 8-bit LGR encoding (and without loading fontenc or inputenc). Because Latin Modern Roman and TeX Gyre Termes have incomplete Greek coverage, choose a font that covers accented Greek such as CMU Serif (Computer Modern Unicode), Liberation Serif, DejaVu Serif, Noto Serif, or Gentium.
xelatex-greek.tex
Use \textenglish{...} (or \begin{english}...\end{english}) for inline English segments when Greek is the default language, so hyphenation switches cleanly.

Polytonic Greek and mixed Greek–English documents

To include Greek passages in an English document, keep English as the default language and pick a font with polytonic coverage such as Gentium or CMU Serif. The example below sets \setotherlanguage[variant=polytonic]{greek} for modern polytonic Greek; switch to variant=ancient if you need Ancient Greek hyphenation.
greek-polytonic-mixed.tex
For modern polytonic Greek inside an English pdfLaTeX document, load \usepackage[LGR,T1]{fontenc} and \usepackage[greek.polutoniko,english]{babel}, then wrap Greek passages in \foreignlanguage{greek}{...}.

Common mistakes

  • Choosing a font with incomplete Greek coverage under XeLaTeX or LuaLaTeX: Fonts such as TeX Gyre Termes or Latin Modern Roman may display some Greek letters while missing accented characters. Switch \setmainfont to CMU Serif, Gentium, Liberation Serif, DejaVu Serif, or Noto Serif.
  • Omitting LGR from fontenc under pdfLaTeX: Use [LGR,T1]{fontenc} to declare both encodings explicitly for Greek and Latin text.
  • Typing bare Latin text inside a pdfLaTeX Greek paragraph: Under LGR encoding, plain ASCII letters map to Greek glyphs (transliteration mode). Wrap Latin-script names in \ensureascii{...} or English phrases in \foreignlanguage{english}{...}.
  • Using math commands ($\alpha$, $\beta$) for Greek prose: Math mode sets italic mathematical variables with math spacing, not Greek words or accents. Use one of the Greek language setups above for words and sentences.

In LaTeX Cloud Studio

LaTeX Cloud Studio runs TeX Live 2026 and sets each project’s LaTeX Engine to Auto (Recommended) by default. With Auto selected, LaTeX Cloud Studio starts the examples above with pdfLaTeX or XeLaTeX, as labeled. Fonts with Greek coverage preinstalled in the compile environment include CMU Serif, Gentium, Liberation Serif, DejaVu Serif, and Noto Serif. If you need another OpenType or TrueType Greek font, upload the .ttf or .otf files to your project and load them with fontspec. Ready to typeset a Greek or bilingual 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.