标题中的俄语前缀

标题中的俄语前缀

我正在尝试像这样添加图像pdfLaTeX

\documentclass{paper}

% Russian language
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage[russian]{babel}

% Links
\usepackage[unicode]{hyperref}

% Images
\usepackage{graphicx}
\graphicspath{
  {images/}
}

\begin{document}
  Небольшое вступление

  \begin{figure}[h!]
    \centering
    \includegraphics[width=0.5\textwidth]{dw-scheduler.png}
    \caption{Какой-то текст}
  \end{figure}

\end{document}

由于某种原因,标题的前缀是英语,Fig. 1:而不是Рис. 1: 在此处输入图片描述

这也没有任何效果:

\addto\captionsrussian{\renewcommand{\figurename}{Рис.}}

我究竟做错了什么?

答案1

该类使用 \figureshortname:

\documentclass{paper}

% Russian language
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage[russian]{babel}
\renewcommand\figureshortname{Рис.}
% Links
\usepackage[unicode]{hyperref}

% Images
\usepackage{graphicx}
\graphicspath{
  {images/}
}

\begin{document}
  Небольшое вступление

  \begin{figure}[h!]
    \centering
    %\includegraphics[width=0.5\textwidth]{dw-scheduler.png}
    \caption{Какой-то текст}
  \end{figure}

\end{document}

相关内容