# XeLaTeX, Modern Latin and cyrilic

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{unicode-math}

\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\setmathfont{Latin Modern Math}

\begin{document}
Hello, world!
Привет, мир!
$a≡b≠Ω♯$
\end{document}


Here is example, that do not work. Math -- perfect, but no cyrillic in normal mode. What have I missed?

• It is called Latin Modern, of course it has no Cyrillic support. Aug 1 '12 at 7:24
• I need font that use latex with babel by default. What I have to do? Aug 1 '12 at 7:26
• See my answer below. Aug 1 '12 at 7:32
• I extended this question to OSX here apple.stackexchange.com/q/205639/15504 where the Latin Modern Math font has been depreciated in MacTeX 2015 causing some compability problems. Sep 15 '15 at 11:45

You need text font with Cyrillic support, if you want a Computer Modern derivative, try CM Unicode fonts:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{unicode-math}

\setmainfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
\setmathfont{Latin Modern Math}

\begin{document}
Hello, world!
Привет, мир!
$a≡b≠Ω♯$
\end{document}

• Unfortunately, I can not use unicode like ≠ in normal text, unlike with DejaVu font. Well, price of compability. Thank you a lot! Aug 1 '12 at 7:36
• This the best place to get the Computer Modern Unicode fonts from. Jan 7 '13 at 23:25