1

MWE:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}

\usepackage{mwe}
\usepackage{lipsum}

\begin{document}
    \begin{figure}
        \begin{subfigure}[b]{0.475\textwidth}
            \includegraphics[width=0.8\linewidth]{example-image}
            \caption{\lipsum[1]}
        \end{subfigure}%
        \begin{subfigure}[b]{0.475\textwidth}
            \includegraphics[width=0.8\linewidth]{example-image}
            \caption{\lipsum[1]}
        \end{subfigure}
    \end{figure}
\end{document}

Result:

captions_too_close

As you can see, there is no spacing between the captions of subfigures (a) and (b). How can I control the subfigure caption spacing?

2

Set the width of the subcaptions and centre the subfigures inside their columns:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}

\usepackage{mwe}
\usepackage{lipsum}

\begin{document}

 \begin{figure}\centering
 \captionsetup[subfigure]{width=0.9\linewidth}
      \begin{subfigure}[b]{0.475\textwidth}
 \centering
            \includegraphics[width=0.8\linewidth]{example-image}
            \caption{\lipsum[1]}
        \end{subfigure}%
      \begin{subfigure}[b]{0.475\textwidth}
 \centering
            \includegraphics[width=0.8\linewidth]{example-image}
            \caption{\lipsum[1]}
        \end{subfigure}
    \end{figure}

\end{document} 

enter image description here

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.