我的代码如下:
\documentclass{book}
\usepackage{graphicx}
\usepackage{subfig}%
\captionsetup[subfloat]{%
font=normalsize,labelformat=parens,labelsep=space}
\begin{document}
\begin{figure}
\subfloat[\label{fig:eBoxEndowment}]{\includegraphics[width=0.47\columnwidth]{10821_001_fig_001a.pdf}}\hfill
\subfloat[\label{fig:eBoxPrices}]{\includegraphics[width=0.47\columnwidth]{10821_001_fig_001b.pdf}}
\caption{The Edgeworth box. The axes along which the endowment and
}
\end{figure}
\end{document}
我得到的输出为:
我怎样才能将sublabel
括号改为mathmode
,即,(a)
应该是$($a$)$
,...请提出建议
答案1
使用 subcaption 包的解决方案:
\documentclass{book}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[font+=normalsize,labelformat=simple,labelsep=space]{subcaption}
\renewcommand\thesubfigure{$($\alph{subfigure}$)$}
\begin{document}
\begin{figure}
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{fig:eBoxEndowment}
\end{subfigure}
\hfill
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=\textwidth]{example-image}
\caption{}
\label{fig:eBoxPrices}
\end{subfigure}
\caption{The Edgeworth box. The axes along which the endowment and}
\end{figure}
\end{document}