1

I have a single figure representing the system transitioning between 5 states proceeding from left to right. I would like to add an aligned sub-caption below each state (a), (b), etc. Because the states are all wrapped up in a single figure this exceeds my current understanding in Latex.

This is my code printing the figure:

\begin{figure*}[b!] 
  \centering
  \includegraphics[width=\textwidth]{Figure_1.eps}
  \caption{\label{fig:static_analysis} Transition graphs.}
\end{figure*}

For reference, this is what the SINGLE figure and caption end state should look like:

--    --    --    --    --
-- -> -- -> -- -> -- -> --
--    --    --    --    --
(a)   (b)   (c)   (d)   (e)
 Fig. X: Transition states

Can I insert the sub-captions manually or do I need to split the figure up into individual chunks? The former would be preferred because of some transition arrows between the states.

Shawn
  • 207

1 Answers1

1

Use minipages for subfigures, and \caption*s for subcaptions:

\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}

(You can remove the dummy text introduced by \lipsum.) This is how it looks like:

enter image description here

L. F.
  • 796
  • This looks like it should work. I also just stumbled on the correct google search for my problem (duplicate question): https://tex.stackexchange.com/questions/211748/multiple-captions-under-a-single-figure – Shawn Mar 19 '19 at 12:33
  • @Shawn Good job. Would it be appropriate to mark this question as a duplicate of that question then? – L. F. Mar 19 '19 at 12:35
  • That would be fine with me. Thanks for your assistance. – Shawn Mar 19 '19 at 12:41