複数画像したい(subcaption
)
% プリアンブル
\usepakcage{subcaption}
\subcaptionsetup{%オプション
% デフォルト値
margin=0pt,
font+=smaller,
labelformat=parens,
labelsep=space,
skip=6pt,
list=false,
hypcap=false,
}
% 本文
\begin{figure}
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics{example-image.pdf}
\subcaption{図1のキャプション}
\label{fig:sub1}
\end{minipage}
\hfill
\begin{minipage}
\centering
\end{minipage}
\end{figure}
複数の画像を並べたい場合はsubcaption
を使います。
注釈
subfigure
はメンテされていないらしく、
いまはsubcaption
を使うほうがよいみたいです。
環境ごとに設定したい
\subcaptionsetup[環境名]{オプション}
\subcaptionsetup[table]{オプション}
\subcaptionsetup[figure]{オプション}