In using pdflatex
on a document in English that will include some Cyrillic text. For math, I'd like to use $\C$ for the set of complex numbers. But the T2A
encoding needed for babel
with its russian
option gives error:
Command \C already defined.
Here's the source:
\documentclass{article}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[main=english,russian]{babel}
\usepackage{amssymb}
\newcommand{\C}{\mathbb{C}}
\begin{document}
%{\Russian Алекс\'{а}ндров}, {\Russian Т\'{и}хонов}, and {\Russian Урыс\'{o}н}.
$\C$ denotes the set of all complex numbers.
\end{document}
The workaround
\renewcommand{\C}{\mathbb{C}}
seems to work, as in the following:
\documentclass{article}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[main=english,russian]{babel}
\usepackage{csquotes}
\usepackage{amssymb}
\renewcommand{\C}{\mathbb{C}}
\begin{document}
{\Russian Алекс\'{а}ндров}, {\Russian Т\'{и}хонов}, and {\Russian Урыс\'{o}н}.
$\C$ denotes the set of all complex numbers.
\end{document}
Question 1: Where is \C
defined in the packages loaded (I have not been able to find it so far) and what is its meaning?
If it gives some accent or some character I'll never need, then I can use the \renewcommand
workaround indicated.
If not, then...
Question 2: Except for using something less terse such as $\CC$, for the complex numbers, is there some other, safer workaround?
russian.ldf
? In any case safe to use a macro name which is longer$\Cbb$
after a\newcommand{\Cbb}{\mathbb{C}}
. In fact declaring single letter macro is a weird practice as most of them arre are already defined... By the way, I prefer\matbbbm{ }
with\usepackege{bbm}
amssymb
andbbm
.russian.ldf
in my TeXLive distribution.