Graphics, Figures & TablesDifficulties with Figures showing up

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ggishallou
Posts: 2
Joined: Sun Sep 04, 2011 5:53 am

Difficulties with Figures showing up

Post by ggishallou »

Lately, I have been having difficulties with figures showing up in my LaTeX file. I have added the graphicx package at the beginning, and have used the following code to add a figure:

Code: Select all

\begin{figure}
\centering
\includegraphics{laser_apparatus.eps}
\end{figure}
I made sure the "laser_apparatus.eps" was under the same directory as my paper. When I compile it, it comes up with a box around the area the figure should be located with "laser_apparatus-eps-converted-to.pdf" inside of it. I have tried saving the image as a PDF instead of an EPS file, and this gives me the same thing. Any suggestions as to how I can have my figure show up?

Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Difficulties with Figures showing up

Post by Frits »

Have you recently changed anything of your TeX distribution, it's hard to believe these problems just showed up out of nothing.

For a start, post a minimal working example so that we can check if we're experiencing the same problem.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Difficulties with Figures showing up

Post by localghost »

As already mentioned, you should prepare a proper minimal example that illustrates the problem to give an adequate description of the problem.
ggishallou wrote:[…] When I compile it, it comes up with a box around the area the figure should be located with "laser_apparatus-eps-converted-to.pdf" inside of it. […]
Delete the 'draft' option wherever you find it. It can be given either globally to the document class or locally to the graphicx package.

And to avoid further problems, abstain from using special characters like blank space and underscores in paths and names of graphics files.


Best regards and welcome to the board
Thorsten
Post Reply