
左から右に進む 5 つの状態間の遷移を表す 1 つの図があります。各状態 (a)、(b) などの下に、整列したサブキャプションを追加したいと思います。状態がすべて 1 つの図にまとめられているため、これは Latex に関する私の現在の理解を超えています。
これは図を印刷する私のコードです:
\begin{figure*}[b!]
\centering
\includegraphics[width=\textwidth]{Figure_1.eps}
\caption{\label{fig:static_analysis} Transition graphs.}
\end{figure*}
参考までに、単一の図とキャプションの終了状態は次のようになります。
-- -- -- -- --
-- -> -- -> -- -> -- -> --
-- -- -- -- --
(a) (b) (c) (d) (e)
Fig. X: Transition states
サブキャプションを手動で挿入できますか、それとも図を個別のチャンクに分割する必要がありますか? 状態間の遷移矢印があるため、前者の方が望ましいでしょう。
答え1
サブ図には s を使用しminipage
、\caption*
サブキャプションには s を使用します。
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{figure}
\centering
\begin{minipage}{0.15\textwidth}
\includegraphics[width = \textwidth]{a}
\caption*{(a)}
\end{minipage} \hfill \(\rightarrow\) \hfill
\begin{minipage}{0.15\textwidth}
\includegraphics[width = \textwidth]{b}
\caption*{(b)}
\end{minipage} \hfill \(\rightarrow\) \hfill
\begin{minipage}{0.15\textwidth}
\includegraphics[width = \textwidth]{c}
\caption*{(c)}
\end{minipage} \hfill \(\rightarrow\) \hfill
\begin{minipage}{0.15\textwidth}
\includegraphics[width = \textwidth]{d}
\caption*{(d)}
\end{minipage} \hfill \(\rightarrow\) \hfill
\begin{minipage}{0.15\textwidth}
\includegraphics[width = \textwidth]{e}
\caption*{(e)}
\end{minipage}
\caption{Transition states}
\end{figure}
\lipsum[2]
\end{document}
( で導入されたダミーテキストは削除できます\lipsum
。) 次のようになります。