6

How to include russian in LaTeX (LEd) ?

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage[russian]{babel}
\begin{document}
Hello
\end{document}

! Package babel /b/c9/cError:/b/c0/c You haven't loaded the option english yet. See the babel package documentation for explanation. Type H for immediate help.

  • 1
    Welcome to TeX.sx! – Mario S. E. May 4 '13 at 13:02
  • 1
    The error you get is probably because you changed the options to Babel. Just remove the .aux file when you do changes like that, it will be recreated automatically. – egreg May 4 '13 at 13:13
7

It seems this problem is caused because you are not defining the input or encoding method. Furthermore, you are specifying the use of russian language, and then writting something in english.

For russian and english, you could try the following:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage[russian,english]{babel}

\begin{document}
Hello

\begin{quote}
  \selectlanguage{russian}
  Я помню чудное мгновенье:\\
  Передо мной явилась ты,\\
  Как мимолетное виденье,\\
  Как гений чистой красоты.
\end{quote}


\end{document}

Disclaimer: I don't speak Russian and and I have no idea what it says.

For more information about cyrillic, please see this post: Cyrillic in (La)TeX

  • 2
    I've changed the language order, since your sample document seems to use English as main language. If only Russian is desired, then \usepackage[russian]{babel} will do. – egreg May 4 '13 at 13:11
  • Its saying that I have no file lacodes.mf in "source" folder, but this is no even "source" folder in LEd directory. But this is such a folder in MikTex directory. Maybe problem is in using these 2 programs together? – user30167 May 4 '13 at 13:19
  • @user30167 have you tried what egreg said? "The error you get is probably because you changed the options to Babel. Just remove the .aux file when you do changes like that, it will be recreated automatically" – Mario S. E. May 4 '13 at 13:42
  • Isn’t this pretty much a duplicate of the question you’re linking to? Is there anything special about LEd? – doncherry May 4 '13 at 14:39
  • 2
    It is the beginning of a beautiful poem written by Pushkin in 1827 and dedicated to Anna Petrovna Kern, also a poetess: I still remember that amazing moment // You have appeared before my sight // As though a brief and fleeting omen, // Pure phantom in enchanting light. (transl. Mikhail Kneller) – yannis Jan 9 '17 at 23:11
0

It is probably too easy and glib to say that, now, with Xelatex (or Lualatex), Unicode, a suitable font and a choice input method, you just type.

poetry 1830s style

I'm more impressed with TeX each day. And the various packages that add extra powerful functionality and the work that has gone into them.

So the answer probably depends on how much text, how you want or need to input it, and what you want to do with it, and (to a certain extent) what other text(s) surround it.

MWE

\documentclass[12pt,a5paper]{article}
\usepackage{xcolor}
\pagecolor{red!3}
\usepackage{psvectorian}
\usepackage{fontspec}
\setmainfont{Old Standard}%Palatino Linotype}%Times New Roman}%Old Standard}%DejaVu Serif}
\setmonofont{Courier New}
\begin{document}
\begin{center}
{\huge \uppercase{Я вас любил....}}\end{center}
\begin{center}
\psvectorian[scale=0.4]{88}
\end{center}

\vskip2em
Я вас любил : любовь ещё , быть может ,

В душе моей угасла не совсем ;

Но пусть она вас больше не тревожит ;

Я не хочу печалить вас ничем.

Я вас любил безмолвно , безнадежно ,

То робостью , то ревностью томим ;

Я вас любил так искренно , так нежно ,

Как дай вам Бог любимой быть другим. 

\vskip2em
\begin{center}
\psvectorian[scale=0.4]{88}
\end{center}

\vfill\footnotesize
\noindent\texttt{https://en.wikipedia.org/wiki/I\_Loved\_You\_(poem)}

\noindent\texttt{Журнал «Северные цветы», 1830\\
https://ru.wikipedia.org/wiki/Я\_вас\_любил…}

\newpage
\begin{center}
{\huge К ***}
\end{center}

Я помню чудное мгновенье :

Передо мной явилась ты ,

Как мимолетное виденье ,

Как гений чистой красоты.
\end{document}

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.