I'm pretty new to LaTeX, and I'm having a lot of trouble importing a picture into my document. I used the following code:
\usepackage{float}
\begin{figure}{h}
\centering
\noindent\includegraphics[width=5in]{Figures/BLDCExplained.pdf}
\end{figure}
When I compile it, I get an error that says that I have no bounding box. Does anybody know how to get a bounding box or know of a program that I could use that has a built in bounding box?
Thanks,
Nick
Graphics, Figures & Tables ⇒ Importing pictures into LaTeX
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Importing pictures into LaTeX
It seems that you compiled with latex instead of pdflatex. Think about if you really need the float package.
The placement parameter for the figure environment is not a mandatory but an optional argument.
Best regards
Thorsten
The placement parameter for the figure environment is not a mandatory but an optional argument.
Code: Select all
\begin{figure}[!ht]
\centering
\includegraphics[width=5in]{Figures/BLDCExplained.pdf}
\caption{Caption}\label{fig:BLDCExplained}
\end{figure}
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10