Graphics, Figures & TablesInserted Image shows only File Name

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
astrophysician
Posts: 2
Joined: Fri Jan 31, 2014 12:45 pm

Inserted Image shows only File Name

Post by astrophysician »

Hello all!

I run MiKTeX 2.8 at Windows 7 and use the TeXnicCenter for editing my files.

I have been trying to insert an image to my document. In doing so, I have used either the graphics or the graphicx package in the Preamble, along with the \includegraphics command inside the document. I have tried various formats for the input image: PNG, PDF and EPS. For PNG and PDF, I used the profile "LaTeX -> PDF" in the editor, while for EPS I chose "LaTeX -> DVI", since I read that many times there is a conflict between PDFLaTeX and EPS or LaTeX and PNG as well as PDF.

In every case, I got no errors in the compilation, but the output file invariably showed the string corresponding to the image file name - instead of the image itself - inside a bounding box.

I wonder if there is any conflict with the babel package and its english and greek language options which I have included in the preamble so as to have Greek or Latin text in the output. The reason why I suspect this is that when I don't use the command \latintext before the figure environment inside which I insert the image, the image file name I mentioned above is printed with Greek letters instead of its original Latin ones.

I attach a ZIP file with the source file, the output PDF and the input image. Any answer will be appreciated!
Attachments
ProblemInsertImage.zip
(122.65 KiB) Downloaded 332 times

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

astrophysician
Posts: 2
Joined: Fri Jan 31, 2014 12:45 pm

Re: Inserted Image shows only File Name

Post by astrophysician »

Problem solved!

The problem was that I had declared the document as draft in the \documentclass command, so probably it was not permitted to depict the image normally. Omit the "draft" choice and the image should be shown properly.
Post Reply