Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any way to use these three languages in one file? I've been trying to do this for several hours, and all I got are some cryptic errors. Could you provide me with a simplest possible working template, that would have some text in these three languages?

And I would like to use UTF-8 everywhere, if it's possible.

share|improve this question
5  
Are you writing a joke ? One Greek, one Russian and one Polish went to a bar.... :P –  percusse Aug 20 '12 at 14:00
add comment

2 Answers 2

up vote 6 down vote accepted

The easiest way to proceed here is to use either XeLaTeX or LuaLaTeX with the fontspec, provided the font you pick covers all of the glyphs required. For example, on my system

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Cambria}
\begin{document}
Cześć ludzie

привет мир

Γεια σας κόσμο
\end{document}

works fine with either of the two modern TeX engines.

share|improve this answer
2  
Consider adding polyglossia to this if you want hyphenation, redifined document strings (“chapter”, “figure” etc) and more. –  Baldrick Aug 20 '12 at 14:44
add comment

In "ordinary LaTeX" you can use

\documentclass{article}
\usepackage[T2A,LGRx,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,russian,polish]{babel}

\begin{document}
Cześć ludzie

\foreignlanguage{russian}{привет мир}

\foreignlanguage{greek}{Γεια σας κόσμο}
\end{document}

This needs TeX Live 2012 (or an up-to-date MiKTeX); with older distributions, remove LGRx and use utf8x as option to inputenc.

With TeX Live 2011 at the latest version, one can use the same method, but due to an error in the packaging of files the following trick in the preamble is needed:

\makeatletter
\input{/usr/local/texlive/2011/texmf-dist/doc/latex/lgrx/lgrenc.dfu}
\makeatother
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.