Dissertate icon indicating copy to clipboard operation
Dissertate copied to clipboard

Subfigures not recognised in the environment

Open ankur92 opened this issue 2 years ago • 4 comments

Hi, I am trying to add a subfigure in the thesis but it runs into an issue where the Overleaf compiler returns an error saying "Environment subfigure undefined". Anyone ran into the same issue? Thanks in advance for your help!

\begin{figure}[h] \begin{subfigure} \includegraphics[width=0.3\textwidth, height=0.4\textwidth]{figures/chapter5/image1.jpg} \caption{Caption1} \label{fig:jpa_elec} \end{subfigure}

\begin{subfigure}
\includegraphics[width=0.3\textwidth, height=0.4\textwidth]{figures/chapter5/image2.jpg}
\caption{Caption1}
\label{fig:jpa_optical}
\end{subfigure}

\end{figure}

ankur92 avatar May 24 '22 23:05 ankur92

@ankur92 were you able to figure how to get subfigures to work? I am having the same issue

dsambrano avatar Mar 05 '23 08:03 dsambrano

No, I couldn’t. I composed the figures in Illustrator to make it work.

ankur92 avatar Mar 05 '23 23:03 ankur92

Yeah, I did something similar for my large panel figures. For the smaller ones (only two subfigs), it was fortunately easy enough to manually format A and B in the correct locations.

dsambrano avatar Mar 06 '23 03:03 dsambrano

Cool! I am glad it worked. There must an easy fix but just adding the sub caption package didn’t help when I tried.

On Sun, Mar 5, 2023 at 10:55 PM Deshawn Sambrano @.***> wrote:

Yeah, I did something similar for my large panel figures. For the smaller ones (only two subfigs), it was fortunately easy enough to manually format A and B in the correct locations.

— Reply to this email directly, view it on GitHub https://github.com/suchow/Dissertate/issues/85#issuecomment-1455400296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4GMNLUZYVDNCZV7TW3MDW2VN4HANCNFSM5W3F75DQ . You are receiving this because you were mentioned.Message ID: @.***>

--

Ankur Agrawal Physics Doctoral Student The University of Chicago http://home.uchicago.edu/~ankuragrawal/

ankur92 avatar Mar 06 '23 14:03 ankur92