Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a tex file:

\documentclass[a4paper,11pt]{article}

\usepackage[cp1251]{inputenc}
\usepackage[ukrainian,russian]{babel}
\begin{document}
\title{ Українська }
\maketitle
\tableofcontents
\end{document}

It works, but in resulting document (pdf) tableofcontent is called rather by russian word "Содержание" then ukrainian "Зміст". I want ukrainian. But, when I delete ",russian" from babel package option strange error appears:

! Package babel Error: You haven't loaded the option russian yet.

See the babel package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.3 \select@language{russian}

How to fix this? Is there other ways to use ukrainian language as default?

share|improve this question

closed as too localized by Stefan Kottwitz Sep 6 '12 at 22:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I think you gave up too early. Try another TeX run. –  Stephan Lehmke Sep 6 '12 at 20:56
    
I tried 10 runs.... –  klm123 Sep 6 '12 at 20:58
1  
But when I delete all temporary files... It works! Thank you. –  klm123 Sep 6 '12 at 20:59
1  
You shouldn't stop a run with x. In that case the .aux file doesn't get overwritten. But deleting the .aux file was just what was needed. Congrats! –  Stephan Lehmke Sep 6 '12 at 21:02
2  
The language declared last with babel is the default one. So, if you need both Russian and Ukrainian, the latter being the main one, write \usepackage[russian,ukrainian]{babel}. If you can, switch to UTF-8 encoding, rather than cp1251. –  egreg Sep 6 '12 at 21:04

Browse other questions tagged or ask your own question.