3

I want to get russian subreferences in subfloats:

enter image description here

I think it should be provided by

\usepackage{polyglossia} % support for languages
\setdefaultlanguage{russian}

but it doesn't work. Here's a full minimal working example:

\documentclass{book}

\usepackage{fontspec} % enagles loading of OpenType fonts
\usepackage{polyglossia} % support for languages

% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes
\setmainfont{Arial}
\setsansfont{Arial}
\setromanfont{Arial}
\setmonofont{DejaVu Sans Mono}

% Russian/English document:
\usepackage{xecyr}
\newfontfamily\cyrillicfont{Arial}

\setmainlanguage{russian}
\setdefaultlanguage{russian}
\setotherlanguage{english}

\usepackage[lofdepth]{subfig}

\usepackage[russian]{hyperref}

\usepackage{todonotes}

\begin{document}


\begin{figure}[h]
  \centering
  \subfloat[][]{\missingfigure[figwidth=6cm]{Dummy figure}\label{subfig:1}
  }
  \subfloat[][]{\missingfigure[figwidth=6cm]{Dummy figure}\label{subfig:2}
  }
  \caption[]{I want subfloat links to be russian: (а) and (б) instead of (a) and (b).\label{fig:1}}
\end{figure}


\end{document}
2

Add

\renewcommand{\thesubfigure}{\asbuk{subfigure}}

after \usepackage[lofdepth]{subfig}. For subtables, use also

\renewcommand{\thesubtable}{\asbuk{subtable}}

enter image description here

You might want to ping Arthur Reutenauer at https://github.com/reutenauer/polyglossia asking for including \asbuk in the documentation of Polyglossia.


Note. Avoid \setromanfont and \setdefaultlanguage, which simply do again what \setmainfont and \setmainlanguage specified. They are obsolete commands, retained for backward compatibility.

  • I opened an issue for polyglossia@github. – Adobe Feb 18 '13 at 16:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.