
キャプションが画像の下で終わるようにするにはどうすればいいでしょうか?
\documentclass[12pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h!]
\includegraphics[scale= 0.3]{images/MRS.jpg}
\caption{A part of an MRS.}
\label{fig:MRS}
\end{figure}
\end{document}
答え1
カイル、私の提案は完璧に機能しました:
上記の画像は以下によって生成されました:
\documentclass[12pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h!]\centering
\includegraphics[scale= 0.3]{example-image}
\caption{A part of an MRS.}
\label{fig:MRS}
\end{figure}
\end{document}
実際の画像でこれが起こらない場合は、画像の左側または右側に空白があります。これを確認するには、テストとして\includegraphics{...} into
\framebox{...}` を配置します。
\documentclass[12pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h!]\centering
\framebox{\includegraphics[scale= 0.3]{images/MRS.jpg}}
\caption{A part of an MRS.}
\label{fig:MRS}
\end{figure}
\end{document}
サンプル画像(パッケージを提供する)の場合、次graphicx
のようになります。