当我制作一些子图时,它们被索引为(a)、(b)、(c)......有没有办法用西里尔字母对它们进行索引,即(а)、(б)、(в)......?
我用于此示例的代码如下:
\documentclass[14pt,a4paper]{extarticle}
\usepackage{mathtext}
\usepackage{color}
\usepackage{amsmath,amssymb}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{hyphenat}
\hyphenation{ма-те-ма-ти-ка вос-ста-нав-ли-вать}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[width=0.8\textwidth]{caption}
\usepackage{bm}
\usepackage{setspace}
\usepackage[left=30mm, right=20mm, top=20mm, bottom=20mm, bindingoffset=0cm]{geometry}
\usepackage[width=0.8\textwidth]{caption}
\usepackage{subcaption}
\usepackage{float}
\begin{document}
\begin{figure}[!htb]
\centering
\begin{subfigure}{.4\linewidth}
\centering
\includegraphics[width=\textwidth]{./pictures/Lenna}
\caption{Какая-то картинка с русской подписью.}
\label{fig:lenna1}
\end{subfigure}
\begin{subfigure}{.4\linewidth}
\centering
\includegraphics[width=\textwidth]{./pictures/Lenna}
\caption{Some figure with an English caption.}
\label{fig:lenna2}
\end{subfigure}
\caption{Two figures with subindices.}
\end{figure}
Figure reference looks like this: рис. \ref{fig:lenna2}. What I want is something like рис. 1б.
\end{document}
谢谢。
答案1
用于\asbuk
子图计数器:
\renewcommand\thesubfigure{\asbuk{subfigure}}
完整代码:
\documentclass[14pt,a4paper]{extarticle}
\usepackage{mathtext}
\usepackage{color}
\usepackage{amsmath,amssymb}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{hyphenat}
\hyphenation{ма-те-ма-ти-ка вос-ста-нав-ли-вать}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[width=0.8\textwidth]{caption}
\usepackage{bm}
\usepackage{setspace}
\usepackage[left=30mm, right=20mm, top=20mm, bottom=20mm, bindingoffset=0cm]{geometry}
\usepackage[width=0.8\textwidth]{caption}
\usepackage{subcaption}
\usepackage{float}
\renewcommand\thesubfigure{\asbuk{subfigure}}
\begin{document}
\begin{figure}[!htb]
\centering
\begin{subfigure}{.4\linewidth}
\centering
\includegraphics[width=\textwidth]{example-image}
\caption{Какая-то картинка с русской подписью.}
\label{fig:lenna1}
\end{subfigure}
\begin{subfigure}{.4\linewidth}
\centering
\includegraphics[width=\textwidth]{example-image}
\caption{Some figure with an English caption.}
\label{fig:lenna2}
\end{subfigure}
\caption{Two figures with subindices.}
\end{figure}
Figure reference looks like this: рис. \ref{fig:lenna2}. What I want is something like рис. 1б.
\end{document}
结果: