0

I have a subfigure with an image on the right side and text on the other side.

\begin{figure}[h]
    \begin{subfigure}{.475\textwidth}
        \centering
        \includegraphics[scale=0.16]{img/google_card.PNG}
        \caption{Image}
    \end{subfigure}
    \begin{subfigure}{.475\textwidth}
         \centering
            How are you? \\
            Line 2\\
            Line 3\\
        \caption{Text}
    \end{subfigure}
    \caption{Caption for image and text}
\end{figure}

This produces an output like this: enter image description here

How can I position the image in one line and the text at the top? The result should look like this:

enter image description here

Your Answer

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

Browse other questions tagged or ask your own question.