两个人物并排 - 标题

两个人物并排 - 标题

我的作品中有两张并排的图,我需要给它们添加标题。但是当我添加标题时,它们与图不一致。有人能帮助我吗?非常感谢。

这是代码:

 \begin{figure}[h]
           \begin{floatrow}
             \ffigbox{\includegraphics[scale = 0.5]{Figures/dontknow_ecb_countries_members}}{\caption{\small{The level of people\\not expressing the\\opinion on trust in\\the ECB in individual\\Euro-Area countries}}\label{fig:dont know countries members}}
             \ffigbox{\includegraphics[scale = 0.5]{Figures/trust_ecb_countries_nonmembers}}{\caption{\small{The trust in the ECB\\in individual non-Euro\\Area countries}}\label{fig:trust countries nonmembers}}
           \end{floatrow}
        \end{figure}

这就是我得到的:

结果

答案1

使用\ffigbox[\FBwidth]时,标题的宽度应与图片的宽度相同。顺便说一句,您不能\\在里面使用\caption

\documentclass{article}
\usepackage{graphicx}
\usepackage{floatrow}

\begin{document}
 \begin{figure}[h]
           \begin{floatrow}
             \ffigbox[\FBwidth]{\includegraphics[scale = 0.2]{example-image}}
                               {\caption{The level of people not expressing the opinion on trust in the ECB in individual Euro-Area countries}\label{fig:dont know countries members}}
             \ffigbox[\FBwidth]{\includegraphics[scale = 0.2]{example-image-a}}
                               {\caption{The trust in the ECB in individual non-Euro Area countries}\label{fig:trust countries nonmembers}}
           \end{floatrow}
        \end{figure}

\end{document}

在此处输入图片描述

相关内容