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

LaTeX Error: Cannot determine size of graphic in figure/*.png #5

Open
hbunyamin opened this issue Aug 6, 2022 · 3 comments
Open

LaTeX Error: Cannot determine size of graphic in figure/*.png #5

hbunyamin opened this issue Aug 6, 2022 · 3 comments

Comments

@hbunyamin
Copy link

Hi Jue Xu,

Thank you so much for sharing this wonderful template.

I use TexLive 2021 (full version) and ran the following commands:
$ lualatex note-template.tex
$ latexmk note-template.tex

and I got the error:

LaTeX Error: Cannot determine size of graphic in figure/*.png (no BoundingBox).

Is there any way to solve this problem besides converting the png file into eps?

Thank you so much.

@hbunyamin hbunyamin changed the title LaTeX Error: Cannot determine size of graphic in figure/*.pdf LaTeX Error: Cannot determine size of graphic in figure/*.png Aug 6, 2022
@Jue-Xu
Copy link
Owner

Jue-Xu commented Aug 7, 2022

Could you share your LaTex code for your figure? In my experience, my template works fine with .png images. By the way, you could try compiling with some dedicated LaTex editor, e.g., Overleaf (online) or TeXstudio (local) rather than commands to see whether the error still exists.

@hbunyamin
Copy link
Author

Hi,
My workstation is MX Linux 21 and TeXstudio 4.2.3

here is the figure code:

\begin{figure}[!ht]
	\centering
	\includegraphics[scale=.2]{images/three-oranges.png}
	\caption{Tiga objek jeruk, yaitu: jeruk ke-1, jeruk ke-2, dan jeruk ke-3}
	\label{fig:three-oranges}
\end{figure}

I also try to build and view your notes_template.tex with these settings in TeXstudio

image

However, it doesn't work; therefore, I switch to terminal commands as explained above.

Maybe you have better alternatives.

Thank you.

@Jue-Xu
Copy link
Owner

Jue-Xu commented Aug 7, 2022

It might be some issue with your image format. Maybe this answer help. Or try compiling your project on Overleaef with pdflatex engine.

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