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.

  • Possible duplicate of How to place two figures next to each other and centered – L. F. Mar 19 at 12:20
  • As I stated, it is a single figure with multiple parts. I would like to manually add sub-captions to break up the figure. – Shawn Mar 19 at 12:22
  • Sorry. By the way, there is really nothing "magical" about the figures; "[inserting] the sub-captions manually" and "[splitting] the figure up into individual chunks" are not that different. ;-) – L. F. Mar 19 at 12:33
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

  • This looks like it should work. I also just stumbled on the correct google search for my problem (duplicate question): tex.stackexchange.com/questions/211748/… – Shawn Mar 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 at 12:35
  • That would be fine with me. Thanks for your assistance. – Shawn Mar 19 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.