0

My code follows:

\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}

I got the output as:

enter image description here

How can I change the sublabel parenthesis into mathmode, i.e., (a) should come as $($a$)$,... Please suggest

TeXnician
  • 33,589
MadyYuvi
  • 13,693

1 Answers1

1

A solution using the subcaption package:

\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}

enter image description here