# Latex fonts Cyrillic fonts with lh

I am new in latex and trying to LH fonts for output different Cyrillic texts. Can someone help me, please!!! I need something like that

\documentclass[10pt,a5paper,draft]{book}
\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[russian, english]{babel}

\begin{document}

Какой-то осмысленный текст1.

Какой-то осмысленный текст2.

\end{document}


Now it is two the same fonts, but I want them to be different. I know, that I can use xetex to use different fonts, but I need latex, so I found that I can use lh fonts. But I do not know how to include them.

• Your example works fine for me, apart for the environment text1 and text2 that are not defined. What are these suppose to do? – Arthur Reutenauer May 27 '15 at 17:44
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Sverre May 27 '15 at 17:54
• I want them to show two different font types. I can have wrong style, but I do not know the right one. – Maria May 27 '15 at 17:55
• Please explain in your question what the problem is, instead of just saying "help me". Removing your undefined environments, the document compiles just fine. – Sverre May 27 '15 at 17:56
• @Sverre Ok, sorry. I will try – Maria May 27 '15 at 17:58

I think that does what you want:

\documentclass[10pt,a5paper,draft]{book}
\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[russian, english]{babel}

\begin{document}

\rmfamily
Какой-то осмысленный текст1.

\sffamily
Какой-то осмысленный текст2.

\ttfamily
Какой-то осмысленный текст3.

\end{document}


It produces

• Thank you so much! But where from did you get the names of the families? Like \sffamily1 and \ttfamily? – Maria May 27 '15 at 18:30
• The line \fontfamily{lh}\selectfont shouldn't be used here. latex will just tell you that lh is undefined, and fall back on Computer Modern instead. It's best to just remove it. – Sverre May 27 '15 at 18:39
• – Sverre May 27 '15 at 18:41
• @Maria These are the three types of fonts defined by LaTeX: Roman, Serif, Typewriter. See the link provided by Sverre for more detail. – Arthur Reutenauer May 27 '15 at 19:57
• You of all people should post an answer that uses XeTeX and fontspec. :-) – Martin Schröder May 27 '15 at 23:36

You can use the lh fonts by adding \usepackage{lh-lcy}, but you also have to mark the places where Russian is to be used.

\documentclass[10pt,a5paper,draft]{book}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{lh-lcy}

\begin{document}

Какой-то осмысленный текст1.

Какой-то осмысленный текст2.

\end{document}


Here the default language is Russian. If you switch the languages, the default one will be English and you can do

\documentclass[10pt,a5paper,draft]{book}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
\usepackage{lh-lcy}

\begin{document}

Some text in English.

\begin{otherlanguage*}{russian}
Какой-то осмысленный текст1.

Какой-то осмысленный текст2.
\end{otherlanguage*}

\end{document}


If you want to use different fonts within a document, then you need to tell latex to switch to another font when you want this to happen, see How do I use a particular font for a small section of text in my document?

\documentclass{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
\noindent Какой-то осмысленный текст1.\\ % Computer Modern font
\fontfamily{fdr}\selectfont Какой-то осмысленный текст2. % Droid font
\end{document}


A list of available T2A Cyrillic fonts is given here.