![図のキャプションの配置の問題](https://rvso.com/image/328445/%E5%9B%B3%E3%81%AE%E3%82%AD%E3%83%A3%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E9%85%8D%E7%BD%AE%E3%81%AE%E5%95%8F%E9%A1%8C.png)
IOP テンプレートを使用して書いている論文の図のキャプションに問題があります。通常のパッケージを使用しています\usepackage{graphicx}
。
そしてLaTeXコマンドは
\begin{figure}[!h]
\centering
\includegraphics[width= 7.5cm,height=6cm]{figures/fig1.pdf}
\includegraphics[width= 7.5cm,height=6cm]{figures/fig2.pdf}
\caption[width = \textwidth]{Bla bla bla}
\label{fig:1}
\end{figure}
かなり標準的なものです。私が得た結果は
ご覧のとおり、キャプションは図と揃っていません。実際、テキストとも揃っていません。どうすればいいでしょうか?
答え1
次のことを試してください。
\usepackage{graphicx, caption}
\usepackage{lipsum} % for dummy text only
\begin{figure}[!h]
\centering
\captionsetup{width=\linewidth}
\includegraphics[width= 7.5cm,height=6cm]{figures/fig1.pdf}
\includegraphics[width= 7.5cm,height=6cm]{figures/fig2.pdf}
\caption[Second figure]{\lipsum*[2]}
\label{fig:1}
\end{figure}