[XeTeX] latin numerals in Russian

Vladimir Lomov lomov.vl at gmail.com
Tue Jun 29 14:46:25 CEST 2010

** Vadim Radionov [2010-06-29 15:30:12 +0400]:

> Dear all,
> What is the right way to change Russian numerals produced by
> \alph{subsection} to latin?  I'm trying to do it with
> \setdefaultlanguage[numerals=latin]{russian} with no effect.  This option is
> not mentioned in the manual, but there's some code in gloss-russian.ldf that
> is probably assumed to do the job.
> Yours,
> Vadim
> % ----------------
> \documentclass{book}
> \usepackage{polyglossia}
> \setdefaultlanguage[numerals=latin]{russian}
> \def\russianfont{}
> \setmainfont{CharterITC}
> \begin{document}
> \makeatletter
> \@alph{1}-\@alph{2}-\@alph{3}
> \end{document}

What TeX distro do you use? MiKTeX or TeX Live?
Which version?

Anyway, I tested your example with TeX Live 2010 with polyglossia v1.1.1
dated 2010/03/23. The output numerals are in Russian.

Then I tested with polyglossia files (polyglossia.sty and
gloss-russian.ldf) taken from git repo. The output is with latin numerals.

Sorry, but you have to grab[1] these files from git repo to get desire
result. I don't know when François Charrette will release new version of
polyglossia. And actually you don't have to specify option
'numerals=latin' as is it default in new polyglossia.

[1] Or you could use this approach:
----------------------- 8< -------------------------

\let\latin at alph\@alph

\setmainfont{DejaVu Serif}

\latin at alph{1}-\latin at alph{2}-\latin at alph(3)
----------------------- 8< -------------------------

P.S. Always use pair: '\makeatletter' - '\makeatother' !

WBW, Vladimir Lomov

	A little dog goes into a saloon in the Wild West, and beckons to
the bartender.  "Hey, bartender, gimme a whiskey."
	The bartender ignores him.
	"Hey bartender, gimme a whiskey!"
	Still ignored.
	The bartender takes out his six-shooter and shoots the dog in the
leg, and the dog runs out the saloon, howling in pain.
	Three years later, the wee dog appears again, wearing boots,
jeans, chaps, a Stetson, gun belt, and guns.  He ambles slowly into the
saloon, goes up to the bar, leans over it, and says to the bartender,
"I'm here t'git the man that shot muh paw."

More information about the XeTeX mailing list