[Tex/LaTex] Problems typing in Russian (MiKTeX)

babellanguages

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

\usepackage[cp1251]{inputenc} 
\usepackage[T2A]{fontenc} 
\usepackage[russian]{babel} 

However, when I try to make a PDF out of it, I get

"Couldn't find 'larm10.cfg'
miktex-maketfm: No creation rule for font larm1000.

Where am I going wrong?

Best Answer

The following MWE works for me and generates the image below.

\documentclass[12pt]{article}

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

\begin{document}

\section{Здравствуйте}

Здравствуйте! Как у вас дела? Меня зовут Калеб. Как вас зовут?

\end{document}

image of my MWE

Perhaps installing the full MiKTeX 2.9 distribution or TeX Live distribution will solve this issue.

If this does not work or if you simply cannot get it to work with LaTeX, you might want to consider using XeTeX. With XeTeX, you can use any of your system fonts in your document. Consider this MWE and the output it generates below.

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[12pt]{article}

\usepackage{xltxtra} % loads: fixltx2e, metalogo, xunicode, fontspec
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{PT Sans}

\begin{document}

\section{Здравствуйте}

Здравствуйте! Как у вас дела? Меня зовут Калеб. Как вас зовут?

\end{document}

image of MWE with XeTeX

Here I'm using PT Sans. Of course, you then might want to consider using polyglossia instead of babel.

Related Question