Latex sample cyrillic

From UCB Math Wiki
Revision as of 15:52, 10 August 2009 by Vojta (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using Cyrillic Text in LaTeX

Here's a quick example of a LaTeX file including some Cyrillic text.

\documentclass{article}
\usepackage[OT2,T1]{fontenc}
\newcommand\textcyr[1]{{\fontencoding{OT2}\fontfamily{wncyr}\selectfont #1}}
\begin{document}
English text \dots \textcyr{chto-to po-russki} \dots more English text.
\end{document}

Here's another way of doing this, using babel:

\documentclass{article}
\usepackage[OT2,T1]{fontenc}
\usepackage[russian,USenglish]{babel}
\begin{document}
English text \dots \foreignlanguage{russian}{chto-to po-russki} \dots
more English text.
\end{document}

If you can read German, a good reference for this sort of thing is http://home.vr-web.de/was/x/pmcyr.pdf .