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 have a picture of a chart I want to include in my beamer presentation

I have included the following in my preamble

\usepackage{graphicx}
\graphicspath{C:/Latexpics/}

I am using MikTeX, when I use the command

\includegraphics{Chart}

I get an error saying file chart not found

Obviously i have something set up wrong, in the file path i have tried .jpeg, .png, and .pdf

I am using pdflatex

any help on where my mistake is would be immensely apprec

share|improve this question

closed as too localized by Ian Thompson, Stefan Kottwitz Apr 23 '12 at 16:18

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, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
The correct syntax should be \graphicspath{{C:/Latexpics/}} with an additional set of braces –  egreg Apr 22 '12 at 15:25
    
Why don't put the image in a sub folder of your main input file? For example, if you put in Images sub folder, then you set \graphicspath{{Images/}}. –  In PSTricks we trust Apr 22 '12 at 15:25
    
I corrected the \graphicspath command, it still gives me the same error. Which file type should i place in the folder? Is should i be including the extension type somewhere. Thanks for the quick responses, I am fairly new to latex and have never been able to figure out including images –  user12291 Apr 22 '12 at 15:35
    
Disregard, the fix worked –  user12291 Apr 22 '12 at 15:38

1 Answer 1

The easy way to include images is just to make sure the image is in the same directory as your .tex file. Then when you are including your graphics, you don't have to bother with a path at all. Just have

\usepackage{graphicx}
...
\includegraphics[width=\linewidth]{chart.pdf}

and everything should be fine.

share|improve this answer

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