Possible Duplicate:
\tableofcontents encoding issue with lualatex
I tried adding babel package to my file - to get proper hyphenation for my language. But I get strange error, related specifically to \tableofcontents (everything else is working, and hyphenation behaves as expected).
The test case:
\documentclass[a4paper,titlepage]{article}
\usepackage{xltxtra}
\usepackage[russian]{babel}
\begin{document}
\tableofcontents
\end{document}
The output:
$ xelatex file.tex
Package babel Warning: No input encoding specified for Russian language on inpu
t line 136.
)) (./TZ_Parrot_6.aux)
! Undefined control sequence.
\contentsname ->{\cyr \CYRS
\cyro \cyrd \cyre \cyrr \cyrzh \cyra \cyrn \cyri...
l.5 \tableofcontents
How can I fix it? I'm using TeX Live 2009 distribution.
lualatexoriented, but the problem is the same). If it solves your problem, with the caveat thatEU1is the default encoding for XeLaTeX/fontspecrather thanEU2, then let us know and this will be closed as a duplicate. On the other hand, probablypolyglossiais better suited to XeLaTeX thanbabel. – egreg Nov 22 '12 at 07:32babelwithpolyglossiafixed the issue, thanks! Should I delete the question? – Rogach Nov 22 '12 at 07:59