.png)
我有一個圖代表系統從左到右在 5 個狀態之間轉換。我想在每個狀態 (a)、(b) 等下方添加對齊的子標題。
這是我列印該圖的程式碼:
\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
使用minipage
s 表示子圖,使用\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
。)它是這樣的: