8
\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?

4
  • It is called Latin Modern, of course it has no Cyrillic support. Commented Aug 1, 2012 at 7:24
  • I need font that use latex with babel by default. What I have to do?
    – KAction
    Commented Aug 1, 2012 at 7:26
  • See my answer below. Commented Aug 1, 2012 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. Commented Sep 15, 2015 at 11:45

1 Answer 1

12

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}
2
  • 2
    Unfortunately, I can not use unicode like ≠ in normal text, unlike with DejaVu font. Well, price of compability. Thank you a lot!
    – KAction
    Commented Aug 1, 2012 at 7:36
  • 1
    This the best place to get the Computer Modern Unicode fonts from.
    – gregoltsov
    Commented Jan 7, 2013 at 23:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .