1

I'm trying to make a LaTeX file in Russian. I wrote the following:

\documentclass[12pt]{article}

\usepackage[english,russian]{babel}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
Тест
\end{document}

But i got error Im had tried install some packages but it's does not affect. (My os is mac osx)

14
  • Hi and welcome, how about using XeLaTeX or LuaLaTeX? – Johannes_B Feb 20 '15 at 22:30
  • Same problem with XeLaTex – qwenty Feb 20 '15 at 22:31
  • Kicked out inputenc and fontenc and loaded fontspec instead? – Johannes_B Feb 20 '15 at 22:32
  • Error log;( – qwenty Feb 20 '15 at 22:34
  • 1
    Note that the order of the packages should be fontenc, inputenc and babel, or babel-russian will not be able to determine the input encoding. – egreg Feb 20 '15 at 23:35
3

The document

\documentclass[12pt]{article}

\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}

\begin{document}
Тест
\end{document}

compiles without any problem with MacTeX from version 2012 to 2016.

Note that fontenc should be loaded before babel.

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.