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?

  • It is called Latin Modern, of course it has no Cyrillic support. – Khaled Hosny Aug 1 '12 at 7:24
  • I need font that use latex with babel by default. What I have to do? – KAction Aug 1 '12 at 7:26
  • See my answer below. – Khaled Hosny 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. – Léo Léopold Hertz 준영 Sep 15 '15 at 11:45
11

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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