I need to use Russian in my article, but the default language has to be English.
How do I do this?
I use:
\usepackage[russian]{babel}
Result: all chapter names and date are in Russian.
Change to:
\usepackage[russian,english]{babel}
Result is the same.
Change to:
\usepackage[russian,ukrainian,english]{babel}
Result: all chapter names and dates are in Ukrainian.
It looks like english
is ignored. How to fix this?
Here the code which doesn't work:
\documentclass[a4paper,11pt,english]{article}
\usepackage[cp1251]{inputenc}
\usepackage[russian,ukrainian,english]{babel}
\begin{document}
\title{A}
\maketitle
\end{document}
Best Answer
The problem is in the
english
option in\documentclass
. Let's see what happens:english
is a global option, so that it's passed to every packagebabel
isrussian
,ukrainian
,english
.So
babel
gets first the global optionenglish
and loads the language fileenglish.ldf
; then it loadsrussian.ldf
andukrainian.ldf
but does nothing withenglish
, because it has already read that option.Consequence: the last loaded language is Ukrainian.
Remedies: don't put language options in
\documentclass
if you plan to loadbabel
with multiple languages, or specify all languages, in the desired order, as options to\documentclass
.