Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subfigures not recognised in the environment #85

Open
ankur92 opened this issue May 24, 2022 · 4 comments
Open

Subfigures not recognised in the environment #85

ankur92 opened this issue May 24, 2022 · 4 comments

Comments

@ankur92
Copy link

ankur92 commented May 24, 2022

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 ankur92 changed the title Subfigures not recongised in the environment Subfigures not recognised in the environment May 25, 2022
@dsambrano
Copy link

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

@ankur92
Copy link
Author

ankur92 commented Mar 5, 2023

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

@dsambrano
Copy link

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.

@ankur92
Copy link
Author

ankur92 commented Mar 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants