GeneralGraphicx problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Judith
Posts: 7
Joined: Sun Oct 12, 2008 12:36 pm

Graphicx problem

Post by Judith »

Hi,

When I include images into my documents, they are not included in my compiled document. Instead, I only get a black frame. I used to work with TexnicCenter, and never had this problem there. (Using Kile now)

This is how I include images:
\begin{figure}[ht]
\centering
\includegraphics{/home/asdkahjk/adjhakjdhf/adadsa.eps}
\caption{`afdslkajkdl}
\label{fig:adadfa}
\end{figure}


Of course, I use \usepackage{graphicx} at the beginning of my document.
I get no error messages.

I am totally lost, and would appreciate any ideas.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphicx problem

Post by localghost »

Seems to me like there is the draft option set in the option list for the document class. Omit that option and graphics files should be included in the final output. Otherwise provide a minimal working example (MWE) that reproduces the described effect.


Best regards and welcome to the board
Thorsten¹
Judith
Posts: 7
Joined: Sun Oct 12, 2008 12:36 pm

Re: Graphicx problem

Post by Judith »

Hi,
no draft-option, I'm afraid.
That's my attempt at a MWE:

\documentclass[12pt,oneside,a4paper,openany]{book}\rmfamily
\usepackage{graphicx}

\begin{document}

\chapter{asjkfda}

\begin{figure}[ht]
\centering
\includegraphics{/home/path/image.eps}
\caption{Caption Text}
\label{fig:Label}
\end{figure}

\end{document}


Thanks,

Judith
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Graphicx problem

Post by Stefan Kottwitz »

Hi Judith,

probably the eps file is just not displayed by the dvi viewer. Use the DVItoPS button of Kile and click ViewPS right next to it to view the postscript output.

Stefan
LaTeX.org admin
Judith
Posts: 7
Joined: Sun Oct 12, 2008 12:36 pm

Re: Graphicx problem

Post by Judith »

Hurray! That worked!
Does the problem lie with my DVI viewer? I use Evince Document Viewer 2.22.2. Well, I guess I can us the PS just as well...

Thanks again!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Graphicx problem

Post by Stefan Kottwitz »

I'm using the same version of Evince. It should be fixed in a newer version. I am using Ubuntu Linux 8.04 I've read in bug report 100118 on launchpad that Ubuntu 8.10 will come with the corrected version of Evince, in just a few days I will update my system to 8.10.

You could use the postscript view, or install a newer version of Evince, consider to update soon if you are using Ubuntu too, or install kdvi, that will be able to display the eps graphics properly.

Stefan
LaTeX.org admin
Judith
Posts: 7
Joined: Sun Oct 12, 2008 12:36 pm

Re: Graphicx problem

Post by Judith »

Thanks a lot! I guess I'll be doing this as well.
Post Reply