Skip to content

LaTeX supports many worldwide languages by means of some special packages. In this article is explained how to import and use those packages to typeset your documents in Greek.

Introduction

Greek language is written with a special alphabet, for this reason some packages have to be included in the preamble to support it.

\documentclass{article}

\usepackage[LGR]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek]{babel}

\begin{document}

\tableofcontents

\begin{abstract}
Αυτή είναι μια σύντομη περιγραφή του θέματος 
σαφέστερα εξηγείται στο παρόν έγγραφο
\end{abstract}

\section{εισαγωγή}
Αυτό είναι το πρώτο τμήμα του εγγράφου. 
Είναι μια εισαγωγική παράγραφο.

\section{δεύτερο τμήμα}
Το δεύτερο τμήμα του εγγράφου. Αυτή η ενότητα 
μπορεί να περιέχει μαθηματική σημειογραφία.

GreekEx1.png


There are some packages in this document related to the encoding and special characters. These packages will be explained in the next sections.

  Open an example in Overleaf

Font encoding

To proper LaTeX document generation you must also choose a font encoding which supports specific characters from Greek language, this is accomplished by the fontenc package:

\usepackage[LGR]{fontenc}


The default LaTeX encoding is OT1 if you use pdfTeX and TU if you use XƎTeX or LuaTeX.

  Open an example in Overleaf

Input encoding

Modern computer systems allow you to input letters of national alphabets directly from the keyboard. In order to handle a variety of input encodings used for different groups of languages and/or on different computer platforms LaTeX employs the inputenc package to set up input encoding. This package properly display characters in the Greek alphabet, to use this package add the next line to the preamble of your document:

\usepackage[utf8]{inputenc}


The recommended input encoding is utf-8. You can also use other encodings depending on your operating system, for instance, iso-8859-7 will also support Greek characters.

  Open an example in Overleaf

Language-specific packages and commands

Basic language functionalities are achived by importing the babel package for the Greek language in the preamble.

\usepackage[greek]{babel}


Default LaTeX capabilities can be extended. Let's see a complete example with Latin and Greek characters.

\documentclass{article}

\usepackage[LGR, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek]{babel}
\usepackage{alphabeta}

\begin{document}

\tableofcontents

\begin{abstract}
Αυτή είναι μια σύντομη περιγραφή του θέματος 
σαφέστερα εξηγείται στο παρόν έγγραφο
\end{abstract}

\section{εισαγωγή}
Αυτό είναι το πρώτο τμήμα του εγγράφου. Είναι 
μια εισαγωγική παράγραφο.

\section{δεύτερο τμήμα}
Το δεύτερο τμήμα του εγγράφου. Αυτή η ενότητα 
μπορεί να περιέχει μαθηματική σημειογραφία.

\[x^2 + y^2 - \alpha = 4τ + 5α \]

\textlatin{Latin text can also be added to 
the document.}

\end{document}

GreekEx2.png


The babel package will take care of the hyphenation and will automatically tanslate some elements in the document, such as the table of contents and the abstract. Below is a description of the rest of the commands.

\usepackage{alphabeta}
This package allows to put greek characters in mathematical mode. Instead of using the commands \alpha, \beta, \gamma and so on you can use directly the keyboard input, as shown in the equation of the example.
\usepackage[LGR, T1]{fontenc}
This command will set two encodings for the fonts in this document. LGR for Greek text and T1 for Latin text.
\textlatin{}
Inside the braces of this command you can put text in Latin characters. Useful for brief annotations.

Notice also that in mathematical mode the Latin characters work properly, even if the T1 encoding is not set.

  Open an example in Overleaf

Further reading

For more information see

Overleaf guides

LaTeX Basics

Mathematics

Figures and tables

References and Citations

Languages

Document structure

Formatting

Fonts

Presentations

Commands

Field specific

Class files

Advanced TeX/LaTeX