
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}