General ⇒ Graphicx problem
Graphicx problem
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.
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
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Graphicx problem
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Graphicx problem
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
Re: Graphicx problem
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!
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Graphicx problem
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