Take the 2-minute tour ×
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 am using Kile on a Red Hat/Gnome desktop at my university. My figures are made in R on a Windows machine. When I try to add figures to my report class LaTeX document, using the following code:

\begin{figure}[ht]
 \includegraphics[width = 0.9\textwidth]{path/biomass_dried_glm.pdf}
\end{figure}

I get the error message: Cannot determine size of graphic in path/blah (it doesn't say anything about bounding box anymore).

I have looked around, and understand that it has something to do with the dvpdf or something, but if anyone could help me change the settings in Kile or tell me what to do in Kile I would be very happy.

share|improve this question
4  
You are trying to use a PDF with latex in DVI mode. Simply use pdflatex instead and you should be fine. –  Martin Scharrer Jan 11 '12 at 11:14
    
I need it in with a teaspoon - how exactly can I do that? Thanks in advance! –  Anna Jan 11 '12 at 11:36
    
Oh, yes, it works when compiling :) - but is there no way to make it work for the QuickBuild option? –  Anna Jan 11 '12 at 11:44
    
@Anna: could you check the current configuration for QuickBuild? It might be easier for us to find out what's happening. :) –  Paulo Cereda Jan 11 '12 at 12:20
1  
Go to Settings -> Configure Kile -> Tools-Build. Select QuickBuild from the list on the left. From the dropdown menu under the heading Choose a configuration..., select PdfLatex+ViewPdf. Save this configuration. Invoking QuickBuild from the main program interface should now trigger PdfLatex. –  Michael Palmer Jan 11 '12 at 17:22
show 1 more comment

1 Answer

Go to Settings -> Configure Kile -> Tools -> Build. Select QuickBuild from the list on the left. From the dropdown menu under the heading Choose a configuration..., select PdfLatex + ViewPdf. Save this configuration. Invoking QuickBuild from the main program interface should now trigger PdfLatex.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.