Graphics, Figures & Tablesincludegraphics error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
buttnana
Posts: 13
Joined: Mon Sep 28, 2009 10:36 pm

includegraphics error

Post by buttnana »

Hi,

I am trying to add several figures to my latex file. I've been able to do it with:

\begin{center}
\includegraphics{R:\paper\charts\fig1.pdf}
\end{center}

but latex says it can't find the image file when I used:

\begin{center}
\includegraphics{fig1.pdf}
\end{center}

my tex file is in the same directory as the images. I am using Scientific Word. Does anyone know why or how to fix it?

Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: includegraphics error

Post by Stefan Kottwitz »

Hi,

use pdfLaTeX instead of LaTeX, i.e. compile directly to pdf.
If you already did that, please tell us more: the exact error message for instance. Or post the log file as attachment here.

Stefan
LaTeX.org admin
buttnana
Posts: 13
Joined: Mon Sep 28, 2009 10:36 pm

Re: includegraphics error

Post by buttnana »

I've attached a screenshot of the error I get in Scientific word, and I am using pdfLatex.

Thank you!
Leon
Attachments
error.jpg
error.jpg (159.1 KiB) Viewed 3412 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

includegraphics error

Post by Stefan Kottwitz »

Don't use backslashes, they start a (La)TeX command.
Instead use slashes, for example:

Code: Select all

\includegraphics{R:/paper/charts/fig1.pdf}
Stefan
LaTeX.org admin
Post Reply