This question already has an answer here:

I found this code here since it's exactly what I need to use, but also I need a caption under both of them. There is an example for a subcaption but that's not it. I simply tried to add the caption command but it doesn't work. Can someone tell me how to modify it? Thanks.

 % \caption{Picture 1}
 % \caption{Picture 2}

marked as duplicate by Dr. Manuel Kuehner, Moriambar, TeXnician, Stefan Pinnow, Mico May 16 '17 at 4:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Instead \begin{center} ... \end{center} see if use package float and positioning option H in begin{figure}[H] ... \end{figure} is what you looking for:


   \caption{Picture 1}
   \caption{Picture 2}
\caption{caption for both figure}

enter image description here

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