나란히 놓인 두 인물 - 캡션

나란히 놓인 두 인물 - 캡션

내 작업에는 두 인물이 나란히 있는데 여기에 캡션을 추가해야 합니다. 그러나 캡션을 추가하면 그림과 일치하지 않습니다. 누구든지 나를 도와줄 수 있나요? 매우 감사합니다.

코드는 다음과 같습니다.

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

여기에 이미지 설명을 입력하세요

관련 정보