Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've started trying to include .pdf images directly into my .tex files (instead of converting them to .eps which seems to degrade the image quality) but they're not showing up in the final .pdf file. Here is the code I am using in Kile (Ubuntu dist. OS):

\include{graphicx}
...
\begin{figure*}
    \begin{center}
    \includegraphics{width=0.8\textwidth,natwidth=400,natheight=400]{fig.pdf}
    \end{center}
\end{figure*}

The figure doesn't show up in the pdf (just blank spaces) whether I compile from the command line, or use the Quickbuild in Kile.

I also would like to know how I can get around specifying the natural width/height - which will be a pain to tweak - as it seems I have to do otherwise the compiler complains about not finding a bounding box (the pdfs have been published from Windows Excel).

Any help will be much appreciated!

share|improve this question
2  
create a complete example doc with only loading the package graphicx and in the text body only \fbox{\includegraphics[width=5cm,height=5cm]{fig}}. If you cannot see any image in the output then provide it for a download. – Herbert Jan 6 at 13:33
1  
Including .pdf graphics is only possible when compiling with pdflatex while including .eps is not possible with pdflatex. Maybe you should check, whether Kile is invoking pdflatex or latex as compiler. – Benedikt Bauer Jan 6 at 14:06
1  
@BenediktBauer, in the case of pdflatex, not true when \usepackage{epstopdf} is put in the preamble. – ADP Jan 6 at 14:21
@ADP that's of course true but in standard configuration without any additional packages it will not. – Benedikt Bauer Jan 6 at 14:30
1  
You should use \centering not the center environment inside figures. – Martin Scharrer Jan 6 at 17:17
show 2 more comments

closed as too localized by Martin Schröder, Joseph Wright Feb 2 at 21:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.