
私の作品には 2 つの図が並んでおり、キャプションを追加する必要があります。しかし、キャプションを追加しても、図と一致しません。どなたか助けていただけませんか? どうぞよろしくお願いいたします。
コードは次のとおりです:
\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}